MathsGenie logo
RevisionResourcesBlog
  1. Home
  2. /
  3. Student Questions
  4. /
  5. How to Calculate Image Size from Pixels and Colour Depth

How to Calculate Image Size from Pixels and Colour Depth

Learn how to calculate uncompressed image size from pixel dimensions and colour depth, convert bits to bytes, and avoid a common GCSE Computer Science mistake.

Share
Add as a preferred source on Google

To calculate uncompressed image data size, multiply the image width by its height to find the number of pixels, then multiply by the colour depth:

size in bits=width in pixels×height in pixels×colour depth in bits per pixel \text{size in bits} = \text{width in pixels} \times \text{height in pixels} \times \text{colour depth in bits per pixel} size in bits=width in pixels×height in pixels×colour depth in bits per pixel

Divide the result by 888 to convert bits to bytes. Keep track of the units at each step: the multiplication gives bits because colour depth is measured in bits per pixel.

What the terms mean

A pixel is one point in a digital image. The width and height tell you how many pixels are arranged across and down the image. Multiplying those dimensions gives the total number of pixels. Colour depth is the number of bits used to store the colour of each pixel. At a colour depth of 242424 bits per pixel, every pixel contributes 242424 bits to the uncompressed image data. The dimensions alone are not enough to calculate the size: you also need the colour depth.

Worked example

Suppose an image is 800800800 pixels wide and 600600600 pixels high, with a colour depth of 242424 bits per pixel. First find how many pixels it contains:

800×600=480,000 pixels 800 \times 600 = 480{,}000\text{ pixels} 800×600=480,000 pixels

Now multiply by the bits needed for each pixel, then convert to bytes:

480,000×24=11,520,000 bits 480{,}000 \times 24 = 11{,}520{,}000\text{ bits} 480,000×24=11,520,000 bits 11,520,000÷8=1,440,000 bytes 11{,}520{,}000 \div 8 = 1{,}440{,}000\text{ bytes} 11,520,000÷8=1,440,000 bytes

If the question defines a kilobyte as 1,0001{,}0001,000 bytes, the answer is 1,4401{,}4401,440 kilobytes. Use the conversion specified in the question. If none is given, state whether you use 1,0001{,}0001,000 or 1,0241{,}0241,024 bytes per kilobyte so your working is clear.

Common exam mistake: giving the result after multiplying by colour depth as bytes. It is still in bits until you divide by 888. This method calculates uncompressed pixel data, not necessarily the size of an image file: a file can contain extra information or use compression. Check what the question asks for before giving your final unit.

Related resources

Keep learning with resources for this subject.

Computer Science

Explore

Computer Science

View subject overview

Question bank

Practice exam-style questions

Revision guides

Review key concepts

Was this answer helpful?

Was this answer helpful?

Add as a preferred source on Google

Related student questions

1 Cell biology

Active Transport vs Diffusion: What Is the Difference?

Learn what active transport is, why it needs energy, and how it differs from diffusion in GCSE Biology, with clear definitions and examples.

Read the answer →

1 Cell biology

How Does Mitosis Work in the Cell Cycle?

Learn how mitosis fits into the cell cycle, from cell growth and DNA replication to chromosome separation and two genetically identical cells.

Read the answer →

1 Cell biology

Eukaryotic vs Prokaryotic Cells

Learn the differences between eukaryotic and prokaryotic cells, including their nuclei, genetic material, plasmids and sub-cellular structures.

Read the answer →

1 Cell biology

What Is Diffusion? GCSE Biology Explained

Learn what diffusion means in GCSE AQA Biology, how concentration affects net movement, examples in living organisms, and common exam mistakes.

Read the answer →

1m+ Students Can't Be Wrong

What GCSE and A-level students say after revising with MathsGenie.

Harvey B. avatar

Harvey B.

Student

“This is such an amazing platform, it offers everything needed to improve your grade in a time efficient manor. Personally I love the videos as I am able to find areas that I am weak at in the practice papers.”
Tameem R. avatar

Tameem R.

Student

