Boolean Algebra Calculator

Our Boolean Algebra Calculator handles all digital logic and boolean algebra operations in one place. Enter any boolean expression using standard operators — AND, OR, NOT, XOR, NAND, NOR, XNOR — and instantly get the truth table, minterms, maxterms, canonical SOP and POS forms, and a minimized expression using the Quine-McCluskey algorithm. The Karnaugh map visualizer highlights which cells are minterms, making it easy to identify groupings and simplifications.

star 4.9
auto_awesome AI
New

Operators: * or AND = AND  |  + or OR = OR  |  ' or ! = NOT  |  ^ or XOR = XOR  |  NAND, NOR, XNOR

Examples:

Minimal SOP (Simplified)

Minterms Σm(…)

Maxterms ΠM(…)

Canonical SOP

Canonical POS

Truth Table

calculate Boolean Laws

Identity
A+0=A   A·1=A
Null
A+1=1   A·0=0
Idempotent
A+A=A   A·A=A
Complement
A+A'=1   A·A'=0
Absorption
A+AB=A   A(A+B)=A
De Morgan's
(AB)'=A'+B'
(A+B)'=A'·B'
Double Negation
(A')'=A

grid_on Input Syntax

AND A*B   A·B   A AND B
OR A+B   A OR B
NOT A'   !A   NOT A
XOR A^B   A XOR B
NAND A NAND B
NOR A NOR B

lightbulb Quick Tips

  • AB means A AND B (implicit multiplication)
  • K-map groups must be powers of 2: 1, 2, 4, 8
  • Green cells = 1 (minterm), Red = 0 (maxterm)
  • NAND and NOR are universal gates
  • More 1s grouped → simpler expression

How to Use This Calculator

1

Enter Expression

Type your boolean expression using * (AND), + (OR), ' or ! (NOT), ^ (XOR). Variables are single letters A-Z.

2

View Truth Table

The truth table is generated automatically for all variable combinations (up to 4 variables = 16 rows)

3

Check K-map

The Karnaugh map highlights minterms (1s) making it easy to spot groupings for simplification

4

Get Simplified Form

See the minimal SOP expression from the Quine-McCluskey algorithm along with canonical SOP/POS forms

The Formula

A boolean function is fully defined by its truth table. SOP canonical form: OR of all minterms (rows where output = 1). POS canonical form: AND of all maxterms (rows where output = 0). The Quine-McCluskey algorithm minimizes SOP by grouping minterms that differ by one variable.

F = Σm(minterms) = Πm(maxterms)

lightbulb Variables Explained

  • A, B, C, D Boolean input variables (0 or 1)
  • AND (·) Logical AND — output 1 only if both inputs are 1
  • OR (+) Logical OR — output 1 if at least one input is 1
  • NOT (') Logical NOT — inverts the input
  • XOR (⊕) Exclusive OR — output 1 if inputs differ
  • SOP Sum of Products — OR of AND terms (minterms)
  • POS Product of Sums — AND of OR terms (maxterms)

tips_and_updates Pro Tips

1

Use * or · for AND, + for OR, ' or ! for NOT, ^ for XOR

2

Complement law: A + A' = 1, A · A' = 0 — use this to eliminate variables

3

De Morgan's: (A·B)' = A'+B' and (A+B)' = A'·B'

4

Absorption: A + A·B = A and A·(A+B) = A

5

Group minterms in powers of 2 (1, 2, 4, 8) on the Karnaugh map for minimal SOP

6

NAND and NOR are universal gates — any boolean function can be built from just NAND

Simplify Boolean Expressions and Generate Truth Tables Instantly

Boolean algebra is the mathematical foundation of digital electronics, computer science, and logic circuit design. Every processor, memory chip, and programmable logic device relies on boolean operations — AND, OR, NOT, XOR, NAND, NOR — to process binary data. Engineers and computer science students routinely need to simplify boolean expressions to minimize gate counts, reduce circuit complexity, and optimize power consumption. A single 4-variable function can have up to 16 rows in its truth table and dozens of possible simplifications. Manual simplification using De Morgan's theorems, consensus, and absorption laws is tedious and error-prone, especially under exam conditions. This boolean algebra calculator automates the entire workflow: enter any expression with up to four variables, and it instantly produces the complete truth table, identifies all minterms and maxterms, generates canonical Sum-of-Products (SOP) and Product-of-Sums (POS) forms, applies the Quine-McCluskey algorithm for guaranteed minimal expressions, and renders a color-coded Karnaugh map for visual verification. Whether you are designing combinational logic for an FPGA, verifying homework problems, or preparing for a digital logic exam, this tool replaces hours of manual work with accurate, step-by-step results.

What is a Boolean Algebra Calculator?

A boolean algebra calculator evaluates and simplifies logical expressions using the rules of boolean algebra. It generates truth tables showing every input/output combination, identifies minterms and maxterms, and applies minimization algorithms like Quine-McCluskey to find the simplest equivalent expression.

Boolean Operators and Notation

This calculator accepts multiple notation styles: AND (*, ·, AND, &&), OR (+, OR, ||), NOT (', !, ~, NOT), XOR (^, XOR), NAND, NOR, XNOR. Variables are single letters A through D. Parentheses are supported for grouping. Examples: A*B+C', (A OR B) AND NOT C, A NAND B.

Frequently Asked Questions

sell

Tags

verified

Data sourced from trusted institutions

All formulas verified against official standards.