Total Harmonic Distortion Calculator

Enter a fundamental amplitude and its 2nd through 5th harmonic amplitudes to compute THD, the combined harmonic RMS, and which harmonic contributes most to the distortion.

Quick Facts

Formula
THD = √(V2²+V3²+V4²+V5²) / V1 × 100%
Ratio of the combined RMS of the harmonic components to the fundamental amplitude.
Common guideline
IEEE 519 cites roughly 5% voltage THD
A widely referenced power-quality benchmark for many distribution systems, not a universal audio or electronics limit.

Your Results

Calculated
Total Harmonic Distortion
-
THD as a percentage
THD ratio
-
Unitless decimal form
Harmonic RMS
-
Combined 2nd-5th harmonics
Dominant harmonic
-
Largest contributor to distortion

Ready

Enter the fundamental and harmonic amplitudes, then press Calculate.

About Total Harmonic Distortion

Total Harmonic Distortion (THD) measures how much a periodic signal — a voltage, current, or audio waveform — deviates from a pure sine wave at its fundamental frequency. A perfectly clean 60 Hz sine wave has 0% THD. Real-world signals from switching power supplies, variable-frequency drives, LED dimmers, and nonlinear loads contain energy at multiples of the fundamental frequency (the 2nd, 3rd, 4th harmonics, and so on), and THD quantifies how much of that unwanted harmonic energy is present relative to the fundamental.

The formula

For a fundamental amplitude V1 and harmonic amplitudes V2, V3, V4, ... Vn (at 2, 3, 4, ... n times the fundamental frequency), the standard definition is:

THD = √(V2² + V3² + V4² + ... + Vn²) / V1 × 100%

The numerator is the RMS (root-mean-square) magnitude of every harmonic combined; the denominator is just the fundamental. This calculator sums the 2nd through 5th harmonics as a practical illustration — a full instrument-grade measurement would include every harmonic the analyzer captures, added under the same square root.

Two common reference bases

There are two conventions for the denominator. Relative to fundamental (sometimes written THD-F) divides by V1 alone, as shown above — this is the most common convention in power engineering. Relative to total RMS (sometimes written THD-R) instead divides by the RMS of the entire waveform, √(V1² + harmonic RMS²), which is used in some audio and IEC contexts. The two values are nearly identical at low distortion and diverge as distortion grows, because the total-RMS denominator is always the larger of the two.

Reading the dominant harmonic

Beyond the single THD percentage, it is often useful to know which harmonic is doing the most damage. This calculator reports the largest of the entered harmonic amplitudes and the share of the total harmonic power (the sum of squares) that it represents. In power systems, a large 3rd harmonic often points to single-phase nonlinear loads; a large 5th or 7th harmonic is a common signature of variable-frequency drives and other six-pulse rectifier equipment.

Typical benchmarks

There is no single pass/fail THD number that applies everywhere. IEEE 519 is a widely cited power-quality standard that treats roughly 5% total voltage THD as a general guideline for many distribution systems, with tighter limits at higher voltage levels. Audio equipment typically targets much lower THD — often well under 1% — because the ear can detect distortion at levels that would be inconsequential on a power line. Always check the standard or specification that applies to your specific equipment or system.

Frequently Asked Questions

What is the formula for Total Harmonic Distortion?
THD is the ratio of the combined RMS magnitude of the harmonic components to the fundamental (or to the total RMS, depending on convention), expressed as a percent: THD = √(V2² + V3² + V4² + ... + Vn²) / V1 × 100%, where V1 is the fundamental amplitude and V2 through Vn are the harmonic amplitudes.
What is a good THD value?
It depends on the application. In power systems, IEEE 519 is a commonly cited standard that treats roughly 5% voltage THD as a general quality guideline for many distribution systems. In audio electronics, thresholds are typically much lower since even small distortion can be audible. There is no single universal pass/fail number.
What is the difference between THD relative to fundamental and THD relative to total RMS?
THD relative to the fundamental divides the harmonic RMS by the fundamental amplitude alone (V1). THD relative to total RMS divides the harmonic RMS by the RMS of the whole waveform, √(V1² + harmonic RMS²). The two definitions agree closely at low distortion levels but diverge as distortion grows, since the second definition's denominator is always larger.
Do higher-order harmonics beyond the 5th matter?
Yes. A complete THD calculation sums the squares of every harmonic above the fundamental, not just the first few. This calculator uses the 2nd through 5th harmonics as a practical illustration; for a full measurement, include every harmonic your instrument reports and add its squared amplitude under the same square root.