Advertisement

Author and publisher:

Published: · Last updated:

Understanding Sample Rate in Audio

How sample rate affects audio quality and frequency reproduction

Test Sample Rates

Generates 10 kHz tone at 44.1 kHz sample rate

What is Sample Rate?

Sample rate is the number of samples of the audio signal taken per second. Higher rates can represent higher frequencies but create larger files. The Nyquist–Shannon sampling theorem states that the sample rate must be more than twice the highest frequency you want to reproduce.

See It In Action

The diagram below plots a 20 kHz wave sampled at 44.1 kHz and at 192 kHz, with the samples joined by straight lines. At 44.1 kHz each cycle gets about two samples, so the joined plot looks jagged.

Playback does not join the samples with lines: below the Nyquist limit, half the sample rate, a reconstruction filter recovers the original wave from its samples, so both rates reproduce the 20 kHz wave.

20 kHz Waveform: Sample Rate Comparison

The Nyquist Limit

The Nyquist–Shannon theorem: to reproduce a frequency, the sample rate must be more than twice as high. Human hearing reaches about 20 kHz, so the CD needed a rate above 40 kHz; the exact 44.1 kHz came from the PCM adaptors used to master early CDs.

The Nyquist Limit

What is Aliasing?

When a signal's frequency exceeds the Nyquist limit (half the sample rate), it folds back and appears as a lower, incorrect frequency.

What is Aliasing?

Samples Per Cycle

Each panel below plots a sine wave sampled 2, 4, 8 or 16 times per cycle, with the samples joined by straight lines. The fewer the samples, the less the plot looks like the wave, but the plot is not the reconstructed sound: a reconstruction filter recovers a wave from its samples as long as the wave lies below the Nyquist limit, that is, with more than 2 samples per cycle.

Sample Density Comparison

Common Sample Rates

Sample Rate Common Use Max Frequency
44.1 kHz CD audio 22,050 Hz
48 kHz Professional audio and video, DVD 24,000 Hz
96 kHz High-resolution audio (the AES, CTA and JAS minimum) 48,000 Hz
192 kHz High-resolution audio 96,000 Hz

How to Compare Sample Rates

  1. Set a high frequency (10–15 kHz) to hear differences
  2. Select different sample rates from the dropdown
  3. Download WAV files at each rate to compare file sizes
  4. Notice how higher sample rates create larger files
Note: For playback, your browser may resample to match your audio hardware. Downloads always use the exact sample rate you select.

Sources & Further Reading

Ready to Generate Tones?

Test Sample Rates
Advertisement