How to use this calculator
Find FFT bin spacing and the nearest nonnegative-frequency bin to a target.
- Enter Sampling rate (Hz), FFT length, Target frequency (Hz). Match the units shown beside each field and review the result together with the assumptions below.
- Read the worked example below to check the expected input format and result.
- Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
FFT bin spacing and nearest bin explained
Use Sampling rate (Hz) with FFT length to reproduce the sample calculation, then review the stated limits before carrying the result into another scenario.
How the calculation works
s/n
Bin spacing is not the same as window-limited frequency resolution; the target must lie within Nyquist..
Set up the calculation
s— Sampling rate (Hz)- Sampling rate (Hz).
n— FFT length- FFT length. Enter a whole number.
f— Target frequency (Hz)- Target frequency (Hz).
Limits of this model
Bin spacing is not the same as window-limited frequency resolution; the target must lie within Nyquist.
Check this example
Sampling rate (Hz) = 48000; FFT length = 4096; Target frequency (Hz) = 1000.
- FFT bin spacing: 11.71875 Hz
- Nearest bin index: 85
- Nearest bin frequency: 996.09375 Hz
Displayed values are rounded only after calculation.
Frequently asked questions
Does zero padding add information?
No, it interpolates the sampled spectrum.
Can n be non-power-of-two?
The spacing formula still applies.
Will a nearby tone leak?
Yes, windowing and bin alignment matter.
How do I use the FFT bin spacing and nearest bin calculator?
Enter Sampling rate (Hz), FFT length, Target frequency (Hz). Match the units shown beside each field and review the result together with the assumptions below.
What is a worked example of FFT bin spacing and nearest bin?
Sampling rate (Hz) = 48000; FFT length = 4096; Target frequency (Hz) = 1000. FFT bin spacing: 11.71875 Hz Nearest bin index: 85 Nearest bin frequency: 996.09375 Hz Displayed values are rounded only after calculation.
Read our calculation methodology.