Truth Table Generator​

Generate a truth table for a Boolean expression with up to eight variables. Check whether it is always true, always false, or depends on inputs.

Result
—

How to calculate

List every assignment of zero or one to the variables and evaluate the expression on each row. From highest to lowest, precedence is NOT, AND or NAND, XOR, OR or NOR, implication, then equivalence.

Worked example

Use Logical expression (A AND B) -> A. The result is Tautology.

Input and result notes

Use NOT, AND, OR, XOR, NAND, NOR, -> and <->, or their supported mathematical symbols. Implication groups from the right. Parentheses override the default order.

OpenStax truth tables

Related calculators