Unexpectedly, there is no single consistent definition for FFT and IFFT, at least with respect to scaling, but for most implementations (including FFTW) you need to scale 1 / N in the forward direction, and there is no scaling in the opposite direction.
Usually (for performance reasons) you will want to combine this scaling factor with any other corrections, such as A / D gain, window coefficient correction factor, etc., so that you only have one combined scaling factor to apply to your FFT outputs . Alternatively, if you simply generate, say, a power spectrum in dB, you can make a correction of one dB, which you subtract from your power spectrum blocks.
source share