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.
Pixels and resolution
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
| Colour depth | Number of colours |
|---|---|
| 1 bit | 2 |
| 2 bits | 4 |
| 4 bits | 16 |
| 8 bits | 256 |
| 24 bits | 16,777,216 |
File size
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.
An image is 40 ร 30 pixels with a colour depth of 8 bits. How big is it in bytes?
- Bits = 40 ร 30 ร 8 = 9600.
- Bytes = 9600 รท 8 = 1200.
Answer: 1200 bytes
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.
- 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.
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.
How many colours can a colour depth of 2 bits show?
Show the answer
Answer: 4
22 = 4 colours.
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.
Facts checked against the sources below, 27 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.