# Rule-Based System

> A program that makes choices with if-then rules. People write all the rules.

**Field:** Artificial Intelligence  
**Category:** Foundations  
**Also known as:** Rule-Based AI, Rules Engine, If-Then System

## Think of it like

Think of it like a board game rule book. If you land here, you do this.

## Definition

A rule-based system is a program that decides things by following rules people wrote. Each rule says if this is true, then do that. The system checks its rules against the facts it is given and follows the ones that match. It never learns anything new by itself. Early AI was built this way, and many apps still use it.

## Example

A bank's rule says: if a card pays in two countries within one hour, block it. The system follows that rule for every payment.

## Why it matters

Rules are easy to read and explain. When you must show why a choice was made, rules can beat a learned model.

## Common mistake

Writing rules for a job with too many cases, like spotting faces. The rule book never ends, and learning works better there.

## Three principles

- **If-then rules.** Each rule is one choice.
- **Written by people.** Nothing is learned.
- **Easy to explain.** You can read every step.

## Related terms

- [Expert System](https://learn.benibix.com/term/ai/expert-system)
- [Symbolic AI](https://learn.benibix.com/term/ai/symbolic-ai)
- [Conditional Statement](https://learn.benibix.com/term/development/conditional-statement)
- [Machine Learning](https://learn.benibix.com/term/ai/machine-learning)

## Taught in

- [Rule-Based and Expert Systems](https://learn.benibix.com/learn/ai-foundations/rule-based-and-expert-systems): AI Basics, 3/10

![Two lanes. In the top lane a person writes if-then rules and a program follows them. In the bottom lane a pile of examples goes into training and comes out as a model.](https://learn.benibix.com/diagrams/ai-rules-vs-learning.svg)

---

Source: https://learn.benibix.com/term/ai/rule-based-system
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
