🎓 Learning Journey · Topic 1.3B · Cornerstone

Your journey through Image Representation

Pixels, resolution, colour depth, and the file-size formula. Seven stages from theory to mastery. Click any stage card to dive in — or continue where you left off.

Your progress

Where you are in Topic 1.3B

0 / 7Stages visited
0 / 7Checklist items
0Vault entries
🎯 Recommended next stage

Start with Book Notes

Read the theory and terminology to get grounded.

The 7 stages

Choose any stage

Green cards are stages you've already visited. Grey cards are new territory. Click any card to jump straight to that stage.

Mistakes

Mistake Tracker

Notes

Notes

Progress

Stats

0%Accuracy
0Answered
0Streak
Bookmarks

Bookmarks

Knowledge Vault 2.0

Knowledge Vault

Add entry

Category
Confidence
Title
Info

Entries

🧪 Exam Mode ON
📚 Topic 1.3B · Data Representation · Lab

Image Representation Lab — pixels to file size

How digital images are stored as pixels: colour depth, resolution, and the file-size formula Cambridge tests in almost every paper.

🧪 Cambridge Exam Mode ON — hints hidden, feedback delayed, model answers locked until marking.
🎮 Activities
✎ Practice
📋 Exam
🔄 Review
🏆 Mastery
§1 · Topic overview

What is Topic 1.3B?

Digital images are made of pixels. Each pixel stores one colour. Colours are stored as binary numbers. The number of bits per pixel is the colour depth, and the total number of pixels is the resolution. Multiply them together and you get the file size in bits.

Cambridge test this in almost every paper — the definition of a pixel, the file size formula, and the effect of changing resolution or colour depth. Learn the definitions cold and the formula becomes trivial.

Note: text is covered in 1.3A Text Representation Lab and sound in 1.3C Sound Representation Lab. This lesson (1.3B) covers images only.

§2 · Learning objectives

By the end of 1.3B you can…

  • Define pixel as the smallest component of an image, storing a single colour
  • Define resolution as the number of pixels in an image (usually width × height)
  • Define colour depth as the number of bits used to represent each pixel's colour
  • State the file size formula: width × height × colour depth (in bits)
  • Convert bits to bytes by dividing by 8 (and to KiB / MiB when required — see 1.4)
  • Explain the effect of increasing resolution (more detail, larger file)
  • Explain the effect of increasing colour depth (more colours, larger file)
  • Describe how a computer stores a digital image (bitmap of pixel values + metadata)
§3 · Key terminology

Cambridge-approved terms

TermDefinition
PixelThe smallest component of a digital image. Each pixel stores a single colour.
ResolutionThe number of pixels in an image, typically given as width × height.
Colour depthThe number of bits used to represent the colour of each pixel. Also called bit depth.
BitmapAn image stored as a grid of pixel values in a file, each pixel encoded in binary.
MetadataExtra data stored alongside pixel values — width, height, colour depth, file format, etc.
File size (bits)width × height × colour depth — the raw bit count of the pixel data.
§4 · Core theory

The three tables you must know cold

Colour depth → colours representable

Colour depth (bits per pixel)Colours representableCommon use
12 (black/white)Monochrome bitmap
24Basic grayscale
416Very simple graphics
8256Indexed colour images
1665,536High colour
24~16.7 millionTrue colour — standard for photos

Rule: n-bit colour depth = 2ⁿ possible colours per pixel.

File size formula

QuantityFormula
File size in bitswidth × height × colour depth
File size in bytes(width × height × colour depth) ÷ 8

Effect of changing parameters

ChangeEffect on image qualityEffect on file size
Increase resolution 2× per sideMore detail, sharper×4 (2 × 2)
Increase colour depth from 8 to 24Many more colours×3 (24/8)
Decrease colour depth from 24 to 8Fewer colours, may posterise÷3
§5 · Worked examples

Watch each calculation done step by step

Worked example 1 · File size of a small photo

An image is 100 pixels wide by 200 pixels tall with a colour depth of 24 bits per pixel. Calculate the file size in bytes.

Step 1 · Multiply: 100 × 200 × 24 = 20,000 × 24 = 480,000 bits Step 2 · Convert to bytes: 480,000 ÷ 8 = 60,000 bytes Answer: 60,000 bytes (about 58.6 KiB).

Worked example 2 · Effect of doubling resolution

An image is 400 × 300 pixels at 24-bit colour. If BOTH dimensions are doubled to 800 × 600, what happens to the file size?

