GestureSynth.me

Music calculator

FFT Frequency Resolution Calculator

Calculate FFT bin spacing from sample rate and transform length, with block duration and clear notes on windows and zero padding.

fft frequency resolution calculator

FFT Frequency Resolution Calculator guide

Plan the spacing of an FFT frequency grid before analyzing an audio excerpt. The result gives the distance between bin centers and the duration associated with an equally long acquired block.

Play the instrument ↑
Input reference
Bin spacing Δf = sample rate Fs / FFT length N.

Formula and input units

Bin spacing Δf = sample rate Fs / FFT length N. If all N points are acquired samples, block time T = N / Fs, so Δf = 1 / T. The form accepts a whole-number transform length from 2 to 16,777,216 and a whole-number sample rate.

Worked examples

At 48,000 Hz with N = 4,096, spacing is 11.71875 Hz and a fully acquired block lasts about 85.333333 ms. Increasing N to 8,192 at that rate gives 5.859375 Hz and about 170.666667 ms.

For one-hertz spacing at 48,000 Hz, an FFT length of 48,000 gives a one-second acquired block. A transform length need not be a power of two for the formula, although implementation efficiency and supported sizes depend on the FFT library.

Using the result

Choose a sample rate that represents the signal bandwidth, then compare transform sizes for the intended time span. Longer acquired blocks provide a finer grid and include a longer slice of changing audio. A spectrum of a transient and a spectrum of a sustained tone need different interpretations.

Record the acquired length, FFT length, window function and sample rate when sharing a spectrum. If you zero-pad a shorter acquired record, enter the padded FFT length for grid spacing but keep the original record duration in your analysis notes.

Choose an acquired duration for a spectral question

Suppose two components are ten hertz apart. At 48 kHz with 4,096 acquired samples, the bin grid is about 11.72 Hz apart. A longer record can provide a finer grid, but the selected window and relative component levels still affect whether two peaks appear separately. Treat grid spacing as one design parameter and evaluate the actual spectral response for the signals you need to distinguish.

If you acquire 2,048 samples at 48 kHz and pad to a 16,384-point FFT, the grid spacing is 2.929688 Hz. The original observation lasts only about 42.666667 ms, while 16,384 fully acquired samples would span about 341.333333 ms. The block-duration output on this page explicitly assumes all FFT points were acquired, so retain the shorter acquired duration separately in the padded case.

Overlap changes how often spectra are produced. With a 4,096-sample window and a 1,024-sample hop at 48 kHz, a new block position occurs about every 21.333333 ms. The window itself still spans about 85.333333 ms and the grid stays at 11.71875 Hz. A rapid display update does not imply that each spectrum was derived from only that short hop duration.

For an audio analyzer configuration, record sample rate, acquired length, transform length, window and hop size as separate settings. Check a known test tone near a bin center and then slightly off center. The second test reveals leakage and window behavior that a single exactly centered tone can hide. Use the bin-frequency tool to identify the numerical center of the chosen test bin.

Assumptions and limits

Bin spacing alone does not specify the ability to separate nearby tones. The window main-lobe width, leakage, signal levels and observation duration also matter. A zero-padded FFT samples the existing spectral shape on a denser grid without extending the acquired signal.

This tool performs planning arithmetic and does not run an FFT on an uploaded recording. Use the related bin-frequency calculator to map a particular output index to frequency, including the negative-frequency half of an unshifted DFT.

Answers before you play

Common questions

Is bin spacing the same as resolution bandwidth?

Window choice changes the effective spectral bandwidth. The value here is the mathematical spacing between FFT bin centers.

Does zero padding reveal two unresolved tones?

It increases grid density. Distinguishing nearby components still depends on acquired duration, windowing and signal conditions.

Can N be an odd number?

Yes. The spacing equation applies to positive integer lengths; an odd transform has no bin exactly at Fs/2.

Does overlap change the spacing between bins?

At a fixed sample rate and FFT length, overlap changes the time hop between analyzed blocks. It leaves Fs/N unchanged. Acquired duration, FFT padding, window shape and hop size should be documented as separate parameters.