Calculating the size of a sound file
Uncompressed sound file size in bits is the sample rate (Hz) times the sample resolution (bits) times the length in seconds. Divide the bits by 8 to get bytes.
Understanding Calculating the size of a sound file in IGCSE Computer Science Paper 1
What it does: Sample rate x sample resolution x length in seconds is 44100 x 16 x 10 = 7,056,000 bits. 8000 x 8 x 5 = 320,000 bits, and dividing by 8 gives 40,000 bytes. The three values are multiplied together. Adding them gives a meaningless number. 100 x 8 x 10 = 8000 bits. Do not forget to multiply by all three values. The formula needs the length in seconds, so convert minutes to seconds first by multiplying by 60. 1000 x 16 x 5 = 80000 bits. Divide by 8 to get 10000 bytes. Length is part of the multiplication, so doubling the length doubles the number of bits.
Common mistakes: The sound length in seconds is missing. File size in bits = sample rate x sample resolution x length in seconds, so the line should be bits = rate * res * 10. The program works out the size in bytes but then prints the size in bits. It should print the variable bytes.
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 69–84) and word search (Modules 59–84).
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
size = sample rate x resolution x secondsFill in the Blanks
Spot the Error
Student with a class code? Join your class →