Boolean Algebra Laws and Rules
Updated 2026-11-22 · 7 min read
The laws you need to simplify any Boolean expression, each with its dual form, followed by short proofs of the ones students find surprising.
All the laws in one table
| Law | OR form | AND form (dual) |
|---|---|---|
| Identity | X + 0 = X | X · 1 = X |
| Null (domination) | X + 1 = 1 | X · 0 = 0 |
| Idempotent | X + X = X | X · X = X |
| Complement | X + X′ = 1 | X · X′ = 0 |
| Involution (double negation) | (X′)′ = X | — |
| Commutative | X + Y = Y + X | XY = YX |
| Associative | (X + Y) + Z = X + (Y + Z) | (XY)Z = X(YZ) |
| Distributive | X(Y + Z) = XY + XZ | X + YZ = (X + Y)(X + Z) |
| Absorption | X + XY = X | X(X + Y) = X |
| Simplification (redundant literal) | X + X′Y = X + Y | X(X′ + Y) = XY |
| Combining (adjacency) | XY + XY′ = X | (X + Y)(X + Y′) = X |
| De Morgan's laws | (X + Y)′ = X′Y′ | (XY)′ = X′ + Y′ |
| Consensus | XY + X′Z + YZ = XY + X′Z | (X + Y)(X′ + Z)(Y + Z) = (X + Y)(X′ + Z) |
Notation: X′ is NOT X, XY is X AND Y, X + Y is X OR Y. NOT binds tightest, then AND, then OR.
Proof: absorption, X + XY = X
X + XY = X · 1 + XY = X(1 + Y) = X · 1 = X. In words: if X is 1 the left side is 1; if X is 0 both terms are 0. The term XY adds nothing.
Proof: X + X′Y = X + Y
Use the second distributive law: X + X′Y = (X + X′)(X + Y) = 1 · (X + Y) = X + Y. Example: A + A′BC = A + BC.
Proof: De Morgan’s laws
| X | Y | X + Y | (X + Y)′ | X′ | Y′ | X′Y′ |
|---|---|---|---|---|---|---|
| 0 | 0 | 0 | 1 | 1 | 1 | 1 |
| 0 | 1 | 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 | 1 | 0 |
| 1 | 1 | 1 | 0 | 0 | 0 | 0 |
The two bold columns match, so (X + Y)′ = X′Y′. The AND form follows by duality. The rule “break the bar, change the sign” applies to any number of variables: (ABC)′ = A′ + B′ + C′.
Proof: the consensus theorem
XY + X′Z + YZ = XY + X′Z + YZ(X + X′) = XY + X′Z + XYZ + X′YZ = XY(1 + Z) + X′Z(1 + Y) = XY + X′Z. The term YZ (the consensus of XY and X′Z) is always covered by one of the other two, so it can be removed, or added when that helps a later step.
Using the laws: a worked simplification
Simplify F = A′B′C + A′BC + AB′C:
- Idempotent law, duplicate A′B′C: A′B′C + A′BC + A′B′C + AB′C.
- Group and factor: A′C(B′ + B) + B′C(A′ + A).
- Complement law: A′C · 1 + B′C · 1.
- Identity law: F = A′C + B′C, which also equals C(A′ + B′) = C(AB)′ by De Morgan.
Try your own expression in the Boolean algebra simplifier: it names the law used on every line.
Frequently asked questions
What are the 12 rules of Boolean algebra?
Lists differ, but the usual twelve are: A + 0 = A, A + 1 = 1, A · 0 = 0, A · 1 = A, A + A = A, A + A′ = 1, A · A = A, A · A′ = 0, A′′ = A, A + AB = A, A + A′B = A + B, and (A + B)(A + C) = A + BC. All of them appear in the table above with their duals.
What is the duality principle?
Swapping + with · and 0 with 1 in any valid identity gives another valid identity (variables and their complements stay as they are). That is why every law above comes in an OR form and an AND form.
How do I prove a Boolean identity?
Either build the truth table of both sides and check that they agree on every row (always works), or transform one side into the other with the laws. The equivalence checker does the first; the simplifier shows the second.
Is X + YZ = (X + Y)(X + Z) really true?
Yes, unlike in ordinary arithmetic. Expanding the right side gives X + XZ + XY + YZ, and X absorbs XZ and XY, leaving X + YZ. It is the dual of the familiar distributive law.
Sources
- C. E. Shannon, “A Symbolic Analysis of Relay and Switching Circuits,” Transactions of the AIEE, 57(12):713–723, 1938.
Related tools and guides
- Boolean simplifier Simplify a Boolean expression step by step: De Morgan, distributive, absorption, consensus and more, ending on a proven minimal SOP, plus the minimal POS.
- Equivalence checker Check whether two Boolean expressions are logically equivalent. See the truth tables side by side and every row where they differ.
- Minterms and maxterms Minterms and maxterms, Σm and ΠM notation, canonical and minimal SOP and POS forms, and how to convert between them, with tables for 3 variables.
- Logic gates All seven logic gates (AND, OR, NOT, NAND, NOR, XOR, XNOR) with ANSI and IEC symbols, truth tables, expressions and NAND/NOR-only circuits.