ifft

ifft(x)

Try it yourself:

See also:
fft

Return to samples with ifft

ifft(x) computes the inverse fast Fourier transform. It converts complex frequency coefficients back into a time- or index-domain sequence, reversing the operation performed by fft.

Round-trip example

Transform a sample sequence with fft, then pass the result to ifft. The reconstructed values should match the original apart from small floating-point imaginary residues or rounding differences. Use re when a theoretically real reconstruction displays negligible imaginary noise, and abs to inspect spectral magnitudes before inversion.

Conventions matter

IFFT expects coefficients in the matching ordering and normalization convention. Do not edit, sort, or truncate bins without understanding the resulting signal change. Frequency filtering is commonly performed by transforming, modifying selected coefficients, then inverting; freqz instead analyzes a filter’s designed response.

Input caveats

The input should be a compatible numeric/complex sequence. Result length and sample-rate interpretation come from the original transform setup, not from ifft alone. Preserve dimensions and avoid assuming that a real-looking spectrum guarantees a real output unless conjugate symmetry is present.

Try Ifft in Calcul.io

Start with one of the editable examples above, then replace its arguments with your own values. Keeping the function on a separate calculator line makes the input and result easy to compare. For a longer workflow, assign the result to a variable or reference that line in the next expression.

Check the shown signature before adding optional arguments, and use the related-function links to compare operations with similar purposes.

All functions