# Total harmonic distortion

 related topics {math, energy, light} {system, computer, user} {math, number, function} {rate, high, increase} {album, band, music}

The total harmonic distortion, or THD, of a signal is a measurement of the harmonic distortion present and is defined as the ratio of the sum of the powers of all harmonic components to the power of the fundamental frequency. Lesser THD allows the components in a loudspeaker, amplifier or microphone or other equipment to produce a more accurate reproduction by reducing harmonics added by electronics and audio media. A THD rating < 1% is considered to be in high-fidelity and inaudible to the human ear.

## Contents

### Explanation

To understand a system with an input and an output, such as an audio amplifier, we start with an ideal system where the transfer function is linear and time-invariant. When a signal passes through a non-ideal, non-linear device, additional content is added at the harmonics of the original frequencies. THD is a measurement of the extent of that distortion.

When the input is a pure sine wave, the measurement is most commonly the ratio of the sum of the powers of all higher harmonic frequencies to the power at the first harmonic, or fundamental, frequency:

which can equivalently be written as

Measurements based on amplitudes (e.g. voltage or current) must be converted to powers to make addition of harmonics distortion meaningful. For a voltage signal, for example, the ratio of the squares of the RMS voltages is equivalent to the power ratio:

where Vn is the RMS voltage of nth harmonic and n=1 is the fundamental frequency.

THD is also commonly defined as an amplitude ratio rather than a power ratio,[1] resulting in a definition of THD which is the square root of that given above:

This latter definition is commonly used in audio distortion (percentage THD) specifications. It is unfortunate that these two conflicting definitions of THD (one as a power ratio and the other as an amplitude ratio) are both in common usage. The power THD can be higher than 100% and is known as IEEE, but for audio measurements 100% is preferred as maximum, thus the IEC version is used (used by Rohde & Schwartz, Brüel and Kjær).

As a result, THD is a non-standardized specification and the results between manufacturers are not easily comparable. Since individual harmonic amplitudes are measured, it is required that the manufacturer disclose the test signal frequency range, level and gain conditions, and number of measurements taken. It is possible to measure the full 20–20 kHz range using a sweep. For all signal processing equipment, except microphone preamplifiers, the preferred gain setting is unity. For microphone preamplifiers, standard practice is to use maximum gain.

Measurements for calculating the THD are made at the output of a device under specified conditions. The THD is usually expressed in percent as distortion factor or in dB as distortion attenuation.

### THD+N

THD+N means total harmonic distortion plus noise. This measurement is much more common and more comparable between devices. It is usually measured by inputting a sine wave, notch filtering the output, and comparing the ratio between the output signal with and without the sine wave: