Data units, images and sound

How big is a photo or a song file? You can calculate it from how the data is stored.

Practise this lesson free (6 questions)

More tools

Units of size

8 bits = 1 byte.
In binary units, 1 kibibyte (KiB) = 1024 bytes, 1 mebibyte (MiB) = 1024 KiB, and so on.
In decimal units, 1 kilobyte (kB) = 1000 bytes. Use whichever the question asks for.

Images

A bitmap image is a grid of pixels. Colour depth is the number of bits per pixel.
File size (bits) = width ร— height ร— colour depth
More pixels (higher resolution) or more colours means a bigger file.

Sound

Sound is sampled. Sample rate is samples per second (Hz). Bit depth is bits per sample.
File size (bits) = sample rate ร— bit depth ร— seconds (for one channel)
Divide bits by 8 to get bytes.
Worked example

An image is 100 ร— 100 pixels with a colour depth of 8 bits. Find its size in bytes.

  1. bits = 100 ร— 100 ร— 8 = 80 000 bits
  2. bytes = 80 000 รท 8
  3. = 10 000 bytes

Answer: 10 000 bytes

Key idea

8 bits = 1 byte; 1 KiB = 1024 bytes. Image bits = width ร— height ร— colour depth. Sound bits = sample rate ร— bit depth ร— seconds. Divide by 8 for bytes.

Key words
Byte
8 bits.
Colour depth
The number of bits used to store the colour of each pixel.
Sample rate
The number of sound samples taken per second, in hertz.
Bit
A single binary digit, 0 or 1.
Bit depth
The number of bits used to store each sound sample.
Binary
Base 2: the number system that uses only the digits 0 and 1.

All GCSE and International GCSE Computer Science 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. An image is 300 ร— 200 pixels with a colour depth of 2 bits. What is its size in bytes?

    Show the answer

    Answer: 15000 bytes

    300 ร— 200 ร— 2 = 120 000 bits. 120 000 รท 8 = 15 000 bytes.

  2. How many different colours can a colour depth of 5 bits represent?

    Show the answer

    Answer: 32 colours

    25 = 32 different combinations.

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, 16 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.

What do exam command words like explain and evaluate mean? โ†’

Related lessons