Truth Table Calculator
Generate truth tables for logical expressions. Supports operators: AND (&), OR (|), NOT (!), XOR (^), implication (->), and equivalence (<->). Enter a valid expression with variables (A-Z) to see the complete truth table.
Was this calculator helpful?
How to use this tool?
This calculator generates a truth table for a logical expression with up to 5 variables (A–Z).
- Enter an expression in the "Logical Expression" field. Use:
- Variables: single uppercase letters (A–Z)
- Operators:
&(AND),|(OR),!(NOT),^(XOR),->(implication),<->(equivalence) - Parentheses for grouping, e.g.,
(A & B) | !C
- Click "Generate Truth Table" or press Enter.
- The table shows all variable combinations (0 = false, 1 = true) and the final result column.
- Below the table, you'll see the parsed formula and row count for verification.
Note: If you see an error, check for invalid characters or unbalanced parentheses. Max 5 variables.
Previous Results
| Result | Inputs | Date |
|---|
Frequently Asked Questions
AND (&), OR (|), NOT (!), XOR (^), implication (->), and equivalence (<->). Use parentheses for grouping.
You can use up to 5 variables (letters A-Z). More variables would generate too many rows.
Check for typos, mismatched parentheses, or unsupported characters. Only letters A-Z and the operators listed are allowed.
The truth table lists all possible combinations of truth values (0 for false, 1 for true) for the variables and the resulting truth value of the expression.