Digital logic calculator

Boolean Expression Simplifier

Simplify Boolean algebra expressions, generate truth tables, and compare equivalent logic forms. Enter AND, OR, NOT, or XOR operations to evaluate a function and derive simplified sum-of-products and product-of-sums expressions.

Boolean Algebra Calculator

Use variables A–Z, constants 0 and 1, parentheses, and the operators shown below. Up to six distinct variables are supported so the truth table and minimization remain responsive.

Accepted syntax: NOT: NOT A, !A, ~A, ¬A, A'. AND: AND, &, *, ·. XOR: XOR, ^, ⊕. OR: OR, +, |, ∨. Parentheses are supported. Adjacent variables imply AND, so A(B OR C) is supported.

Results

Minimal sum of products (SOP)

Minimal product of sums (POS)

Function information

Truth table

Rows are ordered from all-zero inputs to all-one inputs.

Canonical forms

Canonical SOP (minterms)
Canonical POS (maxterms)

Minimization details

How Boolean Expression Simplification Works

Boolean algebra describes functions whose inputs and outputs are either 0 or 1. These functions are used in digital circuits, control systems, software conditions, and computer architecture. Simplifying an expression can reduce the number of logical operations needed to represent the same function.

Sum of Products (SOP)

An SOP expression is an OR of one or more AND terms. For example, (A AND B) OR (A AND C) can be simplified to A AND (B OR C) by factoring out A. A minimal SOP instead groups input combinations that make the output equal to 1.

Product of Sums (POS)

A POS expression is an AND of OR clauses. It can be derived by grouping input combinations that make the function equal to 0. Depending on the function, the SOP or POS representation may be more convenient for a circuit.

Truth tables

A function with n distinct binary variables has 2^n possible input combinations. A truth table evaluates the expression for every combination. This calculator uses the truth table to construct equivalent minimized forms.

Scope: the calculator minimizes two-level SOP and POS representations using an implicant-cover method. A shorter two-level expression does not always mean the fewest physical gates for every hardware technology. XOR is evaluated correctly but is expanded into an equivalent SOP/POS when those forms are displayed.

Boolean Operators Reference

OperationSymbols / wordsMeaning
NOTNOT A, !A, ~A, A'Inverts a bit.
ANDA AND B, A & B, A*B1 only when both inputs are 1.
XORA XOR B, A ^ B1 when the inputs differ.
ORA OR B, A+B, A|B1 when at least one input is 1.
Constants0, 1Always false or always true.

Precedence, from highest to lowest: NOT, AND, XOR, OR. Use parentheses to make grouping explicit.

Related Binary and Logic Tools

Confirm that each related filename matches the corresponding live page on your server.

Frequently Asked Questions

What is Boolean expression simplification?

It is the process of finding a simpler logical expression that produces the same output for every possible input combination. Simpler expressions can make logic easier to understand and may reduce circuit complexity.

What are SOP and POS forms?

Sum of Products (SOP) combines AND terms using OR. Product of Sums (POS) combines OR clauses using AND. Both forms can represent the same Boolean function.

Can I use XOR in an expression?

Yes. Use XOR, ^, or ⊕. XOR evaluates to 1 when its two inputs differ. The resulting SOP and POS forms are equivalent representations of the complete function.

Why is there a variable limit?

A truth table doubles in size with each additional variable. This implementation supports up to six distinct variables, allowing up to 64 rows and manageable minimization in a normal browser.

Does the calculator upload my expression?

No. Expression parsing, truth-table evaluation, and minimization run in your browser. The page does not send the expression to a server for calculation.