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

16 audio samples at 3 bits, 8 levels, 8 hertz, 1 channels. Bits in the file: 48 bit

Sample 1 of 16
Levels8Bit depth3-bitSample rate8 HzBits in the file48 bit
drag across the bars to redraw the wave

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.

Check your picture

What do the two numbers mean?

A recording is made at 8 samples every second, and each sample is stored using 3 bits.

Which of these is closest to what you think the 8 and the 3 mean?
How sure are you?

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

File size3.91 KB
Bitssampling rate × sample resolution × duration32,000 bits
÷ 88 bits = 1 byte4,000 bytes
÷ 10241024 bytes = 1 KB3.91 KB

Catch the slip

Where did this answer go wrong?

A sound recording is sampled at 500 Hz with a sample resolution of 4 bits and lasts 2 minutes. Calculate its file size in bytes.

A student's answer — which line goes wrong?

The trade-off

What does each change buy, and what does it cost?

For each change, decide two things: does it give a closer match to the original sound, and does it make the file larger? Tick every yes, then check.

Raise the sampling rate
Raise the sample resolution
Lower the sampling rate
Make the recording longer

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

1A digital sound file is a list of amplitude measurements called samples.
2Sampling rate means samples per second (Hz). Sample resolution means bits per sample.
3Bits = sampling rate × sample resolution × duration in seconds. Bytes = bits ÷ 8.
4Raising the rate or the resolution makes the copy closer and the file larger.
5Making the recording longer makes the file larger but not any closer to the original.

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?
As a list of samples: measurements of the wave's amplitude taken at regular moments.
What is a sample?
One measurement of the sound wave's amplitude at a single moment, stored as a number.
What is the sampling rate?
The number of samples taken each second, measured in hertz (Hz).
What is the sample resolution?
The number of bits used to store each sample.
Which setting is 'how often' and which is 'how precisely'?
Sampling rate is how often you measure. Sample resolution is how precisely each measurement is stored.
What does a sampling rate of 1 Hz mean?
One sample is taken every second.
Which three numbers multiply to give a sound file's size in bits?
Sampling rate, sample resolution and duration (in seconds).
How do you turn a size in bits into bytes?
Divide by 8, because 8 bits make 1 byte.
Why must the duration be in seconds?
The sampling rate counts samples per second, so the time has to be in the same unit.
What happens if you raise the sampling rate or the sample resolution?
The copy is a closer match to the original sound, and the file gets larger.
Does a longer recording match the original more closely?
No. It only makes the file larger, because there are more samples to store.
10 samples per second, 2 bits per sample, 6 seconds. How many bits and bytes?
10 × 2 × 6 = 120 bits. 120 ÷ 8 = 15 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 posted

More AQA GCSE Computer Science topics

See the full AQA Computer Science curriculum →

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.