How to read an FFT spectrum: resolution, windows, peaks
After reading, you can compute frequency resolution for a vibration record, justify your window choice, and read spectral peaks as clues rather than diagnoses, using a worked example.
See the spectrum, envelope and bearing frequencies in your vibration record; nothing is uploaded.
From waveform to bearing frequencies, in one short tour.
Every rotating machine has a vibration signature. Hidden in it are the early signs of a failing bearing. Spectra turns the waveform into a spectrum. Each peak is a frequency at which the machine vibrates. Bearing defects ring the structure with tiny impacts. The envelope spectrum shows how often they repeat. Spectra overlays the bearing fault frequencies and tells you what a peak could mean. A hint, never a verdict. Paste a recording with its sampling rate, or try the built-in examples. Nothing leaves your browser.
Narration: synthetic voice (Piper, voice “Joe”, CC0 public domain). Captions are burned into the video.
Pick a record. All are mathematically generated examples, not real plant data.
Drop a CSV, TSV or TXT file here
Pick one numeric column; if there is a time column, the sampling rate can be inferred from it.
The shaft’s revolutions per minute. Harmonics and bearing frequencies are calculated from it.
The window and FFT length they change.
Example bearing (deep-groove, illustrative): check your bearing’s data sheet and enter your own values.
First 0.25 seconds, mean and trend removed. Drag to zoom.
Height is amplitude. Dashed: speed harmonics. Coloured: bearing frequencies.
Time left to right, frequency bottom to top; brighter means stronger.
Colour intensity shows the SK value. The outlined cell, the highest SK above level 1, is the band the envelope analysis uses.
Impact repetition rates. A defect shows a peak at BPFO, BPFI, BSF or FTF.
Overall velocity RMS, 10–1000 Hz. The needle shows your zone.
These are hints, not a diagnosis.
The decision is the engineer’s. For the limits, see the reading note.
f/fr: ratio to running speed. Match: near a harmonic or bearing line.
| # | Hz | Amplitude | Match |
|---|
Nominal values. Enter your catalogue data.
| Component | Hz |
|---|
Seven steps: prepare the record, take the windowed FFT spectrum, find the overall velocity and zone, compute the time indicators, derive the bearing frequencies, find the impulsive band with the envelope, and match peaks to frequencies.
At most 16,384 rows are taken. If there is a time column, the sampling rate is the reciprocal of the median of the positive time steps. Gaps are filled by linear interpolation. The record’s mean and linear trend are then removed, so a constant offset or a slow drift does not distort the spectrum.
f_s: sampling rate (Hz); N: FFT length (samples); Δt: time between two samples.
a and b: intercept and slope of the least-squares line through the record; both are removed.
| Setting | Value | Note |
|---|---|---|
| Row limit | 16,384 | the first rows are taken; the table import reads at most 20,000 rows |
| Synthetic record | 12,000 Hz · N = 16,384 | Δf = 0.732 Hz |
| Time column | seconds: unit × 1; milliseconds: unit × 0.001 | |
| Missing value | linear interpolation | leading and trailing gaps take the nearest valid value |
Source spectra/spectra.js · wasm/kutupml.js · forge/import.js
The record is multiplied by a window that tapers its ends, which reduces the artificial break the FFT would otherwise see. The FFT then gives the amplitude at each frequency. A sine that falls exactly on a frequency bin reads its true amplitude there.
n = 0 … N − 1. Periodic Hann: the denominator is N, not N − 1. Hamming, Blackman, flat-top and rectangular windows can also be chosen.
For 0 < k < N/2. For A_0 and A_{N/2} there is no factor 2: |X| ÷ Σw.
For Hann. Rectangular window: ENBW = 1; used in step 3.
| Setting | Value | Note |
|---|---|---|
| Window | Hann | default; Hamming, Blackman, flat-top and rectangular can be chosen |
| FFT length | power of two | range 1,024 – 16,384; default: the largest power of two not above the record length |
| Welch (optional) | 2,048 · 50% | segment length and overlap; amplitudes are the root of the mean of squares; off means one FFT |
| Spectrogram | 512 / 256 | 512 if the record has at least 8,192 samples, else 256; hop half the window; with the selected window type |
Source dev/native/kutupml.c · wasm/kutupml.js · spectra/spectra.js
Acceleration is turned into velocity: each frequency component is divided by 2πf. The components between 10 and 1,000 Hz are combined into one RMS value, which falls into zone A, B, C or D according to the three boundaries you enter.
in mm/s. g = 9.80665 m/s² (unit g). For m/s² use 1 instead of g; for mm/s, v_k = A_k.
f_max = min(1,000 Hz; f_s/2). A window spreads a sine over several bins and inflates the sum by ENBW, so the sum is divided by ENBW.
| Zone / setting | Rule | Note |
|---|---|---|
| Frequency band | 10–1,000 Hz | limited by f_s/2: bins below 10 Hz, above min(1,000 Hz; f_s/2), and 0 Hz (DC) are left out |
| Unit | for m/s², 1 replaces g | |
| z_1 = 1.4 mm/s (default) | ||
| z_2 = 2.8 mm/s (default) | ||
| z_3 = 4.5 mm/s (default) | ||
| illustrative; not ISO 20816, enter your own limits |
Source spectra/spectra.js
Four numbers come from the waveform. RMS is the effective size of the signal; peak is the largest absolute value. Crest factor (peak/RMS) and kurtosis show whether the signal is impulsive: a sine gives about 1.41 and 1.5; impacts raise both.
x̄: record mean after pre-processing (≈ 0). The divisor is N, not N − 1.
Kurtosis is not excess kurtosis: about 3 for Gaussian noise and 1.5 for a sine.
| Setting | Value | Note |
|---|---|---|
| Samples | ≤ 16,384 | all analysed samples; independent of the FFT length |
| Sine values | 1.41 · 1.5 | crest = √2 and kurtosis = 1.5 for a pure sine |
| Envelope kurtosis | same formula | on the envelope curve; the envelope of step 6 |
Source dev/native/kutupml.c · wasm/kutupml.js · spectra/spectra.js
Four fault frequencies follow from the bearing geometry and shaft speed: outer race (BPFO), inner race (BPFI), rolling element (BSF) and cage (FTF). Each is the rate at which a defect in that part produces impacts. They are nominal values.
BSF uses c², that is (d/D)² cos² φ.
| Component | Value | Ratio |
|---|---|---|
| 1× shaft | 29.50 Hz | 1 |
| BPFO | 105.75 Hz | 3.585 × f_r |
| BPFI | 159.75 Hz | 5.415 × f_r |
| BSF | 69.52 Hz | 2.357 × f_r |
| FTF | 11.75 Hz | 0.398 × f_r |
| Setting | Value | Note |
|---|---|---|
| Checks | d > 0, D > d, 0 ≤ φ < 90°; if a condition fails, no calculation is made and a message is shown |
Source spectra/spectra.js
The kurtogram searches for the frequency band where the signal is most impulsive. Each band is turned into its envelope (amplitude curve) and its impulsiveness is measured. In the envelope spectrum of the chosen band, the repetition rate of the impacts, such as BPFO, shows as a peak.
x_b: the record limited to the selected band. The code doubles the positive-frequency bins in the band and takes the inverse FFT, which gives the analytic signal.
p_t = |z_t|²: power. P_1 and P_2 are the first and second means of p.
Spectral kurtosis. Computed for every level and band; the highest SK, excluding level 1, is chosen.
bands, l = 2…5. Example: at 12,000 Hz the level-5 bands are 187.5 Hz wide.
Auto band. With a manual band, 0 < low < high < f_s/2 is required.
Envelope spectrum: the envelope’s mean is removed, a Hann window is applied and the amplitude spectrum is taken.
| Setting | Value | Note |
|---|---|---|
| Kurtogram levels | 2 – 5 | level 1 is never chosen; this simplified version computes every band over the whole record |
| Envelope band | auto / manual | auto: the kurtogram band; manual: default 2,500–3,900 Hz |
| Analysis length | power of two | not above the record length; the envelope and the kurtogram use the same length |
| Displayed upper limit | f_s/2 | at most min(f_s/2; max(500 Hz; 5·BPFI)); the envelope chart and the peak search stop here |
Source dev/native/kutupml.c · spectra/spectra.js · wasm/kutupml.js
The strongest peaks are chosen among bins that stand clearly above their surroundings. The true frequency of each peak is estimated with a parabola through three neighbouring bins. Peaks near a multiple of running speed or a bearing frequency are matched, and the findings are summarised by fixed rules.
Peak: a bin above both neighbours and above six times the median. Bins 2 to kS − 2 are tested; the median uses the amplitudes up to fmax. On the envelope the factor is 3.
Parabolic estimate: the three bins are taken as three points of a parabola, and its vertex is used.
δ: peak offset in bins, clamped to between −0.5 and 0.5.
f: estimated peak frequency; A: estimated peak amplitude.
f_0: candidate frequency (running-speed multiple or bearing frequency). If several fit, the one with the smallest |f − f_0| ÷ t is chosen.
Envelope: K is the number of bins up to fE. SNR ≥ 5 is a candidate; SNR ≥ 10 counts as “Attention”.
| Setting | Value | Note |
|---|---|---|
| Strongest peaks | 8 · 12 | spectrum: 8; envelope: 12, kept when SNR ≥ 5 |
| Candidate frequencies | 1×–10× | shaft harmonics; bearing 1×–3× (spectrum), 1×–2× (envelope); only 1×–3× are marked on the spectrum |
Source dev/native/kutupml.c · spectra/spectra.js
A CSV, TSV or TXT file, or a table pasted as text. You choose one numeric column as the signal. Enter the sampling rate in Hz, or let it be inferred from a time column in seconds or milliseconds. The unit can be g, m/s² or mm/s. The table is read up to 20,000 rows and at most 16,384 samples are analysed. The FFT spectrum, envelope and kurtogram work on a power-of-two number of samples: by default the largest power of two not above the record length (8,192 for 12,000 samples).
A rolling-element defect makes a short impact at each contact. The impacts excite a high-frequency structural resonance. The envelope extracts how that resonance’s amplitude changes, so the repetition rate of the impacts, such as BPFO or BPFI, shows directly in the envelope spectrum. It is a way to separate the defect frequency from high-frequency noise.
Overall severity scales use the RMS of vibration velocity, which relates to the energy that causes wear and heating. Bearing defects appear as short impacts at high frequency, which an accelerometer captures better. Spectra derives velocity from acceleration by dividing each component by 2πf.
No. The zones only place the overall velocity value relative to the boundaries you enter. The default boundaries are illustrative and do not represent ISO 20816; enter the limits for your machine class from the standard yourself. A zone does not say what the cause is.
No. The record is processed in your browser by a WebAssembly module written in C. Nothing is sent anywhere, and the record is gone when you close the page. The CSV, JSON and PNG files you export stay with you.
After reading, you can compute frequency resolution for a vibration record, justify your window choice, and read spectral peaks as clues rather than diagnoses, using a worked example.
This article shows how envelope analysis pulls repeating impacts out of a high-frequency vibration band, how to calculate the four defect frequencies, and how to read the result step by step.
After reading, you can set a sampling rate from your analysis band, recognise a false low-frequency peak caused by aliasing, and see why slow PLC or SCADA logs fall short for spectra.
After reading, you can track a machine's broadband vibration against its own baseline and read the ISO 20816 zones in the right context, without treating a zone as a fault diagnosis.
Let’s review your data source, your existing system and the decision you want to improve.