FFT Bin Resolution & Spectral Analysis Calculator
Calculate FFT frequency bin resolution, Nyquist range, time record length, and scalloping loss. Design spectral analysis parameters for DSP systems. Free, instant results.
Bin width fs/N · tabulated window scalloping loss · N/2 gainAPI slug fft-bin-resolution
Inputs
Frequency plan
The tone and its sidebands, nearest the band first
resolved when k·Δ > B₆dB = b₆·f_s/N| Frequency | f₀ ± kΔ | Order | Δ to band | Note | Status |
|---|---|---|---|---|---|
| 1 000.0 | f₀ | 0 | in band | — | DESIRED |
| 900.0 | f₀ − Δ | 1 | −13.9 | — | OK |
| 1 100.0 | f₀ + Δ | 1 | +13.9 | — | OK |
| 800.0 | f₀ − 2Δ | 2 | −113.9 | — | OK |
| 1 200.0 | f₀ + 2Δ | 2 | +113.9 | — | OK |
| 700.0 | f₀ − 3Δ | 3 | −213.9 | — | OK |
| 1 300.0 | f₀ + 3Δ | 3 | +213.9 | — | OK |
- Frequency Range (Nyquist)fN
- 22.05kHz
- Time Record LengthT
- 23.22ms
- FFT Processing GainGproc
- −27.1dB
- Tone Positionf₀/Δf
- 23.22bins
Formula
| Symbol | Quantity | Your value |
|---|---|---|
| Δf | Frequency bin resolution (Hz) | 43.07 Hz |
| fs | Sample rate (Hz) | 44.1 kHz |
| N | FFT size (number of points) | 1 024 points |
| T | Time record length (N/f_s) (s) | 23.22 ms |
Assumptions
5 items
- 01The bin width is f_s/N and the record N/f_s; the range is 0 to f_s/2.
- 02The windows are sums of cosines (rectangular; Hann 0.5, 0.5; Blackman 0.42, 0.5, 0.08), whose large-N transforms give the 6 dB bandwidths 1.2067, 2 and 2.2988 bins and the scalloping losses 3.92, 1.42 and 1.10 dB (Harris, 1978, lists 1.21 and 2.00 bins for the first two, and 2.35 for the Blackman, wider than its transform gives).
- 03Two equal tones closer than the 6 dB bandwidth show one peak (Harris's criterion): a neighbour of the tone within it is unresolved and fails.
- 04The tone level error is how low the nearest bin reads the tone, from the window's transform at the tone's distance from that bin; a tone above f_s/2 is not on the bins and has none.
- 05The noise floor is −10·log₁₀(N/2), the processing gain of an N-point transform; leakage from strong tones elsewhere and the window's equivalent noise bandwidth are not included.
Worked example
50 Hz hum around a 1 kHz tone in 512 points
A 1 kHz test tone carries 50 Hz hum sidebands, analysed in 512 points at 48 kSa/s with a Blackman window. Do the sidebands show as their own peaks?
| Step | Expression | Result |
|---|---|---|
| Bin width | 48 000 / 512 | 93.75 Hz |
| Record length | 512 / 48 kHz | 10.67 ms |
| Resolution bandwidth (Blackman) | 2.2988 × 93.75 Hz | 215.5 Hz |
| Sidebands that merge | ±k × 50 Hz < 215.5 Hz, k = 1…3 | 6 |
| Tone position in bins | 1 000 / 93.75 | 10.67 bins |
| The tone between bins | −20·log10|W(δ)|, δ = 10.67 − round(10.67) | 0.5 dB |
How it works
The FFT Bin Resolution Calculator computes frequency resolution and spectral analysis parameters — essential for spectrum analyzer design, vibration analysis, and audio frequency measurement. DSP engineers, test equipment developers, and acoustic engineers use this to configure FFT parameters for optimal frequency discrimination. Per Oppenheim "Discrete-Time Signal Processing" (3rd ed., Ch. 8), frequency resolution df = fs/N, where fs = sampling rate and N = FFT length. A 1024-point FFT at 44.1 kHz yields 43.1 Hz resolution. Doubling N halves resolution but doubles computation (O(N*log2(N)) per Cooley-Tukey algorithm). Per Harris (1978), windowing reduces spectral leakage at cost of 1.5-2x wider main lobe — Hann window has 1.5 bin equivalent noise bandwidth. Modern FFT analyzers use 4096-16384 points achieving 0.1-1 Hz resolution in audio band.
Practical tips
- Per Harris (1978), always apply window function — rectangular window causes -13 dB sidelobes; Hann achieves -31 dB
- Zero-padding interpolates between bins (smoother display) but does not improve true resolution per Oppenheim
- Use 50% overlap for continuous analysis — recovers SNR loss from windowing per Welch method (1967)
- For real-time audio, N=4096 at 48 kHz yields 11.7 Hz resolution with 85 ms latency — acceptable for most applications
Common mistakes
- Confusing bin resolution with frequency accuracy — resolution is fs/N but accuracy depends on bin interpolation and SNR
- Not understanding window tradeoffs — Hann widens main lobe 1.5x but reduces leakage 18 dB vs. rectangular per Harris
- Assuming zero-padding creates new information — it interpolates existing spectrum, not reveals hidden frequencies
Frequently asked questions
3 questions
How does sample count affect FFT bin resolution?
Resolution = fs/N: doubling samples halves bin width. At 48 kHz: N=1024 yields 46.9 Hz, N=4096 yields 11.7 Hz, N=16384 yields 2.93 Hz resolution. Per Cooley-Tukey, computation scales as O(N*log2N): 16384-point FFT requires 4x more computation than 4096-point.
What is the Nyquist frequency?
Maximum unambiguous frequency = fs/2 per Shannon theorem. For 44.1 kHz sampling: fNyquist = 22.05 kHz. FFT bins 0 to N/2 span DC to Nyquist. Per Oppenheim, frequencies above fs/2 alias into lower bins — always use anti-aliasing filter before sampling.
Can I improve resolution without increasing sample count?
Zero-padding (adding zeros to signal) interpolates between existing bins for smoother display but does not reveal frequencies closer than fs/N_original per Oppenheim Ch. 8. True resolution improvement requires longer acquisition time or narrower analysis bandwidth (zoom FFT technique).
Shop Components
As an Amazon Associate we earn from qualifying purchases.