GCSE · Computer Science · Edexcel · Spec 1CP2

Arithmetic logic unit

Your game adds 10 to your score, then asks: is that a new high score? A calculation and a comparison. Which part of the processor does each? The same one.

Computer Science · Structure

Inside the CPU: find the ALU

Tap each part and read its job. Which one does the maths AND the comparing?

CPUtimingdirectsdata

Tap any part of the diagram to see what it does.

Computer Science · The ALU

Two halves of one name

Is each operation arithmetic or logical?

Still to sort

Arithmetic (0)

Calculating with numbers.

Where the line is: You end up with a new number that you worked out.

Logical (0)

Comparing values, or combining conditions with AND or OR.

Where the line is: You end up with a yes-or-no answer, not a calculated number.

Not done by the ALU (0)

An operation the ALU does not carry out.

7 of 7 still to sort.

Every one of these operations is carried out by the ALU. Your job is to decide which half of its name each one belongs to.

Watch out: Comparing two numbers feels like maths because numbers are involved. But it asks a yes-or-no question instead of calculating a new number, so it is logic.

What the ALU does with an instruction

Step through it. Same unit, two kinds of operation.

Predict, then check

Commit to an answer first. Then see if the reason holds.

A program needs to know whether a player's score is bigger than the high score. Which part of the CPU carries out that comparison?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

Arithmetic. Logic. Unit. The name tells you the job.

What you need to know

  • The CPU is made of several parts that work together: the control unit, the ALU, registers, buses and a clock.
  • ALU stands for arithmetic logic unit. The name is a clue: it has two jobs, arithmetic and logic.
  • Have a goSam reads 'arithmetic logic unit' and says: 'Arithmetic comes first, so sums are all it does.' How many jobs does the name actually promise?

    Two: arithmetic and logic.

    Both words are in the name, so Sam has only read half of it.

  • The ALU is the part of the CPU that carries out the mathematical and logical operations an instruction requires.
  • Mathematical (arithmetic) operations are calculations, like adding, subtracting and multiplying.
  • Logical operations include comparing two values and combining conditions with AND or OR.
  • Have a goA program tests 'is the age over 12 AND under 16?'. Is joining the two checks with AND arithmetic or logical?

    Logical.

    AND combines conditions, and no number is being calculated.

  • Comparing two numbers counts as logic, not arithmetic, because it asks a yes-or-no question instead of calculating a number.
  • The accumulator, one of the registers, stores the results of calculations.
  • Picture the ALU as the CPU's calculator. But it also compares, so the picture only half fits.
  • Have a goA pocket calculator adds, subtracts and multiplies. Which kind of ALU operation would the 'calculator' picture leave out?

    Logical operations, such as comparing values or using AND and OR.

    The picture covers the arithmetic half only. The ALU carries out both halves.

The big picture

The ALU is the part of the CPU that carries out the mathematical and logical operations an instruction requires. Adding and subtracting are arithmetic; comparing values and combining conditions with AND or OR are logic. One unit, both jobs.

Key points

1The ALU is the part of the CPU that carries out the mathematical and logical operations an instruction requires.
2Arithmetic operations calculate, for example adding and subtracting.
3Logical operations compare values or combine conditions with AND or OR.
4Comparing two numbers is a logical operation, and the ALU carries it out.

Worked example

Problem

An instruction needs the CPU to check whether 15 is greater than 12, and then add 3 to 15. Sort the two operations into the halves of the ALU's name.

⚠ Watch out

Thinking the ALU only does arithmetic. Comparing values and combining conditions with AND or OR are logical operations, and the ALU carries those out too.

🧠

Memory hook

ALU = Arithmetic + Logic. Adding is arithmetic; comparing and AND/OR are logic. Two halves of the name, one unit.

✓

Check yourself

An instruction needs 6 minus 2, then asks whether the answer equals 4. Which part is arithmetic, which part is logical, and which part of the CPU carries out both?

Flashcards

(7)
What does ALU stand for?
Arithmetic logic unit.
What is the ALU's job?
It carries out the mathematical and logical operations an instruction requires.
Which kind of operation is adding or subtracting?
Arithmetic (mathematical): a calculation that gives a new number.
Name two kinds of logical operation.
Comparing two values, and combining conditions with AND or OR.
Is comparing two numbers arithmetic or logic?
Logic. It is a yes-or-no question, not a calculation. The ALU still carries it out.
Name the CPU parts in this lesson.
Control unit, ALU, registers, buses and clock.
What does the accumulator store?
The results of calculations.

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

See the full Edexcel Computer Science curriculum →

How this lesson was checked. This Edexcel GCSE Computer Science (specification 1CP2)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 11 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.