How frequencies fold

When a signal is sampled at rate fs, the samples cannot distinguish a frequency f from f plus or minus any multiple of fs. Every input component therefore appears somewhere between 0 and fs/2, the Nyquist frequency, folded back like paper on a crease at each multiple of fs/2. A 10 kHz sine sampled at 12 kHz, for instance, lies above the 6 kHz Nyquist frequency and shows up at |12 − 10| = 2 kHz. The samples are then identical to those of a genuine 2 kHz tone, and no later processing can separate them.

Nyquist frequency vs. Nyquist rate

The two terms are easy to mix up. The Nyquist frequency is a property of the sampler: half the sampling rate, fs/2. The Nyquist rate is a property of the signal: twice its highest frequency component, the minimum sampling rate the sampling theorem requires. Sampling 20 kHz audio therefore needs a rate above 40 kHz. A component sitting exactly at fs/2 is ambiguous, because the sampled amplitude depends on its phase and may even be zero, which is why the theorem requires sampling strictly faster than twice the highest frequency.

Anti-aliasing and oversampling

Because aliasing cannot be undone, a low-pass anti-aliasing filter is placed before the ADC to remove content above the Nyquist frequency. Real filters need a transition band between passband and stopband, so the sampling rate is chosen with margin: audio CDs sample at 44.1 kHz for a 20 kHz band, leaving the region from 20 to 22.05 kHz for the filter's rolloff. Sampling much faster than necessary, called oversampling, pushes the Nyquist frequency far above the signal band, so a simple first- or second-order RC filter is often enough and a digital filter does the sharp cutoff afterward.

Deliberate aliasing and the DAC side

Aliasing is not always an error. In undersampling, or bandpass sampling, a narrowband signal in a higher Nyquist zone, such as an intermediate-frequency carrier in a radio receiver, is deliberately sampled below twice its frequency so that it folds down to a convenient lower frequency. This works only with a bandpass filter in front and an ADC whose analog bandwidth and clock jitter are good enough for the high input frequency. On the output side, a DAC produces images at fs ± f, which a reconstruction low-pass filter removes.

Try it: questions about Nyquist frequency

The DFT of the 8-point real signal x[n] = {3, 1, 3, 1, 3, 1, 3, 1} is defined as X[k] = Σx[n]e^(−j2πkn/8). Which of the following is the value of X[4], the bin at the Nyquist frequency?

  1. A1
  2. B2
  3. C8
Show answer and explanation

Answer: C. 8

Atk=N2=4k = N/2 = 4,e−jπn=(−1)ne^(−jπn) = (−1)ⁿ, so X[4] = Σ(−1)ⁿx[n] = 3 − 1 + 3 − 1 + 3 − 1 + 3 − 1 = 8. The signal is a DC level of 2 plus a component (−1)ⁿ that alternates by ±1; the alternating component appears in the Nyquist bin and the DC level in X[0] = 16. For a real signal, X[0] and X[N/2] are always real.

Which of the following gives the gain magnitudes at DC and at the Nyquist frequency of the filter y[n] = x[n] − x[n − 1] (the difference from the previous input)?

  1. A0 at DC and 2 at the Nyquist frequency
  2. B2 at DC and 0 at the Nyquist frequency
  3. C1 at DC and 1 at the Nyquist frequency
Show answer and explanation

Answer: A. 0 at DC and 2 at the Nyquist frequency

The transfer function is H(z) = 1 − z⁻¹; DC corresponds to z = 1 and the Nyquist frequency to z = −1. At DC, 1 − 1 = 0, so a constant value is completely removed, and at the Nyquist frequency the gain is 1 − (−1) = 2. This is a high-pass characteristic that blocks low frequencies and passes high ones, with a zero at z = 1. Changing it to y[n] = x[n] + x[n − 1] gives the opposite, a low-pass characteristic with a gain of 2 at DC and 0 at the Nyquist frequency.

FAQ

What is the difference between Nyquist frequency and Nyquist rate?

The Nyquist frequency is half of the sampling rate, the highest frequency a given sampler can represent. The Nyquist rate is twice the highest frequency in the signal, the minimum sampling rate needed to capture it.

How do you calculate the alias frequency?

Find the multiple of the sampling rate nearest to the input frequency and take the absolute difference. For example, 10 kHz sampled at 12 kHz appears at |12 − 10| = 2 kHz.

Why is CD audio sampled at 44.1 kHz instead of 40 kHz?

Human hearing extends to about 20 kHz, and the extra margin above 40 kHz gives the anti-aliasing filter a transition band from 20 to 22.05 kHz, since no real filter can cut off instantly.

Questions that mention Nyquist frequency (10)

Nyquist frequency appears in 12 practice questions across 2 topics, including Digital Signal Processing Basics, A/D and D/A conversion.

  1. Which of the following gives the gains at DC and at the Nyquist frequency of the first-order IIR low-pass filter given by the exponential smoothing y[n] = 0.2x[n] + 0.8y[n − 1]?
  2. What sampling frequency is needed to sample an analog signal containing components up to 20 kHz without aliasing?
  3. What type of filter is used as the anti-aliasing filter placed before an ADC?
  4. If a 10 kHz sine wave is sampled at 12 kHz without an anti-aliasing filter, at what frequency does it appear?
  5. A 6 kHz sine wave is sampled at a sampling frequency of 48 kHz. Which of the following is the normalized angular frequency ω (the phase advance per sample) of the resulting discrete-time signal?
  6. A signal sampled at 48 kHz is analyzed with a 1024-point discrete Fourier transform (DFT). Which of the following is the spacing of the frequency bins?
  7. When the frequency response of a discrete-time LTI system is obtained from its transfer function H(z), along which of the following is z moved?
  8. An FIR filter with transfer function H(z) = 1 + z⁻² (y[n] = x[n] + x[n − 2]) runs at a sampling frequency of 8 kHz. Which of the following is the frequency of a sine-wave input for which the output is 0?
  9. A signal sampled at 48 kHz is reduced to 12 kHz by keeping one sample out of every four (decimation by 4). Which of the following frequency components should the low-pass filter placed before the downsampling remove?
  10. To raise the sampling frequency by a factor of L, L − 1 zeros are inserted between successive samples (zero insertion). Which of the following correctly describes the processing needed next?

Books on A/D and D/A conversion Ad

Learn hands-on: parts and kits

Building real circuits is a good way to check what you learned in the questions.

As an Amazon Associate I earn from qualifying purchases.

Semiconductor, Electronics and Computing Calculators

This page was drafted with AI and fact-checked by a separate AI review before publication. Our Editorial policy explains how we write and check content. If you spot an error, please tell us on our Contact page.

Back to the glossary