Skip to main content
EnglandComputer ScienceSyllabus dot point

How is sound stored as binary?

Understand how analogue sound is sampled to be stored digitally, the effect of sample rate and bit depth on quality and file size, and calculate sound file sizes.

A focused answer to AQA GCSE Computer Science 3.3.7, covering how analogue sound is sampled for digital storage, the effect of sample rate and bit depth on quality and file size, and calculating sound file sizes.

Generated by Claude Opus 4.88 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. Sampling
  3. Sample rate and bit depth
  4. Calculating file size
  5. How sampling reconstructs the wave
  6. Quality versus file size
  7. Try this

What this dot point is asking

AQA wants you to explain how analogue sound is sampled to be stored digitally, describe how sample rate and bit depth affect quality and file size, and calculate the size of a sound file.

Sampling

The smaller the gap between samples, the closer the reconstructed wave is to the original. If samples are taken too infrequently, rapid changes in the wave fall between samples and are lost, which is heard as a loss of high frequencies or distortion. This is why music is sampled at 44100 Hz, fast enough to capture the highest frequencies humans can hear.

Sample rate and bit depth

The two settings control different things: sample rate is about how often you measure (horizontal detail, capturing fast changes), while bit depth is about how finely you measure each value (vertical detail, the range of loudness levels). CD-quality audio uses a 44100 Hz sample rate and a 16-bit depth.

Calculating file size

How sampling reconstructs the wave

Picture the analogue wave as a smooth curve and the samples as dots placed on it at equal time intervals. To play the sound back, the computer joins the dots to recreate the wave. If the dots are close together (a high sample rate), the rebuilt wave closely follows the original; if they are far apart (a low sample rate), fast changes in the wave fall between samples and are lost, so the playback is distorted or muffled and high frequencies disappear. This is why a higher sample rate gives better quality: more dots leave less room for the wave to change unseen between measurements.

Quality versus file size

As with images, better quality costs storage. Doubling the sample rate doubles the number of samples per second, so the file size doubles; doubling the bit depth doubles the bits per sample, so again the size doubles. CD-quality audio (44100 Hz, 16-bit) is chosen because it captures the full range of human hearing without wasting space on detail the ear cannot detect. For speech or a phone call a much lower sample rate is acceptable, producing a far smaller file, because speech does not contain the high frequencies that music does. Matching the settings to the use keeps files no larger than they need to be.

Try this

Q1. State what is meant by the sample rate. [1 mark]

  • Cue. The number of samples taken per second (in hertz).

Q2. Calculate the size in bits of a 5-second sound clip sampled at 2000 Hz with a bit depth of 16. [2 marks]

  • Cue. 2000×16×5=1600002000 \times 16 \times 5 = 160000 bits.

Exam-style practice questions

Practice questions written in the style of AQA exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

AQA 20204 marksA sound clip is 30 seconds long, sampled at 44100 Hz with a bit depth of 16 bits. Calculate the file size in megabytes. Use 1 megabyte = 1000000 bytes.
Show worked answer →

Size in bits =sample rate×bit depth×duration=44100×16×30=21168000= \text{sample rate} \times \text{bit depth} \times \text{duration} = 44100 \times 16 \times 30 = 21168000 bits.

Convert to bytes: 21168000÷8=264600021168000 \div 8 = 2646000 bytes.

Convert to megabytes: 2646000÷1000000=2.6462646000 \div 1000000 = 2.646 MB.

Markers reward the correct three-value product, the ÷8\div 8 to reach bytes, and the conversion to MB using powers of 1000. Forgetting the duration or the ÷8\div 8 are the most common errors.

AQA 20233 marksExplain the effect of increasing the sample rate of a recording on its quality and file size, and explain why a higher sample rate captures the sound more accurately.
Show worked answer →

A higher sample rate means more samples are taken each second, so the digital recording follows the analogue wave more closely and reproduces higher frequencies, improving quality. Because file size =sample rate×bit depth×duration= \text{sample rate} \times \text{bit depth} \times \text{duration}, doubling the sample rate doubles the file size.

It captures sound more accurately because the original wave is continuous; taking measurements more often leaves smaller gaps between samples, so the reconstructed wave is a closer approximation of the original.

Markers reward the link between more samples and closer approximation, the quality improvement, and the proportional increase in file size.

Related dot points

Sources & how we know this