Representing images

Every photo on your phone is really a grid of numbers. Learn how pixels and colour depth decide how good a picture looks and how much space it takes.

Practise this lesson free (6 questions)

More tools

Pixels and resolution

A bitmap image is made of tiny dots called pixels (picture elements).
Resolution is the number of pixels, given as width ร— height, such as 1920 ร— 1080.
More pixels show more detail, but make a bigger file.

Colour depth

Each pixel's colour is stored as a binary number. Colour depth is the number of bits used for each pixel.
Each extra bit doubles the number of colours. With 1 bit, 0 could be white and 1 black.
Colour depthNumber of colours
1 bit2
2 bits4
4 bits16
8 bits256
24 bits16,777,216

File size

File size in bits = width ร— height ร— colour depth
Divide by 8 for bytes.
Example: 10 ร— 10 pixels with 2-bit colour = 10 ร— 10 ร— 2 = 200 bits = 25 bytes.
Real image files also store metadata, such as the width, height and date taken.
Worked example

An image is 40 ร— 30 pixels with a colour depth of 8 bits. How big is it in bytes?

  1. Bits = 40 ร— 30 ร— 8 = 9600.
  2. Bytes = 9600 รท 8 = 1200.

Answer: 1200 bytes

Key idea

Bitmap images are grids of pixels. Resolution is width ร— height; colour depth is bits per pixel, and n bits give 2 to the power n colours. File size in bits = width ร— height ร— colour depth.

Key words
AND
A Boolean operator that gives True (1) only when both inputs are True.
Colour depth
The number of bits used to store the colour of each pixel. n bits give 2^{n} possible colours.
Resolution
The number of pixels in an image, given as width ร— height, such as 1920 ร— 1080.
Pixel
Short for picture element: one tiny dot of colour in a bitmap image.
Binary
A number system that uses only two digits, 0 and 1. Computers store all data in binary.
Metadata
Data about data, such as an image's width, height and the date it was taken.

All KS3 Computing key terms and definitions โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. How many colours can a colour depth of 2 bits show?

    Show the answer

    Answer: 4

    22 = 4 colours.

  2. How many pixels are in an image 40 pixels wide and 30 pixels high?

    Show the answer

    Answer: 1200

    40 ร— 30 = 1200.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 27 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

Related lessons