🎓 Computer Science • Boolean Algebra 100% Client-Side Privacy

Boolean Algebra Calculator & Laws

Evaluates and simplifies boolean algebraic expressions with reference laws for digital logic design.

Complete Boolean Algebra Axioms, Laws & Theorems

De Morgan’s Laws

¬(A ∧ B) = ¬A ∨ ¬B

¬(A ∨ B) = ¬A ∧ ¬B

"Break the line, change the sign." Essential for converting between NAND and NOR logic.
Absorption Laws

A ∧ (A ∨ B) = A

A ∨ (A ∧ B) = A

Simplifies redundant terms in Karnaugh map minimization.
Distributive Laws

A ∧ (B ∨ C) = (A ∧ B) ∨ (A ∧ C)

A ∨ (B ∧ C) = (A ∨ B) ∧ (A ∨ C)

Notice that OR distributes over AND in boolean algebra, unlike regular arithmetic!
Idempotent & Involution

A ∧ A = A, A ∨ A = A

¬(¬A) = A (Double Negation)

Repeatedly applying the same signal causes zero changes to state.
Identity & Null Elements

A ∧ 1 = A, A ∧ 0 = 0 (Null)

A ∨ 0 = A, A ∨ 1 = 1 (Null)

0 is the identity for OR; 1 is the identity for AND.
Complement Laws

A ∧ ¬A = 0 (Contradiction)

A ∨ ¬A = 1 (Tautology)

A signal and its inverse cannot be simultaneously 1 (Law of Non-Contradiction).

What is Boolean Algebra?

Boolean algebra is a branch of algebra in which variables have truth values of True (1) or False (0), manipulated through logical conjunction (AND), disjunction (OR), and negation (NOT).

Formula & Step-by-Step Calculation

¬(A ∧ B) = ¬A ∨ ¬B, ¬(A ∨ B) = ¬A ∧ ¬B (De Morgan’s Laws)

Duality and negation in boolean algebra.

Worked Step-by-Step Examples

Example 1

Simplify: A ∨ (A ∧ B)

Solution: A (by Absorption Law)
• A ∨ (A ∧ B) = A ∧ (1 ∨ B) = A ∧ 1 = A

Common Real-World & Academic Use Cases

  • ✓ Minimizing gate count in digital circuit fabrication
  • ✓ Optimizing SQL query WHERE clause conditions
  • ✓ Compiler conditional branch pruning

How to Use the Boolean Algebra Calculator & Laws

1

Review Axioms

Inspect identity, idempotent, and absorption rules.

2

Apply Transformations

Simplify digital logic expressions.

Frequently Asked Questions

Q: What is Karnaugh mapping (K-map)?

A graphical method used to simplify boolean expressions up to 4–6 variables without complex algebraic steps.

Related Computer Science Calculators