LISTEN · MEASURE · UNDERSTAND

Sample Rate and Spectrogram Frequency Limits

Calculate a spectrogram’s Nyquist frequency from its sample rate. Read frequency limits and understand resampling, display bounds and aliasing.

The Nyquist frequency is half the sample rate. For conventional audio sampling, the band that can be represented unambiguously lies below that boundary. At 48 kHz, it sits at 24 kHz. The displayed range can end lower because of viewer settings. Real recordings often contain less usable high-frequency content because of their source, microphones, filtering or encoding.

Calculate the Nyquist Frequency From the Analysis Rate

Use Nyquist frequency = sample rate ÷ 2. A 44.1 kHz analysis has a 22.05 kHz Nyquist frequency. A 48 kHz analysis has a 24 kHz boundary. Find the rate of the samples the viewer analyzed, especially when a browser decodes a file to a new rate.

Analysis sample rate Nyquist frequency Meaning for the frequency axis
16 kHz 8 kHz No separate usable band above the boundary
22.05 kHz 11.025 kHz Boundary of the sampled region
44.1 kHz 22.05 kHz Common audio-file example
48 kHz 24 kHz Common browser and production example
96 kHz 48 kHz Boundary if data are analyzed at this rate

Different FFT implementations can expose different endpoints. For example, a positive-frequency list may stop a bin below the theoretical boundary. Calculate with the actual rate and FFT grid. The FFT resolution guide shows how to convert a bin index to its frequency.

Separate the Analysis Rate From the Original File Rate

Some browser decoding paths resample a file to the rate of the audio context. A WAV tagged 44.1 kHz can be analyzed at 48 kHz. The new grid can extend to 24 kHz. Upsampling cannot recover real high-frequency content that the original samples never contained.

When reading an MP3, remember that encoding choices can also remove or change parts of the spectrum long before browser analysis. See how to view an MP3 spectrogram for a matched comparison. If you need to explain a result, save both the original file rate and the rate used in the spectrogram when available.

Check the Viewer Limit Separately

Open the spectrogram viewer with frequency bounds and inspect its minimum and maximum settings. A file analyzed at 48 kHz can appear in a plot limited to 8 kHz. Raising that display limit reveals a wider part of the analysis. It does not change the underlying input or recreate content above the analysis Nyquist boundary.

A log axis also needs a positive lower bound, and the display can aggregate frequencies into rows. The guide to linear and log frequency scales explains why two plotted ranges can look different while using the same analyzed data.

Understand When Aliasing Can Occur

A frequency beyond Nyquist can be represented as a lower one when it reaches a sampled system without enough filtering. For a simple example, a 26 kHz sine sampled at 48 kHz can appear at 22 kHz. Filtering before digitization or appropriate filtering before downsampling helps suppress such foldover.

A mysterious line near 22 kHz is only an observation. Check original file settings, processing history and whether the line appears in a known setup. Avoid using a potentially out-of-range playback tone to diagnose a consumer speaker. A moderate reference in the usable band, as described in the known-tone test guide, is enough to confirm basic mapping.

Keep Rate, Range and Resolution Distinct

At the same FFT length, raising sample rate puts bins farther apart and reduces the duration covered by the given number of samples. A waveform sampled 48,000 times per second offers a wider possible band than one sampled at 16,000. A wider band alone does not imply finer precision for two low-frequency peaks.

Check the rate, window length, FFT length and displayed range as separate labels. When you compare two files, use a shared analysis rate and visible range where possible. If a comparison uses different rates, document what those rates change and where the actual recorded content ends.

Use the Same Frequency Band Across Different Files

When comparing a 16 kHz file with a 48 kHz file, start below both Nyquist limits. For example, compare their energy from 0 to 7 kHz before inspecting the wider file separately. Keep the same visible frequency range for the shared comparison and label the wider analysis as its own view.

Frequently Asked Questions

Why does my 48 kHz audio show frequencies only to 20 kHz?

The viewer can use display limits below the 24 kHz Nyquist boundary. The original source, codec or input filter can also leave that region nearly empty. Check axis limits, playback source and analysis rate separately.

Can I recover missing high frequencies by converting the file to 96 kHz?

Conversion can create a denser time grid and a higher analysis boundary. It cannot recover the original high-frequency information that was removed or never captured. Keep the original version for comparison.

Does a higher sample rate give finer FFT spacing?

At the same FFT length, a higher sample rate produces wider bin spacing. Increase the real window length when you need a longer observation of closely spaced steady frequencies, then choose an FFT length that suits the analysis.