GCSE · Computer Science · AQA · Spec 8525
Truth tables for logic circuits
Wire two gates together and the circuit might do nothing more than copy one input. Staring at the diagram won't show you that. A truth table will.
Computer Science · Logic circuits
One circuit, eight rows, two columns to fill
A and B go into an AND gate. Its output meets C at an OR gate, and out comes Q. Think of the table as a spreadsheet: one row for every possible set of inputs, one column for every wire.
Cover the last two columns with your hand and predict them for the highlighted row. Then press Next and check.
| A | B | C | A AND B | Q |
|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 |
| 0 | 1 | 0 | 0 | 0 |
| 0 | 1 | 1 | 0 | 1 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 1 |
| 1 | 1 | 0 | 1 | 1 |
| 1 | 1 | 1 | 1 | 1 |
Output
A=0 B=0 C=0 → A AND B = 0 → Q = 0
Step 1: Everything is 0. The AND gate needs both of its inputs to be 1, so A AND B is 0. The OR gate then sees 0 from the AND and 0 from C, so Q is 0.
Each row is worked left to right: the inputs, then the A AND B column, then Q. Q can only be worked out once the column before it is filled in.
Computer Science · Listing every row
Why three inputs give eight rows
Walk down the tree: choose A, then B, then C. Then try a different path.
Input A → Input B → Input C
2 × 2 × 2 = 8 rows of the table, and the tree ends 8 times.
Every input can be 0 or 1. Pick a value for A, then B, then C, and the path you walk is one row of the table.
Predict, then check
Two gates, one tiny circuit. Make a prediction before you work it out, then see what the table says.
In the circuit A OR (A AND B), A goes straight into the OR gate and also into an AND gate with B. What do you predict this circuit does?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Every input combination, every gate in its own column, and the circuit's real behaviour at the end.
What you need to know
- A truth table lists every possible combination of inputs, one per row, and the output each one gives.
- AND gives 1 only when both inputs are 1. OR gives 1 when at least one input is 1. NOT flips its input.
- Two inputs need 4 rows and three inputs need 8, because every new input doubles the number of rows.
- Give each gate its own column, work the columns left to right, and write the final output column last.
- Work an expression in this order: brackets, then NOT, then AND, then OR.
The big picture
A truth table is the complete record of what a logic circuit does. List every combination of inputs as a row, give each gate its own column, work the columns from left to right, and put the final output last.
Key points
Worked example
Problem
Build the truth table for Q = NOT (A AND B).
⚠ Watch out
Jumping straight to the final output, or working an expression from left to right and missing rows. Instead list every combination in binary order, give each gate its own column, and follow brackets, NOT, AND, OR.
Memory hook
Think of a spreadsheet: one row for every possible set of inputs, one column for every wire. For the order of working, remember Be Neat And Orderly: Brackets, NOT, AND, OR.
Check yourself
Pick a circuit with three inputs. Before you write a single output, can you say how many rows you need, what order they go in, and which column you will fill in first?
Flashcards
(12)What does a truth table record?
How many rows does a truth table need for two inputs? For three?
Why list the rows in binary counting order?
AND gate rule
OR gate rule
NOT gate rule
What is an intermediate column?
Which order are the columns of a truth table worked in?
In which order is an expression evaluated?
Does the order matter in A OR B OR C?
Why give every gate its own column instead of jumping to the output?
What does a finished truth table tell you about a circuit?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 2 October 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.