Original: 400 × 300 × 24 = 2,880,000 bits New: 800 × 600 × 24 = 11,520,000 bits Ratio: 11,520,000 ÷ 2,880,000 = 4 Answer: file size becomes 4× larger. (Because doubling each dimension multiplies pixel count by 2 × 2 = 4.)

Worked example 3 · Effect of changing colour depth

An image uses 8-bit colour depth and has a file size of 200 KiB. If the colour depth is changed to 24 bits, what is the new file size?

Colour depth ratio: 24 ÷ 8 = 3 New file size = 200 KiB × 3 = 600 KiB. Answer: 600 KiB (triples). Note: pixel count is unchanged; only the bits-per-pixel changes.
§6 · Common misconceptions

Traps that cost marks every session

Trap · Pixel defined as "all the colours in the image" or "all the squares"

A pixel is a single component of an image, storing a single colour. Not "all the colours". Not "all the squares". The stronger Cambridge responses said: "the smallest component of an image" or "a single square that stored a single colour".

Cited: 2024 examiner report — verbatim: "Fewer candidates could define a pixel. Some responses describe a pixel as all of the colours in the image, or all of the squares that make up the image. The stronger responses commonly defined it as the smallest component of an image, and some responses accurately described it as a single square that stored a single colour."

Trap · Colour depth = "the colours in the image"

Colour depth is the number of bits per pixel — not the number of colours actually used in the image. A 24-bit image CAN hold ~16.7 million colours but may only use a few. Always say "bits per pixel".

Cited: recurring pattern

Trap · Answer given in bits when the question asks for bytes (or KiB)

Read the question. Bytes = bits ÷ 8. KiB = bytes ÷ 1024. Wrong unit = zero marks even with correct arithmetic.

Cited: recurring exam-technique flag

Trap · "Higher resolution improves quality" without saying HOW

Saying "improves quality" is vague. State the mechanism: more pixels means more detail / sharper edges / less pixelation. Same discipline for colour depth: "more bits per pixel means more distinct colours can be shown".

Cited: recurring "explain how" pattern

Trap · Confusing resolution with colour depth

Resolution = number of pixels (width × height). Colour depth = bits per pixel. They're independent quantities, and BOTH appear in the file size formula. Don't swap them.

Cited: recurring definition mix-up

Trap · Forgetting metadata in the "how an image is stored" answer

Cambridge accept a 5–6 point answer: the image is stored as a bitmap — each pixel has a colour stored as binary, with metadata (width, height, colour depth) at the start of the file. Omit metadata and you lose the mark.

Cited: recurring "6-point storage" pattern
§7 · Cambridge exam focus

Mark-scheme templates

These are the exact phrasings Cambridge accept. Learn them.

"A pixel is the smallest component of an image; each pixel stores a single colour" — pixel definition
"Resolution is the number of pixels in an image (width × height)" — resolution definition
"Colour depth is the number of bits used to represent the colour of each pixel" — colour depth definition
"File size = width × height × colour depth (in bits); divide by 8 for bytes" — the formula
"Increasing resolution means more pixels, more detail, larger file size" — effect of resolution
"Increasing colour depth means more colours per pixel, larger file size" — effect of colour depth
"Image stored as a bitmap of pixel values in binary, with metadata (width, height, colour depth)" — how images are stored
Never write: pixel = "all the colours" · colour depth = "the colours in the image" · answer in wrong unit
§8 · Quick knowledge check

Check yourself — tap to reveal (0/6)

Answer these in your head, then tap to see the model answer. Aim for 5 or 6 right before moving on.

Q1 · Define a pixel.
The smallest component of a digital image; each pixel stores a single colour. (NOT "all the colours in the image" or "all the squares".)
Q2 · Define resolution.
The number of pixels in an image, typically given as width × height.
Q3 · Define colour depth.
The number of bits used to represent the colour of each pixel. (NOT "the colours in the image".)
Q4 · State the file size formula.
File size (bits) = width × height × colour depth. Divide by 8 for bytes.
Q5 · An image is 200 × 300 pixels at 8-bit colour depth. What is the file size in bytes?
200 × 300 × 8 = 480,000 bits. 480,000 ÷ 8 = 60,000 bytes.
Q6 · Colour depth changes from 8 to 24. Effect on file size?
File size triples (×3), because 24 ÷ 8 = 3.
🚀 Ready for the rest
If you can answer 5 of the 6 knowledge checks above, you're ready to move on. Tap 🎓 Learn for the interactive content, then 🎮 Activities for hands-on drills.

How digital images work

🧩

Pixels

