GCSE · Computer Science · Edexcel · Spec 1CP2
NOT in truth tables
Two lines of Boolean logic can look almost identical and give completely different truth tables. Let's build them and find out why.
Computer Science · Truth tables
Fill the table in, column by column
A and B are the inputs. NOT A is a helper column you build first, because the OR needs it.
Think of the table as a spreadsheet you fill in from left to right. Before you press Next: can you write the NOT A column using only the A column?
| A | B | NOT A | NOT A OR B |
|---|---|---|---|
| 0 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 |
| 1 | 1 | 0 | 1 |
Output
Step 1: Row 00. A is 0, so NOT A flips it to 1. Do that first, before you even look at the OR.
Each row takes two steps: first the NOT flip, then the OR. The rows run in binary order: 00, 01, 10, 11.
Same or different?
Commit to an answer first. The table will settle it.
NOT A OR B and NOT (A OR B) use exactly the same letters and gates. Will their output columns match?
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Flip first, then combine
What you need to know
- A truth table lists the output for every possible combination of inputs, with 1 meaning true and 0 meaning false.
- NOT has one input, and its output is the inverse: 0 becomes 1 and 1 becomes 0.
- So the NOT A column is just the A column with every value flipped.
Have a goSam says the NOT C column for C = 1, 0, 0, 1 is "still 1, 0, 0, 1, because NOT is just a label". What should it actually say?
0, 1, 1, 0
NOT flips every single value in the column: each 1 becomes 0 and each 0 becomes 1.
- Start by listing every input combination: two inputs give four rows (00, 01, 10, 11) and three inputs need eight.
- Write the combinations as binary numbers in order (000, 001, 010, 011 and so on) and you will not miss any.
Have a goThree inputs, binary order. You have written 000, 001, 010, 011. Which row comes next?
100
Counting up in binary, 011 plus one is 100, so the next row has the first input at 1 and the other two at 0.
- Every part of the expression gets its own column after the input columns.
- Work in precedence order: brackets first, then NOT, and only then AND and OR.
Have a goPut these in the order you work them out: AND, brackets, NOT.
Brackets, then NOT, then AND
Brackets go first, and NOT is evaluated before AND and OR, so the NOT column is built before any AND or OR column.
- For a circuit diagram, label each gate's output with the expression it makes; those labels become the column headings.
- A finished truth table checks whether an expression or circuit really does the logic you intended.
The big picture
A truth table shows the output for every possible combination of inputs. To build one with NOT: list every input row in binary order, give each part of the expression its own column, flip the column for NOT, and work in precedence order (brackets, then NOT, then AND and OR). Then use the finished table to check a circuit does the logic it was meant to.
Key points
Worked example
Problem
A circuit has a NOT gate on input A. The output of that NOT gate goes into an AND gate together with input B. Build the truth table.
⚠ Watch out
Reading NOT as if it applies to everything written after it. NOT is evaluated before AND and OR, so in NOT A OR B it flips A only, unless brackets say otherwise.
Memory hook
Brackets, then NOT, then AND and OR: build the columns in that order, left to right, and each new column only uses columns that are already there.
Check yourself
Without scrolling up: A reads 0, 0, 1, 1. Write the NOT A column. Then say which column you would build first for NOT A OR B, and why it has to come first.
Flashcards
(13)What does a truth table show?
In a truth table, what do 1 and 0 stand for?
What is a Boolean expression?
What does a NOT gate do to its input?
How do you fill in a NOT A column?
How many input combinations do two inputs give? And three?
What is an easy way to make sure you do not miss an input combination?
How many columns does each part of an expression get?
In what order are the parts of an expression evaluated?
In a table for NOT A OR B, which column is completed first?
In a circuit diagram, what do you label with a Boolean expression?
In a circuit, what happens to the output of one gate?
Why make a truth table for 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 Edexcel GCSE Computer Science topics
How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)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 11 November 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.