Data units, images and sound
How big is a photo or a song file? You can calculate it from how the data is stored.
Units of size
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
File size (bits) = width ร height ร colour depth
More pixels (higher resolution) or more colours means a bigger file.
Sound
File size (bits) = sample rate ร bit depth ร seconds (for one channel)
Divide bits by 8 to get bytes.
An image is 100 ร 100 pixels with a colour depth of 8 bits. Find its size in bytes.
- bits = 100 ร 100 ร 8 = 80 000 bits
- bytes = 80 000 รท 8
- = 10 000 bytes
Answer: 10 000 bytes
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.
- 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 โ
Try two quick questions
See if it has sunk in. Answers are marked straight away.
2 more questions
Try each one, then tap to check.
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.
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.
- Pearson Edexcel GCSE Computer Science (1CP2) specification, topic 2.2.2, 2.2.3, 2.3.1
- Pearson Edexcel International GCSE Computer Science (4CP0) specification, topic 3.2.2, 3.2.3, 3.3.1, 3.3.4
- Pearson Edexcel GCSE Computer Science (1CP2) specification
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? โ