About the Fourier Transform Calculator
What is the Fourier Transform Calculator?
The Fourier transform breaks a signal into the pure sine waves (frequencies) it is made of. It is how audio equalisers, MP3 compression, vibration analysis, radio receivers and image processing work: a messy wave over time becomes a clear list of frequencies and their strengths.
This calculator builds a test signal from two sine waves, samples it N times over one second and computes the discrete Fourier transform (DFT). The single-sided amplitude spectrum recovers each wave's frequency and amplitude, and the calculator warns when a frequency is too high for the sampling rate (aliasing).
How to use the Fourier Transform Calculator
- Wave 1 Amplitude (sample: 3)
- Wave 1 Frequency (Hz) (sample: 2)
- Wave 2 Amplitude (sample: 2)
- Wave 2 Frequency (Hz) (sample: 5)
- Samples in 1 Second (N) — this is also the sampling rate in samples per second. (sample: 32)
- Press Analyse Signal (results also refresh as you type). The result card shows the Dominant Frequency, along with Amplitude at that frequency, Second strongest frequency, Signal RMS and Nyquist limit (N ÷ 2).
Formula used
X(k) = Σₙ x(n) × e^(−2πikn ÷ N)
- x(n) = sample n of the signal
- N = the number of samples (here also the sampling rate, as the window is 1 second)
- k = the frequency bin in Hz
- Amplitude = 2 × |X(k)| ÷ N for 0 < k < N/2
The Nyquist limit is N ÷ 2: a sampled signal can only represent frequencies below half the sampling rate. Whole-number frequencies land exactly on a bin; other frequencies spread (“leak”) into neighbouring bins.
Worked example
These are the sample values already filled in the calculator above, and the result it returns for them:
| Input | Sample value |
|---|---|
| Wave 1 Amplitude | 3 |
| Wave 1 Frequency (Hz) | 2 |
| Wave 2 Amplitude | 2 |
| Wave 2 Frequency (Hz) | 5 |
| Samples in 1 Second (N) | 32 |
| Result | Value |
|---|---|
| Dominant Frequency | 2 Hz |
| Amplitude at that frequency | 3 |
| Second strongest frequency | 5 Hz |
| Signal RMS | 2.5495 |
| Nyquist limit (N ÷ 2) | 16 Hz |
| Aliasing warning | None – all frequencies are below the Nyquist limit |
Tips for using the Fourier Transform Calculator
- Sample at least twice as fast as the highest frequency you care about (the Nyquist–Shannon theorem); in practice 5 to 10 times faster is safer.
- Try a 20 Hz wave with 32 samples: it shows up at 12 Hz — that is aliasing.
- The RMS of two sine waves at different frequencies is √((A₁² + A₂²) ÷ 2); for amplitudes 3 and 2 that is √6.5 ≈ 2.55.
