Try it with your numbers
Show every step
Five connectives do almost all the work: NOT (), AND (), OR (), IF THEN () and IF AND ONLY IF (). Four of them match everyday speech closely. One, the conditional, has a row that surprises nearly everyone, and the reason behind it is worth understanding rather than memorizing.
What is a truth table and how many rows does it need?
A truth table is an exhaustive case check. Each row is one possible state of the world, and each column below a statement records whether that statement holds in that state. Because there is no sampling and no guessing, a truth table can prove things: that a statement is always true, never true, or that two statements always agree.
The row count comes from doubling. One statement has two states. Add a second statement and every existing state splits into two, giving 4. Each new statement doubles the total again.
Run it backward and you get a quick check on a table you have already drawn: a table with 64 rows must involve statements, which is a small use of the logarithm rules. Four statements give 16 rows, and ten give 1024, which is why nobody builds those by hand.
The trap is row order. Students who list combinations by feel often repeat one and miss another. A fixed pattern prevents it:
- The first column is all T for the top half of the rows, then all F.
- The second column alternates in blocks half as long (TT, FF, TT, FF for three statements).
- The last column alternates every row: T, F, T, F.
This pattern is just binary counting with T as 1 and F as 0, written from the largest number down. Every combination appears exactly once.
Quick check
Answer:
Truth tables for NOT, AND and OR
NOT flips a value. If is true, is false, and the reverse. AND () is true only when both parts are true. OR () is true when at least one part is true, and that includes the case where both are.
The everyday word “or” is the classic trap. “Soup or salad” usually means one but not both. Logic uses the inclusive or, so is still true in the top row. If a problem needs “one or the other but not both”, that is a different connective (exclusive or), covered below.
The same two connectives power set operations. An element is in the intersection when it is in and in , and in the union when it is in or in . If you are comfortable with union and intersection of sets, you already know the AND and OR columns.
With two statements, AND is true in 1 of 4 rows and OR is true in 3 of 4. A column with the wrong count of Ts is an instant sign of an error.
Why is a conditional true when the hypothesis is false?

