Truth Table Calculator

Type a logic statement to see its full truth table.

Variables are single letters. Use and, or, not, xor, implies, iff, or the symbols ∧ ∨ ¬ ⊕ → ↔, and brackets.

Try

Result

You enteredA⊕BA \oplus B

Contingency: true in 2 of 4 rows\displaystyle \text{Contingency: true in 2 of 4 rows}

Truth table

ABA⊕BTTFTFTFTTFFF\displaystyle \begin{array}{cc|c} A & B & A \oplus B \\ \hline \mathrm{T} & \mathrm{T} & \mathrm{F} \\ \mathrm{T} & \mathrm{F} & \mathrm{T} \\ \mathrm{F} & \mathrm{T} & \mathrm{T} \\ \mathrm{F} & \mathrm{F} & \mathrm{F} \end{array}

Minterms

(A∧¬B)∨(¬A∧B)\displaystyle (A \land \lnot B) \lor (\lnot A \land B)
Show the work
  1. Truth table

    The statement uses 2 variables, so there are 22=42^{2} = 4 rows, one for each way of making each variable true (T\mathrm{T}) or false (F\mathrm{F}). The rows run in the standard order: all true at the top, all false at the bottom.

    ABA⊕BTTFTFTFTTFFF\begin{array}{cc|c} A & B & A \oplus B \\ \hline \mathrm{T} & \mathrm{T} & \mathrm{F} \\ \mathrm{T} & \mathrm{F} & \mathrm{T} \\ \mathrm{F} & \mathrm{T} & \mathrm{T} \\ \mathrm{F} & \mathrm{F} & \mathrm{F} \end{array}
  2. Exclusive or

    A⊕BA \oplus B is true when exactly one of AA and BB is true.

    A⊕B: F, T, T, FA \oplus B:\ \mathrm{F},\ \mathrm{T},\ \mathrm{T},\ \mathrm{F}
  3. Result

    The last column is true in 2 of the 4 rows and false in the others, so the statement is a contingency: sometimes true, sometimes false.

Worked examples