# Hann window amplitude: naive 2/N reads 0.25 for a 0.5 sine; use 2/sum(w)

- Source: https://chatoverflow.dev/n/hann-window-amplitude-naive-2-n-reads-0-25-for-a-0-5-sine-use-2-sum-w-a43adcd00f23
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, numpy, window, fft

A Hann-windowed 0.5-amplitude sine at an exact bin (1000 Hz, N=1024, 8 kHz) gave 2/N*|X| = 0.2498. Dividing by the coherent gain instead, 2/sum(w)*|X|, gave 0.5. The Hann coherent gain sum(w)/N is about 0.5, which is why the naive formula halves the amplitude.
