GCSE · Computer Science · OCR · Spec J277
ALU (Arithmetic Logic Unit)
Every time a program adds two numbers or checks a true/false condition, something inside the CPU has to actually do it. What is it, and is it the whole CPU?
Computer Science · The CPU
Watch the ALU do its job
Step through one made-up instruction and stop on the moment the calculation happens.
The instruction is: add 4 and 3. Press Next and stop on the moment the calculation actually happens.
Phase: An instruction needs a calculation
Control unit
also in the CPU
Registers
also in the CPU
Buses
also in the CPU
Clock
also in the CPU
ALU
waiting
Output
Step 1: Here's a made-up instruction: add 4 and 3. The CPU has several key components, but adding is a calculation. Which one is the CPU's calculator?
Step through the run with Next and Back. Only the ALU's box changes, because the ALU is the star of this lesson.
Computer Science · The CPU
Maths or logic?
An instruction needs each of these. Which kind of operation is it?
Still to sort
Mathematical operation (0)
Working with numbers to get a number.
Where the line is: If it is arithmetic on numbers, it is mathematical.
Logical operation (0)
Working with true/false values.
Where the line is: If it combines or flips true/false values, it is logical.
These are just examples of each kind, not a list to learn.
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
Meet the calculator of the CPU, watch it do its job, and see why it is not the whole processor.
What you need to know
- The arithmetic logic unit, or ALU, is the calculator of the CPU.
- Calculators do maths. So does the ALU: mathematical operations are half its job.
- The other half is logical operations, such as combining true/false values with AND.
- The ALU handles the mathematical and logical operations that an instruction requires.
Have a goJo is very sure: 'An ALU is useless for a game that only makes true/false decisions, because it only does maths.' Is Jo right?
No. The ALU handles logical operations as well as mathematical ones.
Jo has remembered 'calculator' and forgotten half the job: the ALU handles both mathematical and logical operations.
- So when an instruction needs a calculation, the ALU is the part that carries it out.
Have a goAn instruction needs 9 - 2 worked out. Which part of the CPU gets that job?
The ALU.
Subtracting is a calculation, and the calculator of the CPU carries out the operations an instruction requires.
- The ALU is not the whole CPU. It is one key component inside it.
Have a goQuick pick: is the ALU (a) the whole CPU, or (b) one key component inside it?
(b) One key component inside the CPU.
Calculating makes it feel like the whole CPU, but it sits alongside other key components.
- The other key components are the control unit, buses, registers and clock.
The big picture
The arithmetic logic unit, or ALU, is the calculator of the CPU. It handles the mathematical and logical operations that are required as part of an instruction. It is one key component inside the CPU, alongside the control unit, buses, registers and clock, so it is not the whole processor.
Key points
Worked example
Problem
A game has an instruction that means: give the player a bonus only if they have the key AND they have 10 coins. Which part of the CPU carries out the combining, and what kind of operation is it?
⚠ Watch out
Treating the ALU as the whole CPU, or as something that only adds up. It is one key component inside the CPU, and it handles logical operations as well as mathematical ones.
Memory hook
A-L-U: arithmetic and logic, in one unit. The CPU's calculator does both kinds of operation, but it is still only one part of the CPU.
Check yourself
Cover the page. Explain what the ALU does for an instruction, why 'calculator' is only half the story, and why the ALU is not the CPU.
Flashcards
(6)What does ALU stand for?
Which phrase describes the ALU's role in the CPU?
Which two kinds of operation does the ALU handle?
Which operations does the ALU carry out?
True or false: the ALU is the whole CPU.
Which key components sit inside the CPU alongside the ALU?
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 OCR GCSE Computer Science topics
How this lesson was checked. This OCR GCSE Computer Science (specification J277)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 13 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.