Skip to content
KmapGen

Boolean Algebra Simplifier

Simplify any Boolean expression step by step. Each line applies one named law (De Morgan, distributive, absorption, consensus…), and the last line is a sum of products proven minimal.

“Minimal” means a two-level form (sum of products, or product of sums) with the fewest terms, then the fewest literals. A multi-level factored form can be shorter still: (A + B)(C + D) has 4 literals, its minimal SOP has 8.

Try:
Truth table K-map

Simplified (minimal SOP)

A'B' + C

15 → 3 literals, 21 → 4 operators.

Minimal POS: (A' + C)(B' + C)

Step by step

  1. Start
    A'B'C' + A'B'C + A'BC + AB'C + ABC
  2. Step 1: Combining (adjacency) lawXY + XY′ = X
    = A'B' + A'BC + AB'C + ABC
  3. Step 2: Combining (adjacency) lawXY + XY′ = X
    = A'B' + BC + AB'C
  4. Step 3: Simplification lawX + X′Y = X + Y
    = A'B' + BC + B'C
  5. Step 4: Combining (adjacency) lawXY + XY′ = X
    = A'B' + C

How the simplifier works

  1. Definitions. XOR, XNOR, NAND, NOR, implication and the biconditional are rewritten with AND, OR and NOT, for example A ⊕ B = AB′ + A′B.
  2. Negations inward. De Morgan’s laws and double negation move every NOT down onto a single variable.
  3. Sum of products. The distributive law multiplies out products of sums, innermost first.
  4. Clean-up. Idempotent, complement, null and absorption laws remove repeated literals, impossible terms and terms swallowed by shorter ones.
  5. Reduction. The combining law (XY + XY′ = X) merges neighbors; the simplification law (X + X′Y = X + Y) removes a redundant literal.
  6. Minimum check. The result is compared with the exact minimum from Quine–McCluskey. If it is longer, consensus terms are added and redundant terms removed until it matches.

Every intermediate line is tested to have the same truth table as your input; the test suite runs this on hundreds of random expressions.

Worked example: (A + B)(A + C)

  1. Distributive law: (A + B)(A + C) = AA + AC + AB + BC.
  2. Idempotent law, AA = A: A + AC + AB + BC.
  3. Absorption, A + AC = A and A + AB = A: A + BC.

This is the second distributive law, X + YZ = (X + Y)(X + Z), read backwards. It is a classic trap: the product of sums has 4 literals, while the equivalent sum of products has only 3.

Why some answers need the consensus theorem

In AB + A′C + BC, no two terms can be merged and none absorbs another, yet BC is redundant: whenever B and C are both 1, either A is 1 (so AB covers it) or A is 0 (so A′C covers it). The consensus theorem XY + X′Z + YZ = XY + X′Z removes it. Expressions like this are where hand simplification most often stops one term too early.

Frequently asked questions

How can I simplify a Boolean expression?

Remove the derived operators (XOR, implication, NAND…) using their definitions, push every NOT down to single variables with De Morgan’s laws, multiply out with the distributive law to get a sum of products, then shrink it: drop duplicate literals and terms (idempotent law), remove terms containing X and X′ (complement law), absorb longer terms into shorter ones (X + XY = X), merge pairs that differ in one variable (XY + XY′ = X), and remove consensus terms. The tool above applies exactly these steps and names each one.

How do I know the result is really the simplest?

Algebra alone cannot prove that no shorter form exists; a missed trick leaves a longer answer that still looks “done.” This simplifier checks its last line against the Quine–McCluskey method with Petrick’s cover search, which finds the minimum number of terms and literals for a sum of products. If the plain algebra stops early, the remaining steps use the consensus theorem and redundant-term removal to reach that proven minimum.

What are the basic rules of Boolean algebra?

The core laws are identity (X + 0 = X, X·1 = X), null (X + 1 = 1, X·0 = 0), idempotent (X + X = X), complement (X + X′ = 1, X·X′ = 0), involution (X′′ = X), commutative, associative, distributive (X(Y + Z) = XY + XZ and X + YZ = (X + Y)(X + Z)), absorption (X + XY = X), De Morgan’s laws and the consensus theorem. The laws page lists all of them with proofs.

Is the minimal SOP always shorter than the minimal POS?

No. Some functions are shorter as a sum of products and others as a product of sums, which is why both are shown. (A + B)(A + C) is 4 literals as POS while its minimal SOP A + BC is 3; (A + B)(C + D) is 4 literals as POS while its minimal SOP AC + AD + BC + BD needs 8; and for A′B′ + AB the SOP and the POS (A + B′)(A′ + B) have the same length.

How difficult is Boolean algebra?

The laws are few and each is easy to verify with a truth table. The hard part is choosing which law to apply next, and knowing when to stop. Practicing with a tool that shows a correct path, and then trying to find your own path to the same minimal answer, is an efficient way to build that judgment.