nyquist frequency calculator
Nyquist Frequency Calculator guide
Enter a sampling rate and a signal frequency to check which part of the spectrum a sampled sine would occupy after folding.
Play the instrument ↑- Default calculation
- At 48 kHz sampling, Nyquist is 24 kHz.
Formula and units
The Nyquist frequency is half the sample rate. Reduce the tone frequency modulo the sample rate, then fold values above half the rate back toward zero.
Worked example
At 48 kHz sampling, Nyquist is 24 kHz. A 30 kHz sine folds to 18 kHz because it sits 18 kHz below the nearest sampling-rate multiple.
Anti-aliasing filters attenuate out-of-band energy before downsampling. The displayed fold is the mathematical location for an unfiltered sine, regardless of how much energy a real filter removes.
Predict where an alias lands
At 44.1 kHz, Nyquist is 22.05 kHz. An unfiltered 28 kHz tone folds to 16.1 kHz, its distance below 44.1 kHz. A tone at 44.1 kHz folds to zero. At 70 kHz and a 48 kHz sample rate, the remainder is 22 kHz and no additional reflection is needed. Thinking in distance to the nearest multiple of the sampling rate works even for frequencies more than one sample-rate band up.
When synthesizing in software, sharp nonlinear operations can create harmonics above Nyquist even when the original oscillator is below it. A 12 kHz tone's third harmonic lies at 36 kHz. If generated without adequate band limiting in a 48 kHz system, it folds to 12 kHz. Oversampling a nonlinear stage can push its internal limit higher, then a low-pass filter can remove high components when converting back down. The calculator predicts frequency locations and has no information about amplitudes created by your processor.
The maximum useful passband is often lower than the theoretical half-rate point. A real low-pass filter needs transition width between the wanted band and the frequencies that must be rejected. For a 48 kHz delivery, a specification might keep response flat through a chosen upper audio frequency and use the rest of the band for rolloff. Look at the source bandwidth and the final rate rather than treating the cutoff display as an abrupt wall in a real system.
Use an out-of-band test tone
At 48 kHz a 49 kHz sine folds to 1 kHz, while a 47 kHz sine also folds to 1 kHz with a phase relationship that depends on the original tone. This symmetry is useful in unit tests for a spectrum display. Test one tone below the limit, one just above it, and one near the sampling rate. Those choices exercise different parts of the folding calculation.
Multiple alias components require separate analysis. A nonlinear sound can carry harmonics at different frequencies, and each can fold to a different baseband point. Once two harmonics fold to the same frequency they can add or subtract depending on phase. Use measured levels or a spectrum to evaluate the impact. The calculator describes positions rather than their loudness.
Assumptions and limits
Frequencies at precisely Nyquist need special care. For example, a sine sampled at its zero crossings can appear as all zeros, while a phase-shifted version can alternate signs.
Audio Bitrate Calculator → · GestureSynth music theory tools → · W3C Web Audio specification →
Answers before you play
Common questions
Is Nyquist frequency the same as Nyquist rate?
Nyquist frequency is half a given sample rate. The Nyquist rate for a bandlimited signal is twice its highest frequency, with practical filters requiring transition space.
Why can a tone at the sample rate turn into DC?
Each evenly spaced sample arrives at the same phase of that tone. The sampled sequence can therefore be constant, with its value determined by the signal phase. Sampling at a phase where every crossing is zero can produce a zero sequence. A small frequency offset can instead create a slow variation.
Can I recover the original tone from the alias result?
The displayed location is not uniquely reversible. For 48 kHz sampling, different source tones can fold to 18 kHz, and a real 18 kHz tone already occupies the same sampled frequency. Once those signals have overlapped in sampled data, a spectrum alone does not identify which analog frequency produced the component.
Should I enter the original or destination sample rate?
Use the rate at the stage where the folding could occur. For checking a hypothetical unfiltered conversion from 96 kHz to 48 kHz, enter 48 kHz. For a tone sampled directly by a 96 kHz interface, enter 96 kHz and consider the interface's analog anti-alias filter separately.