Author and publisher: InnoviCat
Published: · Last updated:
Understanding Sample Rate in Audio
How sample rate affects audio quality and frequency reproduction
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.
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.
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.
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.
Common Sample Rates
How to Compare Sample Rates
- Set a high frequency (10–15 kHz) to hear differences
- Select different sample rates from the dropdown
- Download WAV files at each rate to compare file sizes
- Notice how higher sample rates create larger files