Total harmonic distortion, calculated and interpreted
THD answers a narrow question: of the energy at harmonics of the fundamental, how much sits away from the fundamental itself? It is defined from the Fourier amplitudes and therefore needs a periodic signal and a known fundamental to mean anything.
THD = √(a₂² + a₃² + … + a_N²) / a₁ × 100 %
Worked values
A clipped sine with a 0.1 V third harmonic against a 1 V fundamental has THD = 10 %. The square preset with harmonics up to 11 has 43.8 %, and the ideal square 48.3 %. A triangle with five odd harmonics has 12.1 %. All of these are reproduced by the synthesiser's readout, which uses exactly the formula above on the twelve sliders.
| Waveform | Harmonics | THD |
|---|---|---|
| Pure sine | 1 | 0 % |
| Sine + 10 % H3 | 1, 3 | 10.0 % |
| Triangle | odd ≤ 11 | 12.1 % |
| Sawtooth | all ≤ 12 | 75.2 % |
| Square | odd ≤ 11 | 43.8 % |
| Square | odd ≤ ∞ | 48.3 % |
The three things THD hides
First, order: 1 % of second harmonic and 1 % of eleventh harmonic are the same number and different sounds. Second harmonic is an octave and blends; eleventh is a harsh interval. Specifications that matter usually quote individual harmonics.
Second, phase: THD is computed from amplitudes, so waveforms with identical THD can have different peaks. Two 10 % THD signals can differ by several dB in crest factor.
Third, noise: THD counts harmonics only. A signal with 0.001 % THD and an audible hiss reads beautifully. That is why measurements quote THD+N, which adds everything that is not the fundamental, including noise and hum.
A useful sanity check: the THD of a signal and its THD+N must satisfy THD ≤ THD+N. If a datasheet shows otherwise, the two numbers were measured with different bandwidths.
What is audible
On a 1 kHz sine at moderate level, 1 % THD is close to the threshold for trained listeners in the second harmonic and easier to hear in higher orders. On music, 1 % is usually inaudible because the material already has harmonics at that level. This is why a valve amplifier with 1 % THD can sound pleasant while a digital artefact at 0.01 % can be obvious: the number is not the perception.
Measuring it here
The synthesiser computes THD from the sliders, so it is an exact figure for the twelve-harmonic model rather than a measurement of a real signal. The analyser studio cannot compute THD directly, because its two tones are not harmonically related by default — set f₂ = 2f₁, however, and the second peak becomes the second harmonic, which is the same experiment seen from the other side.
Questions
Is lower THD always better?
For a reproduction chain, usually, but not because of the number itself: low THD means the chain is not adding anything audible. For a musical instrument or an effects unit, added harmonics are the point, and a high THD can be desirable.
Why does my measured THD differ from the datasheet?
Bandwidth, level and the number of harmonics included all change the figure. A THD specified to the 20th harmonic at 1 kHz is not comparable with one measured to 80 kHz.
Set Square at 220 Hz and read 43.8 %; then reduce the harmonic count by muting high orders and watch the number fall.
Open the studioWritten from standard Fourier analysis, digital signal processing and acoustics; the worked numbers can be reproduced in the studio linked above.
Back to the guides