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
Inputs
Frequency plan
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 at | n·f | Order | Δ to band | Note | Status |
|---|---|---|---|---|---|
| 10 000.0 | 1·f | 1 | in band | — | DESIRED |
| 4 100.0 | 4·f | 4 | in band | Aliased harmonic | CHECK |
| 5 900.0 | 5·f | 5 | in band | Aliased harmonic | CHECK |
| 14 100.0 | 3·f | 3 | +4 100.0 | Aliased harmonic | OK |
| 20 000.0 | 2·f | 2 | +10 000.0 | — | OK |
- 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.
| Symbol | Quantity | Your value |
|---|---|---|
| fN | Nyquist rate (minimum sampling rate) (Hz) | 20 kHz |
| fsig | Signal maximum frequency / bandwidth (Hz) | 10 kHz |
| fs | Actual sampling rate (Sa/s) | 44 100 Sa/s |
| OSR | Oversampling ratio | 2.205 |
| N | ADC resolution (bits) | 16 bits |
| SNR | Signal-to-quantization-noise ratio (dB) | 98.1 dB |
Assumptions
5 items
- 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.
- 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.
- 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.
- 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.
- 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?
| Step | Expression | Result |
|---|---|---|
| Nyquist rate | 2 × 20 kHz | 40 kHz |
| Oversampling ratio | 44 100 / 40 000 | 1.103 |
| Lowest input that folds into the band | 44 100 − 20 000 | 24.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 band | 4.1 kHz, 15.9 kHz, 8.2 kHz, 11.8 kHz < 20 kHz | 4 |
| Data rate | 44 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.