Boolean Algebra: Laws, Truth Tables, and Simplification

Aug 16, 2026

Boolean algebra is a system for reasoning with two states, usually written as 0 and 1 or false and true. Instead of ordinary arithmetic operations, it uses logical operations such as AND, OR, and NOT. These simple Boolean algebra rules describe conditions in software, switching circuits, search filters, and the digital hardware inside a computer.

This guide builds Boolean algebra from its notation and truth tables through its main laws. It then applies those laws to worked simplification examples, shows how De Morgan's laws transform expressions, and connects the math to real logic circuits.

Boolean Algebra at a Glance

In Boolean algebra, a variable can have only one of two values. The three fundamental operations are:

OperationCommon notationResult is 1 when...
NOTA' or ¬AA is 0
ANDA · B or ABboth A and B are 1
ORA + Bat least one input is 1

The plus sign in Boolean algebra means OR, not numerical addition. Therefore 1 + 1 = 1 in this notation. Similarly, multiplication-like adjacency means AND, so 1 · 0 = 0.

A Boolean expression combines variables and operations. For example, Y = A(B + C') says that Y is true only when A is true and either B is true or C is false. Parentheses establish the order just as they do in ordinary algebra.

If you need a refresher on the hardware operations behind this notation, the logic gates guide includes symbols and complete truth tables. For the number system represented by the same two symbols, see the binary number system guide.

Truth Tables Define Boolean Expressions

A truth table evaluates an expression for every possible input combination. With n independent inputs, a complete table has 2^n rows. Two inputs require four rows; three inputs require eight.

Consider the Boolean algebra expression Y = A + B':

ABB'Y = A + B'
0011
0100
1011
1101

Evaluate intermediate columns before the final result. Here, calculate B' first, then OR it with A. This Boolean algebra method reduces mistakes when an expression contains several levels of parentheses or complements.

Two expressions are equivalent when their output columns match for every row. That gives Boolean algebra an objective test: an algebraic simplification is valid only if the original and simplified truth tables are identical.

Core Boolean Algebra Laws

The Boolean algebra laws below let you rearrange and simplify expressions without enumerating every row. Each Boolean algebra law applies for either possible value of its variables.

Identity and Null Laws

Identity laws leave a value unchanged:

A + 0 = A
A · 1 = A

Null, or domination, laws force a result:

A + 1 = 1
A · 0 = 0

These Boolean algebra rules often remove constants introduced by an enabled or disabled condition.

Idempotent and Complement Laws

Repeating the same condition adds no information:

A + A = A
A · A = A

A variable combined with its complement is always known:

A + A' = 1
A · A' = 0

Double negation restores the original value: (A')' = A. Together, these Boolean algebra laws eliminate duplicate tests and opposite conditions.

Commutative and Associative Laws

AND and OR permit reordering:

A + B = B + A
AB = BA

They also permit regrouping when the operation stays the same:

(A + B) + C = A + (B + C)
(AB)C = A(BC)

Commutative and associative laws allow Boolean algebra terms to be arranged so another pattern becomes visible. They do not allow arbitrary movement across mixed AND and OR operations.

Distributive Laws

AND distributes over OR in the familiar form:

A(B + C) = AB + AC

Boolean algebra also has the dual form, where OR distributes over AND:

A + BC = (A + B)(A + C)

The second identity can feel surprising if you expect ordinary arithmetic. Expanding its right side gives A + AC + AB + BC; absorption reduces both A + AC and A + AB to A, leaving A + BC.

Absorption Laws

Absorption removes a more specific term when a broader one already determines the result:

A + AB = A
A(A + B) = A

If A is true, A + AB is already true. If A is false, both terms are false. The value of B cannot change the output, so the AB term is redundant.

De Morgan's Laws

De Morgan's laws describe how negation crosses a grouped AND or OR operation:

(AB)' = A' + B'
(A + B)' = A'B'

When a complement moves inside parentheses, AND changes to OR, OR changes to AND, and every input is complemented. These transformations are central to Boolean algebra because they expose equivalent circuit implementations and help rewrite conditions in a clearer form.

For example, a Boolean algebra access rule might say, “not both checks passed”:

(AB)' = A' + B'

The equivalent statement is, “the first check failed or the second check failed.” Both forms produce the same truth table.

For three variables, apply the rule to every term:

(ABC)' = A' + B' + C'
(A + B + C)' = A'B'C'

A common mistake is complementing the variables but forgetting to swap the operator. (A + B)' is not A' + B'; it is A'B'.

How to Simplify a Boolean Expression

A reliable Boolean algebra workflow is more useful than guessing which law to apply:

  1. Remove double negations and simplify constants.
  2. Expand or factor only when it reveals duplicate or complementary terms.
  3. Reorder terms with commutative and associative laws.
  4. Apply idempotent, complement, and absorption laws.
  5. Repeat until no term can be removed.
  6. Verify the result with a truth table when correctness matters.

The shortest Boolean algebra expression is not automatically the clearest implementation. In hardware, designers may prefer a form that maps to available gates, limits propagation delay, or avoids a temporary glitch. In software, a readable condition can be better than a clever one-line rewrite.

Worked Simplification Examples

Example 1: Use Absorption

Simplify Y = A + A'B.

Start with the distributive identity X + YZ = (X + Y)(X + Z):

A + A'B
= (A + A')(A + B)
= 1(A + B)
= A + B

So the Boolean algebra expression A + A'B needs only the behavior of A + B. A truth table confirms that both outputs match for all four combinations.

Example 2: Remove a Redundant Term

Simplify Y = AB + AB':

AB + AB'
= A(B + B')
= A · 1
= A

Whether B is 0 or 1, exactly one of B and B' is true. The output therefore depends only on A.

Example 3: Combine Distribution and Absorption

Simplify Y = (A + B)(A + C):

(A + B)(A + C)
= AA + AC + AB + BC
= A + AC + AB + BC
= A + BC

The idempotent law changes AA to A, then absorption removes AC and AB. This Boolean algebra result is also the dual distributive law shown earlier.

Example 4: Apply De Morgan's Law

Simplify Y = (A + B')':

(A + B')'
= A'(B')'
= A'B

The outer complement changes OR to AND and complements both inputs. Double negation then changes (B')' back to B.

Canonical Forms: Sum of Products and Product of Sums

Boolean algebra commonly represents a function in two structured forms.

A sum of products (SOP) is an OR of AND terms, such as A'B + AB'. Each product term can describe one truth-table row where the output is 1. Canonical SOP includes every variable in every term.

A product of sums (POS) is an AND of OR terms, such as (A + B)(A' + C). Each sum term can correspond to one row where the output is 0.

Canonical forms are systematic, but they are often longer than necessary. Boolean algebra simplification, Karnaugh maps, or logic minimization software can reduce them. SOP maps naturally to an AND-then-OR network; POS maps to an OR-then-AND network.

Boolean Algebra in Digital Circuits

Every basic gate implements a Boolean algebra operation. An AND gate implements multiplication-like conjunction, an OR gate implements logical addition, and a NOT gate implements complementation. NAND, NOR, XOR, and XNOR provide useful compound behavior.

Expression simplification can reduce the number of gates and connections in a circuit. For example, implementing AB + AB' literally uses two AND paths, an inverter, and an OR stage. Because Boolean algebra reduces it to A, the entire network can be replaced by a direct connection in an ideal logical model.

Real circuits introduce details that the algebra alone does not show: gate delay, electrical loading, clock timing, and signal hazards. Boolean algebra establishes functional equivalence; engineering analysis decides whether an implementation is electrically and temporally suitable.

Boolean algebra rules also appear in bitwise software operations. Applying AND to 1010 and 1100 produces 1000 because each bit position follows the AND truth table. Use the binary calculator for arithmetic, but remember that arithmetic addition carries between positions while bitwise Boolean operations do not.

Programming conditions use the same core Boolean algebra ideas with language-specific syntax. A typical expression may look like:

const canPublish = isEditor && (isOwner || hasApproval);

This is a Boolean algebra expression written with && for AND and || for OR. Short-circuit evaluation adds runtime behavior: the language may skip the right operand once the result is known. The final truth value still follows Boolean logic, but side effects inside conditions can make rewrites unsafe.

Database filters and search queries also combine conditions. status = published AND (category = guide OR category = reference) has the same Boolean algebra structure. Clear parentheses matter because operator precedence can change which records match.

Common Mistakes

  • Treating Boolean + as arithmetic addition. It means OR, so A + A = A.
  • Applying a law to only part of a complemented group. De Morgan's laws affect every term and swap the operator.
  • Dropping parentheses before checking precedence. NOT is usually evaluated before AND, and AND before OR.
  • Assuming equivalent logic has identical timing. Two circuits can share a truth table but have different delays or hazards.
  • Simplifying from a few test cases. Equivalence must hold for every possible input row.
  • Confusing bitwise and logical operators in code. One acts on corresponding bits; the other treats whole values as conditions.

Frequently Asked Questions

What is Boolean algebra used for?

Boolean algebra is used to specify and simplify digital circuits, write program conditions, construct database and search filters, verify logical equivalence, and reason about any system built from two-state decisions.

Who developed Boolean algebra?

George Boole developed the foundational algebra of logic in the nineteenth century. Later work connected this symbolic system to switching circuits, making it fundamental to digital engineering and computing.

Is Boolean algebra the same as binary arithmetic?

No. Both use 0 and 1, but Boolean algebra treats them as logical states and uses AND, OR, and NOT. Binary arithmetic treats them as digits in base 2 and includes carries and borrows. The binary addition guide demonstrates the arithmetic distinction.

What are the most important Boolean algebra laws?

Identity, null, idempotent, complement, commutative, associative, distributive, absorption, and De Morgan's laws form the practical core. Together they can simplify many expressions encountered in introductory logic design.

How do I prove two Boolean expressions are equivalent?

Transform one expression into the other using valid Boolean algebra laws, or build complete truth tables and compare their output columns. A truth table is exhaustive for a finite set of Boolean inputs.

Why simplify Boolean expressions?

Simplification reveals redundant conditions and can reduce logical operations, gates, wiring, power, or code complexity. The final design must still be checked for readability, timing, and implementation constraints.

Summary

Boolean algebra turns two-state decisions into a precise mathematical system. Truth tables define behavior, its laws preserve equivalence, De Morgan's laws move negation through groups, and simplification removes conditions that cannot affect the output. Once these patterns are familiar, logic gates, bitwise operations, and complex program conditions become easier to analyze and verify.

Admin

Admin