Skip to content
KmapGen

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

LawOR formAND form (dual)
IdentityX + 0 = XX · 1 = X
Null (domination)X + 1 = 1X · 0 = 0
IdempotentX + X = XX · X = X
ComplementX + X′ = 1X · X′ = 0
Involution (double negation)(X′)′ = X—
CommutativeX + Y = Y + XXY = YX
Associative(X + Y) + Z = X + (Y + Z)(XY)Z = X(YZ)
DistributiveX(Y + Z) = XY + XZX + YZ = (X + Y)(X + Z)
AbsorptionX + XY = XX(X + Y) = X
Simplification (redundant literal)X + X′Y = X + YX(X′ + Y) = XY
Combining (adjacency)XY + XY′ = X(X + Y)(X + Y′) = X
De Morgan's laws(X + Y)′ = X′Y′(XY)′ = X′ + Y′
ConsensusXY + 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

XYX + Y(X + Y)′X′Y′X′Y′
0001111
0110100
1010010
1110000

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:

  1. Idempotent law, duplicate A′B′C: A′B′C + A′BC + A′B′C + AB′C.
  2. Group and factor: A′C(B′ + B) + B′C(A′ + A).
  3. Complement law: A′C · 1 + B′C · 1.
  4. 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.