A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Introduction to Truth Tables

Middle & High School Depth 58 in the knowledge graph ☐ I know this ☆ Set as goal
9,108topics build on this
276prerequisites beneath it
See this on the map →
Conditional Statements (If-Then Formal)Variables in Logic+1 more→→Formula Evaluation and Truth TablesLogical Equivalence+1 more
truth-tables logic connectives evaluation

Core Idea

A truth table is a systematic way to list every possible combination of truth values for the variables in a logical expression and determine the resulting truth value. For a statement with two variables P and Q, there are four possible combinations (TT, TF, FT, FF). Truth tables let you see exactly when a compound statement is true and when it is false, removing all ambiguity. They are the foundation for checking validity, identifying logical equivalences, and understanding how logical connectives (AND, OR, NOT, IF-THEN) behave.

How It's Best Learned

Start with NOT (one variable, two rows), then AND and OR (two variables, four rows). Build tables step by step, column by column. Then build the truth table for P → Q and confront the vacuous truth rows directly. Have students predict the output before computing each row. Compare AND vs. OR truth tables side by side to highlight the difference. Then use truth tables to verify that P → Q and ¬Q → ¬P (contrapositive) produce identical columns.

Common Misconceptions

Explainer

A truth table is the brute-force method for understanding logical statements: list every possible scenario and check what happens in each one. It is not elegant, but it is thorough and it never lies. For any compound logical statement, a truth table tells you its truth value in every possible case — and once you have that, you know everything about it.

The simplest truth table is for NOT. The variable P has two possible values (true and false), so the table has two rows. When P is true, NOT P is false. When P is false, NOT P is true. That is the entire table, and it completely defines negation.

For two variables, you need four rows to cover every combination: both true, first true and second false, first false and second true, both false. The truth table for AND (P ∧ Q) shows it is true only when both P and Q are true — any other combination gives false. The truth table for OR (P ∨ Q) shows it is true when at least one of P or Q is true — the only false case is when both are false. Note that logical OR is inclusive: "P or Q" is true even when both are true, which differs from how "or" often works in everyday English.

The most important truth table to internalize is the one for the conditional P → Q. It has four rows: (T,T) → T, (T,F) → F, (F,T) → T, (F,F) → T. The conditional is false in exactly one case: when P is true and Q is false. The two rows where P is false both give true — this is the vacuous truth you learned about earlier, now visible as entries in a table.

Truth tables become genuinely powerful when you use them to compare statements. Build the truth table for P → Q and the truth table for ¬Q → ¬P (the contrapositive) side by side. You will find that the final columns are identical — same truth value in every row. This proves they are logically equivalent, not just for one example but for all possible truth values of P and Q. You have just verified a fundamental logical law using nothing but systematic case-checking. This technique will serve you throughout your study of logic and proofs.

Practice Questions 3 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Making 10 as an Addition Strategy → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts Through 10 → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → Variables in Logic → Conditional Statements (If-Then Formal) → Introduction to Truth Tables

Longest path: 59 steps · 276 total prerequisite topics

Prerequisites (3)

Leads To (3)