Window Function Bandwidth Calculator Formula
Understand the math behind the window function bandwidth calculator. Each variable explained with a worked example.
Formulas Used
Rectangular ENBW
rect_enbw = bin_width * 1.0Hann ENBW
hann_enbw = bin_width * 1.5Hamming ENBW
hamming_enbw = bin_width * 1.36Blackman ENBW
blackman_enbw = bin_width * 1.73Flat Top ENBW
flat_top_enbw = bin_width * 3.77Bin Width (no window)
bin_width_out = bin_widthVariables
| Variable | Description | Default |
|---|---|---|
sample_rate_hz | Sampling Rate(Hz) | 48000 |
fft_size | FFT Size | 1024 |
bin_width | Derived value= sample_rate_hz / fft_size | calculated |
How It Works
Window Function Bandwidth
Window functions reduce spectral leakage but widen the effective frequency resolution.
Equivalent Noise Bandwidth (ENBW)
ENBW = Bin Width x ENBW Factor
ENBW factors for common windows:
The choice of window balances frequency resolution against spectral leakage. No window is universally best.
Worked Example
1024-point FFT at 48 kHz comparing window functions.
sample_rate_hz = 48000fft_size = 1024
- 01Bin width: 48,000 / 1,024 = 46.875 Hz
- 02Rectangular ENBW: 46.875 x 1.0 = 46.88 Hz
- 03Hann ENBW: 46.875 x 1.5 = 70.31 Hz
- 04Blackman ENBW: 46.875 x 1.73 = 81.09 Hz
Ready to run the numbers?
Open Window Function Bandwidth Calculator