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.

Practise this lesson free (6 questions)

More tools

Stored programs

In modern computers, instructions and data are both stored in main memory (RAM) as binary.
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

Fetch: the CPU gets the next instruction from memory. A register called the program counter holds its address, then moves on to the next one.
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

Clock speed is how many cycles per second, measured in hertz. 3 GHz = 3 billion cycles per second. More cores let a CPU work on more instructions at the same time.
PartJob
Control unit (CU)Decodes instructions and controls the other parts
Arithmetic logic unit (ALU)Does calculations and logic comparisons
RegistersTiny, very fast stores inside the CPU
CacheFast memory that keeps often-used instructions and data close to the CPU
Worked example

Put these in order and say what happens: execute, fetch, decode.

  1. Fetch: get the instruction from memory.
  2. Decode: work out what it means.
  3. Execute: carry it out.

Answer: Fetch, decode, execute, then repeat.

Key idea

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.

Key words
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.

All KS3 Computing key terms and definitions →

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. Which stage of the CPU cycle comes after decode?

    1. Fetch
    2. Store
    3. Input
    4. Execute
    Show the answer

    Answer: Execute

    Fetch, decode, execute.

  2. Which part of the CPU compares two numbers to see which is bigger?

    1. Control unit
    2. Arithmetic logic unit
    3. Cache
    4. 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.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 27 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.