Accessibility
Fiducia Together logoFiducia Together

Trace table

A table showing how variables change as an algorithm runs. The way to answer "what does this output?"

Please note: This page explains a word or a process in education. It is general information about the system, the law and the guidance in England — not advice about your child, your school or your exam. If a decision is going against you, get advice from one of the free services we link to before you agree to anything or miss a deadline. If you are revising, check your own exam board's specification: boards word things differently and yours is the one that marks you.

What it is

A trace table has a column per variable and a row per step, filled in line by line as you follow the algorithm by hand.

Where it applies

GCSE and A Level computer science, and it is a guaranteed question type.

How it works

It makes the state visible at every step, which is how you find off-by-one errors and wrong loop conditions without a computer.

How to use it in your work

Draw the table before you start reading the code. Trying to hold four variables in your head is where the marks go.

Write a row per iteration, not per variable change, and include the output column.

Go slowly through the loop condition each time. The commonest error is running the loop one time too many or too few.

Where to get help

Your teacher and your board's specification — the pseudocode and the required language differ between boards. Bitesize covers the concepts; the computer science song runs the topics.

Revise this with a song

These are ours. We write revision songs because a lot of people remember a tune when they cannot remember a page, and because revising out loud in the kitchen beats staring at a highlighter.

Where to read more

Last reviewed 2026-08-28 by Fiducia Together · Next review due 2027-08-28

Please note: This page explains a word or a process in education. It is general information about the system, the law and the guidance in England — not advice about your child, your school or your exam. If a decision is going against you, get advice from one of the free services we link to before you agree to anything or miss a deadline. If you are revising, check your own exam board's specification: boards word things differently and yours is the one that marks you.

Accessibility toolkit

Done

Profiles


Text

Text size100%
Off
100%

Colour & contrast


Reading & focus

Saved to this browser for 6 months. Signed in to a Fiducia app? Set it up there instead and it follows you onto any device.

Cookies on this site

We use one cookie to remember your reading and accessibility settings, and one to remember this choice. Neither is used to track you. This site sets no advertising or analytics cookies of its own, and visits are counted on our own server, so nothing follows you off this page. Read our privacy policy.