Skip to content

Truth Tables

A truth table lists the value of a compound proposition for every possible combination of values of its variables. It is the most reliable way to evaluate or compare logical expressions.

With nn variables, each can be T or F, so there are 2n2^n rows. Two variables need 4 rows, three need 8.

1List all 2ⁿ combinations of the variables
→
2Add a column for each sub-expression, innermost first
→
3Fill each column from the columns to its left
→
4The last column is the value of the whole expression
Building a truth table

Worked example: (p→q)∧¬p(p \to q) \land \lnot p

Section titled “Worked example: (p→q)∧¬p(p \to q) \land \lnot p(p→q)∧¬p”
ppqqp→qp \to q¬p\lnot p(p→q)∧¬p(p \to q) \land \lnot p
TTTFF
TFFFF
FTTTT
FFTTT

Reading the last column: the expression is true exactly when pp is false.

  • Missing rows. Always check you have 2n2^n rows.
  • Evaluating the outer connective before the inner ones. Work from the innermost brackets outwards.
  • A truth table covers every combination of truth values: 2n2^n rows for nn variables.
  • Add one column per sub-expression and evaluate from the inside out.
  • The final column gives the value of the whole proposition in each case.

4 questions. Pick an answer to check it, or open "Show answer".

  1. How many rows does a truth table for a proposition with 3 variables have?

    Show answer

    Answer: C. 8

    Explanation: Each variable has 2 possible values, so 3 variables give 23=82^3 = 8 combinations. 6 comes from wrongly multiplying 3×23 \times 2.

  2. In the truth table for p∧qp \land q, in how many rows is the result true?

    Show answer

    Answer: A. 1

    Explanation: Conjunction is true only when both pp and qq are true, which happens in exactly one of the 4 rows.

  3. What is the value of ¬p∨q\lnot p \lor q when pp is T and qq is F?

    Show answer

    Answer: B. False

    Explanation: ¬p\lnot p is F and qq is F, and F ∨\lor F is F. Notice this matches p→qp \to q in the same row, which is not a coincidence.

  4. When building a truth table for ¬(p∧q)\lnot(p \land q), which column should you fill first after pp and qq?

    Show answer

    Answer: C. p∧qp \land q

    Explanation: Work from the inside out. The negation applies to the whole conjunction, so you need p∧qp \land q before you can negate it. ¬p\lnot p and ¬q\lnot q don’t appear in the expression at all.

© 2026 Navninder Singh Benipal. Free to read and study. Licensed under CC BY-NC-ND 4.0: share the link, but please don't republish or sell these notes.