Boolean Expression Simplifier

Use this tool directly — no redirects, no sign-up required.

Boolean Expression Input

AND  ·  * OR  +  | NOT  '  !
Examples:

Simplified Expression

Result will appear here

Truth Table

Truth table will appear here

Gate Network

Gate diagram will appear here

How Boolean Expression Simplification Works

Boolean algebra simplification reduces complex logical expressions into their minimal equivalent form using a set of algebraic laws. Every digital circuit, from basic gates to complex processors, operates on boolean logic — and simplification directly reduces gate count, power consumption and propagation delay in real hardware.

Sum of Products (SOP)

The standard form where AND terms are ORed together. Every boolean function can be expressed in SOP and it maps directly to a two-level AND-OR gate network.

Prime Implicants

A prime implicant is a product term that cannot be combined with another term to produce a simpler term. The Quine-McCluskey method finds all prime implicants systematically.

Essential Prime Implicants

An essential prime implicant covers at least one minterm that no other prime implicant covers. The minimum cover must include all essential prime implicants.

De Morgan's Laws and Boolean Identities

These fundamental identities allow you to transform and simplify boolean expressions. The simplifier applies these automatically.

Identity Name Expression Description
De Morgan 1(AB)' = A' + B'NAND equals OR of complements
De Morgan 2(A+B)' = A'B'NOR equals AND of complements
AbsorptionA + AB = ARemoves redundant product terms
ConsensusAB + A'C + BC = AB + A'CEliminates redundant consensus terms
ComplementA + A' = 1   |   AA' = 0A variable OR its complement is always 1
IdempotentA + A = A   |   AA = ARepeated terms collapse to a single term

Quine-McCluskey Algorithm Step by Step

The Quine-McCluskey method is a tabular technique that systematically finds the minimum SOP form of a boolean function. Unlike K-maps it works for any number of variables and is computer-friendly.

  1. 1
    List all minterms. Convert each row where the output is 1 to its binary representation and group by number of 1-bits.
  2. 2
    Merge adjacent groups. Combine pairs that differ in exactly one bit position, replacing that bit with a dash (don't-care). Repeat until no more merges are possible.
  3. 3
    Identify prime implicants. Any term that could not be merged further is a prime implicant. Collect all of them into a prime implicant chart.
  4. 4
    Select essential prime implicants. Find every minterm covered by exactly one prime implicant — that implicant is essential. Include all essentials in the final expression.
  5. 5
    Cover remaining minterms. For any minterms not yet covered by essentials, choose additional prime implicants greedily to minimize the total term count.

Related Tools

Explore these dedicated tool pages to continue your workflow with logic, Arduino, PCB, and conversion-focused diagram setups.

Logic Gate Diagram Tool

Build clear gate-level logic diagrams and validate signal flow.

Open Tool

Arduino Circuit Maker

Document board pin connections, modules, and wiring paths quickly.

Open Tool

PCB Schematic Tool

Draft production-ready schematic structures before PCB layout.

Open Tool

Truth Table To Logic Circuit

Generate gate-level logic from truth-table behavior for quick validation and learning.

Open Tool

Frequently Asked Questions

What notation does the Boolean Expression Simplifier accept?
The tool accepts multiple notations simultaneously. You can use '+' for OR, '·' or '*' or just adjacency for AND, and apostrophe (A') or '!' for NOT. Parentheses for grouping are fully supported.
What simplification algorithm is used?
The tool uses the Quine-McCluskey algorithm, which is the provably optimal method for finding prime implicants and selecting essential ones. It guarantees the minimum SOP form.
How many variables are supported?
Up to 5 variables (A through E) are supported, producing up to 32-row truth tables. For most practical digital logic problems this is sufficient.
What is the output format of the simplified expression?
The result is shown in standard Sum-of-Products (SOP) form using the apostrophe notation (e.g. A'B + AB'). The truth table and a gate network diagram are also generated automatically.
Can I use this for Karnaugh map problems?
Yes. The Quine-McCluskey algorithm is equivalent to solving a K-map but works for more than 4 variables where K-maps are impractical.
Does the tool handle expressions that are always true or always false?
Yes. Tautologies (always 1) and contradictions (always 0) are detected automatically and displayed as constant outputs.