fft peak interpolation calculator
FFT Peak Interpolation Calculator guide
A strong tone rarely lands exactly at an FFT bin center. Export the magnitude levels for a local peak and its immediate neighbors, keeping them in left-to-right order. Enter the frequency spacing and zero-based index of the middle bin to estimate where the spectral maximum lies.
Play the instrument ↑- Default result
- 1000 Hz estimated peak
Calculation and units
Let a, b and c be the three levels in decibels. The vertex offset in bins is half of (a − c) divided by (a − 2b + c). Add that offset to the middle index and multiply by the spacing. The fitted height is b minus one quarter of (a − c) times the offset.
Worked examples
Select a named case in the Worked example control to load these values. You can then edit any input to compare the result.
Symmetric neighbors
Bin spacing (Hz) = 10 · Middle bin index = 100 · Left bin (dB) = -12 · Middle bin (dB) = -6 · Right bin (dB) = -12.
1000 Hz estimated peak. Offset 0 bins · fitted peak level -6 dB. A three-point parabola fitted to log magnitudes.
Equal neighboring levels place the fitted vertex at the middle bin. This symmetric triplet is the simplest way to verify the frequency axis.
Right neighbor closer
Bin spacing (Hz) = 10 · Middle bin index = 100 · Left bin (dB) = -12 · Middle bin (dB) = -6 · Right bin (dB) = -8.
1002.5 Hz estimated peak. Offset 0.25 bins · fitted peak level -5.75 dB. A three-point parabola fitted to log magnitudes.
The fitted maximum moves toward the stronger right side. Inspect the signed offset before multiplying by spacing so a reversed bin ordering is obvious.
Left neighbor closer
Bin spacing (Hz) = 10 · Middle bin index = 100 · Left bin (dB) = -8 · Middle bin (dB) = -6 · Right bin (dB) = -12.
997.5 Hz estimated peak. Offset -0.25 bins · fitted peak level -5.75 dB. A three-point parabola fitted to log magnitudes.
Swapping only the two side measurements reverses the offset while preserving peak height. This is a useful check on the ordering of exported data.
Two equal maxima
Bin spacing (Hz) = 10 · Middle bin index = 100 · Left bin (dB) = -12 · Middle bin (dB) = -6 · Right bin (dB) = -6.
1005 Hz estimated peak. Offset 0.5 bins · fitted peak level -5.25 dB. A three-point parabola fitted to log magnitudes.
A tie with the right neighbor puts the fitted peak halfway between them. Flat plateaus extending farther need more spectral context.
Finer frequency grid
Bin spacing (Hz) = 2 · Middle bin index = 100 · Left bin (dB) = -12 · Middle bin (dB) = -6 · Right bin (dB) = -8.
200.5 Hz estimated peak. Offset 0.25 bins · fitted peak level -5.75 dB. A three-point parabola fitted to log magnitudes.
The same relative levels produce the same offset in bins. A smaller frequency interval makes that offset correspond to fewer hertz.
Different level reference
Bin spacing (Hz) = 10 · Middle bin index = 100 · Left bin (dB) = -32 · Middle bin (dB) = -26 · Right bin (dB) = -28.
1002.5 Hz estimated peak. Offset 0.25 bins · fitted peak level -25.75 dB. A three-point parabola fitted to log magnitudes.
Subtracting a constant from all three levels shifts the fitted height by that constant. It should leave the estimated frequency unchanged.
Interpreting the result
Select an isolated lobe and confirm the middle bin reaches at least the neighboring levels. Inspect the sign first. A stronger right neighbor moves the estimate toward a higher frequency. The output retains the original level reference whether your analyzer displays relative decibels or dBFS.
Measurement and model limits
The approximation uses the local shape of a windowed peak. Overlapping tones, coarse spacing, leakage and background noise can bias the fitted vertex. A flat triplet has no unique vertex. At DC or the last usable bin you may lack a neighboring spectral sample.
Music theory tools → · FFT Bin Frequency Calculator → · Julius O. Smith on quadratic peak interpolation →
Answers before you play
Common questions
Should I enter linear FFT magnitudes?
Convert all three positive magnitudes to a common decibel scale before entry. The model fits those logarithmic values directly.
Does this increase true resolution?
It refines the location estimate for a resolved peak. Two nearby tones can remain indistinguishable even when the displayed estimate has many decimal places.
What if two neighboring bins tie?
A tie between the middle bin and one neighbor places the vertex halfway between them if the third bin is lower.
How do I obtain bin spacing?
Divide sample rate by FFT length for a conventional uniformly sampled transform. A zero-padded FFT changes that bin grid.