Boolean Logic Truth Table Generator
Boolean Logic Truth Table Generator
A truth table lays out every possible True/False combination for a logical expression's variables and shows what the expression evaluates to in each case — essential for verifying logic in programming, digital circuit design, or a discrete math course. Enter an expression using AND, OR, NOT, and XOR along with your variable names, and this calculator builds the complete table automatically. With just 2 variables the table has 4 rows, and it doubles with every additional variable, which is exactly why generating it by hand gets tedious fast.
- A truth table lists every possible combination of True/False values for your variables, then shows what the expression evaluates to for each combination — 2 variables give 4 rows, 3 variables give 8 rows, and so on.
- AND is only true when both operands are true, OR is true when at least one operand is true, NOT flips a single value, and XOR is true only when its two operands differ.
- Parentheses control the order of evaluation, just like in arithmetic — e.g. (A AND B) OR (NOT C) evaluates the AND and NOT parts before combining them with OR.
How many rows does a truth table have?
A truth table has 2ⁿ rows, where n is the number of variables — so 2 variables give 4 rows, and 3 variables give 8 rows.
When is "A AND B" true?
Only when both A and B are true — if either one is false, the whole expression is false.
Boolean Logic Truth Table Generator


A truth table lays out every possible True/False combination for a logical expression's variables and shows what the expression evaluates to in each case — essential for verifying logic in programming, digital circuit design, or a discrete math course. Enter an expression using AND, OR, NOT, and XOR along with your variable names, and this calculator builds the complete table automatically. With just 2 variables the table has 4 rows, and it doubles with every additional variable, which is exactly why generating it by hand gets tedious fast.

- A truth table lists every possible combination of True/False values for your variables, then shows what the expression evaluates to for each combination — 2 variables give 4 rows, 3 variables give 8 rows, and so on.
- AND is only true when both operands are true, OR is true when at least one operand is true, NOT flips a single value, and XOR is true only when its two operands differ.
- Parentheses control the order of evaluation, just like in arithmetic — e.g. (A AND B) OR (NOT C) evaluates the AND and NOT parts before combining them with OR.
How many rows does a truth table have?
A truth table has 2ⁿ rows, where n is the number of variables — so 2 variables give 4 rows, and 3 variables give 8 rows.
When is "A AND B" true?
Only when both A and B are true — if either one is false, the whole expression is false.
