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.
| A | B | Q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 1 |
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.
At the end, count the Q column. How many 1s? How many 0s?
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?
The OR gate symbol
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.
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
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?
What values can a logic gate's inputs and output take?
How many inputs and outputs does an OR gate have?
When does an OR gate output 1?
When does an OR gate output 0?
Write the OR operation as a Boolean expression.
What does the + mean in Q = A + B?
In Boolean algebra, what is 1 + 1?
Describe the OR gate's circuit symbol.
How many rows does a full truth table for a two-input gate need?
How do you find an OR gate's output at a point inside a bigger circuit?
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 postedMore AQA GCSE Computer Science topics
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.