The specification gives both forms of the formula verbatim:
Size (bits)=W×H×D
Size (bytes)=8W×H×D
where W = image width, H = image height, D = colour depth in bits.
The method, every time
- Identify W, H and D from the question.
- Multiply all three → size in bits.
- Divide by 8 → size in bytes.
- Divide by 1,000 as many times as needed → kB, MB (3.3.3).
- Sense-check the answer against real-world scale.
Worked example
An image is 800 pixels wide by 600 pixels high with a colour depth of 24 bits. Calculate its file size in megabytes.
Step 1 — bits:
800×600×24=11,520,000 bits
Step 2 — bytes:
11,520,000÷8=1,440,000 bytes
Step 3 — kilobytes:
1,440,000÷1,000=1,440 kB
Step 4 — megabytes:
1,440÷1,000=1.44 MB
Sense-check: a 0.5-megapixel photograph at true colour being around 1.4 MB is entirely plausible ✓
Working backwards
Questions sometimes give you the file size and ask for a missing value. Rearrange the formula:
D=W×HSize (bits)
A 100 × 50 image occupies 5,000 bytes. Find the colour depth.
- Convert to bits: 5,000 × 8 = 40,000 bits
- Number of pixels: 100 × 50 = 5,000
- Colour depth: 40,000 ÷ 5,000 = 8 bits
What is NOT included
"Students only need to use colour depth and number of pixels within their calculations."
So ignore metadata — real image files also store a header with dimensions, format and colour information, but AQA excludes it. If a question mentions metadata, note that it makes the actual file slightly larger, but do not attempt to include a figure.
AQA tip. Always show every step. Mark schemes award method marks for the multiplication and separately for the ÷8, so a wrong final answer with correct working still scores. Label your units at each stage — "bits", "bytes", "kB" — because losing track of which unit you are in is the most common error.