Calculating the size of a bitmap image
The size of an uncompressed bitmap image in bits. Multiply width by height by the bits used for each pixel, then divide by 8 to get bytes.
Understanding Calculating the size of a bitmap image in Years 7–8 Data & Information
What it does: Each pixel is either black (0) or white (1), so it needs just 1 bit. 10 x 10 pixels x 1 bit = 100 bits. 100 x 50 = 5000 pixels, and 5000 x 24 bits = 120000 bits. Dividing by 8 gives 15000 bytes. 8 x 8 x 1 = 64 bits. Adding 8 + 8 gives 16, but you need to multiply. There are 8 bits in a byte, so divide: 64 / 8 = 8 bytes. Multiplying by 8 would give 512, which is wrong. 1 MB is about 1,000,000 bytes, so 2,000,000 bytes is about 2 MB.
Common mistakes: The size in bits is width x height x bits per pixel, so width and height must be multiplied, not added. It should be bits ← width * height * 1. The height of the image has been left out. The pixel count is width x height, so it should be bits ← 20 * 10 * bitsPerPixel.
Free printable worksheet with full answer key — or add this module to a class and your students practise it interactively.
This module's key terms are also in a printable crossword (Modules 9–45) and word search (Modules 9–80).
Take this worksheet further — free with Cloodit
Each concept is reinforced from every angle — learned, then applied, then tested.
Cloodit turns curriculum-aligned coding content into journeys students work through one biome at a time.
Over 100 of them, across seven natural biomes.
Turns their work into revision material ready for Flash Cards and Exam study.
Live, competitive practice for the start of the lesson or a teacher-led lesson finisher.
Honour your top performers, or encourage a student who's trying hard — ready to print in seconds.
Quick Questions
Match the Pairs
Key Term
width x height x bits per pixelFill in the Blanks
Spot the Error
Student with a class code? Join your class →