Sampling Frequency Aliasing Calculator – Nyquist Zone & Alias

Sampling Frequency Aliasing Calculator

Enter an input tone and a sampling rate fs to find the alias (apparent) frequency it folds down to, the folding frequency fs/2, whether the tone is aliased, and which Nyquist zone it lives in. Fold about fs/2 with f_alias = fs - (f mod fs) when the wrapped tone exceeds half the sample rate, and read even zones as mirror-reversed.

🎯Real Signal and ADC Presets

📡Signal and Sampling Inputs

Frequency of the tone being sampled.

Applies to the input tone above.

Samples taken per second by the ADC.

Applies to fs above (S/s = Hz).

A second tone, shown in the same unit as f.

Which spectral image the card 4 reports.

Controls rounding on every result card.

Unit used to print alias and folding values.

Alias (apparent) frequency 0 where the tone appears
Folding frequency fs/2 0 the Nyquist frequency
Is it aliased? No Nyquist zone 1
Alias image location 0 selected spectral image

🔢Formula Snapshot

fs/2folding freq
f mod fswrap tone
fs − fmif fm > fs/2
zonefloor(f/(fs/2))+1

📋Alias at fs = 8 kHz Examples

Input Tone ff mod fsAlias FrequencyReads As
3 kHz3 kHz3 kHzNo aliasing
4 kHz4 kHz4 kHzExactly fs/2
5 kHz5 kHz3 kHzFolded down
6 kHz6 kHz2 kHzFolded down
7 kHz7 kHz1 kHzFolded down
8 kHz0 kHz0 kHzAliases to DC
9 kHz1 kHz1 kHzSecond period
11 kHz3 kHz3 kHzZone 3 upright

📊Nyquist Zone Map (fs = 10 kHz)

ZoneFrequency BandOrientationAlias RuleExample Fold
10 to 5 kHzUprightf itself2 kHz to 2 kHz
25 to 10 kHzMirroredfs - f7 kHz to 3 kHz
310 to 15 kHzUprightf - fs12 kHz to 2 kHz
415 to 20 kHzMirrored2fs - f17 kHz to 3 kHz
520 to 25 kHzUprightf - 2fs22 kHz to 2 kHz
625 to 30 kHzMirrored3fs - f27 kHz to 3 kHz

🎧Common Sample Rates and Their fs/2

SystemSample Rate fsFolding fs/2Usable BandAnti-Alias Cutoff
Telephone voice8 kS/s4 kHz0 to 4 kHznear 3.4 kHz
CD audio44.1 kS/s22.05 kHz0 to 22 kHznear 20 kHz
Studio audio48 kS/s24 kHz0 to 24 kHznear 22 kHz
Hi-res audio96 kS/s48 kHz0 to 48 kHznear 45 kHz
DAQ card100 kS/s50 kHz0 to 50 kHznear 45 kHz
Fast scope1 GS/s500 MHz0 to 500 MHznear 450 MHz

🗃Alias Comparison Grid

Input fSample Rate fsFolding fs/2f mod fsAlias fNyquist Zone
3 kHz8 kHz4 kHz3 kHz3 kHz1 upright
7 kHz8 kHz4 kHz7 kHz1 kHz2 mirrored
12 kHz8 kHz4 kHz4 kHz4 kHz3 upright
18 kHz48 kHz24 kHz18 kHz18 kHz1 upright
30 kHz48 kHz24 kHz30 kHz18 kHz2 mirrored
60 Hz100 S/s50 Hz60 Hz40 Hz2 mirrored
70 MHz20 MHz10 MHz10 MHz10 MHz8 mirrored
450 MHz100 MHz50 MHz50 MHz50 MHz10 mirrored
1.2 GHz1 GHz500 MHz200 MHz200 MHz3 upright
1 kHz44.1 kHz22.05 kHz1 kHz1 kHz1 upright

⚙Formula Breakdown

Folding frequency = fs / 2The Nyquist or folding frequency is half the sample rate. At fs = 8 kHz it is 4 kHz, the highest frequency that can be represented without aliasing.
Wrap the tone: fm = f mod fsReduce f into one sampling period. A 9 kHz tone at fs = 8 kHz gives fm = 9 mod 8 = 1 kHz before any folding.
Fold about fs/2If fm > fs/2 then f_alias = fs − fm, otherwise f_alias = fm. A 7 kHz tone gives 8 − 7 = 1 kHz.
Compact formf_alias = | f − fs × round(f / fs) |. This snaps f to the nearest multiple of fs and takes the distance to it.
Aliased when f > fs/2Any tone above the folding frequency folds down into the baseband. If f ≤ fs/2 there is no aliasing and f_alias = f.
Nyquist zone = floor(f / (fs/2)) + 1Zone 1 is 0 to fs/2. Odd zones map upright; even zones map mirror-reversed, the key to bandpass undersampling.
Image locationsEvery alias has images at n × fs ± f_alias for integer n. Anti-alias filtering removes energy above fs/2 so only the true image survives.

