Interactive FFT Calculator
Paste your signal samples and calculate the frequency spectrum using a Fast Fourier Transform (FFT). This tool supports windowing, optional zero-padding, and reports dominant frequencies.
Tip: For clean frequency detection, provide at least a few cycles of your waveform and set a correct sampling rate.
What is an FFT calculator?
An FFT calculator takes a time-domain signal (values measured over time) and transforms it into the frequency domain. Instead of asking, “How does this signal change sample by sample?” you ask, “Which frequencies are present, and how strong are they?”
FFT stands for Fast Fourier Transform, an efficient algorithm for computing the same result as the Discrete Fourier Transform (DFT), but much faster for common input lengths.
Why this matters in real projects
- Audio: Find pitches, hum noise (50/60 Hz), and harmonic content.
- Sensors/IoT: Detect vibration frequencies in motors and rotating equipment.
- Electronics: Inspect ripple, switching noise, and signal purity.
- Data analysis: Identify periodic patterns hidden in noisy measurements.
How to use this FFT calculator
1) Enter samples
Paste numeric values separated by commas, spaces, or line breaks. The calculator parses all of them into a signal vector.
2) Set the sampling rate
This is essential. If your data was sampled at 1000 samples/second, enter 1000. Frequency labels are computed directly from this value.
3) Choose a window function
Windows reduce spectral leakage. In practice, Hann is a strong default for many measurements. If you need raw bin behavior, choose None.
4) Decide on zero-padding
Zero-padding does not add new information, but it can make the spectrum look smoother and gives finer frequency bin spacing. It also allows efficient radix-2 FFT execution.
Understanding the output
After calculation, the tool reports:
- Dominant frequency: strongest non-DC frequency peak.
- Amplitude: scaled single-sided magnitude estimate.
- Bin spacing: equal to sampling rate divided by FFT length.
- Peak tables: top components and early bins for quick inspection.
Important FFT concepts to remember
Nyquist limit
The highest representable frequency is half the sampling rate. If you sample at 200 Hz, frequencies above 100 Hz will alias into lower frequencies.
Frequency resolution
Resolution improves with longer time records. More samples mean narrower bins and better separation of nearby tones.
Leakage and windows
If your signal does not contain an integer number of cycles in the capture window, energy spreads across bins. Windowing helps reduce this effect.
Example workflow
Click Load Example Signal. The generated data contains two sinusoids (5 Hz and 12 Hz). Run the FFT and you should see peaks near those frequencies. This is a good sanity check before analyzing your own data.
FFT vs DFT in this tool
When input length is a power of two (or zero-padding is enabled), the calculator uses radix-2 FFT for speed. For non-power-of-two lengths with padding disabled, it automatically falls back to direct DFT to keep the result correct.
Common mistakes
- Using the wrong sampling rate.
- Expecting exact frequency readout with very short records.
- Ignoring DC offset (bin 0) when searching for real peaks.
- Forgetting aliasing constraints.
Use this calculator as a fast first-pass spectral analyzer. For advanced work, pair FFT results with filtering, averaging, and calibrated measurement workflows.