Boolean Algebra Simplifier - Simplify Boolean Expressions Online

Boolean Algebra Simplifier

Reduce any expression to its minimal form

Use + for OR, · or * for AND, ' for NOT, parentheses to group, and 0/1 for constants. XOR (^), implies (->) and equivalence (<->) are accepted too.

Try an example

Simplified expression

A·B + A·B' + A'·B

SIMPLIFIES TO

A + B

Reduced from 6 literals to 2 — a 67% reduction

Minimal Sum of Products (SOP)

A + B

Minimal Product of Sums (POS)

(A + B)

Step-by-step simplification

0

A·B + A·B' + A'·B

Original expression

1

A + B

Quine–McCluskey

Combined minterms to reach the provably minimal sum-of-products form.

Gate-count reduction

Estimated logic gates needed before vs. after simplification.

Original7 gates
Simplified1 gates

86% fewer gates after minimization.

Karnaugh map

Cells equal to 1 (shaded) are the minterms the minimal SOP covers. Columns and rows follow Gray-code order.

A\B01
001
111

How to Use This Calculator

  1. Type your expression in the Boolean expression box, or tap one of the example chips to load it.
  2. Write AND as · or *, OR as +, and NOT as a trailing ' (so A' means NOT A).
  3. Read the Simplified expression at the top, then follow the numbered step-by-step derivation to see which law fires at each stage.
  4. Compare the SOP and POS minimal forms, check the Karnaugh map for a visual cross-check, and review the gate-count bars to see how much hardware you save.

Share this calculator

Help others solve their calculations

Found this calculator helpful? Share it with your friends, students, or colleagues who might need it!

Boolean Algebra Simplifier: How to Simplify Boolean Expressions Step by Step

About the Author

Marko Šinko - Co-Founder & Lead Developer

Marko Šinko

Co-Founder & Lead Developer, AI Math Calculator

Lepoglava, Croatia
Advanced Algorithm Expert

Croatian developer with a Computer Science degree from University of Zagreb and expertise in advanced algorithms. Co-founder of award-winning projects, ensuring precise mathematical computations and reliable calculator tools.

📅 Published:
Boolean algebra simplifier reducing a logic expression to its minimal SOP form with a Karnaugh map and gate-count chart.

A Boolean algebra simplifier turns a tangled logic expression like A·B + A·B' + A'·B into its shortest equivalent form — here, just A + B — in one click. That single reduction cuts the expression from six literals to two, and the underlying circuit from six gates to one. This guide shows you exactly how that happens: the two methods every engineer uses to simplify Boolean expressions, when to reach for each, and the mistakes that quietly produce wrong answers.

There are really only two reliable ways to do this by hand: algebraic laws and Karnaugh maps. The calculator above runs both at once and cross-checks them against a truth table, so you get a verified minimal result instead of a hopeful guess. Let's unpack how each method works.

The Two Ways a Boolean Algebra Simplifier Reduces Logic

Algebraic simplification applies the identities of Boolean algebra — absorption, complement, De Morgan's, and friends — one rewrite at a time until nothing else reduces. It's exact, it teaches you why a term disappears, and it scales to any number of variables. The catch: it's easy to miss a reduction, because spotting the right law at the right moment takes practice.

A Karnaugh map (K-map) flips the problem into a picture. You drop each 1 of the truth table onto a grid arranged in Gray-code order, circle the largest power-of-two groups of adjacent 1s, and read the minimal sum of products straight off the groupings. K-maps are nearly foolproof for 2 to 4 variables, which is why students learn them first. Past five variables the grid gets unwieldy, and that's where the Quine–McCluskey algorithm — the tabular method the calculator uses internally — takes over.

Method Comparison at a Glance

MethodBest variable rangeStrengthWeakness
Boolean lawsAnyShows the reasoning; no size limitEasy to miss a reduction
Karnaugh map2–4 (up to 6 with effort)Visual, hard to get wrongBreaks down past 5–6 variables
Quine–McCluskeyAny (computer-friendly)Provably minimal, exhaustiveTedious by hand

Worked Example with Boolean Laws

Take A·B + A·B' + A'·B. Watch how three laws collapse it:

  1. Factor the first two terms: A·B + A·B' = A·(B + B') — that's the distributive law in reverse.
  2. Apply the complement law: B + B' = 1, so the group becomes A·1 = A by the identity law.
  3. You now have A + A'·B. The reduction form of absorption says A + A'·B = A + B.

Final answer: A + B. Notice the third step — A + A'·B = A + B — trips up almost everyone, because it looks like the A' should stick around. It doesn't: wherever A is false, A' is true, so A'·B reduces to just B in that region. If you want to verify the intermediate logic of any single step, the logic calculator evaluates sub-expressions one operator at a time.

The Same Example on a Karnaugh Map

For two variables the K-map is a 2×2 grid. Rows are A (0 then 1), columns are B (0 then 1). Our expression is true for three of the four cells:

A\B01
001
111

Circle the entire bottom row — that's the group where A = 1, giving the term A. Circle the entire right column — that's the group where B = 1, giving the term B. The two groups overlap on the bottom-right cell, which is allowed and even encouraged. Read the groups as an OR: A + B. Same answer the algebra gave, reached visually in seconds. The calculator's K-map shades exactly these cells so you can see the grouping for your own expression.

Why a Shorter Expression Means Cheaper Hardware

Simplification isn't just tidy — it's money. The unsimplified A·B + A·B' + A'·B needs three AND gates, one OR gate, and two inverters: six gates feeding a signal that has to ripple through three layers. The simplified A + B needs a single OR gate. That's an 83% gate reduction, which in real silicon means less power draw, shorter propagation delay, and a smaller die. Every literal you eliminate is a transistor you don't have to fabricate or power. The gate-count bars in the calculator quantify this for any expression you paste in.

SOP vs. POS — Which Minimal Form to Use

Every Boolean function has two minimal shapes. Sum of Products (SOP) is an OR of AND terms, like A + B or A·C + B'. Product of Sums (POS) is an AND of OR terms, like (A + B)·(C + D). They describe the identical function — they just package it differently.

Pick SOP when the function has few 1s in its truth table, or when you're building with AND-OR / NAND logic. Pick POS when the function has few 0s, or when NOR gates are cheaper in your technology. The calculator gives you both minimal forms side by side so you can choose whichever costs less for your situation. If you want to see the full truth table that drives both forms, pair this with the truth table calculator, and for a feature-complete tool that also evaluates assignments and shows canonical forms, the Boolean algebra calculator covers the rest.

Common Simplification Mistakes

  • Confusing A + A'·B with A·(A' + B). The first reduces to A + B; the second reduces to A·B. The operator order completely changes the result.
  • Breaking De Morgan's law halfway. (A·B)' is A' + B', not A'·B'. You must flip the operator and negate each term.
  • Forgetting wrap-around groups on a K-map. The left and right edges are adjacent, and so are the top and bottom. A group can wrap around the border.
  • Grouping a non-power-of-two block. K-map groups must contain 1, 2, 4, 8, … cells. A group of three is never valid.
  • Stopping too early. An expression can look simplified while a consensus term still hides a redundant factor. Always cross-check against a truth table — which is exactly what the tool does automatically.

Boolean simplification underpins everything from CPU design to the conditional logic in your code. If you're studying the broader discrete-math toolkit, the set calculator applies the same union, intersection, and complement ideas to collections of objects. For the formal background on the rules used here, the Wikipedia entry on Karnaugh maps is a solid reference.

Frequently Asked Questions

Still Have Questions?

The detailed content on this page provides comprehensive explanations and examples to help you understand better.