Truth Tables: Master AND, OR, NOT Logic Step by Step
A truth table lists every possible combination of truth values for the simple propositions inside a compound statement, with the resulting truth value of the whole statement. With n different simple propositions there are 2n rows, since each proposition can independently be true or false.
Truth tables matter because they give a mechanical, error-proof way to decide what a complicated statement really says. Instead of arguing in words, you compute. Engineers use them to verify circuits and logicians use them to check equivalences.
Key Concepts
- Row count: n variables need 2n rows.
- Standard ordering: for p, q list (T,T), (T,F), (F,T), (F,F), so no row is missed or repeated.
- Intermediate columns: break the statement into small pieces and compute one column per piece, left to right.
- Final column: the last column computed is the truth value of the whole statement.
How It Works
Build a truth table in four steps:
- List every combination of truth values in standard order.
- Add one column for each small sub-expression, for example p ∧ q or ¬r.
- Fill each cell by applying that connective's truth rule to the row's values.
- The final column gives the truth value of the whole statement in every possible situation.
Worked Example
Build the truth table for ¬(p ∧ q), showing every step:
- Row 1 (T, T): p ∧ q = T, so ¬(p ∧ q) = F.
- Row 2 (T, F): p ∧ q = F, so ¬(p ∧ q) = T.
- Row 3 (F, T): p ∧ q = F, so ¬(p ∧ q) = T.
- Row 4 (F, F): p ∧ q = F, so ¬(p ∧ q) = T.
The final column reads F, T, T, T. So ¬(p ∧ q) is true except when both p and q are true, which also reveals De Morgan's law ¬(p ∧ q) ≡ ¬p ∨ ¬q, discovered here purely by computation.
Common Misconceptions
- "The order of the rows changes the answer." It does not. Any order that covers all 2n combinations gives the same final column, only permuted. The standard ordering is just a bookkeeping habit so you never skip a row.
- "A truth table tells you whether the statement is true in real life." It gives truth values given the parts' values. The table maps structure, not facts.
- "You can skip rows that seem impossible." Do not. A strange-looking row may be exactly the counterexample you need.
Real-World Applications
- Circuit verification: engineers tabulate every input combination of a logic circuit to confirm the output matches the specification.
- Equivalence checking: two statements are logically equivalent exactly when their final columns are identical.
- Software testing: decision tables for complex if conditions are truth tables in disguise.
A truth table lists all 2n truth assignments, computes each sub-expression inside-out, and reads the final column as the statement's complete meaning. It is the most reliable tool in elementary logic: slow, systematic and never wrong.
Related blogs
- Propositions and Truth Values: The Logic Basics Guide
- Logical Connectives: AND, OR, NOT, Implies and Iff
- Tautologies and Contradictions in Logic: Truth Tables Guide
- Logical Equivalence: Prove Statements Are Equivalent
- Laws of Logic: Propositional Rules with Truth Tables
- Predicates and Quantifiers: Logic Explained Simply