KS3 · Computer Science

Representing sound in binary

The song on your phone isn't a sound. It's a list of numbers: ten seconds of stereo is 14,112,000 bits. How does a wobble in the air become that?

Computing · Representing sound

This is what the computer actually stores

16 audio samples at 4 bits, 16 levels, 44100 hertz, 1 channels. Stored size of these samples: 64 bit

Sample 1 of 16
Levels16Bit depth4-bitSample rate44100 HzStored size of these samples64 bit
drag across the bars to redraw the wave, then check the size

Each bar is one sample: one measurement of the wave. With 4 bits per sample, every bar sits on one of 16 levels, 0000 to 1111. Drag across the bars to reshape the wave. The shape changes. The size doesn't.

Exam line: Size depends on how many samples there are and how many bits each one gets, not on how loud or quiet the sound is.
Watch out: These 16 samples last only about 0.00036 seconds at 44,100 samples per second. A real second of sound needs 44,100 of them. To hear them, the device turns the numbers back into voltage for a speaker.

From air to bits, and back to air

Follow the sound as it changes form. Watch the microphone and the speaker: same job, opposite directions.

  1. A pressure wave travelsThose highs and lows of air pressure ripple outwards. That rippling pattern is the sound wave.
  2. The device samples and stores itThe device measures that voltage again and again, and stores each measurement as bits.
  3. Back to electricityTo play it, the stored digital data is converted back into an electrical signal: a changing voltage.

Two settings that get mixed up

Sample ratevsSample resolution (bit depth)

Rate is HOW OFTEN. Resolution is HOW PRECISELY.

Focus

The question it answers

Sample rate

How often is the wave measured?

Sample resolution (bit depth)

How precisely is each measurement stored?

The insight

This is the pair everyone swaps. One is about time, the other is about detail in a single measurement.

What it counts

Sample rate

Samples taken per second

Sample resolution (bit depth)

Bits used to store each sample

In the bars at the top

Sample rate

More bars squeezed into every second

Sample resolution (bit depth)

Each bar stored more accurately

A typical value

Sample rate

44,100 samples per second

Sample resolution (bit depth)

16 bits per sample

Set it too low and…

Sample rate

The wave is measured less often, so the sound is generally lower quality

Sample resolution (bit depth)

Each sample is stored less accurately, so the sound is generally lower quality

Turn it up and…

Sample rate

Generally better quality, and the file gets bigger.

Sample resolution (bit depth)

Each sample stored more accurately, generally better quality, and the file gets bigger.

Predict, then check

A channel is one stream of audio. Mono has one, stereo has two, surround sound has more.

You save the same 3-minute song three times, uncompressed: mono, then stereo, then surround sound. Sample rate and bits per sample never change. What happens to the size?

Your turn to fill the gaps

How big is ten seconds of stereo music?

A 10-second piece of music is stored as raw, uncompressed stereo at 44,100 samples per second and 16 bits per sample. How big is the sound data in bits, bytes and kilobytes (1 KB = 1,000 bytes)?

  1. What we know: 44,100 samples per second, 16 bits per sample, 10 seconds, 2 channels (stereo).Before multiplying anything, grab the four numbers that decide the size.
  2. missing step
Which line is step 2?

Find the faulty line

One line of this answer is wrong. Which one?

A 2-minute mono recording is stored uncompressed at 8,000 samples per second and 8 bits per sample. How big is the sound data in kilobytes (1 KB = 1,000 bytes)?

A student's answer — which line goes wrong?

WHAT YOU'VE LEARNED

A quick recap of today's lesson.

A computer can't keep a wave. It keeps measurements of the wave, thousands every second, each one written in binary.

What you need to know

  • Sound is a wave: vibrations make air particles squeeze together and spread apart, creating high and low air pressure.
  • Microphones turn those air-pressure changes into changing voltage. No binary yet; that happens next.
  • Have a goYour mate Jake insists: "A microphone is basically a tiny binary machine. Sound goes in, ones and zeros come out." Is Jake right?

    No. A microphone only gives out a changing voltage.

    Jake has skipped a whole stage: the voltage still has to be measured and stored as bits by the device before any ones and zeros exist.

  • Inside the device, the voltage is measured again and again, and each measurement is stored as bits.
  • Each of those measurements is called a sample, so digital sound is a long list of binary numbers.
  • How often you measure is the sample rate: samples per second. 44,100 is typical, and higher generally means better quality.
  • Sample resolution, or bit depth, is the number of bits per sample. 16 is typical, and more bits store each sample more accurately.
  • Have a goSam says: "A higher sample resolution means the sound is measured more often." Is Sam right?

    No. Measuring more often is a higher sample rate.

    Resolution is bits per SAMPLE: more bits store each measurement more accurately. How often is the rate, in samples per SECOND.

  • Channels are separate streams of audio. Mono has one, stereo has two (left and right), surround sound has several.
  • Better quality costs space: a higher sample rate, more bits per sample or more channels all make the file bigger.
  • Size in bits = sample rate × sample resolution × duration in seconds × number of channels. Divide by 8 for bytes.
  • Have a goQuick one: 1 second of mono at 1,000 samples per second and 8 bits per sample. How many bytes is that?

    1,000 bytes.

    1,000 × 8 × 1 × 1 = 8,000 bits, then ÷ 8 = 1,000 bytes. Stopping at 8,000 leaves the answer in bits, not bytes.

  • Here 1 kilobyte = 1,000 bytes. The formula gives the size of the sound data.

