GCSE · Computer Science · AQA · Spec 8525

OR logic gate

Your phone lights up for a message or a call. So what if both arrive at once? It doesn't stay dark. That's exactly how an OR gate thinks.

Computer Science · Logic gates

Every input pair, one OR gate

Two inputs, A and B, each 0 or 1. One output, Q. Step through all four input pairs and watch the highlighted row.

Two inputs go in, one output comes out. Press Next to move through every pair of inputs.

ORQ = A + Bgate
ABQ
000
011
101
111
A=0, B=0 → Q = 0

Output

 

Step 1: Start with both inputs at 0. Nothing going in is a 1, so Q = 0. Keep an eye on this row: it's about to become very lonely.

1 / 5

At the end, count the Q column. How many 1s? How many 0s?

Step 1 of 5: Start with both inputs at 0. Nothing going in is a 1, so Q = 0. Keep an eye on this row: it's about to become very lonely..

Exam line: OR: the output is 1 when at least one input is 1, and 0 only when both inputs are 0.
Watch out: The A = 1, B = 1 row gives 1, not 0. 'At least one' includes both.

Computer Science · Logic gates

Both inputs are 1. Now what?

An OR gate gets A = 1 and B = 1. Both inputs are 1 at the same time.

What does the gate output? Pick the idea closest to yours.
How sure are you?

Predict, then check

You can't see the inputs. All you know is what came out.

An OR gate's output is 0. What must the inputs have been?

Same symbol, two different jobs

Q = A + B (Boolean: + means OR)vsA + B (ordinary arithmetic)

Start with the top row. It's the one that catches people out.

Focus

1 + 1

Q = A + B (Boolean: + means OR)

1

A + B (ordinary arithmetic)

2

The insight

Here's the clash. In Boolean algebra + means OR, and an OR gate with both inputs at 1 outputs 1. There's no 2 when every value is a 0 or a 1.

0 + 1

Q = A + B (Boolean: + means OR)

1

A + B (ordinary arithmetic)

1

What + is asking

Q = A + B (Boolean: + means OR)

Is at least one input 1?

A + B (ordinary arithmetic)

What's the total?

Possible answers

Q = A + B (Boolean: + means OR)

Only 0 or 1

A + B (ordinary arithmetic)

Any number

Other ways to write it

Q = A + B (Boolean: + means OR)

Q = A OR B (the symbol ∨ is also used)

A + B (ordinary arithmetic)

'A plus B'

The OR gate symbol

Spot an OR gate in a circuit diagram
ABQQ = A + B

Showing 1 layer: OR gate

Explore

Tap a part of the symbol.

An OR gate as you'd see it in a circuit diagram.

Tap each part of the symbol to see what it's telling you.

Computer Science · Logic gates

An OR gate inside a circuit

A and B go into an OR gate, giving P = A + B. P then goes into a NOT gate, which has one input and flips it: 0 becomes 1, and 1 becomes 0. The NOT gate's output is Q. Complete the truth table: find P and Q for every row.

  1. Two inputs, so four rows: A B = 0 0, 0 1, 1 0, 1 1. Work out P first, then Q.Always start with the gate nearest the inputs.
  2. Row 0 0: P = 0 + 0 = 0. NOT flips it: Q = 1.
  3. missing step
Which line is step 3?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Two inputs, one output, one rule. By the end you'll know the only way to get a 0 out of it, and why 1 + 1 is 1 here.