The conditional reads “if , then ”. It is false in exactly one row: true and false. In every other row it is true.
Think of it as a promise: “If you finish the test, you get a sticker.” The promise is broken only if you finish and get no sticker. If you never finish, nobody lied, whatever happens with the sticker. Logicians say the conditional is then true by default, or vacuously true.
A sharper reason comes from algebra. The statement “if , then ” is true for every real number. Test : the hypothesis is false and the conclusion () is false. Test : the hypothesis is false but the conclusion () is true. The statement must survive both, so the table has to give T for FF and for FT. Any other choice would make a true theorem fail.
The same idea explains a geometry fact. “If an angle is obtuse, then its measure is greater than ” is not contradicted by a angle, because that angle is acute and the hypothesis never applies. See types of angles for the definitions. Swapping the parts gives different statements with different tables, which is the whole point of the converse, inverse and contrapositive: only the contrapositive matches the original in every row.
One more fact to keep: has the same table as . Read it as “either fails, or holds.”
Biconditional truth table and all five connectives
The biconditional reads ” if and only if ”. It is true when and have the same truth value, and false when they differ. That means it is true in the bottom row, where both are false, which catches students who expect “if and only if” to need real truth. It is the conditional running in both directions: has the same table as . Definitions in geometry work this way, as covered in biconditional statements.
Here are all five connectives side by side.
| T | T | F | T | T | T | T |
| T | F | F | F | T | F | F |
| F | T | T | F | T | T | F |
| F | F | T | F | F | T | T |
Exclusive or, the “soup or salad” meaning, is just the biconditional negated: has the table of , true exactly when the values differ. Reading the biconditional column upside down gives you XOR for free.
Quick check
Answer: TT and FF
How do you build a truth table for a compound statement?
Work column by column, from the inside out, never in one jump.
- List the simple statements and write the rows in the fixed order.
- Add a column for each piece inside the innermost parentheses, or each negation.
- Combine those columns, one connective per column.
- The last column is the answer.
Negation binds tightest, so means , not . Conventions beyond that vary between textbooks, so add parentheses whenever there is doubt.
Example 1. Build the table for .
The statement is true only when is false and is true. That makes sense: forces to be false, and then needs .
Try this: Build the table for . Fill the column first, then the final column. If every entry in the last column is T, you have found a statement that is true no matter what.
Example 2. Build the table for . Three statements mean rows.
Only row 2 is false: and true, false. Whenever is false, the hypothesis fails and the conditional is automatically true.
Truth tables for tautologies and logical equivalence
Read the final column and classify the statement. All T means a tautology, such as . All F means a contradiction, such as . A mix is called contingent: it depends on the facts. Two statements are logically equivalent when their final columns are identical, written .
Example 3. Show that (De Morgan’s law).
The fourth and seventh columns both read F, T, T, T, so the two statements are equivalent. In words: “not both” means “at least one is missing”.
exactly when is a tautology. Instead of comparing two columns, build the biconditional and check that its column is all T.
The same law appears in sets. The complement of equals , and you can see it by shading regions in Venn diagrams. The notation for complements and the other symbols is collected in set notation. Logic and sets are the same structure in two outfits: AND matches intersection, OR matches union, NOT matches complement.
Is there a faster way than filling every row?
Yes: try to break the statement instead of checking every case. To test whether a statement is always true, hunt for one row that makes it false. If you can prove none exists, it is a tautology.
The conditional makes this efficient because it fails in only one way. For , falsity needs the hypothesis true and the conclusion false. A true forces and , and a false conclusion forces . That is a single row, which matches Example 2, and you found it without drawing eight rows. With ten variables, this saves hundreds of rows.
The shortcut has limits. When a statement can fail in many different ways, the search gets messy, and a full table is cleaner and safer. Truth tables also stop at statements about fixed true or false facts. Claims such as “for every real ” range over infinitely many cases, so no finite table can cover them, and proof takes over.
One count to keep for perspective: two statements give 4 rows, and each row can be filled with T or F in a column, so there are possible two-input connectives. AND, OR, the conditional, the biconditional and XOR are only a handful of these 16.
Quick check
Answer: TF and FT
Where do truth tables show up in algebra and real life?
An equation like is not true or false until gets a value. At it reads , which is true. The solution statement ” or ” is an OR, and the quadratic formula practice problems show how to find both. Compound inequalities follow the same logic: AND is an intersection of solution sets, while OR is a union.
Systems of equations are ANDs. A point lies on both lines only if it makes both equations true. When both are written in slope-intercept form, the point must satisfy and at once, and a false conjunction means the lines do not meet there.
Outside the classroom, every digital circuit is a physical truth table, with AND, OR and NOT gates. Programming conditions such as if (a && b) use the same tables. A search filter with “red AND shirt” narrows results, while “red OR blue” widens them, and a spreadsheet IF formula is a conditional with an answer attached. Contracts and rules are also conditionals: a clause only bites in the row where its condition is true.
Practice problems
0 of 5 solved
- If is true and is false, what is the truth value of ?
Answer: False
Step 1: is true, so is false. Step 2: is false. Step 3: false OR false is false, so is false. - How many rows does a truth table need for a statement built from 5 different simple statements?
Answer:
Step 1: each simple statement doubles the number of rows. Step 2: . - Let be "" and be "". Is true or false when ?
Answer: True
Step 1: for , is false. Step 2: , so is true. Step 3: false then true gives a true conditional. - Build the truth table for . In how many of the 4 rows is it true?
Answer: 3 rows (it matches )
Step 1: is F, F, T, T for the rows TT, TF, FT, FF. Step 2: a conditional is false only for true then false, which happens only in the last row (T then F). Step 3: the results are T, T, T, F, so 3 rows are true. - Are and logically equivalent?
Answer: Yes
Step 1: for the rows TT, TF, FT, FF, is T, F, T, T and is F, T, T, T. Step 2: AND gives F, F, T, T. Step 3: that is exactly the column for , so they are equivalent.
Common questions
What is a truth table in simple terms?
A truth table is a grid that lists every possible combination of true and false for some simple statements and shows whether a compound statement built from them is true or false in each case. Each row is one scenario, and the last column is the verdict.
How many rows are in a truth table?
A statement with different simple statements needs rows: 2 for one statement, 4 for two, 8 for three, 16 for four. The header row is not counted.
Why is true when is false?
A conditional only makes a promise about what happens when is true, so it cannot be broken when is false. It is also needed for statements like "if then " to be true for every , including and .
What is the difference between inclusive and exclusive or?
Inclusive or () is true when at least one statement is true, including both. Exclusive or is true when exactly one is true, and it equals .
How do you know if two statements are logically equivalent?
Build one table with a column for each statement. If the two final columns match in every row, the statements are equivalent. Equivalently, their biconditional is a tautology.
What are the five logical connectives?
They are negation (NOT, ), conjunction (AND, ), disjunction (OR, ), the conditional (IF THEN, ) and the biconditional (IF AND ONLY IF, ).