Real World Maths Busters

The Maths Behind Everyday Life

The story, the formula and a worked example — see exactly where this maths shows up in the world around you.

Back to all stories
Technology 3 min read

Why Images Have Three Layers

Every pixel is three numbers: red, green, blue — each 0 to 255.

A colour image is three layers stacked — one for red, green, blue. Each pixel has three values (0–255), giving 256³ = 16.7 million possible colours.

Colour Maths

Each channel is 8 bits (0–255). Three channels = 24 bits per pixel. Total possible colours = 2²⁴ = 16,777,216.

Colours=2563=224=16,777,216\text{Colours} = 256^3 = 2^{24} = 16{,}777{,}216

Storage for a 1920×1080 image (uncompressed)

  1. 1

    Total pixels

    1920×1080=2,073,6001920 \times 1080 = 2{,}073{,}600
  2. 2

    Bytes per pixel

    3 (one per channel)

  3. 3

    Total bytes

    2,073,600×3=6,220,800≈5.93 MB2{,}073{,}600 \times 3 = 6{,}220{,}800 \approx 5.93 \text{ MB}
Answer

About 6 MB uncompressed — JPEG squashes this to ~500 KB

The takeaway

Every pixel is an RGB triplet. Three channels of 256 levels give us 16.7 million colours.

Back to all stories