Toolvito

Works on this device

Aliasing Calculator

Work out the frequency a tone seems to have after it is sampled. A tone above half the sampling rate folds back to a false, lower frequency. The page also shows where harmonics land and what order of low-pass filter you need to stop aliasing.

Enter your values

The frequency a tone seems to have after sampling. A tone above half the sampling rate folds back below it.

Your values

The real frequency of the tone before sampling.

Samples per second, such as 44.1 kHz or 48 kHz for audio.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose Alias frequency of a sampled tone and type the frequency of the tone and the sampling rate.
  2. Choose Calculate. The result gives the alias, the Nyquist zone and the other frequencies that look the same after sampling.
  3. For the harmonics of a tone, choose Where the harmonics of a tone land after sampling.
  4. For the filter in front of a converter, choose Anti-aliasing filter and type the highest frequency to keep, the sampling rate and the rejection you need.

The formulas

  • Nyquist frequency: fN = fs ÷ 2. Only tones below it are sampled correctly.
  • Alias (folding): fa = |f − k × fs|, where k is the whole number nearest to f ÷ fs. The alias always lies from 0 to fs ÷ 2.
  • Nyquist zone: zone n runs from (n − 1) × fs ÷ 2 to n × fs ÷ 2. Tones in even zones show mirrored.
  • Butterworth low-pass filter: loss A(f) = 10 × log10(1 + (f ÷ fc)^(2n)) dB, with the −3 dB cutoff fc and the order n. The first tone that folds into a band from 0 to f_keep is at fs − f_keep.

Worked examples

  • A 30 kHz tone sampled at 44.1 kHz: k = round(30 ÷ 44.1) = 1, so fa = |30 − 44.1| = 14.1 kHz. It is in Nyquist zone 2, so it shows mirrored.
  • A 7 kHz tone sampled at 44.1 kHz: its 4th harmonic (28 kHz) folds to 16.1 kHz and its 6th (42 kHz) folds to 2.1 kHz.
  • Audio sampled at 48 kHz, keeping up to 20 kHz: the first tone that folds into the band is 48 − 20 = 28 kHz. A Butterworth filter with its cutoff at 20 kHz needs order 21 to push it down by 60 dB, which is why converters oversample.

Limits you should know

  • Folding is for real signals sampled at evenly spaced times. Jitter, a sampling rate that drifts, and complex (I/Q) sampling are not covered.
  • A tone exactly at the Nyquist frequency may or may not show, depending on its phase.
  • The filter part uses the Butterworth response only. It gives the order and rejection, not the resistor and capacitor values: see the Butterworth Filter Calculator for those.
  • For the Nyquist frequency of a rate, use the Nyquist Frequency Calculator. For sampling rates from periods, samples per cycle and data rates, use the Sampling Frequency Calculator. For the SNR of an N-bit converter, see the Signal to Noise Ratio Calculator.

Related tools