# ifft() Function & Examples

Use the ifft() matrix function in Calcul.io. Review its syntax, edit working examples, understand the result, and explore related math functions.

## ifft

#### ifft(x)

Try it yourself:

```calculio
ifft([[2, 2], [0, 0]])
```

[fft](https://calcul.io/function/fft/index.md)

---

## 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](https://calcul.io/function/fft/index.md).

## 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](https://calcul.io/function/re/index.md) when a theoretically real reconstruction displays negligible imaginary noise, and [abs](https://calcul.io/function/abs/index.md) 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](https://calcul.io/function/freqz/index.md) 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.

[All functions](https://calcul.io/functions/index.md)
