AQA · GCSE · Computer Science

    Course version: 8525 · Version from Sept 2020

    Representing images: Size = (bits) = W x H x D

    An image is stored as a grid of pixels, and each pixel carries a colour code.

    Checked against the AQA 8525 specification (opens in a new tab) on .

    • Point 12 of 18

    Study notes

    From the checked teaching notes for this specification point.

    The idea

    An image is stored as a grid of pixels, and each pixel carries a colour code. W is the image width in pixels, H is the height in pixels, and D is the colour depth in bits per pixel. Multiplying W × H gives the total number of pixels; multiplying again by D gives the total number of bits needed, because every pixel needs D bits. Example: a 4 × 3 pixel image at depth 2 bits has 4 × 3 × 2 = 24 bits. Keep the units as bits throughout; do not divide by 8 here, since dividing converts to bytes. If a question asks for bits, stop at this result. Check that W, H and D are all in the stated units before multiplying, and remember that a larger colour depth means more bits per pixel and therefore a larger file.

    What earns the marks

    • Identify W as width in pixels, H as height in pixels and D as colour depth in bits per pixel.
    • Multiply W × H to obtain the total number of pixels in the image.
    • Multiply the pixel count by D to obtain the total number of bits.
    • State the answer in bits and do not divide by 8 when bits are requested.
    • Worked example: 4 × 3 × 2 = 24 bits for a 4 by 3 image at 2-bit depth.

    Common mistakes and how to put them right

    • Dividing by 8 when the question asks for bits.

      Put it right: The division converts bits to bytes, so it should only be done when bytes are required.

    • Treating D as the number of colours rather than bits per pixel.

      Put it right: D is the colour depth in bits, so use the bit value directly.

    • Multiplying only W × H and forgetting D.

      Put it right: That gives pixels, not bits, so the depth factor must be included.

    Exam tips

    • Write the formula W × H × D first, then substitute the numbers so units stay clear.
    • Check whether the question asks for bits or bytes before deciding whether to divide by 8.
    • Sanity-check the magnitude: more pixels or greater depth must give a larger bit total.

    Try the lesson

    The start of the Representing images: Size = (bits) = W x H x D lesson, made from checked teaching notes for this specification point.

    Have a go first

    A bitmap image is 40 pixels wide, 30 pixels high and uses a colour depth of 4 bits. What is the file size of the image in bits?

    There is more to this lesson

    The full lesson goes on to check your understanding and help you earn the marks. Create a free account to carry on, with your progress saved.

    Carry on with the full lesson

    A week of Premium from your first lesson · Then the free plan continues · No card, no charge

    Test your understanding of Representing images: Size = (bits) = W x H x D

    Active recall beats re-reading. Take an instant quiz now to test what you’ve learned and lock it into long-term memory.

    Take topic quiz

    A week of Premium from your first lesson · Then the free plan continues · No card, no charge