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.

isCalculator Editorial Team Published by:
Reviewed by: Review Board
Last Updated:

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).

  1. 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
  2. Click "Generate Truth Table" or press Enter.
  3. The table shows all variable combinations (0 = false, 1 = true) and the final result column.
  4. 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

Generate Charts
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.

Reviewed by Experts

Eurico José Kiala

Eurico José Kiala

Mathematician

Teacher

LinkedIn
João Lino

João Lino

Mathematician

LinkedIn
Quick Convert
Length Converter
0
Weight/Mass Converter
0
Area Converter
0
Volume Converter
0
Speed Converter
0
Temperature Converter
0
Pressure Converter
0
Energy Converter
0
Power Converter
0
Force Converter
0
Time Converter
0
Angle Converter
0
Fuel Consumption Converter
0
Data Storage Converter
0
Base Numbers Converter
0
Dry Volume Converter
0
Currency Converter
0
Text Case Converter
0