THD Calculator

Calculate total harmonic distortion (THD) from the fundamental and the 2nd to 5th harmonic amplitudes, as a percentage and in dB, for audio amplifier testing and power-quality checks.

Calculator Electronics Updated Oct 15, 2026
How to Use
  1. Measure the fundamental V1 and the 2nd to 5th harmonic amplitudes with a spectrum analyzer or FFT, all in the same units (RMS volts, or relative levels).
  2. Enter the fundamental as V1, then each harmonic; enter 0 for a harmonic you did not measure.
  3. Read THD as a percentage and in dB below the fundamental.
  4. Compare the result with the target for your application: well under 0.1% for good audio, the IEEE 519 limits for power systems.
Input
V
V
V
V
V
Presets
Spectrum
THD
—
THD (dB)
—
RMS total
—
Grade
—

Worked Example

An amplifier playing a 1 V tone shows harmonics of 10 mV (2nd), 5 mV (3rd), 2 mV (4th) and 1 mV (5th). THD = √(0.010² + 0.005² + 0.002² + 0.001²) ÷ 1 = √0.000130 = 0.0114, which is 1.14% or 20 × log₁₀(0.0114) = −38.9 dB.

The 2nd harmonic dominates: it alone accounts for 77% of the distortion power, so it is the one to chase.

The common mistake: adding the harmonics straight. 10 + 5 + 2 + 1 = 18 mV would give 1.8%, overstating the distortion. Harmonics are different frequencies, so they add as powers, by the square root of the sum of squares.

Show Work

Enter harmonic amplitudes to see THD.

Formulas

THD (IEC)
THD = √(V2² + V3² + ...) / V1
Referenced to fundamental (most common).
THD (IEEE)
√(V2² + V3² + ...) / Vrms
Referenced to total RMS.
THD in dB
20 × log10(THD)
Convert ratio to dB.
Audiophile Target
< 0.1%
Generally inaudible.
Hi-Fi Consumer
< 1%
Typical acceptable spec.
Tube Amp / Guitar
5–10%
Characteristic "warm" sound.

History of Harmonic Distortion Measurement

Harmonic distortion as a measurable quantity emerged in the 1920s as vacuum-tube audio amplifiers became widespread. Harold Black's 1927 invention of negative feedback at Bell Labs reduced distortion by orders of magnitude — linear amplifiers finally became practical. Feedback made low-distortion amplifiers practical for telephone repeaters, broadcasting and, later, high-fidelity audio.

Hewlett-Packard's first product, the HP 200A audio oscillator (1939), used a Wien bridge with a lamp for amplitude control and produced the clean sine waves needed to measure amplifier distortion accurately. By the 1970s and 1980s, good solid-state amplifiers reached well under 0.01% THD, far below what listeners can hear. The audiophile market subsequently split into camps: "straight-wire" solid-state designers chasing lowest distortion, and tube-amp revivalists arguing that even-harmonic distortion (characteristic of tubes, 2nd and 4th harmonic dominant) sounds more musical than the odd-harmonic distortion (3rd, 5th) of solid-state amps at the edge of clipping.

IEEE 519 established harmonic distortion limits for power systems in the 1980s, driven by the rise of non-linear loads (computers, variable-speed drives) that injected harmonics into utility lines. Modern measurement uses FFT spectrum analyzers rather than analog harmonic distortion analyzers; software like Audio Precision APx555 integrates signal generation and analysis into a single instrument.

About This Calculator

Enter the fundamental amplitude (V1) and harmonic amplitudes (V2 through V5) from an FFT or spectrum analyzer. The tool computes THD as a percentage and in dB, along with total RMS and a categorical grade (audiophile / hi-fi / typical / tube-like / saturated).

Two conventions exist for THD: IEC (referenced to fundamental, shown here) and IEEE (referenced to total RMS). They give slightly different numbers; always note which is being used when comparing specs. Some amplifiers also quote "THD+N" which includes the noise floor in addition to harmonic products — always higher than THD alone. All math runs client-side.

Frequently Asked Questions

What is the difference between THD and THD+N?

THD adds up only the harmonics. THD+N measures everything that is not the test tone, harmonics plus noise and hum, so it is always equal to or higher than THD. Audio datasheets often quote THD+N because it is what a distortion analyzer actually measures.

What THD level is good?

Good modern amplifiers measure well under 0.1%, often under 0.01%. Around 1% is clearly measurable but often hard to hear on music; guitar amplifiers deliberately run at many percent. For mains power, IEEE 519-2014 limits voltage THD to 8% on systems up to 1 kV.

Why are harmonics added as a square root?

Each harmonic is a separate frequency, so their powers add, not their amplitudes. The combined RMS value of the harmonics is √(V2² + V3² + …), and THD is that divided by the fundamental.

How do I convert THD to dB?

THD (dB) = 20 × log₁₀(THD as a ratio). 1% is −40 dB, 0.1% is −60 dB and 0.01% is −80 dB.

Do even and odd harmonics sound different?

They have a different character: low-order even harmonics (2nd, 4th) tend to sound warmer, and odd harmonics (3rd, 5th) harsher, which is one reason valve amplifiers and clipping transistor stages sound different. THD on its own does not tell you which kind dominates; look at the individual harmonics.

How do I use the THD Calculator?

Simply type your numbers and read the result, which refreshes the instant you change something. There is nothing to submit and nothing to wait for.

Do I need to install or sign up for anything?

Not at all — it runs in the browser with nothing to install and no account. After it loads once, it even works without an internet connection.

Is my information private?

Yes. Everything happens in your browser. Nothing you type is sent to a server or saved anywhere.

Common Use Cases

Audio Amplifier Testing

Feed a pure 1 kHz tone, read the harmonics from an FFT at the rated output, and compute THD to compare against the datasheet claim.

Power Quality

Variable-speed drives and rectifier loads put 5th and 7th harmonics onto the supply; THD of the voltage at the point of connection is checked against IEEE 519 limits.

Oscillator and Signal Generator Checks

A good sine-wave source for testing should be at least ten times cleaner than the device being measured.

Guitar Effects Design

Overdrive and distortion pedals are tuned by their harmonic mix; THD and the balance of even and odd harmonics describe the sound in numbers.

Last updated: