Sampling, FFT and Channel Capacity Calculator

Plan data acquisition and FFT analysis, and see the theoretical speed limit of a communication channel, in one place.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Enter the sample rate

    In Hz.

  2. 2
    Enter FFT length and window

    Points and type.

  3. 3
    Read the resolution

    Bin width and record length.

  4. 4
    Check aliasing

    For your signal frequency.

  5. 5
    Enter channel values

    Bandwidth, SNR, levels.

  6. 6
    Read the capacity

    Shannon and Nyquist limits.

About this tool

Digital signal processing rests on a few fundamental limits. Sample too slowly and high frequencies fold back as false lower frequencies, called aliasing. Analyse too short a record and two nearby tones blur into one. Push too much data through a noisy channel and errors become unavoidable. This calculator brings these limits together. Enter a sample rate and it gives the Nyquist frequency, half the sample rate, and shows where any signal frequency will appear after sampling, warning when it aliases. Enter an FFT length and window function to get the bin width, the record length in time, the window's equivalent noise bandwidth and its highest side lobe, which together decide how well you can separate close or weak tones. For communication channels, enter a bandwidth and signal-to-noise ratio to get the Shannon capacity, the maximum error-free bit rate any system can achieve, along with the spectral efficiency limit, and enter a number of signal levels to get the noiseless Nyquist bit rate. It is useful for audio, vibration analysis, software-defined radio, data acquisition and coursework.

Nyquist and aliasing

To capture a signal, sample at more than twice its highest frequency. A tone above half the sample rate appears at a lower frequency: at 48 kHz sampling, a 30 kHz tone shows up at 18 kHz. Anti-aliasing filters before the converter remove such frequencies; in practice sample rates are set 10 to 25% above the strict minimum to leave room for the filter.

FFT resolution

An N-point FFT at sample rate fs has bins fs/N apart and needs N/fs seconds of data. Finer resolution needs longer records. Windows reduce leakage from strong tones but widen each peak: the equivalent noise bandwidth is 1 bin for rectangular, 1.5 for Hann, 1.36 for Hamming, 1.73 for Blackman and 3.77 for flat-top, which is used when amplitude accuracy matters most.

Shannon capacity

C = B log2(1 + SNR). A 20 MHz channel at 25 dB SNR can carry at most about 166 Mbit/s. Modern systems with strong error-correcting codes reach within a few dB of this limit.

Nyquist bit rate

For a noiseless channel with M signal levels, the maximum rate is 2B log2 M. Noise decides how many levels are usable in practice, which brings you back to Shannon.

Limits

These are theoretical limits and idealised window figures, not measured performance. Real converters add noise and distortion, and real channels have interference and fading, so practical rates are lower. Window parameters are standard published values.

Worked example

At 48 kHz with a 4,096-point FFT and a Hann window, bins are 11.72 Hz apart from an 85 ms record with a 17.6 Hz noise bandwidth, a 30 kHz tone aliases to 18 kHz, and a 20 MHz channel at 25 dB SNR has a Shannon capacity of about 166 Mbit/s.

Quick facts

Frequently asked questions

What is the Nyquist frequency?

Half the sample rate, the highest frequency that can be captured without aliasing.

How do I get finer FFT resolution?

Record for longer: more points at the same sample rate.

Which window should I use?

Hann for general use, flat-top for amplitude accuracy, rectangular for transients.

What is Shannon capacity?

The maximum error-free data rate for a bandwidth and SNR.

Can systems beat the Shannon limit?

No. Good codes come close but cannot exceed it.

Is anything uploaded?

No. Calculations run in your browser.

Guides for this tool

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