FutureLogic Lesson → Boolean Logic → Cambridge IGCSE 0478

Logic Gates and Truth Tables A Step-by-Step Exam Method

A logic circuit is not one giant puzzle to solve in your head. It is a series of single gates. This lesson teaches a reliable method: solve one gate at a time, using intermediate columns.

Logic Gates and Truth Tables: A Step-by-Step Exam Method

Logic circuits look intimidating because students try to read the whole diagram at once. A circuit with three gates feels like one enormous problem, and it is easy to freeze.

A logic circuit should never be treated as one puzzle. Solve one gate at a time.

Every circuit, however busy it looks, is just gates connected in sequence. Work out one gate, write its output down, then feed that into the next. This lesson gives you a method that turns any circuit into a series of small, easy steps.

⏱ Estimated time: 15–18 minutes
🎯 Level: Cambridge IGCSE 0478
📚 Best practised in the Topic 10 Gates Lab

By the end of this lesson, you will be able to:

Recall the six logic gates.
Describe XOR precisely.
Work out the number of rows.
Solve a circuit gate by gate.
Use intermediate columns.
Avoid the common gate mistakes.

The six gates

You need the essential behaviour of six gates. Here they are in one place.

GateOutput is 1 when…
NOTthe single input is 0 (it inverts the input)
ANDboth inputs are 1
ORat least one input is 1
NANDthe AND result is 0 (AND then NOT)
NORboth inputs are 0 (OR then NOT)
XORexactly one input is 1

Give XOR extra attention. Its output is 1 when the inputs are different, and 0 when they are the same. That “exactly one” rule is what separates it from OR, and it is the gate students most often get wrong.

Helpful framing: NAND and NOR are not new mysteries to memorise. NAND is just AND followed by NOT; NOR is just OR followed by NOT. Work out the AND or OR first, then flip the result.

How many rows does a truth table need?

The number of rows depends only on the number of inputs. For n independent binary inputs:

number of combinations = 2ⁿ
InputsRows
1 input2 rows
2 inputs4 rows
3 inputs8 rows

Work this out first, before you fill anything in. If you know a three-input circuit needs eight rows, you will not accidentally stop at six.


The circuit method

Here is the whole technique in one line:

Inputs → first gate → intermediate output → next gate → final output.

Worked example 1

Take the expression:

R = (A AND B) OR C

Do not try to reach R in one jump. Create an intermediate column for the part in brackets:

X = A AND B R = X OR C

Now the truth table has three inputs, so eight rows, plus the intermediate column X:

ABCX = A AND BR = X OR C
00000
00101
01000
01101
10000
10101
11011
11111

Notice how easy each column is on its own. X is simply “are A and B both 1?” Then R is simply “is X or C a 1?” The intermediate column did the hard work.

Worked example 2: adding NOT

Now try:

R = (NOT A) AND B

Here the placement of the NOT matters. It applies to A only, before the AND. Make an intermediate column for NOT A first:

ABNOT AR = (NOT A) AND B
0010
0111
1000
1100

Brackets and inversion placement change the answer completely. Reading NOT A as a separate column keeps you from applying the NOT to the wrong value.

Exam Tip: always use intermediate columns

For any multi-gate circuit, create an intermediate column for each gate’s output. Do not try to calculate the final output in your head straight from the diagram. Intermediate columns make each stage visible, help you check your working, and reduce the chance of carrying an unnoticed error through the circuit.

Common Mistakes:
  • Reading OR as “one or the other but not both” — OR is 1 when at least one input is 1.
  • Confusing XOR with OR — XOR needs exactly one input to be 1.
  • Treating NAND / NOR as mysterious rather than AND / OR followed by NOT.
  • Applying NOT to the wrong value.
  • Using the wrong number of rows.
  • Not recording intermediate outputs.

Check Your Understanding

  1. How many rows does a truth table with three inputs need?
  2. When is an XOR gate’s output 1?
  3. What is the quickest way to work out a NOR gate?
Check the answers

1. 2³ = 8 rows. 2. When exactly one input is 1 (the inputs differ). 3. Work out OR first, then invert the result with NOT.

Final Summary

Gates

NOT, AND, OR, NAND, NOR, XOR — know each one’s behaviour.

Rows

n inputs need 2ⁿ rows. Work this out first.

Method

Solve one gate at a time using intermediate columns.

XOR

Output 1 only when exactly one input is 1.

A circuit is never one big problem. It is a chain of single gates — and the intermediate columns are the chain.
FutureLogic Education

Computer Science should feel clear, visual and achievable.

Download free revision PDFs, explore the Learning Hub, or try FutureLogic resources designed to help students move from confusion to confidence.