The big picture

Sound is a wave of changing air pressure. A microphone turns it into changing voltage; the device samples that voltage thousands of times a second and stores each measurement as bits. On playback, the numbers become voltage again and a speaker moves the air. Sample rate is how often you measure; sample resolution (bit depth) is how many bits store each measurement. Raising either, or adding channels, makes the file bigger. Raw size in bits = sample rate × sample resolution × duration × channels; ÷ 8 for bytes, ÷ 1,000 for kilobytes.

Key points

1Capture: air pressure → microphone voltage → measured and stored as bits.
2Playback: bits → electrical signal (voltage) → speaker → air pressure you hear.
3Sample rate = samples per second (typical 44,100). Higher generally means better quality.
4Sample resolution (bit depth) = bits per sample (typical 16). More bits store each sample more accurately, generally better quality.
5Mono = 1 channel, stereo = 2, surround = several. Each channel is stored, so more channels mean more data.
6Size in bits = rate × resolution × seconds × channels.
71 byte = 8 bits; in this lesson 1 KB = 1,000 bytes.

Worked example

Problem

A 30-second stereo clip is stored uncompressed at 44,100 samples per second and 16 bits per sample. (a) How big is the sound data in kilobytes (1 KB = 1,000 bytes)? (b) Work it out again for 8-bit mono, and say what you give up.

⚠ Watch out

Swapping sample rate and sample resolution: 44,100 is samples per SECOND; 16 is bits per SAMPLE.

🧠

Memory hook

Rate is WHEN, depth is HOW FINE. Size? Rate × depth × seconds × channels, then ÷ 8 for bytes. Four things multiply, one thing divides.

✓

Check yourself

Say what sample rate controls and what sample resolution controls. Then find the raw size, in bytes, of 4 seconds of stereo at 2,000 samples per second and 8 bits per sample.

Flashcards

(15)
What is a sound wave in air?
Vibrations make air particles squeeze together and spread apart: a travelling pattern of high and low air pressure.
Microphone vs speaker: what does each convert?
Microphone: air-pressure changes → voltage changes. Speaker: voltage changes → air-pressure changes. Mirror jobs.
What happens between the microphone and the stored bits?
The device measures the voltage again and again at regular times and stores each measurement as bits.
What happens to the bits before a speaker can play them?
The digital data is converted back into an electrical signal: a changing voltage for the speaker.
What is a sample?
One measurement of an analogue signal (usually sound), stored as a sequence of bits.
What is sample rate? Give a typical value.
The number of samples taken per second. Typical: 44,100 samples per second.
What is the effect of a lower sample rate?
The wave is measured less often, so the sound is generally lower quality, but the file is smaller.
What is sample resolution (bit depth)? Give a typical value.
The number of bits used to store each sample. Typical: 16 bits. More bits store each sample more accurately.
Why does a higher bit depth make the file bigger?
More bits are stored for every sample, so there is more data. It also generally improves the quality.
Mono, stereo, surround: how many channels?
Mono: one channel, the same sound from every speaker. Stereo: two (left and right). Surround: several, from speakers around you.
Why does stereo take twice the space of mono?
Each channel is its own stream of samples and every stream is stored, so two channels need double the data.
Formula for raw sound data size in bits?
Sample rate × sample resolution × duration in seconds × number of channels.
Bits → bytes → kilobytes?
Divide by 8 for bytes, then by 1,000 for kilobytes (this lesson's convention).
Does a louder sound make the sound data bigger?
No. The size depends on the sample rate, sample resolution, duration and channels, not on how loud the sound is.
What are typical values for sample rate and sample resolution?
44,100 samples per second and 16 bits per sample.

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 KS3 Computer Science topics

See the full KS3 Computer Science curriculum →

How this lesson was checked. This KS3 Computer Sciencelesson 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 27 October 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.

Helpful guides for parents and students