Nyquist Sampling Rate Calculator
Signal processing
- Folding: the 9.00 kHz tone sits 1 whole sampling-rate steps from zero, so it folds to |9.00 - 1 x 10.00| kHz.
- Apparent frequency: 1.00 kHz, the alias a sampler running at 10.00 kHz actually records.
- The Nyquist limit of this sampler is 5.00 kHz, and each signal cycle gets 1.11 samples.
- Nyquist sampling result: the 9.00 kHz signal appears at 1.00 kHz, an oversampling ratio of 0.56.
Sample a tone too slowly and it does not disappear - it lies. A sampler running at fs can only represent frequencies below fs/2 faithfully; anything higher folds back into that band and is recorded at a false, lower frequency called the alias. This calculator performs the fold: give it the true signal frequency and the sampling rate, and it returns the frequency your data will actually show, plus the Nyquist limit, samples per cycle and oversampling ratio.
Aliasing is not an edge case. It is the reason wagon wheels spin backwards on film, the reason spectrum analysers show phantom spurs, and the reason every serious acquisition chain puts an anti-alias filter before the converter. Knowing the fold arithmetic lets you predict exactly where an unwanted tone will land - and whether it will land on top of the signal you wanted.
The fold this page computes is deterministic and unforgiving: once sampling has happened, the alias and a genuine tone at the same frequency are the same data, bit for bit. That permanence is why sampling-rate selection is a design decision rather than a processing preference. Whether you are speccing an ADC for an instrument, choosing an audio rate, or diagnosing a mysterious spectral line in data someone else collected, the first move is always the same - run the fold arithmetic and see where every significant tone in the analogue world is going to land.
Worked examples
9 kHz tone on a 10 kHz sampler
(9 kHz · 10 kHz)
| Apparent (alias) frequency | 1.00 kHz |
| Nyquist frequency | 5.00 kHz |
| Samples per signal cycle | 1.11 |
| Oversampling ratio | 0.56 |
30 kHz tone on a 48 kHz sampler
(30 kHz · 48 kHz)
| Apparent (alias) frequency | 18.00 kHz |
| Nyquist frequency | 24.00 kHz |
| Samples per signal cycle | 1.60 |
| Oversampling ratio | 0.80 |
40 kHz tone on a 100 kHz sampler - faithful
(40 kHz · 100 kHz)
| Apparent (alias) frequency | 40.00 kHz |
| Nyquist frequency | 50.00 kHz |
| Samples per signal cycle | 2.50 |
| Oversampling ratio | 1.25 |
The folding rule
Picture the frequency axis folded like a ribbon at every multiple of fs/2. A tone at f is first reduced modulo fs into the range 0 to fs; if the result sits above fs/2 it reflects back down, fs minus the remainder. That reflected value is the alias - the only frequency the samples can distinguish from the data. Tones at f, fs - f, fs + f and 2fs - f all produce identical sample sequences.
The oversampling ratio, fs / (2f), compresses the verdict into one number: above 1 the tone is captured honestly, below 1 it is folded. Samples per cycle tells the same story in the time domain - at 1.11 samples per cycle the waveform is unrecognisable even though the alias arithmetic is exact.
The ribbon-folding picture extends as far as you need: a tone at 3.7 times the sampling rate folds three times and lands wherever the arithmetic puts it, and the calculator's modulo method handles any number of folds without special cases. This is also why aliasing produces such convincing impostors - the folded tone is a perfect sinusoid at its new frequency, with the original's amplitude and a phase set by the sampling clock. Nothing in the recorded data marks it as a fraud; only knowledge of the analogue spectrum can unmask it.
The theorem behind the fold is usually quoted in its 1949 form - a signal band-limited to B hertz is exactly reconstructible from samples at any rate above 2B - and its fine print matters as much as its headline. Band-limited is a physical promise no real signal fully keeps, which is why practical systems define the band with a filter and accept the residue. The calculator's arithmetic assumes the ideal case deliberately: it tells you where a tone goes, exactly, and the engineering margin you add around that answer is a separate, conscious decision about filters and spectra, not a correction to the arithmetic.
- Nyquist frequency: fs / 2, the highest faithful frequency
- Alias: fold f by multiples of fs into the band 0 to fs/2
- Oversampling ratio above 1 means honest capture
- An anti-alias filter must remove tones before they fold, not after
Worked examples
Three tones, three fates: one folds to the edge of DC, one folds into the middle of the band, and one survives untouched. Together they map the whole decision space of the sampling theorem.
A 9 kHz tone sampled at 10 kHz returns 1.00 kHz, with Nyquist frequency 5.00 kHz, Samples per signal cycle 1.11, Oversampling ratio 0.56. The tone sits just above the 5 kHz Nyquist limit and folds to just above DC - the classic near-Nyquist trap that makes slow drift appear in data that was actually a fast tone.
A 30 kHz tone on a 48 kHz audio-grade sampler returns 18.00 kHz, with Nyquist frequency 24.00 kHz, Samples per signal cycle 1.60, Oversampling ratio 0.80. It folds around 24 kHz and lands at 18 kHz, inside the audio band, where no amount of later filtering can separate it from real content.
A 40 kHz tone sampled at 100 kHz returns 40.00 kHz, with Nyquist frequency 50.00 kHz, Samples per signal cycle 2.50, Oversampling ratio 1.25. Below the 50 kHz limit, the tone is recorded truthfully - the only example of the three that is what it claims to be.
Note the samples-per-cycle column as you read: even the faithfully captured example manages only 2.50 samples per cycle, a waveform you could barely sketch from its samples. Faithful in frequency is not the same as comfortable in the time domain - reconstruction filters earn their keep exactly in that gap.
Reading the three regimes
The examples span the three fates of a sampled tone. Just above Nyquist, the alias hugs DC and masquerades as drift or offset. Deep in the folding region, the alias lands mid-band and is indistinguishable from genuine signal. Below Nyquist, nothing happens at all - which is precisely the point of the sampling theorem, and why the theorem is stated as a strict inequality about band-limited signals.
Practical systems buy margin: audio samples at 44.1 or 48 kHz for a 20 kHz band, not 40 kHz, because real anti-alias filters roll off gradually. The oversampling ratio on this page is the quick check - 1.25 in the faithful example is workable with a decent filter; the 0.56 and 0.80 of the folded examples are diagnoses, not designs.
Engineers who work with spectra develop a reflex this page formalises: every unexpected line is an alias until proven otherwise. The check costs nothing - compute the folds of the known strong tones in the system (mains harmonics, switching supplies, nearby carriers) and see whether one lands on the mystery line. A striking fraction of 'discovered signals' in sampled data die at exactly this step, and the discipline of checking is what separates spectral analysis from spectral storytelling.
There is also a phase story the frequency answer conceals. A folded tone's phase relative to the sampling clock determines whether successive aliases reinforce or cancel in averaged measurements, and in coherent systems - radar, communications, lock-in detection - the alias can be made to land with a chosen phase by trimming the sampling rate. None of that changes where the tone lands in frequency, which is this page's question; it changes what the landed tone does when it arrives, which is the system designer's.
| Regime | Condition | Example |
|---|---|---|
| Faithful | f < fs/2 | 40 kHz at 100 kHz sampling |
| Folded once | fs/2 < f < fs | 9 kHz and 30 kHz examples |
| Folded many times | f > fs | Alias = fold of f modulo fs |
Using the fold deliberately
Undersampling is sometimes a feature: bandpass sampling digitises a narrowband radio signal at a rate far below its carrier, letting the fold itself act as the mixer that brings the band to baseband. The arithmetic is identical - only the intent changes. Whether you are avoiding aliases or exploiting them, run the numbers first: the alias frequency is deterministic, and this calculator gives it exactly, along with the samples-per-cycle figure that tells you whether any time-domain interpretation survives.
For deliberate bandpass sampling, the design inverts: choose fs so the band of interest folds into a clear region of the baseband, clear of other bands' folds and of DC and fs/2, where filter skirts misbehave. The same arithmetic serves, with the additional constraint that the sampling rate must still exceed twice the signal's bandwidth - the theorem cares about bandwidth, not carrier frequency, and this page's fold shows where a given carrier lands under a candidate rate.
FAQs
A 9 kHz tone is sampled at 10 kHz. What is recorded?
1.00 kHz. The tone folds around the 5.00 kHz Nyquist frequency and appears just above DC.
What does a 48 kHz sampler make of a 30 kHz tone?
18.00 kHz, with only 1.60 samples per cycle - inside the audio band and inseparable from genuine content.
Is 40 kHz at a 100 kHz rate safe?
Yes. It is recorded faithfully at 40.00 kHz, with an oversampling ratio of 1.25 and 2.50 samples per cycle.
What oversampling ratio flags aliasing?
Anything below 1. The folded examples sit at 0.56 and 0.80; the faithful one at 1.25.
Can an alias equal the true frequency?
Yes - whenever the tone lies below half the sampling rate, the fold returns the tone itself, as in the 40 kHz example.
Why not just filter the alias out afterwards?
Because after sampling the alias is numerically identical to a real tone at that frequency. Filtering must happen in the analogue domain, before conversion.