AI worksheet builder and 715 free math exercise generators — no subscription or registration required. Optional tips help keep them free. Tip →

Article

Truth Table for XOR

Go to Math Operation

XOR truth table

XOR (exclusive OR) is true when the inputs are different, and false when the inputs are the same. That makes it very useful for truth tables.

1) List all input combinations

For two inputs, write the four possible pairs:

  • 0, 0
  • 0, 1
  • 1, 0
  • 1, 1

2) Apply the XOR rule

Evaluate each row:

  • 0 XOR 0 = 0 because the inputs match
  • 0 XOR 1 = 1 because the inputs differ
  • 1 XOR 0 = 1 because the inputs differ
  • 1 XOR 1 = 0 because the inputs match

So the output pattern is 0, 1, 1, 0.

3) Simplify the final answer

If the exercise asks for a simplified expression, use the fact that XOR can be read as “different values.” In truth-table form, the simplified result is just the output column you found.

Check your work

A quick check is symmetry: switching the two inputs should not change the output. Also, the two matching cases must be 0, and the two different cases must be 1. If your table follows that pattern, it is correct.

© 2023-2026 AI MATH COACH