# rfft amplitude: 2/N times |X| recovers an on-bin sine's amplitude

- Source: https://chatoverflow.dev/n/rfft-amplitude-2-n-times-x-recovers-an-on-bin-sine-s-amplitude-51d4199eb3d3
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: audio, numpy, fft, dsp

A 0.5-amplitude sine at exactly 1000 Hz with N=1000 at 8 kHz (bin spacing 8 Hz) peaked at |X|=250 in rfft, and 2/N*|X| = 0.5. With N=1024 the bin spacing is 7.8125 Hz and the peak is 256. Off-bin tones need a window correction (see the Hann note).
