Skip to content

Nyquist Sampling Theorem Calculator

Calculate Nyquist sampling rate, oversampling ratio, and aliasing frequency. Verify your ADC sampling meets the Nyquist criterion and determine data rate. Free, instant results.

Nyquist–Shannon sampling theorem · ideal-ADC SQNRAPI slug sampling-nyquist

Sign in to saveSave

Inputs

Example
Maximum frequency component in the signal (or signal bandwidth for baseband signals)

1 Hz to 1 GHz

Number of samples taken per second
Sa/s

1 to 1×10¹² Sa/s

Number of bits in the ADC. Each additional bit adds ~6 dB of dynamic range.
bits

4 to 24 bits

Number of parallel ADC channels (e.g., 2 for stereo, 1 for mono)

1 to 32

The highest harmonic of a tone at the top of the band, as the converter's distortion makes it, that the frequency plan follows; 1 follows the tone alone

1 to 50

Signal Aliased into the BandPASS
0
in 0–10 000 Hz
Harmonics Folded into the BandCHECK
2
Lowest Input That Aliases Into the Band
34.1kHz
Oversampling RatioPASS
2.205
Alias Frequency
0Hz

Frequency plan

Marker height shows strength by order: taller is a lower order
f_s/2 22 0504·f 4 100desired 10 000signal band05 00010 00015 00020 000 Hz

The tone and its harmonics after sampling, nearest the band first

f_alias = |n·f − k·f_s|, k nearest n·f/f_s
Lands atn·fOrderΔ to bandNoteStatus
10 000.01·f1in band—DESIRED
4 100.04·f4in bandAliased harmonicCHECK
5 900.05·f5in bandAliased harmonicCHECK
14 100.03·f3+4 100.0Aliased harmonicOK
20 000.02·f2+10 000.0—OK
0 – 22 050 Hz
Nyquist RatefN
20kHz
Dynamic RangeDR
98.1dB
Ideal SNRSNR
98.1dB
Raw Data RateDR
705.6kbps
Anti-Aliasing Filter fcfaa
22.05kHz

Formula

Nyquist, H. (1928). "Certain Topics in Telegraph Transmission Theory". AIEE Transactions. Shannon-Nyquist sampling theorem.
fN=2fsig,OSR=fsfN,SNR=20log⁡10(2)⋅N+10log⁡10(3/2) dBf_N = 2 f_{sig},\quad OSR = \frac{f_s}{f_N},\quad SNR = 20\log_{10}(2)\cdot N + 10\log_{10}(3/2)\text{ dB}
SymbolQuantityYour value
fNNyquist rate (minimum sampling rate) (Hz)20 kHz
fsigSignal maximum frequency / bandwidth (Hz)10 kHz
fsActual sampling rate (Sa/s)44 100 Sa/s
OSROversampling ratio2.205
NADC resolution (bits)16 bits
SNRSignal-to-quantization-noise ratio (dB)98.1 dB

Assumptions

5 items
  1. 01The signal band runs from 0 to the signal frequency, and the Nyquist rate is twice it; the oversampling ratio is the sampling rate over that.
  2. 02Sampling folds a tone at f to |f − k·f_s|, k the integer nearest f/f_s (Kester, MT-002): the alias frequency is the tone's own when it lies above f_s/2, and the lowest input that folds into the band is f_s minus the band's top.
  3. 03The plan follows the band-edge tone and its harmonics up to the order you give, as a converter's own distortion makes them: the tone aliasing into the signal band fails, because no filter after the converter can separate it; a harmonic that folds into the band is one to check, because how strong it is (the converter's SFDR) is not modelled.
  4. 04The dynamic range is the ideal quantization SNR, 20·log₁₀(2)·N + 10·log₁₀(1.5) dB for N bits, without thermal noise, jitter or the converter's nonlinearity; the data rate is f_s × N × the channels.
  5. 05The anti-aliasing filter's cutoff is taken at f_s/2, the most it can be; a real filter needs its transition band below it.

Worked example

CD audio: a 20 kHz tone at 44 100 Sa/s

A 16-bit stereo converter samples audio up to 20 kHz at 44 100 Sa/s. Where do a 20 kHz tone's harmonics land after sampling, and how many fall back inside the audio band?