What you need to know

  • A logic gate is an electronic component. Binary inputs go in, each 0 or 1, and a single binary output comes out.
  • Each gate follows a fixed rule, and OR is one of the basic logic gates.
  • An OR gate has two inputs, A and B, and one output, Q.
  • OR outputs 1 (true) when at least one input is 1: A is 1, B is 1, or both are.
  • Have a goYour mate insists: 'OR means one or the other. Both at once is cheating, so the output's 0.' An OR gate gets A = 1 and B = 1. Is your mate right?

    No. The gate outputs 1.

    At least one input is 1, and two 1s still count. Your mate is using the everyday 'pick one' meaning of or, which isn't the gate's rule.

  • Its output is 0 (false) only when both inputs are 0.
  • Have a goInput A of an OR gate is 0. Which value of B makes the output 0?

    B = 0.

    If B were 1, a 1 would be going in, and any 1 at all makes an OR gate output 1.

  • So in its truth table, three rows give 1 and just one row, 0 and 0, gives 0.
  • You can write it as Q = A OR B, or in Boolean algebra as Q = A + B.
  • That + means OR, not addition, so nothing coming out is ever bigger than 1.
  • Have a goQuick fire, in Boolean algebra: what are 0 + 0, 1 + 0 and 1 + 1?

    0, 1 and 1.

    Here + is OR, so any 1 going in gives 1. Writing 2 for the last one is ordinary addition sneaking back in.

  • The symbol has a curved back edge where the inputs enter and a pointed front where the output leaves.
  • Inside a bigger circuit, list every input combination in a truth table and work out each gate's output in turn.

The big picture

A logic gate turns binary inputs (each 0 or 1) into one binary output by a fixed rule. An OR gate has two inputs, A and B, and one output, Q. Q is 1 (true) when at least one input is 1, including when both are, and 0 (false) only when both inputs are 0. It is written Q = A OR B, or Q = A + B, where + means OR, not addition. Its symbol has a curved back edge for the inputs and a pointed front for the output. In a bigger circuit, a truth table of every input combination gives its output at each point.

Key points

1A logic gate takes binary inputs (0 or 1) and gives one binary output by a fixed rule. An OR gate has two inputs and one output.
2OR outputs 1 when at least one input is 1 (A, B or both), and 0 only when both inputs are 0.
3Truth table: 0 0 gives 0; 0 1 gives 1; 1 0 gives 1; 1 1 gives 1.
4Q = A OR B is written Q = A + B, where + means OR, so 1 + 1 = 1.
5Symbol: curved back edge for the inputs, pointed front for the output. In a circuit, a truth table with every input combination gives the OR output at each point.

Worked example

Problem

An OR gate has Q = A + B. You're told Q = 1 and A = 0. What is B? Then: what can you say about B if you'd been told Q = 1 and A = 1 instead?

⚠ Watch out

Reading OR as 'one or the other, but not both' and putting a 0 in the A = 1, B = 1 row, or reading Q = A + B as addition and writing 2. Both inputs at 1 give an output of 1.

🧠

Memory hook

OR is the easy-going gate: if anyone says yes, it says yes. Only total silence, 0 and 0, gets a no.

✓

Check yourself

Cover the page. Write the OR gate's truth table from memory, all four rows. Then circle the one row whose output is 0 and explain, in one sentence, why it's the only one.

Flashcards

(11)
What is a logic gate?
An electronic component that takes one or more binary inputs and produces a single binary output according to a fixed rule.
What values can a logic gate's inputs and output take?
Binary values: 0 (false) or 1 (true).
How many inputs and outputs does an OR gate have?
Two inputs (A and B) and one output (Q).
When does an OR gate output 1?
When at least one input is 1: A is 1, B is 1, or both are.
When does an OR gate output 0?
Only when both inputs are 0.
Write the OR operation as a Boolean expression.
Q = A OR B, written in Boolean algebra as Q = A + B.
What does the + mean in Q = A + B?
OR. It is not addition.
In Boolean algebra, what is 1 + 1?
1. The + means OR, and the output can only be 0 or 1.
Describe the OR gate's circuit symbol.
A curved back edge where the inputs enter, and a pointed front where the single output leaves.
How many rows does a full truth table for a two-input gate need?
Four. Each input can be 0 or 1, so there are four combinations to list: 0 0, 0 1, 1 0 and 1 1.
How do you find an OR gate's output at a point inside a bigger circuit?
Complete a truth table: list every combination of the inputs, then work out each gate's output column in turn.

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 AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

How this lesson was checked. This AQA GCSE Computer Science (specification 8525)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 4 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.