Representing sound

Sound is a smooth wave, but computers can only store numbers. Sampling turns a sound into a long list of binary numbers.

Practise this lesson free (6 questions)

More tools

Sampling

A microphone turns sound into an analogue signal: a smooth wave.
To store it, the computer measures the height of the wave many times a second. Each measurement is a sample, stored as a binary number.
The list of samples is the digital version of the sound.

Sample rate and bit depth

Sample rate: how many samples are taken each second, measured in hertz (Hz). CD audio uses 44,100 Hz.
Bit depth: how many bits store each sample. CD audio uses 16 bits.
A higher sample rate or bit depth gives a recording closer to the original sound, but a bigger file.

File size

File size in bits = sample rate ร— bit depth ร— length in seconds
(This is for one channel, called mono.)
Example: 1,000 Hz, 8 bits, 5 seconds: 1,000 ร— 8 ร— 5 = 40,000 bits = 5,000 bytes.
Worked example

A 10-second mono clip is sampled at 2,000 Hz with a bit depth of 8 bits. How big is it in bytes?

  1. Bits = 2,000 ร— 8 ร— 10 = 160,000.
  2. Bytes = 160,000 รท 8 = 20,000.

Answer: 20,000 bytes

Key idea

Sound is sampled: the sample rate is samples per second (Hz) and bit depth is bits per sample. Higher values mean better quality but bigger files. File size in bits = sample rate ร— bit depth ร— seconds.

Key words
List
A data structure that stores many items under one name, in order, such as scores = [4, 7, 2].
Binary
A number system that uses only two digits, 0 and 1. Computers store all data in binary.
Sample rate
How many sound samples are taken each second, measured in hertz (Hz). CD audio uses 44,100 Hz.
AND
A Boolean operator that gives True (1) only when both inputs are True.
Bit
A binary digit: a single 0 or 1. The smallest unit of data.
Bit depth
The number of bits used to store each sound sample. More bits give a more accurate recording.

All KS3 Computing key terms and definitions โ†’

Quick check

Try two quick questions

See if it has sunk in. Answers are marked straight away.

Extra practice

2 more questions

Try each one, then tap to check.

  1. A mono clip lasts 5 seconds, with a sample rate of 2,000 Hz and a bit depth of 8 bits. What is its size in bits?

    Show the answer

    Answer: 80000 bits

    2000 ร— 8 ร— 5 = 80 000 bits.

  2. A mono clip lasts 2 seconds, sampled at 8,000 Hz with a bit depth of 8 bits. What is its size in bytes?

    Show the answer

    Answer: 16000 bytes

    8000 ร— 8 ร— 2 = 128 000 bits. รท 8 = 16 000 bytes.

Check you have got it

Answer 6 quick questions with instant marking. If you get one wrong, GCSE-ready shows you why and gives you another go. It is free, and you do not need an account.

Video for this lesson coming soon. Subscribe on YouTube

Sources and references

Facts checked against the sources below, 27 October 2026. Last updated 2 October 2026. Spotted a mistake? Tell us and we will fix it.