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?

NOT A OR BNOT comes before OR, so this means (NOT A) OR Bgate
ABNOT ANOT A OR B
0011
0111
1000
1101
A=0, B=0, NOT A=1 → NOT A OR B = 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.

1 / 8

Each row takes two steps: first the NOT flip, then the OR. The rows run in binary order: 00, 01, 10, 11.

Step 1 of 8: Row 00. A is 0, so NOT A flips it to 1. Do that first, before you even look at the OR..

Watch out: Do not skip the helper column. The OR can only be worked out once the NOT A column is there to use.

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?

Computer Science · Your turn

Now NOT sits on the second input

Complete the truth table for A AND NOT B.

  1. List every input combination in binary order: AB = 00, 01, 10, 11.
  2. missing step
Which line is step 2?

Computer Science · Rows

How many rows?

Two inputs need 4 rows (00, 01, 10, 11). Now add a third input. How many rows does the table need?

Your estimate

9 rows

2 rows16 rows

Computer Science · Test a circuit

Does the circuit do what it should?

A hallway light has two inputs. C is 1 when Chloe is home and I is 1 when Imran is home. The circuit output is NOT (C OR I). The designer wanted: "the light is on whenever Chloe is not home". Use a truth table to decide whether the circuit does what was intended, and say which row shows it. [3 marks]

0 words · your answer stays on this page and is not sent anywhere.

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

1Inputs first, in binary order. Then one column per part of the expression.
2NOT A is the A column inverted, so 0 becomes 1 and 1 becomes 0.
3Build columns in precedence order: brackets, then NOT, then AND and OR.
4Compare a finished table with the intended rule to check a circuit.

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?
The output for every possible combination of inputs into a logic gate or logic circuit.
In a truth table, what do 1 and 0 stand for?
1 is true and 0 is false.
What is a Boolean expression?
An expression that evaluates to either true or false.
What does a NOT gate do to its input?
It outputs the inverse: 0 becomes 1 and 1 becomes 0.
How do you fill in a NOT A column?
Copy out the A column and invert every value.
How many input combinations do two inputs give? And three?
Two inputs give four combinations; three inputs need eight rows.
What is an easy way to make sure you do not miss an input combination?
Write the combinations as binary numbers in order: 000, 001, 010, 011 and so on.
How many columns does each part of an expression get?
Its own column, after the input columns.
In what order are the parts of an expression evaluated?
Brackets first, and NOT before AND and OR.
In a table for NOT A OR B, which column is completed first?
NOT A. Then OR is applied to the NOT A column and B.
In a circuit diagram, what do you label with a Boolean expression?
The output of each gate. These labels become the column headings.
In a circuit, what happens to the output of one gate?
It becomes an input to the next gate.
Why make a truth table for a circuit?
To check the circuit represents the logic intended. If the intended rule is different, the table exposes the error.

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 posted

More Edexcel GCSE Computer Science topics

See the full Edexcel Computer Science curriculum →

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.