The guide
A tone above half the sample rate does not vanish, it folds back and lands somewhere else
Sampling cannot see past half its own rate, so a faster tone is not lost: it reappears as a lower one. That one rule explains whistling harmonics, filters and bit depth.
- 22,050 Hz Nyquist frequency at 44,100 samples a second
- 14,100 Hz where a 30,000 Hz tone lands at that rate
- 98.09 dB dynamic range of a full-scale sine at 16 bits
- 6.02 dB gained for each extra bit, about
- 10,584,000 bytes in one minute of 16-bit stereo at 44.1 kHz
Read the full guide Fold the guide
Sample a 30,000 Hz tone at 44,100 samples a second and the numbers that come out describe a tone at 14,100 Hz. Play them back and 14,100 Hz is what you hear. The original has not been lost. It has been moved. That surprises people, because the obvious guess is that a recorder simply misses what it cannot follow, the way a net misses a minnow. Sampling is not a net. It reads a wave at evenly spaced instants, and many different waves pass through exactly the same readings.
Why a fast tone folds back
For a given sample rate, the Nyquist frequency is half of it: the frequency whose period is twice the gap between samples. At 44,100 samples a second that is 22,050 Hz. Anything below it is recorded without ambiguity. Anything above it is not, and the damage has a name, aliasing.
A sampled cosine at frequency f gives exactly the same samples as cosines at |f + N fs| for every whole number N, where fs is the sample rate. Those are the aliases of f. The usual way of rebuilding a wave from its samples picks the lowest of them. The Nyquist condition, fs / 2 greater than |f|, is what makes the lowest one the true one.
Finding the alias takes one subtraction. Remove the nearest whole number of sample rates from the tone and drop the sign. For 30,000 Hz at 44,100 Hz the nearest whole number is 1, since 30,000 divided by 44,100 is about 0.68. Then 30,000 minus 44,100 is minus 14,100, and without its sign that is 14,100 Hz. The same rule gives 19,100 Hz for a 25,000 Hz tone at 44,100 Hz, and 18,000 Hz for a 30,000 Hz tone at 48,000 Hz. A tone exactly at the sample rate lands at 0 Hz. Every sample is then the same value, so the tone leaves only a constant offset and no sound at all.
Picture the frequency axis as a ribbon running from 0 to fs, folded at its middle like a hairpin. A tone on the second arm lies directly across from its alias on the first. The fold sits at half the rate, which is why the Nyquist frequency is also called the folding frequency.
The fold itself is a special case worth knowing. A tone exactly at half the rate is its own alias, yet its samples alternate in sign and their size depends on the phase, so a sine can vanish entirely while a cosine of the same frequency does not. Careful statements of the sampling theorem therefore ask for a rate strictly above twice the highest frequency. To keep a 20,000 Hz tone you need more than 40,000 samples a second, not exactly that many.
Why bright waveforms whistle
Real sounds are rarely one tone. A sawtooth wave contains every whole-number harmonic of its fundamental, and the k-th harmonic carries 1/k of the fundamental’s amplitude. That slow fall-off is what makes the wave bright, and it is also the trouble.
Digital synthesis of a sawtooth sums only the harmonics that stay below the Nyquist frequency, for exactly this reason. A version that sums them all, or a bright wave recorded with nothing to stop the high harmonics, lets the ones above the limit fold.
Take a 5,000 Hz sawtooth sampled at 44,100 Hz. Harmonics 1 to 4 sit at 5,000, 10,000, 15,000 and 20,000 Hz and stay where they are. Harmonic 5 would be 25,000 Hz and folds to 19,100 Hz. Harmonic 6, at 30,000 Hz, folds to 14,100 Hz. Harmonic 7, at 35,000 Hz, folds to 9,100 Hz. Harmonic 8 folds to 4,100 Hz, and harmonic 9, at 45,000 Hz, folds to 900 Hz.
Not one of those five is a whole multiple of 5,000 Hz. The series that was a tidy ladder is now a scatter of unrelated pitches, and the ear hears them as an inharmonic whistle rather than as a brighter note. Raise the fundamental and each folded harmonic slides down as the pitch goes up. The folded harmonics are quieter than the fundamental, since harmonic 5 carries only a fifth of its amplitude. Quieter is not silent. A fifth of the amplitude is about 14 dB down, and in a quiet passage that is plainly audible.
Why a filter has to come first
Once a tone has folded it cannot be unfolded. The 14,100 Hz in the recording is indistinguishable from a real 14,100 Hz tone, so the cure has to act before sampling. An anti-aliasing filter restricts the bandwidth of the signal ahead of the sampler, so that nothing above the limit reaches it.
A perfect brick-wall filter that passes everything below a frequency and nothing above is an idealisation and cannot be built. A real filter needs room between the highest frequency worth keeping and the Nyquist frequency. Hearing is usually quoted as running from 20 to 20,000 Hz. At 44,100 Hz that leaves 22,050 minus 20,000, which is 2,050 Hz, for the filter to fall away in.
Sampling at a rate well above the Nyquist rate, called oversampling, makes the analog filter easier to build, because the room it needs grows. That is one reason rates such as 48,000, 88,200 and 96,000 Hz exist beside 44,100 Hz. The Library of Congress format description notes that audio CDs use 44.1 kHz with 16-bit samples, while digital audio tape used 48 kHz and 16 bits. The CD rate itself was adapted from an earlier way of recording digital audio on videotape. It was chosen for those practical reasons, not derived from a law of nature, which is why 44,100 looks arbitrary next to 40,000.
Bits, decibels and a minute of sound
Sampling limits the highest frequency. The number of bits limits the quietest detail. Quantisation rounds each sample to the nearest level, and the rounding error behaves like a faint hiss. For a full-scale sine the signal to quantisation noise ratio is about 1.761 plus 6.02 times the number of bits, in decibels.
So each extra bit buys about 6.02 dB. The exact figure is 20 log10 of 2, which is 6.0206 dB. The more careful form is 20 log10 of the square root of 1.5 times 2 to the power of the number of bits. The square root of 1.5 appears because it compares the effective size of a full-scale sine with that of rounding error spread evenly across one step.
The numbers are worth carrying: 8 bits give 49.93 dB, 16 bits give 98.09 dB and 24 bits give 146.26 dB. The rounded 6.02 N + 1.76 form gives 98.08 at 16 bits, a hundredth away. The bare 6.02 N gives 96.3, and the difference is just that a full-scale sine is a little more favourable than a triangle or a sawtooth.
These are ceilings for an ideal quantiser, not what a converter delivers. The audio bit depth page puts the practical limit of converter technology near 123 dB as of 2011, well under what 24 bits could encode in principle. Dither, noise shaping and oversampling can shift the audible noise without changing the bit depth.
Pulse-code modulation, the usual encoding of uncompressed digital audio, stores one rounded sample per channel per tick. Its data rate is therefore just a product: samples per second times bits per sample times channels. For CD audio that is 44,100 x 16 x 2, which is 1,411,200 bits per second.
Divide by 8 for bytes and multiply by 60. One minute of 16-bit stereo at 44.1 kHz is 10,584,000 bytes, about 10.1 mebibytes. One hour of 24-bit stereo at 48 kHz is 2,304,000 bits per second, or 1,036,800,000 bytes. A telephone-grade stream of 8,000 samples a second at 8 bits and one channel is 64,000 bits per second. These counts hold only the samples. They add no file header, no tags and no compression, and a real file is a little larger.
What the arithmetic cannot do
Everything above describes an ideal tone meeting an ideal sampler. It does not model a real filter’s slope, the folding of noise, a tone whose frequency drifts, or timing jitter, and it says nothing about what an ear will make of a given alias. It folds frequencies, not audio files.
The page works in exact fractions, so a decimal rate such as 44.1 never picks up rounding error, and it checks its own fold by a separate route. It samples a cosine, windows the samples, takes a fast Fourier transform and compares the strongest bin with the alias. Long lists run in a background worker, so typing stays smooth.
Try 30,000 Hz at 44,100 Hz first, then the harmonic table for 5,000 Hz. The two numbers to remember are 22,050 Hz, the limit, and 14,100 Hz, where one tone beyond it went instead.
Sources
Every source consulted for this guide. Links checked November 10, 2026.
- Aliasing Wikipedia (CC BY-SA)
- Nyquist frequency Wikipedia (CC BY-SA)
- Nyquist-Shannon sampling theorem Wikipedia (CC BY-SA)
- Quantization (signal processing) Wikipedia (CC BY-SA)
- Audio bit depth Wikipedia (CC BY-SA)
- Anti-aliasing filter Wikipedia (CC BY-SA)
- Oversampling Wikipedia (CC BY-SA)
- Sampling (signal processing) Wikipedia (CC BY-SA)
- Sawtooth wave Wikipedia (CC BY-SA)
- Pulse-code modulation Wikipedia (CC BY-SA)
- Compact Disc Digital Audio Wikipedia (CC BY-SA)
- Linear Pulse Code Modulated Audio (LPCM) Library of Congress, Digital Formats
- Web Workers API MDN Web Docs (CC BY-SA)