Fetch, decode, execute

About this lesson: Fetch, decode, execute

In short

A program's instructions are stored in memory, one after another. The program counter (PC) holds the address of the next instruction. Move the PC along.

Fetch, decode, execute

What you'll explore

Stored programs: Instructions in memory
A program's instructions are stored in memory, one after another. The program counter (PC) holds the address of the next instruction.
One instruction at a time: Fetch, decode, execute
Step through a 5-instruction program that adds 12 and 30.
Again and again: The cycle never stops
The processor repeats fetch, decode, execute for as long as the computer is on, billions of times a second.
Check yourself: Program counter
The PC holds 3. The processor fetches the instruction.

Also in this lesson

  • Common mix-ups
  • Adding two numbers
  • Human CPU

Words to know

fetch
Copy the next instruction from memory.
decode
Work out what the instruction means.
execute
Carry out the instruction.
program counter
Holds the address of the next instruction.
accumulator
Holds the result of calculations.

Sources

  • BBC Bitesize KS3 Computer Science
  • Raspberry Pi Foundation, Computing curriculum resources

An interactive lesson with a live experiment: move the sliders, press the buttons and answer quick questions. 4 short steps and a 6-question quiz. Part of the Family plan. Written and checked by Shalo Lab. Last updated 11 November 2026.

← Choosing network security · System software and translators →

All lessons in Term 3 · Computing · Age 13