Study and Productivity

Nyquist, FFT Resolution and Shannon Capacity in Plain English

How fast to sample, what aliasing does, how FFT length and windows set frequency resolution, and what Shannon's capacity formula says about data rates.

Saizul Amin
Saizul Amin30 Oct 2026 · 3 min read
Nyquist, FFT Resolution and Shannon Capacity in Plain English

Nyquist, FFT Resolution and Shannon Capacity in Plain English

Three ideas sit at the heart of digital signal processing and communications: how fast you must sample a signal, how finely an FFT can separate frequencies, and how much data a channel can carry. The free Sampling, FFT and Channel Capacity Calculator calculates all three, and this guide explains what the numbers mean.

Sampling and the Nyquist frequency

To capture a signal digitally, you take samples at a regular rate. The sampling theorem says you can reconstruct a signal perfectly if you sample faster than twice its highest frequency. Half the sample rate is called the Nyquist frequency: 24 kHz for audio sampled at 48 kHz.

Aliasing

Any signal above the Nyquist frequency does not simply disappear. It folds back and appears as a false lower frequency, an alias. At 48 kHz sampling, a 30 kHz tone shows up at 18 kHz, right in the audible band. Once aliased, it cannot be removed. That is why converters have an anti-aliasing low-pass filter in front of them, and why sample rates are set somewhat above twice the bandwidth, leaving room for the filter to roll off. The calculator shows where any frequency will land after sampling.

FFT resolution

An FFT splits a block of N samples into N frequency bins spaced fs/N apart. At 48 kHz with 4,096 points, bins are 11.7 Hz apart and the block lasts 85 ms. Finer resolution needs a longer block: double N to halve the bin width. There is no free lunch: resolution in frequency costs time.

Windows

Cutting a signal into blocks creates leakage: energy from a strong tone spills into nearby bins and can hide weak signals. Window functions taper the block's ends to reduce leakage, at the cost of widening each peak. Two numbers describe a window:

  • Equivalent noise bandwidth: 1 bin for rectangular, 1.5 for Hann, 1.36 for Hamming, 1.73 for Blackman and 3.77 for flat-top.
  • Highest side lobe: how strongly a tone leaks into distant bins, from −13 dB for rectangular to below −90 dB for Blackman-Harris and flat-top.

Hann is a good general choice. Flat-top gives accurate amplitudes for calibration. Rectangular suits transients that fit entirely inside the block.

Shannon capacity

In 1948 Claude Shannon proved that a channel with bandwidth B and signal-to-noise ratio SNR can carry at most

C = B × log2(1 + SNR) bits per second

without errors, however clever the system. A 20 MHz channel at 25 dB SNR can carry at most about 166 Mbit/s. Modern codes come within a decibel or two of this limit, but none can beat it.

Nyquist bit rate

For a noiseless channel, the limit is 2B × log2(M), where M is the number of signal levels. Noise decides how many levels you can actually distinguish, which links this back to Shannon.

A worked example

A vibration engineer wants to see a machine's bearing frequencies up to 5 kHz and separate two peaks 2 Hz apart. Sampling at 12.8 kHz covers 5 kHz with room for the anti-aliasing filter. With a Hann window, two peaks need to be about three bins apart, so bins must be under 0.7 Hz: an FFT of 32,768 points, about 2.6 seconds of data. The calculator shows these trade-offs instantly.

Step by step

  1. Enter the sample rate and FFT length.
  2. Choose a window.
  3. Read the bin width, record length and noise bandwidth.
  4. Enter a signal frequency to check for aliasing.
  5. Enter bandwidth, SNR and levels for the capacity limits.

The calculator runs in your browser.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages