Truth Table Generator
Related Education & Logic Tools
How Truth Tables Help With Boolean Logic
A truth table lists every possible combination of input values and records the resulting output of a logical expression. This makes Boolean rules visible and helps you check whether a condition, gate arrangement, or simplified expression behaves as expected. The generator supports common AND, OR, NOT, and XOR operators with up to five variables.
When entering an expression, use the same variable names in the variables field and in the formula, and use parentheses when the order of operations needs to be explicit. With n variables there are 2^n possible input rows, so the table grows quickly as variables are added. Use the output as a study aid and verify important designs against the notation required by your course or circuit simulator.
What does a truth table show?
It shows each possible true or false combination for the input variables and the output produced by the complete Boolean expression for that row.
Which logical operators are supported?
The generator supports AND using &, OR using |, NOT using !, and XOR using ^. Use the symbols shown in the input guidance for predictable results.
Why are parentheses important in a logic expression?
Parentheses make grouping explicit and help ensure that the expression is evaluated in the order you intend, especially when several operators appear together.
How many rows will a truth table contain?
A table with n variables contains 2^n input combinations. One variable has two rows, two variables have four rows, and five variables have thirty-two rows.