The Boolean Algebra Calculator simplifies Boolean expressions, generates truth tables, and converts between SOP and POS forms. Enter any expression with AND, OR, NOT, XOR, and NAND operations to get the simplified form, Karnaugh map, and full truth table — the foundation of digital logic.
0
0
0
1
1
1
1
1
0
0
0
0
1
1
1
1
1
0
Boolean algebra is the mathematics of true/false logic — and it underlies every digital circuit, computer processor, database query, and programming conditional that has ever been built. Simplifying a Boolean expression reduces the number of logic gates in a circuit, directly reducing cost, power consumption, and propagation delay. The Boolean algebra calculator applies Boolean identities and Karnaugh map simplification automatically.
The fundamental operations:
Key Boolean identities: A·A' = 0 (complement law); A+A' = 1; A·1 = A; A·0 = 0; A+0 = A; A+1 = 1; A+AB = A (absorption); A(A+B) = A; A+A'B = A+B (redundancy). De Morgan's theorem: (A·B)' = A'+B'; (A+B)' = A'·B'. Use this online calculator to simplify any expression.
A Karnaugh map (K-map) is a visual method for minimizing Boolean expressions by grouping adjacent 1s in a grid of 2ⁿ cells (n = number of variables). Rules: groups must contain 2ⁿ cells (1, 2, 4, 8, 16); groups should be as large as possible; groups may wrap around the edges; cover every 1 at least once; the simplified expression is the OR of each group's simplified AND term. For a 2-variable K-map with 4 cells; a 3-variable map has 8 cells; a 4-variable map has 16 cells. K-maps provide the minimum SOP (sum of products) expression, which directly maps to a two-level AND-OR gate implementation.
Boolean simplification is the foundation of: combinational logic circuit design (adders, multiplexers, decoders); sequential logic (flip-flops, registers, state machines); FPGA programming (mapping logic to look-up tables); compiler optimization (short-circuit evaluation, dead code elimination); database queries (WHERE clause optimization); hardware description languages (VHDL, Verilog). The advanced mathematics calculators cover the complete discrete mathematics toolkit.
Each output is either 0 (false) or 1 (true). Notice the relationships: NAND is always the opposite of AND; NOR is always the opposite of OR. XOR equals 1 exactly when the inputs are different. With A=1, B=1: AND=1, OR=1, XOR=0, NAND=0, NOR=0. With A=1, B=0: AND=0, OR=1, XOR=1, NAND=1, NOR=0. Toggle through all four combinations to construct the complete truth table mentally.
Inputs
Results
When both inputs are true: AND=1 (both true), OR=1 (at least one true), XOR=0 (inputs match), NOT A=0, NAND=0 (inverted AND), NOR=0 (inverted OR).
Inputs
Results
When inputs differ: AND=0 (not both true), OR=1 (at least one true), XOR=1 (inputs differ), NAND=1 (inverted AND=0), NOR=0 (inverted OR=1).
How helpful was this calculator?
Be the first to rate!