Bin width, resolution and the zero-padding illusion
The spacing between FFT bins is fixed by the sample rate and the number of samples: Δf = fs/N. At 48 kHz, N = 2048 gives 23.4 Hz per bin, so a peak can only be placed on that grid unless something is done about it. Two things are often confused: where the peak is reported, and how close two tones can be before they merge.
| N at 48 kHz | Δf | Frame length | Useful for |
|---|---|---|---|
| 512 | 93.8 Hz | 10.7 ms | fast display, broad features |
| 1 024 | 46.9 Hz | 21.3 ms | speech, transients |
| 2 048 | 23.4 Hz | 42.7 ms | general analysis |
| 4 096 | 11.7 Hz | 85.3 ms | close tones, low noise |
Resolution is set by time
The ability to separate two frequencies is set by how long you observe them, not by how finely you sample the spectrum. A 42.7 ms record cannot tell a 440 Hz tone from a 450 Hz one no matter how the bins are labelled: the two tones differ by 0.43 cycles over the record, which is not a distinguishable phase difference. To separate them you need a longer record, and that is the only way.
Δf_min ≈ 1/T = fs/N (rectangular), ≈ 2·fs/N or more with a tapered window
Zero padding
Appending zeros before the transform increases N and shrinks Δf, and the spectrum becomes smoother — but it is interpolation of the same information, not new information. A zero-padded spectrum of a 42.7 ms record is a finely sampled version of the same smeared peak. It is genuinely useful for locating a single peak (the interpolated maximum is easier to find) and for aligning bins for display, and genuinely misleading if it is presented as a resolution improvement.
Rule of thumb: zero padding to four times N makes a peak easy to read; padding to sixty-four times N adds nothing but file size.
Time-frequency trade
A longer frame gives finer frequency resolution and coarser time resolution, because the frame averages over its whole length. A click at 20 ms into a 42.7 ms frame is smeared over the entire frame. That is why the spectrogram in the studio uses a shorter frame than the spectrum display: it is optimised for seeing when something happened, not exactly what frequency it was.
Reading the readouts together
In the analyzer, the 'bin width' readout is arithmetic and the 'peak frequency' readout is interpolated. Compare them: with N = 512 the bin is 93.8 Hz wide yet the peak reads within a few hertz, because the interpolation fits the shape of the main lobe rather than believing the grid. The '−3 dB bandwidth' readout, by contrast, cannot be finer than one bin and is honest about it.
Questions
Does a bigger FFT always give a better spectrum?
It gives a finer grid and, if the extra points come from real samples, better resolution. If they come from zero padding, only a denser grid. Both can be useful; only one adds information.
Why does my 1 Hz resolution setting show 10 Hz-wide peaks?
Because the window's main lobe is several bins wide. A resolution of 1 Hz per bin with a four-bin Hann lobe means features about 4 Hz wide, and any real tone spreads over at least that.
Hold 440 Hz and 450 Hz, then move N from 512 to 4096 and watch the two peaks separate only when the record is long enough.
Open the studioWritten from standard Fourier analysis, digital signal processing and acoustics; the worked numbers can be reproduced in the studio linked above.
Back to the guides