Glossary termMathematical theorem

Nyquist-Shannon Sampling Theorem

Also known as: Sampling theorem, Nyquist theorem, Shannon sampling theorem

Theorem stating that a band-limited signal can be perfectly reconstructed from samples taken at more than twice its highest frequency.

The Nyquist-Shannon sampling theorem is the mathematical foundation of digital audio, video and communications. It states that if a continuous signal contains no frequency components above a limit B, it is completely determined by samples taken at a rate greater than 2B per second and can in principle be reconstructed exactly from them. Half the sample rate is called the Nyquist frequency. At a sample rate of 48 kHz, for example, content up to just under 24 kHz can be captured without loss of information.

Ideal reconstruction interpolates the samples with sinc functions, which a digital-to-analog converter approximates with a low-pass reconstruction filter. If the input contains frequencies above the Nyquist frequency, they are not simply lost but misrepresented: they fold back as lower aliased frequencies that cannot be distinguished from genuine content. Converters therefore place an anti-aliasing low-pass filter before sampling. A common misconception is that digital audio plays back as a stair-step waveform; correctly reconstructed output is a smooth signal, as the theorem predicts.

The theorem is named after Harry Nyquist, whose 1928 work on telegraph transmission established related limits, and Claude Shannon, who gave a clear proof in his 1949 paper "Communication in the Presence of Noise". Edmund Whittaker in 1915 and Vladimir Kotelnikov in 1933 had published equivalent results independently, so it is also known by other names. It underpins information theory, telephony, imaging and every audio codec, and explains why CD audio at 44.1 kHz can cover the range of human hearing.

Key points

  • A band-limited signal can be reconstructed exactly from samples taken at more than twice its highest frequency.
  • Frequencies above half the sample rate alias into false lower frequencies unless filtered out first.
  • Properly reconstructed digital audio is a smooth waveform, not a stair-step.
  • Nyquist, Shannon, Whittaker and Kotelnikov all contributed to or independently discovered the result.

Related entries

Glossary term

Number of samples per second used to represent an audio signal digitally, which sets the highest frequency a recording can capture.

Glossary term

Number of bits used to store each audio sample, which sets the precision of amplitude values and the theoretical dynamic range of a recording.

Person

Claude Shannon

Ideas and CultureProgramming

American mathematician and engineer who founded information theory and showed that Boolean logic could be implemented in electrical circuits.

Glossary term

Information Theory

Ideas and CultureProgramming

Mathematical study of how information is quantified, compressed, stored and transmitted reliably, founded by Claude Shannon in 1948.

Glossary term

The number of cycles a periodic wave completes per second, measured in hertz, which in sound corresponds closely to perceived pitch.

Glossary term

Audio Codec

AudioProgramming

Algorithm or software that encodes audio into a compressed or structured digital format and decodes it back for playback, such as MP3, AAC or FLAC.

Glossary term

The shape of a signal plotted against time, such as the sine, square, sawtooth and triangle waves used in synthesis and audio analysis.

Featured in guides

Referenced by

Other entries that discuss or point to Nyquist-Shannon Sampling Theorem.