💡Practical Aliasing Tips

Filter before you sample: A 5 kHz tone sampled at 8 kHz folds to 3 kHz and lands right on top of real signal, impossible to remove afterward. Put an analog anti-alias low-pass filter ahead of the ADC with its cutoff safely below fs/2 = 4 kHz, for example 3.4 kHz on a telephone channel, so any energy above the folding frequency is attenuated before digitizing.
Undersample on purpose: Bandpass sampling exploits aliasing to capture a high carrier with a slow ADC. A 70 MHz IF sampled at 20 MS/s falls in Nyquist zone 8, an even zone, so it folds to 70 − 3 × 20 = 10 MHz but arrives mirror-reversed. Flip the spectrum back in software and you recover the signal without a GHz converter.

If you’ve ever watched a movie where a helicopter’s rotors seem to turn backwards, you’re witnessing an example of something called aliasing, a sampling artifact that isn’t some sort of fancy makeup trick. It happens when the blade speed are greater than one-half the frame rate at which camera captures frames: the visual information gets folded back onto itself.

Digital audio (and data acquisition) has the same issue. Any input tone with a frequency higher then one-half the sampling rate doesn’t magically go away. It becomes another tone, called a ghost, with a frequency lower than one-half the sampling rate and therefore undetectable. This will corrupt your measurement or recording unless you use this calculator to learn exactly what happens to any input tone once it enters digital domain.

What Is Aliasing?

That’s the underlying idea: When you sample a signal, you must do it at more than twice its highest frequency. If the highest frequency is less than half of the sampling rate, then everything below that comes out accurately through analog-to-digital converter. At 8 kHz, a 3 kHz tone gets sampled as a 3 kHz tone. It’s safely underneath the ceiling of 4 kHz.

Push that same tone up to 5 kHz, however, and now it’s over the line. Because nothing over 4 kHz can be represented by the system, the signal bounces back down into baseband. That 5 kHz tone hits the 4 kHz wall and goes right over; it falls down into 3 kHz. In world of the digital recorder, a 3 kHz sine wave sounds just like a 5 kHz one.

And that’s why aliasing is a problem. When the signal folds in the sampled data, there’s no way to know what’s what anymore. So how do you avoid corrupting your data? First you need to understand what happens when your signal folds over on itself at that folding point.

The tool calculates the alias frequency based off the input and wraps it into a single sampling period. It then reflects (if needed) this wrapped value. Then it determines whether resulting wrapped frequency is greater than the folding limit. If so, you subtract it from the sample rate to determine the apparent frequency. The math is simple enough, but result is anything but.

That 7 kHz tone with an 8 kHz sample rate will appear to be a 1 kHz hum, because of the math. And you could waste hours attempting to remove a lower frequency noise you don’t even have in your analog source. This is not limited to only the first fold. The folding frequency divide the frequencies into Nyquist zones. Each zone is as wide as the folding frequency.

Upright is zone one, where frequencies simply map. Mirror-reverse is zone two; it flips the spectral orientation. Even zones flip the ordering of frequencies; odd zones do not. And this makes all the difference in the world when engineers uses the technique of bandpass sampling.

You might want to alias on purpose. For instance, if you have some high-frequency radio signal, you may wish to fold it down to a more reasonable intermediate frequency without having to spend big bucks on high-speed converters. Just select a sample rate that puts your high-frequency radio signal into one of the even zones and it will fold back down to a usable intermediate frequency. The calculator tells you which way things go…

Bug or feature? So how is this prevented? This is typically done by putting an analog anti-alias filter in front of the converter. This is a low-pass filter that reduces all energy above folding frequency to a level low enough so it cannot fold back down. In real life filters are never brick-wall. So engineers typically over-sample just enough to accommodate a gentle roll-off.

For example, telephone systems sample at 8kHz. That means anything over 4kHz gets filtered out. However they filter out close to 3.4kHz to ensure that margin. And audio systems follow suit. We sample at 44.1kHz because we know that will safely cover our 20kHz of human hearing range.

Knowing what your folding frequency is can help you pick the proper sample rate and filter corner if you’re creating a system yourself. Alias is a form of predictable distortion, governed by hard math; it’s not some sort of random noise at all. Its behavior can be predicted, and its rule set are strictly defined. Knowing what the aliasing frequency is saves you from chasing phantom problems when trying to debug an odd hum in a digital audio track, or when designing an interface between a microcontroller and a sensor.

The tool computes the zone boundaries and the modulo math for you, so you can concentrate on the signal chain. Seeing the frequency folding and mirroring inside each Nyquist zone gives you control of how the converter works. As with the helicopter rotor in the movie, knowing the sample rate lets you see through the illusion to real underlying motion. The intangible becomes tangible and the theoretical turns into solid design choices for making your data honest.

Sampling Frequency Aliasing Calculator – Nyquist Zone & Alias