THD Calculator

Total Harmonic Distortion from individual harmonic magnitudes, for voltage, current, or any AC waveform.
THD from Harmonic RMS Values
THD from Harmonic Percentages

THD from Fundamental + Harmonic RMS Values

THD = √(V22+V32+V42+V52) / V1 × 100%
Inverter: V1=230, V3=15, V5=5
Clean grid: small harmonics
VFD input: V3=40, V5=20
V
V
V
V
V
Enter values and press Calculate.

THD from Individual Harmonic Percentages

THD = √(h2%2+h3%2+h5%2+h7%2)
VFD-typical: h3=4.3%, h7=2.1%
Mixed load
Clean sine (0%)
%
%
%
%
Enter values and press Calculate.

What Is Total Harmonic Distortion?

Total Harmonic Distortion (THD) measures how much a real (distorted) AC waveform deviates from a pure sine wave, by comparing the combined RMS magnitude of all harmonic components (2nd, 3rd, 4th, 5th, ...) to the RMS magnitude of the fundamental (1st harmonic, the intended 50/60Hz component). A THD of 0% means a perfect sine wave; higher THD means more distortion from switching converters, non-linear loads, or saturating transformers.

QuantityFormula
THD from RMS valuesTHD = √(V2²+V3²+V4²+…+Vn²) / V1 × 100%
THD from harmonic %THD = √(h2%²+h3%²+…+hn%²)
Total RMS (fundamental + harmonics)Vrms = √(V1²+V2²+V3²+…)
Relation to total RMSVrms = V1×√(1+THD²)

THD can be defined relative to the fundamental (THD-F, used here and most common) or relative to the total RMS (THD-R); the two are nearly identical for low distortion but diverge at high THD. Most standards (e.g. IEEE 519) specify limits using THD-F.

Real-World Applications & Examples

Worked examples

1. Inverter output. V1=230V, V3=15V, V5=5V: THD=√(15²+5²)/230=√250/230≈6.87% — a modestly distorted but usable sine output.
2. Clean grid voltage. V1=120V, V2=3V, V3=2V, V5=1V: THD=√(9+4+1)/120=√14/120≈3.12%, well within typical utility limits (<5%).
3. VFD input voltage distortion. V1=400V, V3=40V, V5=20V: THD=√(1600+400)/400=√2000/400≈11.18% — may require a line reactor or harmonic filter.
4. From harmonic percentages (typical 6-pulse VFD). h3=4.3%, h7=2.1%: THD=√(4.3²+2.1²)=√(18.49+4.41)=√22.9≈4.79%.
5. Total RMS from THD. With V1=230V and THD=6.87%, total RMS ≈ 230×√(1+0.0687²)≈230.5 V — harmonics add very little to the RMS value at moderate THD.
6. Clean sine reference. All harmonics at 0%: THD=0%, confirming a distortion-free waveform — the theoretical baseline every corrected system aims toward.

Frequently Asked Questions

What is Total Harmonic Distortion (THD)?

A measure of how much a waveform deviates from a pure sine wave, expressed as the ratio of the combined RMS of all harmonic components to the RMS of the fundamental component, usually as a percentage.

What is a good THD value?

For grid voltage, typically <5% is considered good and often required by standards; for VFD/inverter current it can be much higher (10–30%+) without filtering, since motor and inverter loads are inherently non-linear.

What causes harmonic distortion?

Non-linear loads and switching devices — rectifiers, VFDs, switch-mode power supplies, LED drivers, arc furnaces, and saturating transformers — draw current in pulses rather than a smooth sine, generating harmonic frequencies.

What is the difference between voltage THD and current THD?

Voltage THD (THD-V) measures distortion of the supply voltage waveform; current THD (THD-I) measures distortion of the load current waveform. Non-linear loads primarily cause current THD, which then causes voltage THD through the system impedance.

Why do odd harmonics (3rd, 5th, 7th...) dominate in most systems?

Most non-linear loads have waveforms symmetric about the zero-crossing (half-wave symmetry), which mathematically eliminates even harmonics, leaving only odd harmonics (3rd, 5th, 7th, etc.) as the dominant distortion.

What does IEEE 519 say about THD limits?

IEEE 519 sets voltage THD limits (typically 5% at the point of common coupling for general systems) and current THD limits that scale with the short-circuit ratio of the connection, to control harmonic pollution back onto the grid.

How is THD related to power quality?

High THD indicates poor power quality: it causes extra heating in transformers/motors, nuisance tripping of protective devices, interference with sensitive electronics, and reduced overall system efficiency.

Can THD be reduced?

Yes — line reactors, harmonic filters (passive or active), higher-pulse rectifier topologies (12-pulse, 18-pulse), and better inverter PWM techniques all reduce THD at the source.

Is 0% THD achievable in practice?

No real-world converter or non-linear load produces a perfectly pure sine wave; 0% is a theoretical reference. Well-designed grid-tie inverters can achieve THD below 3%, which is considered excellent.

Why does high THD affect transformers?

Harmonic currents cause additional eddy-current and skin-effect losses in transformer windings and cores beyond what the fundamental current alone would cause, requiring K-factor-rated (harmonic-rated) transformers for heavily distorted loads.

What is the difference between THD-F and THD-R?

THD-F (used here) divides by the fundamental RMS; THD-R divides by the total RMS instead. They agree closely for low THD but THD-R is always slightly lower and the two diverge more as distortion increases.

Does THD affect the RMS value of a signal much?

Only modestly at typical THD levels — the total RMS equals the fundamental times √(1+THD²), so even 10% THD increases total RMS by only about 0.5%.

How do I measure THD in the field?

A power quality analyzer or true-RMS meter with harmonic analysis (FFT) capability measures each harmonic's magnitude directly; this calculator then combines those readings into the overall THD figure.

Why do audio amplifiers quote THD?

THD is a standard measure of how faithfully an amplifier reproduces its input signal; lower THD (often <0.1% for hi-fi amplifiers) means less audible distortion added to the original audio.

Related Calculators

RMS Voltage CalculatorPower Triangle CalculatorPower Factor CalculatorAll Calculators