Logic gates and circuits

Inside every processor are billions of tiny logic gates. Each gate takes 1s and 0s in and gives a 1 or 0 out.

Practise this lesson free (6 questions)

More tools

Three gates

In circuit diagrams, an AND gate has a flat back and a round front, an OR gate is curved like a shield, and a NOT gate is a triangle with a small circle on its tip.
GateInputsOutput is 1 when...
AND gate2both inputs are 1
OR gate2at least one input is 1
NOT gate1the input is 0 (it inverts the input)

Combining gates

Gates can be joined so the output of one is the input of another.
We can write a circuit as an expression, such as Q = (A AND B) OR C.
Work out the brackets first, just like in maths.
If A = 1, B = 0, C = 1: A AND B = 0, then 0 OR 1 = 1.

A real use: seatbelt warning

A car shows a warning light when the engine is on AND the seatbelt is NOT fastened.
E = engine on (1 = on), S = seatbelt fastened (1 = fastened).
Light = E AND (NOT S)
ESNOT SLight
0010
0100
1011
1100
Worked example

Q = NOT (A OR B). Find Q when A = 0 and B = 1.

  1. A OR B = 0 OR 1 = 1.
  2. NOT 1 = 0.

Answer: Q = 0

Key idea

AND gates output 1 only if both inputs are 1; OR gates output 1 if either input is 1; NOT gates invert. Work out combined circuits from the inside out.

Key words
Logic gates
AND: 1 only if both inputs are 1. OR: 1 if at least one input is 1. NOT: flips 0 to 1 and 1 to 0.
AND
A Boolean operator that gives True (1) only when both inputs are True.
Output
Information sent out from a computer, for example to a screen, speaker or printer.
Input
Data put into a computer, for example from a keyboard, mouse, microphone or sensor.
NOT
A Boolean operator that flips its input: True becomes False and False becomes True.

All KS3 Computing key terms and definitions →

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. An AND gate has inputs 0 and 1. What is the output?

    Show the answer

    Answer: 0

    AND needs both inputs to be 1.

  2. An OR gate has inputs 1 and 0. What is the output?

    Show the answer

    Answer: 1

    OR outputs 1 if at least one input is 1.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 27 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.