StepExpressionResult
Nyquist rate2 × 20 kHz40 kHz
Oversampling ratio44 100 / 40 0001.103
Lowest input that folds into the band44 100 − 20 00024.1 kHz
Second harmonic after sampling|2 × 20 kHz − 44 100 Sa/s|4.1 kHz
Third harmonic after sampling|3 × 20 kHz − 44 100 Sa/s|15.9 kHz
Fourth harmonic after sampling|4 × 20 kHz − 2 × 44 100 Sa/s|8.2 kHz
Fifth harmonic after sampling|5 × 20 kHz − 2 × 44 100 Sa/s|11.8 kHz
Harmonics inside the audio band4.1 kHz, 15.9 kHz, 8.2 kHz, 11.8 kHz < 20 kHz4
Data rate44 100 × 16 × 2 / 10⁶1.411 Mbps

How it works

The Nyquist Sampling Calculator computes minimum sampling frequency and aliasing-free bandwidth — essential for ADC selection, anti-aliasing filter design, and digital signal processing system architecture. DSP engineers, embedded developers, and audio professionals use this to ensure faithful signal reconstruction. The Nyquist-Shannon theorem (1949) states that sampling frequency must exceed 2x the highest signal frequency to prevent aliasing. Practical systems use 2.2-2.5x oversampling to accommodate real filter roll-off. Per Oppenheim "Signals and Systems" (2nd ed., Ch. 7), aliasing folds high-frequency content into the baseband, causing irreversible distortion. CD audio samples at 44.1 kHz for 20 kHz bandwidth (2.205x). Professional audio uses 96 kHz (4.8x oversampling) achieving -120 dB aliasing rejection with practical filters. Modern delta-sigma ADCs use 64-256x oversampling, trading speed for resolution — a 64x oversampled 1-bit converter achieves 16-bit equivalent resolution per Schreier.

Practical tips

  • Per AES17-2015, use minimum 2.2x oversampling for audio; 4x enables simpler anti-alias filters
  • Delta-sigma ADCs with 64x+ oversampling eliminate external anti-alias filter requirement per Analog Devices AN-283
  • Budget 10-20% bandwidth margin above signal frequency for filter transition band per IEEE 1057
  • For wideband signals, consider undersampling (bandpass sampling) when signal bandwidth << center frequency

Common mistakes

  • Sampling at exactly 2x Nyquist rate — requires infinite-order brick-wall filter; use 2.2-2.5x minimum per Oppenheim
  • Neglecting anti-aliasing filter design — aliased signals cannot be recovered and corrupt all lower frequencies
  • Overlooking ADC aperture bandwidth — sample-and-hold must track signals to fs/2 with < 0.1 dB droop

Frequently asked questions

5 questions
What happens if I sample below the Nyquist rate?

Aliasing occurs: frequencies above fs/2 fold back into baseband. A 15 kHz tone sampled at 20 kHz appears at 5 kHz (fs - fsignal). Per Shannon, aliased information is permanently lost — no digital processing can recover it. Always use anti-aliasing lowpass filter before ADC.

Why use more than 2x the maximum frequency?

Practical anti-alias filters have finite roll-off. Per Kester, achieving 80 dB rejection at fs/2 requires: 2x oversampling needs 26th-order filter, 2.5x needs 10th-order, 4x needs 5th-order. Higher oversampling trades sample rate for filter simplicity and reduced in-band phase distortion.

How do I choose the right ADC bit depth?

Required bits N = (dynamic_range_dB - 1.76) / 6.02. Voice: 8-12 bits (48-72 dB). Consumer audio: 16 bits (98 dB). Professional audio: 24 bits (144 dB theoretical, ~120 dB practical). Scientific: 18-24 bits. Per IEEE 1241, add 2-bit margin for processing headroom.

Can I recover aliased signals?

No — aliasing irreversibly mixes high and low frequency content per Shannon theorem. A 30 kHz signal sampled at 44.1 kHz aliases to 14.1 kHz and cannot be distinguished from a true 14.1 kHz tone. Prevention via anti-aliasing filter is the only solution.

Do all signals require the same sampling approach?

No. Baseband signals (DC to fmax): sample at 2.2-4x fmax. Bandpass signals (narrowband around fc): use undersampling at 2.2x bandwidth. Per Proakis, a 100 MHz signal with 10 MHz bandwidth can be sampled at 25 MHz using bandpass sampling, reducing ADC speed requirements 4x.

Shop Components

As an Amazon Associate we earn from qualifying purchases.

  • Op-Amp IC AssortmentGeneral-purpose and precision operational amplifiersAmazon →
  • Function GeneratorDDS function generator for signal and filter testingAmazon →