How the CPU runs programs
A program is a list of instructions stored as binary in memory. The CPU fetches them one by one and carries them out, billions of times a second.
Stored programs
This is called the stored program idea (often linked to John von Neumann).
The CPU reads each instruction from memory, works out what it means and carries it out.
The fetch-decode-execute cycle
Decode: the control unit works out what the instruction means.
Execute: the instruction is carried out, for example adding two numbers.
Then the cycle repeats.
Parts of the CPU
| Part | Job |
|---|---|
| Control unit (CU) | Decodes instructions and controls the other parts |
| Arithmetic logic unit (ALU) | Does calculations and logic comparisons |
| Registers | Tiny, very fast stores inside the CPU |
| Cache | Fast memory that keeps often-used instructions and data close to the CPU |
Put these in order and say what happens: execute, fetch, decode.
- Fetch: get the instruction from memory.
- Decode: work out what it means.
- Execute: carry it out.
Answer: Fetch, decode, execute, then repeat.
Instructions and data are stored in memory as binary. The CPU repeats the fetch-decode-execute cycle. The CU controls, the ALU calculates, registers and cache are fast stores, and clock speed measures cycles per second.
- Program
- A set of instructions written in a programming language that a computer can run.
- List
- A data structure that stores many items under one name, in order, such as scores = [4, 7, 2].
- Binary
- A number system that uses only two digits, 0 and 1. Computers store all data in binary.
- AND
- A Boolean operator that gives True (1) only when both inputs are True.
- Fetch-decode-execute cycle
- What the CPU repeats for every instruction: fetch it from memory, decode it, then carry it out.
- Cache
- A small amount of very fast memory close to the CPU that holds often-used instructions and data.
Try two quick questions
See if it has sunk in. Answers are marked straight away.
2 more questions
Try each one, then tap to check.
Which stage of the CPU cycle comes after decode?
- Fetch
- Store
- Input
- Execute
Show the answer
Answer: Execute
Fetch, decode, execute.
Which part of the CPU compares two numbers to see which is bigger?
- Control unit
- Arithmetic logic unit
- Cache
- Clock
Show the answer
Answer: Arithmetic logic unit
The ALU does arithmetic and logic.
Check you have got it
Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.
Facts checked against the sources below, 27 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.