Boolean Algebra Truth Table Maker Calculator

Generate complete truth tables from custom Boolean inputs. Compare outputs across every binary combination quickly. Learn logic behavior clearly with exports, charts, and examples.

Build Your Truth Table

Supported operators: NOT, AND, OR, XOR, NAND, NOR, XNOR, parentheses, 0, 1, !, ~, &, |, ^, &&, ||. Maximum recommended variables: 8.

Variables are detected automatically. Use clear names like A, B, INPUT1, or FLAG_X.
NOT A flips a single input.
A AND B needs both inputs true.
A OR B needs at least one true.
A XOR B is true when inputs differ.
A NAND B equals NOT(A AND B).
A NOR B equals NOT(A OR B).
A XNOR B equals NOT(A XOR B).
Parentheses improve accuracy and readability.
Precedence used: NOT, AND, OR, XOR, NAND, NOR, XNOR.
Row count follows 2n, where n is variables.
CSV and PDF exports appear after generation.
Truth table output is displayed above this form.

Formula Used

The table size uses 2n, where n is the number of unique variables. Every row represents one binary assignment.

Canonical output forms are also shown. The calculator builds Σm minterms for true rows and ΠM maxterms for false rows.

How to Use This Calculator

  1. Enter a Boolean expression using supported operators.
  2. Add parentheses where grouping matters.
  3. Click Generate Truth Table.
  4. Review the result summary and canonical forms.
  5. Inspect the truth table and Plotly graph.
  6. Download the generated table as CSV or PDF.

Example Data Table

Example expression: A XOR B

# A B Output
0000
1011
2101
3110

Frequently Asked Questions

1. What does this calculator produce?

It generates a complete truth table for your Boolean expression. It also reports row totals, true and false counts, canonical SOP, canonical POS, and useful minterm or maxterm notation.

2. Which operators can I use?

You can use NOT, AND, OR, XOR, NAND, NOR, XNOR, parentheses, constants 0 and 1, plus shorthand symbols like !, ~, &, |, ^, &&, and ||.

3. Why does the number of rows grow quickly?

Each added variable doubles the combinations. That is why the truth table size follows 2n. Three variables create 8 rows, while eight variables create 256 rows.

4. Should I always use parentheses?

Parentheses are strongly recommended. They remove ambiguity, make expressions easier to read, and ensure the calculator evaluates your intended grouping instead of relying only on built-in precedence.

5. What are minterms and maxterms?

Minterms represent rows where the output is true. Maxterms represent rows where the output is false. They help express the same logic function in canonical SOP and canonical POS forms.

6. Why did my expression return an error?

Most errors come from missing parentheses, unsupported symbols, or missing operators between variables. Rewrite the expression with explicit operators and balanced parentheses for reliable evaluation.

7. How many variables should I use?

For readability, eight variables or fewer works best. Larger tables become difficult to scan, export, and verify because each new variable doubles the total number of rows.

8. What does the graph show?

The Plotly graph shows output values by row index. It helps reveal alternating patterns, repeated logic regions, and clusters of true or false outputs visually.

Related Calculators

Paver Sand Bedding Calculator (depth-based)Paver Edge Restraint Length & Cost CalculatorPaver Sealer Quantity & Cost CalculatorExcavation Hauling Loads Calculator (truck loads)Soil Disposal Fee CalculatorSite Leveling Cost CalculatorCompaction Passes Time & Cost CalculatorPlate Compactor Rental Cost CalculatorGravel Volume Calculator (yards/tons)Gravel Weight Calculator (by material type)

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.