PasteZap
🌐 English
Free · No account

FREE · EDUCATION & SCIENCE

Truth Table Generator.

Build the truth table of any logical expression with AND, OR, NOT, XOR, NAND, NOR, implication and equivalence, with minterms, a simplified formula and an equivalence check.

Limits & supported formats

Up to 10 variables (1,024 rows). Everything is calculated in your browser; nothing you type is uploaded.

Loading the calculator…

Steps to use Truth Table Generator

Type an expression with letters for variables. Optionally add a second expression to check whether both are equivalent, for example De Morgan’s laws.

How Truth Table Generator processes your input

Precedence: NOT, AND/NAND, XOR, OR/NOR, implication (right-associative), equivalence. Simplification uses the Quine–McCluskey method with a greedy cover; the result is always equivalent.

Truth Table Generator: worked example

(A AND B) OR NOT C is true in 5 of 8 rows, Σm(0, 2, 4, 6, 7), and simplifies to ¬C ∨ (A ∧ B).

Build the truth table of a logical expression

  1. Type an expression using letters for variables and the operators AND, OR, NOT, XOR, NAND, NOR, implication and equivalence.
  2. Read the full truth table, the rows where the expression is true (minterms) and a simplified formula.
  3. Optionally enter a second expression to check whether both are equivalent, for example to verify De Morgan’s laws.

Example: (A AND B) OR NOT C is true in 5 of 8 rows, Σm(0, 2, 4, 6, 7), and simplifies to ¬C ∨ (A ∧ B).

Rules used by the tool

  • Operator precedence, from strongest to weakest: NOT, then AND and NAND, then XOR, then OR and NOR, then implication (grouped from the right), then equivalence. Use brackets when in doubt.
  • The simplified formula is found with the Quine–McCluskey method and a greedy cover. It is always equivalent to your expression, but not always the shortest possible.
  • Up to 10 variables, which gives 1,024 rows.
  • Everything runs in your browser. For bit operations on numbers, use the bitwise calculator; for exam practice sheets, see the math worksheet generator.

Questions about Truth Table Generator

How do I check De Morgan’s laws?

Enter NOT (A AND B) as the first expression and NOT A OR NOT B as the second. The tool confirms they are equivalent.

What are minterms?

The numbers of the rows where the expression is true, counting the variables as a binary number. They give the sum-of-products form.

How many variables can I use?

Up to 10 variables, which makes 1,024 rows.

Is Truth Table Generator free, and do I need an account?

Yes. This tool is free to use in your browser without an account. Processing takes place on your device.

What are the limits and what should I check?

Up to 10 variables (1,024 rows). Everything is calculated in your browser; nothing you type is uploaded. Review the result before using it in your work.

Is my input sent to a server?

Your input is processed in your browser and is not uploaded by this tool. Files and pasted text are cleared when the page is refreshed. Normal website requests are still required to load the page and its libraries. Read the privacy explanation.