Boolean Algebra Simplifier & Logic Gate Solver
Solve Complex Expressions with Step-by-Step Proofs
Simplify, expand, and verify boolean expressions. Supports XOR, XNOR, and De Morgan’s Laws.
Quick Reference
- Identity Law A + 0 = A, A · 1 = A
- Domination Law A + 1 = 1, A · 0 = 0
- Idempotent Law A + A = A, A · A = A
- Complement Law A + A' = 1, A · A' = 0
- Commutative Law A + B = B + A, AB = BA
📚 Example Problems
Click any example to load it into the calculator
Identity Law - Adding Zero
Demonstrates the Identity Law: A + 0 = A. Adding zero to any variable does not change its value.
Idempotent Law - OR
Demonstrates the Idempotent Law: A + A = A. ORing a variable with itself results in the same variable.
Idempotent Law - AND
Demonstrates the Idempotent Law: A · A = A. ANDing a variable with itself results in the same variable.
Domination Law - OR with 1
Demonstrates the Domination Law: A + 1 = 1. ORing any variable with 1 always results in 1.
Domination Law - AND with 0
Demonstrates the Domination Law: A · 0 = 0. ANDing any variable with 0 always results in 0.
Complement Law - OR
Demonstrates the Complement Law: A + A' = 1. A variable ORed with its complement is always 1.
Complement Law - AND
Demonstrates the Complement Law: A · A' = 0. A variable ANDed with its complement is always 0.
Simple Absorption
Demonstrates the Absorption Law: A + AB = A. The term AB is absorbed by A.
Simple Distributive
Demonstrates the Distributive Law: A(B+C) = AB + AC. Multiply A across the parenthesis.
Double Negation
Demonstrates Double Complement: (A')'= A. Inverting twice returns the original.
Classic Simplification
Classic problem combining Distributive, Idempotent, and Absorption laws.
Three-Term Absorption
Demonstrates modified Absorption: A + A'B = A + B.
De Morgan's Law - OR
Demonstrates De Morgan's Law: (A+B)' = A'·B'. The complement of a sum is the product of complements.
De Morgan's Law - AND
Demonstrates De Morgan's Law: (AB)' = A' + B'. The complement of a product is the sum of complements.
Complex Absorption
Demonstrates the Consensus Theorem: AB + A'C + BC = AB + A'C. The BC term is redundant.
Four Variable Simplification
Multi-step simplification using Distributive and Identity laws.
XOR Implementation
This is the XOR function A ⊕ B. It is already in simplified form.
Majority Function
Majority function for 3 variables. Output is 1 when at least 2 inputs are 1. Already optimal.
Distributive with Absorption
Combines Distributive Law with Complement and Identity laws.
Complex OR Simplification
Multi-step problem showing progressive absorption.
Redundant Term Elimination
Uses Distributive law to factor and eliminate redundant terms.
NAND Gate Conversion
Shows De Morgan's conversion of NAND operations.
SOP to Minimal
Sum of Products minimization using K-Map logic.
Mixed Operations
Expansion using Distributive law, results in XNOR function.
Triple Term Expansion
Three-variable expansion with complement cancellation.
Four Variable Consensus
Complex 4-variable expression requiring multiple law applications.
Full Adder Sum
Full adder sum output. Equals A XOR B XOR C.
Full Adder Carry
Full adder carry output. Already in optimal form (majority function).
Complex De Morgan
Multiple applications of De Morgan's law.
Multiplexer 2-to-1
2-to-1 multiplexer function. Already optimally minimized.
Seven Segment Decoder
BCD to 7-segment decoder segment A logic.
Parity Generator
4-bit odd parity generator. Equals A XOR B XOR C XOR D.
Gray to Binary
Gray code to binary conversion logic for LSB.
Complex Factoring
Requires K-Map or Quine-McCluskey for optimal minimization.
BCD to Excess-3
BCD to Excess-3 code converter logic. Already minimal.
How to Use the Boolean Algebra Calculator
Enter Your Expression
Type your Boolean expression using
variables (A, B, C...) and operators (+, *, ', parentheses). Example: (A+B)(A+C)
Click Simplify
Our calculator uses the Quine-McCluskey algorithm combined with algebraic laws to find the optimal simplified form.
Review Results
See the simplified expression, step-by-step laws applied, truth table, and K-Map visualization.
Study the Steps
Learn which Boolean laws were applied at each step. Perfect for homework verification!
Export Your Work
Download as LaTeX for academic papers, save as text file, or print as PDF.
Try Examples
Scroll down to see 35+ worked examples from beginner to advanced difficulty.
Common Mistakes to Avoid
❌ Incorrect: Using × or · inconsistently
Don't mix multiplication symbols. Our
calculator accepts AB,
A*B, or A·B.
✅ Correct: Stick to one format throughout
❌ Incorrect: Forgetting parentheses
A+BC is
very different from
A+B*C or (A+B)C
✅ Correct: Always use parentheses for clarity
❌ Incorrect: Confusing ' with negation
Use A'
for NOT A, not
!A or ~A
✅ Correct: Use apostrophe (') for complement
❌ Incorrect: Ignoring operator precedence
AND (·) has higher precedence than OR (+), just like × and + in math
✅ Correct: A+BC means
A+(B·C)
❌ Incorrect: Misapplying De Morgan's Law
(A+B)' ≠ A'+B'
✅ Correct: (A+B)' = A'·B'
❌ Incorrect: Stopping simplification too early
Always check if absorption or consensus laws can simplify further
✅ Correct: Use our calculator to verify you've reached the minimal form
Pro Tips for Boolean Simplification
Start with Distribution
Apply Distributive Law first to expand expressions, then look for absorption patterns.
Look for Complements
Terms like A+A' or A·A' can immediately simplify to 1 or 0.
Use the K-Map
For 2-4 variables, visually identify groups in the K-Map for faster simplification.
Try Different Forms
Convert between SOP (Sum of Products) and POS (Product of Sums) to find the minimal form.
Verify with Truth Tables
Original and simplified expressions must have identical truth tables.
Practice with Examples
Work through our 35+ examples to master pattern recognition.
Frequently Asked Questions
How do you simplify Boolean expressions?
Our tool uses the Quine-McCluskey algorithm and Boolean laws like De Morgan’s and the Consensus Theorem to find the absolute minimal form.
Does this tool support XOR?
Yes! Our advanced parser expands XOR ($A \oplus B$) into its SOP form ($A'B + AB'$) before simplification.
Can I see the logic circuit?
Yes, every result includes a generated SVG logic gate diagram.
What is Boolean algebra simplification?
Boolean algebra simplification is the process of reducing a Boolean expression to its minimal form using Boolean laws (Identity, Domination, Idempotent, Complement, Absorption, Distributive, and De Morgan's laws). A simplified expression uses fewer gates in digital circuits and is easier to understand.
How does the Quine-McCluskey algorithm work?
The Quine-McCluskey algorithm is a tabular method for Boolean function minimization. It systematically finds all prime implicants, identifies essential prime implicants, and selects the minimum set needed to cover all minterms. Our calculator uses this for optimal results on complex expressions.
What's the difference between SOP and POS?
SOP (Sum of Products) is an OR of ANDs: AB + A'C + BC. POS
(Product of Sums) is an AND of ORs: (A+B)(A'+C)(B+C). Our
calculator shows the most compact form.
Can I use this calculator for homework?
Yes! Our calculator is perfect for verifying your homework answers and understanding the step-by-step simplification process. We show which Boolean laws are applied at each step, helping you learn the methodology. However, we recommend solving problems manually first, then using our tool to check your work.
How many variables can the calculator handle?
Our calculator supports 2-4 variables efficiently with full K-Map visualization. For expressions with 5+ variables, we use the Quine-McCluskey algorithm which can handle larger expressions, though K-Map visualization is limited to 4 variables.
What is a K-Map and how do I read it?
A Karnaugh Map (K-Map) is a visual method for simplifying Boolean expressions. Cells with value '1' (minterms) are grouped in powers of 2 (groups of 1, 2, 4, 8...). Each group represents a product term in the simplified expression. Our calculator shows these groups and explains which minterms they cover.
Why does my simplified expression look different from the book?
There can be multiple equivalent "minimal" forms, especially when using different forms (SOP vs POS) or factoring differently. If the truth tables match, both answers are correct. Our calculator provides the most algorithmically optimal form using Quine-McCluskey.
Can I export my results for reports?
Absolutely! Use our export buttons to:
• Copy LaTeX - Perfect for academic papers and reports
• Download Text - Save as .txt file for later reference
• Print PDF - Create a PDF for submission or archiving
What operators can I use in expressions?
AND: Use AB, A*B, or
A·B
OR: Use A+B
NOT: Use A' for complement
Parentheses: (A+B) for grouping
Is the calculator free to use?
Yes! Our Boolean Algebra Calculator is completely free with no registration required. We provide unlimited simplifications, truth tables, K-Maps, and exports. Use it for homework, exam preparation, or professional circuit design work.