“Genuinely took me from a grade 4 in maths to achieving a grade 8 in my GCSE's in less than a few months. Best mathematics revision website for those who are aiming to get those high grades.”
Anyim P. avatar

Anyim P.

Student

“Genuinely I think every maths student should have this site. It takes you through the entire AS and A level Maths course, alongside exam questions with step by step solutions.”
Muhammad A. avatar

Muhammad A.

Student

“predicted papers are very useful and i believe there's not a better website for GCSE maths in the UK”
Rayan K. avatar

Rayan K.

Student

“Best Maths Resource out there! Absolutely amazing videos and very concise explantions on everything. Don't even get me started on the loads of exam question/worksheets that are so helpful. And it's all free!”
Dee avatar

Dee

Student

“The best Maths resource site in the world! They have it all and do a great job of keeping everything up to date. I still don't know how they are able to make this free for all. You are truly amazing.”
Hamid I. avatar

Hamid I.

Student

“They have helped me with my A level Maths performance significantly and I jumped from a grade U to a Grade A in only 2-3 months. I HIGHLY recommend to Maths students especially for A level.”
Sophie avatar

Sophie

Student

“MathsGenie's YouTube videos and worksheets are amazing. The videos go into such great depth but in a way that's simple to understand.”
Maria E. avatar

Maria E.

Student

“Amazing website! Truly helped with my GCSEs - I was a very poor student. Managed to go up and reach all grade 6-9's from U-4's. Would definitely recommend :)”
Justine K. avatar

Justine K.

Student

“Absolutely brilliant website with well organised, well written resources for learning or revising maths. I never hesitate to recommend mathsgenie to my students.”
Daryl G. avatar

Daryl G.

Student

“Took me a bit of getting used to but this new site is excellent. I found the old one really useful but this is next level. I share it with all my colleagues and students.”
Binuk J. avatar

Binuk J.

Student

“I used to be really bad at math. My first GCSE mocks I had a 2 but after I found MathsGenie I jumped from 2 to 4 under 3 months.”
Jourdie avatar

Jourdie

Student

“Improved my grade, I used to be borderline passing maths now I'm performing much better. There are videos, practice papers, solutions, exam questions, past GCSE papers all for free. This is really useful.”
Olla avatar

Olla

Student

“Honestly, it's super great. Easy, with the explanation on the side. Every topic also has more than 50 questions, making you feel more confident in doing different types f question in one topic. Try it!”

Ready to breeze through your GCSEs?IGCSEs?A-Levels?AS Levels?GCSEs?GCSEs?

Sign inStart studying for free

Footer

Quick links

  • GCSE past papers
  • GCSE question bank
  • GCSE worksheets
  • GCSE revision guides
  • GCSE lessons
  • Literary Hub
  • Free maths course
  • A Level past papers
  • A Level question bank
  • Old MathsGenie

Tools

  • Revision planner
  • Mock exam builder
  • Ask Genie AI
  • Answer marking
  • Grade calculator
  • Pricing

Company

  • About MathsGenie
  • Careers
  • Contact
  • For educators
  • For parents
  • Student ambassadors
  • Help centre
  • More resources
  • Blog
  • Student questions
  • Sitemap
  • Privacy policy
  • Terms of Service
  • Cookie policy
  • Report a bug

GCSE

  • Biology
  • Chemistry
  • English Language
  • English Literature
  • Geography
  • Maths
  • Old Maths
  • Physics
  • Statistics

IGCSE

  • Biology
  • Business
  • Chemistry
  • Computer Science
  • English Language
  • English Literature
  • Geography
  • Maths
  • Physics

A Level

  • Biology
  • Business
  • Chemistry
  • Economics
  • Maths
  • Old Maths
  • Physics
  • Psychology
  • Sociology

AS Level

  • Biology
  • Business
  • Chemistry
  • Economics
  • Maths
  • Physics
  • Psychology
  • Religious Studies
  • Sociology
MathsGenie logo

© 2026 MyDojo, Inc. All rights reserved. MyDojo, Inc. does business as MathsGenie.

Exam board names are used for identification only and do not imply affiliation or endorsement.