Truth Table Calculator

Build a truth table for a logic expression with AND, OR, NOT, XOR, implication and equivalence, and classify it.

100% FreeNo sign-upPrivate — runs in your browser
—

Classification

Rows
—
True rows
—
Truth table
—

Copied to clipboard

How to use this tool

1
Type an expression

For example: (A OR B) AND NOT C.

2
Pick the variable count

2 variables give 4 rows; 3 give 8.

3
Read the table

Each row shows the inputs and the result.

4
Check the classification

Tautology, contradiction or contingency.

Formula & worked example

Rows enumerate all assignments of A, B (and C); each row is evaluated with NOT > AND > XOR > OR > IMPLIES > IFF precedence.

A AND B is true in 1 of 4 rows; A OR NOT A is a tautology.

Limitations — read this before you rely on it

Propositional logic only, up to 3 variables. It does not handle quantifiers, predicates or multi-valued logic.

Frequently asked questions

AND (&), OR (|), NOT (!), XOR (^), IMPLIES (>) and IFF (=), as words or symbols, plus brackets.

An expression true in every row, like A OR NOT A. A contradiction is false in every row; anything else is contingent.

2 to the power of the variable count: 4 rows for 2 variables, 8 for 3.

Yes: NOT first, then AND, XOR, OR, IMPLIES, IFF. Use brackets whenever the reading could be ambiguous.

Material implication: a false premise implies anything. Only true-premise-false-conclusion is false.