EEG power spectrum (PSD) explained
Worked through on a public recording, with the eyes open and closed.
What the curve shows
A power spectral density (PSD) shows how the power of a signal is spread over frequency. The horizontal axis runs from 0 Hz to half the sample rate, the highest frequency a recording can hold. The vertical axis is power per hertz, in µV²/Hz for EEG.
The area under the curve between two frequencies is the power in that range, in µV². Band power is that area over a band, such as alpha from 8 to 13 Hz: see EEG frequency bands explained. Some programs plot the square root instead, in µV/√Hz, or power in decibels, so check the unit before you compare two plots.
Why the scale is logarithmic
EEG power falls steeply with frequency. At O1 of a public recording with the eyes open, the PSD is 280 µV²/Hz at 2.2 Hz, 18.7 at 20 Hz and 0.77 at 40 Hz, more than 300 times less. On a linear scale, everything above 20 Hz would lie flat on the axis. On a logarithmic scale, each power of ten takes the same height, so the whole range can be read, and peaks stand out from the falling background.
Peaks and what they mean
| Frequency | Eyes open (µV²/Hz) | Eyes closed (µV²/Hz) |
|---|---|---|
| 5 Hz | 74.2 | 74.4 |
| 10 Hz | 33.8 | 2,616 |
| 12.2 Hz | 72.1 | 82.2 |
| 20 Hz | 18.7 | 68.9 |
| 60 Hz | 0.51 | 0.34 |
- Alpha: with the eyes closed, O1 shows a narrow peak at 10 Hz, about 30 times the level at 5 or 12.2 Hz. With the eyes open there is no peak there. See How to see alpha waves in your EEG.
- Mains: this recording was made in the United States, where mains power runs at 60 Hz, and the PSD at 60 Hz is 5 to 11 times its level 1.25 Hz either side. Where mains power runs at 50 Hz, as in most of Europe, Africa, Asia and Australia, the peak sits at 50 Hz. A notch filter cuts it out: see EEG filters explained.
- Muscle: tension in the jaw, forehead or neck raises a broad band above about 20 Hz rather than a narrow peak. See EEG artifacts.
- Filters: a high-pass lowers the lowest frequencies and a low-pass those above its cutoff. The Reviewer computes the spectrum of the row as it is drawn, so the filters you switch on show in it.
How the spectrum is estimated
The Online EEG Reviewer and the app use Welch’s method. The stretch is cut into segments that overlap by half, each segment is tapered with a Hann window, and their spectra are averaged. Averaging makes the estimate steadier: the first 60 s of the recording above give 36 segments.
The segment length sets the resolution: the bins are 1 divided by the segment length apart. The Reviewer uses about 2 s, rounded up to a whole power of two in samples.
| Sample rate | Segment | Bins every |
|---|---|---|
| 100 Hz | 256 samples, 2.56 s | 0.39 Hz |
| 160 Hz | 512 samples, 3.2 s | 0.31 Hz |
| 250 Hz | 512 samples, 2.048 s | 0.49 Hz |
| 256 Hz | 512 samples, 2 s | 0.5 Hz |
| 500 Hz | 1,024 samples, 2.048 s | 0.49 Hz |
| 1,000 Hz | 2,048 samples, 2.048 s | 0.49 Hz |
Longer segments resolve frequencies more finely but leave fewer to average, so the curve is noisier. A short stretch, such as the space between the caliper’s two cursors, gives a coarser and noisier spectrum than a whole page.
See it in your browser
Open the recording in the Online EEG Reviewer and choose Analyze on the toolbar. The plot shades the five bands and marks the dominant frequency; Frequencies draws 0–40 Hz, 0–80 Hz or the whole spectrum. The steps are in EEG frequency bands explained. Analyze is part of Pro and Max.
In the app
In EEG TraceLab on iPhone, iPad and Mac, Power Spectral Analysis draws the spectra of the channels and time range you choose, with a band power chart, peak frequency and band ratios. It reads the recorded samples, or a saved run of Preprocess Signal, and never the Viewer’s display filters.

In Python
import mne
from scipy.signal import welch
from scipy.signal.windows import hann
raw = mne.io.read_raw_edf("recording.edf", preload=True)
x = raw.get_data(picks=["O1"], tmax=60)[0] * 1e6 # the first 60 s of O1 (O1.. in the EEGMMIDB files), in µV
fs = raw.info["sfreq"]
n = 512 # the Reviewer's segment from 160 to 256 Hz (see the table above)
freqs, psd = welch(x, fs=fs, window=hann(n, sym=True), nperseg=n, noverlap=n // 2) # µV²/HzWith a symmetric Hann window and the same segments, SciPy gives exactly the Online EEG Reviewer’s numbers. SciPy’s default window, and MNE-Python’s raw.compute_psd(window="hann", n_fft=512, n_overlap=256), differ from them by about 0.1 %.
Common problems
My numbers differ from another program
Check the segment length, the overlap and the window, and whether the spectrum is one-sided. The montage and the reference change the signal, and so its spectrum.
There is a tall peak at 50 or 60 Hz
It adds to the gamma band, which runs to 80 Hz, but barely changes the bands below 30 Hz.