GCSE · Computer Science · AQA · Spec 8525
Sound file size calculation
A computer can't hold a smooth sound wave, so it measures it again and again and keeps the measurements. How many, and how carefully?
Computer Science · Digital sound
A sound file is a list of heights
Sound in the air is a smooth wave. A computer keeps it by measuring how high the wave is at regular moments, and each measurement is called a sample. These 16 bars are the samples from 2 seconds of sound recorded at 8 samples every second. The wave rises to a peak, falls to a trough and comes back. Each sample is stored with 3 bits, so every bar has to sit on one of 8 whole-number heights (0 to 7). Drag across the bars to reshape the wave, then watch the readouts: the heights change, but the number of bits in the file never does.
Computer Science · Data representation
File size — built from a few factors
Change one dial at a time and watch the Bits row. Each setting multiplies in, and the ÷ 8 row then turns bits into bytes. Duration goes in as seconds, because the rate counts samples per second. Ignore the rows below ÷ 8: they lead on to bigger units this lesson doesn't use.
Sampling rate
1,000 Hz
Sample resolution
8 bits
Duration
4 s
Formula
size (bits) = sampling rate × sample resolution × duration
WHAT YOU'VE LEARNED
A quick recap of today's lesson.
What you need to know
- A computer stores sound as a list of samples: measurements of the wave's amplitude (its height) taken at regular moments.
- Sampling rate is the number of samples per second, measured in hertz (Hz). Sample resolution is the number of bits used for each sample.
- File size in bits = sampling rate × sample resolution × duration in seconds. Divide by 8 to get bytes.
- A higher sampling rate or a higher sample resolution gives a closer match to the original sound and a larger file. A longer duration only makes the file larger.
The big picture
A digital sound file is a list of samples: measurements of a sound wave's amplitude taken at regular moments. Sampling rate is how many samples are taken each second, and sample resolution is how many bits each sample gets. File size in bits is sampling rate × sample resolution × duration in seconds, and dividing by 8 gives bytes. Raising the rate or the resolution gives a closer match to the original and a larger file; a longer recording only gives a larger file.
Key points
Worked example
Problem
A sound is recorded at 2,000 samples per second, with a sample resolution of 6 bits, for 9 seconds. Calculate the file size in bits and then in bytes.
⚠ Watch out
Mixing up the two settings, or thinking a longer recording must sound closer to the original. Rate is how many samples per second, resolution is how many bits per sample, and duration only grows the file.
Memory hook
Rate is how OFTEN you measure. Resolution is how PRECISELY you store each measurement. Duration just says for how long.
Check yourself
100 samples a second, 5 bits per sample, 4 seconds. Find the bits, then the bytes. Check: 2,000 bits, 250 bytes. Did you divide by 8 last?
Flashcards
(12)How does a computer store a sound wave?
What is a sample?
What is the sampling rate?
What is the sample resolution?
Which setting is 'how often' and which is 'how precisely'?
What does a sampling rate of 1 Hz mean?
Which three numbers multiply to give a sound file's size in bits?
How do you turn a size in bits into bytes?
Why must the duration be in seconds?
What happens if you raise the sampling rate or the sample resolution?
Does a longer recording match the original more closely?
10 samples per second, 2 bits per sample, 6 seconds. How many bits and bytes?
Tap any card to flip it, or use Study as deck to go through them one at a time. In the full lesson these run as a spaced-repetition deck — you rate each card Hard, Good or Easy and the tricky ones keep coming back until they stick.
Learning with Lightbulb is opening soon
You can use this lesson now. Join the waitlist and we'll let you know when the full Lightbulb experience is ready.
Keep me postedMore AQA GCSE Computer Science topics
How this lesson was checked. This AQA GCSE Computer Science (specification 8525)lesson was published through Lightbulb Learning's human-designed editorial process — the educational standards, accuracy rules and publication checks it must pass were authored and approved by Philip Halpin. It passed subject-specific assessment, automated educational checks and technical publication verification before going live (publication checks completed 8 November 2026). Published pages are monitored, human spot-checking is ongoing across the lesson library, and anything found wrong is corrected or withdrawn. How our lessons are made and checked. Spotted a mistake? Email hello@lightbulblearning.co and we'll review it.