Logic Gates & Circuits

💻 Computer Science Years 10–11 Foundation

The six logic gates, their symbols and truth tables, and building and reading logic circuits.

Open this lesson, with practice and a printable worksheet →

Deep inside every processor, decisions are made not with words but with tiny switches that answer one question: given these inputs (each a 1 or a 0), what should the output be? Wire those switches together and you get logic gates — the building blocks of every calculation a computer performs. Master six of them and you can read the electronic reasoning behind any chip.

Why this matters: Logic gates are the alphabet of hardware. Cambridge asks you to recognise gate symbols, complete truth tables, build a circuit from a logic statement, and write the Boolean expression a circuit represents.
ANDORNOTNANDNORXOR
The six gates. A small circle on the output means "NOT": NAND, NOR invert their basic gate.

The six gates and their truth tables

Each gate takes one or two inputs (A, B) and gives one output. "1" means true/on, "0" means false/off.

ABANDORNANDNORXOR
0000110
0101101
1001101
1111000

Building and reading a circuit

ABCANDORXX = (A AND B) OR C
A two-gate circuit and its logic expression: X = (A AND B) OR C.

To find the output of a circuit, work left to right: evaluate the first gate, feed its result into the next, and so on. To build a circuit from a statement such as "the alarm sounds if the door is open AND either the key is off OR the window is open", you turn each word into a gate.

Completing a truth table

For the circuit X = (A AND B) OR C, list every combination of A, B, C (there are 2³ = 8 rows), work out A AND B, then OR that with C.

ABCA AND BX = (A AND B) OR C
00000
01000
11011
00101
Worked example (Complete the truth table, 2 marks): For X = (A AND B) OR C, find X when A=1, B=0, C=0.
A AND B = 1 AND 0 = 0. Then X = 0 OR C = 0 OR 0 = 0. So X = 0.
Now A=1, B=1, C=0: A AND B = 1; X = 1 OR 0 = 1.
Common mistake: Confusing OR with XOR. Plain OR gives 1 when 1+1 (both true); XOR gives 0 for 1+1 because the inputs are the same. Also, do not forget a NOT gate's small output circle — missing it turns a NAND into an AND.

Memory hook: AND = All must be 1; OR = One or more; XOR = eXclusively different. A circle on the output means "flip it".

Get the printable worksheet →
← Error Detection & Correction → Validation, Verification & Testing
← Sasta Basta home All subjects