Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

A fast Fourier transform (FFT) is an algorithm for calculating the discrete Fourier transform (DFT) of a finite sequence efficiently. The DFT represents the sequence in terms of frequency components; an FFT computes that same representation with fewer operations. In short, the DFT is the transform, and the FFT is a family of faster ways to calculate it.

What does a fast Fourier transform do?

A DFT takes a finite list of samples and describes it in terms of frequency components. Each output value indicates how much of a particular frequency is present in the sampled sequence. FFT algorithms calculate those DFT outputs while reusing structure in the calculation instead of evaluating every output from scratch.

The distinction matters: an FFT does not produce a different kind of transform from a DFT. It is an efficient method for computing the DFT. IEEE describes the FFT as computing the DFT with fewer arithmetic operations than direct evaluation (IEEE Technology Navigator).

Why is an FFT faster than direct DFT calculation?

For a sequence of length N, direct evaluation of the DFT takes on the order of N squared operations, written O(N²). Common FFT algorithms reduce the growth to O(N log N). These are asymptotic operation counts, not a guaranteed wall-clock speedup for every input, implementation, or device. MIT OpenCourseWare summarizes the FFT as an O(N log N) algorithm for computing the DFT (MIT OpenCourseWare).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How does the Cooley–Tukey FFT work?

A common explanation uses the radix-2 Cooley–Tukey algorithm. Rather than process all samples together, it separates the input into samples at even indices and samples at odd indices. It computes smaller DFTs for those two groups, then combines their results using operations often called butterflies. Repeating the split creates smaller subproblems; each stage does work proportional to the sequence length, and the number of stages grows logarithmically. This divide-and-conquer structure yields the O(N log N) operation count (Carnegie Mellon University).

Does an FFT require a power-of-two number of samples?

No. The simple radix-2 version is designed for power-of-two sequence lengths, but FFT is a family of algorithms. Mixed-radix methods and other approaches can handle lengths that are not powers of two, including prime lengths. The best method depends on the length and implementation (IEEE, “Fast Fourier transforms”).

Where are FFTs used?

FFTs are widely used when digitized data needs to be analyzed or processed in terms of frequency. A spectrum analyzer, for example, can apply FFTs to successive windowed segments of a signal to display frequency components. Windowing helps reduce spectral leakage, the spreading of energy across frequency components when analyzing a finite segment. FFTs also appear in numerical methods, including methods for integration and partial differential equations (IEEE Technology Navigator; MIT OpenCourseWare).

FFT and DFT compared

Aspect Direct DFT calculation FFT
What it is A direct way to calculate the discrete Fourier transform. An algorithm in a family of methods for calculating that same transform.
Typical operation growth O(N²) for a sequence of length N. O(N log N) for common FFT methods.
Calculation approach Evaluates the DFT outputs directly. Factors the work into smaller transforms and combines their results.

How did the FFT become widely known?

Cooley and Tukey’s 1965 publication was a landmark in the modern adoption of FFT methods. The underlying ideas have earlier roots; Berkeley’s numerical-methods material notes related work by Gauss (Berkeley Python Numerical Methods).

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Further reading

For a deeper treatment of FFT algorithms and their applications, the Open Textbook Library lists Fast Fourier Transforms, covering topics including Cooley–Tukey, FFT programs, and applications (Open Textbook Library).

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.