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.
- 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
Frequently Asked Questions
Which window should I use?
Hann is a good general-purpose choice. Use rectangular for transients, flat-top for amplitude accuracy, and Blackman for maximum sidelobe rejection.
What is ENBW?
Equivalent Noise Bandwidth is the width of an ideal rectangular filter that would pass the same noise power as the window.
Does the window affect measurement accuracy?
Yes. Wider ENBW means more noise in each bin. Flat-top windows have wide ENBW but give the most accurate amplitude readings.
Ready to run the numbers?
Open Window Function Bandwidth Calculator