A digital image is made of pixels — the smallest component of an image. Each pixel is a single point of one colour.

Think of a mosaic: each tile is one colour. Stand back and you see a picture.

📐

Resolution

The number of pixels per unit area (e.g. per inch) OR the total dimensions (width × height in pixels).

Higher resolution = more pixels = more detail = larger file.

🎨

Colour depth

The number of bits used to represent each pixel's colour.

1-bit = 2 colours, 8-bit = 256, 16-bit = 65,536, 24-bit = ~16.7 million.

⚠ Trap: Colour depth is NOT "the number of colours the image uses" — it is the number of colours that can be used (the range). (Mar 2025)
⚠ Trap: A pixel is NOT "all the colours" — it is ONE colour point, the smallest component. (Mar 2023)

How an image is stored — the 6-point answer

Cambridge typically awards 3 marks. Any 3 from these 6 points:

#Point
1Made up of pixels
2Each pixel stores one colour
3Set number of pixels wide and high (resolution/dimensions)
4Each colour has a unique binary value
5Binary values stored in sequence
6File contains metadata (colour depth, resolution, dimensions)
⚠ Trap: Students consistently forget metadata. It is a frequently tested term that few candidates identify. (Jun 2025)
⚠ Trap: Do NOT describe how a camera takes a photograph — the question asks how the file is stored. (Mar 2022)

File size calculation

File size (bits) = Width × Height × Colour depth
File size (bytes) = bits ÷ 8

Worked example

Image: 100px wide × 150px high, 16-bit colour Step 1: Total pixels = 100 × 150 = 15,000 Step 2: Bits = 15,000 × 16 = 240,000 bits Step 3: Bytes = 240,000 ÷ 8 = 30,000 bytes

Second example (colour depth in bytes)

Image: 1000 × 1000, colour depth = 2 bytes Pixels = 1,000,000 Bytes = 1,000,000 × 2 = 2,000,000 bytes
⚠ Exam tip: Show every step — marks are awarded at each stage even if the final answer is wrong. (Mar 2023)

Interactive file size calculator

Enter width, height and colour depth to calculate the file size.

Width (px)
Height (px)
Colour depth (bits)
Press Calculate...

Effect of changes

↑ Resolution

More pixels → more binary values to store → larger file size. Also: more detail, higher quality.

↑ Colour depth

More bits per pixel → more possible colours → larger file size. Also: more accurate colours, higher quality.

⚠ Trap: When colour depth increases to 32-bit, it means 32 bits per single pixel, not all colours combined. (Jun 2025)

Quick check

What is colour depth?

The number of pixels in the image
The number of bits used to represent each pixel's colour
The number of colours the image uses
The total file size in bytes

Activity 1 — File Size Challenge

Calculate the file size for the given image.

Press New Question.

Activity 2 — Spot the Mistake

Press New Question.

Activity 3 — Effect Predictor

What happens to the file size when this change is made?

Press New Question.

Adaptive practice

Press New Question.

Cambridge-style questions

Press New Question.

Review quiz

Press New.

Exam traps

⚠ 1: Pixel = the smallest component, one colour point. Not "all the colours." (Mar 2023)
⚠ 2: Colour depth = bits per pixel/colour. Not "number of pixels" or "colours the image uses." (Mar 2025)
⚠ 3: 32-bit colour depth means 32 bits per single pixel, not all pixels combined. (Jun 2025)
⚠ 4: Don't describe how a camera works — describe how the file is stored. (Mar 2022)
⚠ 5: Always mention metadata when describing image storage. Students consistently miss it. (Jun 2025)
⚠ 6: Show every step of file size calculations — marks at each stage. (Mar 2023)

Memory triggers

🧠 "W × H × D ÷ 8"

Width × Height × Depth (colour depth in bits) = bits. Divide by 8 = bytes. That's the whole formula.

🧠 "Mosaic tiles"

Each pixel is one mosaic tile of one colour. More tiles = more detail = bigger file.

🧠 "6 points + metadata"

Image storage: pixels, one colour each, dimensions, unique binary values, sequence, metadata. Hit any 3 for full marks.

Mastery Map

Checkpoints

[ ] Define pixel accurately
[ ] Define resolution accurately
[ ] Define colour depth accurately
[ ] Calculate file size with formula
[ ] Convert bits to bytes
[ ] Describe image storage (6 points)
[ ] Include metadata in storage answers
[ ] Explain effect of resolution changes
[ ] Explain effect of colour depth changes
[ ] Cambridge exam confidence
Developer Panel