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?

1 / 4

Step through the run with Next and Back. Only the ALU's box changes, because the ALU is the star of this lesson.

Step 1 of 4: 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?.

Exam line: The ALU is the calculator of the CPU: it handles the mathematical and logical operations that an instruction requires.
Watch out: This run is a simplified, made-up example. The ALU is only one of the CPU's key components, not the whole CPU.

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.

6 of 6 still to sort.

These are just examples of each kind, not a list to learn.

Exam line: Two kinds, one calculator: the ALU handles mathematical operations and logical operations.

Computer Science · The CPU

What is the ALU, really?

Four pupils each describe the ALU in their own words.

Which one is closest to what you think right now?
How sure are you?

Computer Science · The CPU

Your turn to write

Describe the purpose of the ALU. [4 marks]

0 words · your answer stays on this page and is not sent anywhere.

Exam line: Say what the ALU is, name both kinds of operation, then link them to an instruction.

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

1The ALU is the calculator of the CPU.
2It handles mathematical operations and logical operations.
3It carries out the operations that are required as part of an instruction.
4It is one key component inside the CPU, not the whole CPU.
5The other key components are the control unit, buses, registers and clock.

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?
Arithmetic logic unit.
Which phrase describes the ALU's role in the CPU?
It is the calculator of the CPU.
Which two kinds of operation does the ALU handle?
Mathematical operations and logical operations.
Which operations does the ALU carry out?
The ones that are required as part of an instruction.
True or false: the ALU is the whole CPU.
False. It is one key component inside the CPU.
Which key components sit inside the CPU alongside the ALU?
The control unit, buses, registers and clock.

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

See the full OCR Computer Science curriculum →

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.