Total Harmonic Distortion Calculator
What is Total Harmonic Distortion?
Current and voltage waveforms depicted from an AC power system are never expected to perfectly follow a sinusoidal waveform, however, due to the existence of non-linear loads they suffer inevitably from noises, referred to as harmonics, which subsequently cause distortion of the former. The total harmonic distortion is a term to define and measure in a quantitative approach by calculating the content of noise to evaluate to what extent a waveform suffers from the impact of non-linear loads. A more detailed introduction to harmonics in AC power system can be found in this article. A lower THD usually means:- Lower waveform distortion
- Better power quality
- More accurate test results
- Reduced heating and stress on equipment
Understanding Harmonics
A real-world voltage or current waveform can be decomposed into multiple sinusoidal components:- A fundamental component (1st harmonic), at frequency \(f\)
- Multiple harmonic components, at integer multiples: \(2f, 3f, 4f, \dots\)
\[v(t) = V_1 \sin(\omega t) + V_2 \sin(2 \omega t) + V_3 \sin(3 \omega t) + \dots\]
Where:- \(V_1\) — amplitude of the fundamental
- \(V_n\) — amplitude of the \(n\)-th harmonic
Definition of THD
THD is defined as the ratio of all harmonic components to the fundamental component:\[ \mathrm{THD} = \frac{\sqrt{V_2^2 + V_3^2 + V_4^2 + \dots}}{V_1} \]
In percentage:\[ \mathrm{THD\%} = \mathrm{THD} \times 100\% \]
THD Calculation Step by Step
There are two mainstream methods depending on what measurements you have.Method 1 — Based on RMS Values of Each Harmonic
This is the most standard calculation used in power quality instruments. If the RMS value of the fundamental is \(V_1\), and the RMS values of each harmonic are \(V_2, V_3, \dots, V_n\):\[ \mathrm{THD} = \frac{\sqrt{V_2^2 + V_3^2 + \dots + V_n^2}}{V_1} \]
Example:- Fundamental: \(V_1 = 220 \, \mathrm{V}\)
- 3rd harmonic: \(V_3 = 15 \, \mathrm{V}\)
- 5th harmonic: \(V_5 = 8 \, \mathrm{V}\)
\[ \mathrm{THD} = \frac{\sqrt{15^2 + 8^2}}{220} = \frac{\sqrt{225 + 64}}{220} = \frac{17.0}{220} = 7.7\% \]
Method 2 — Based on Total RMS Voltage
Some power analyzers only provide:- The total RMS voltage \(V_\mathrm{rms}\)
- The fundamental RMS voltage \(V_1\)
\[ \mathrm{THD} = \frac{\sqrt{V_\mathrm{rms}^2 - V_1^2}}{V_1} \]
This follows from:\[ V_\mathrm{rms}^2 = V_1^2 + V_2^2 + V_3^2 + \dots \]
Example:- \(V_\mathrm{rms} = 230\,\mathrm{V}\)
- \(V_1 = 220\,\mathrm{V}\)
\[ \mathrm{THD} = \frac{\sqrt{230^2 - 220^2}}{220} = \frac{\sqrt{52900 - 48400}}{220} = \frac{\sqrt{4500}}{220} = 9.6\% \]
Why THD Matters in Electrical Testing
High THD can lead to:- Heating and stress in transformers and motors — harmonics increase eddy current and copper losses.
- Errors in power electronics control loops — inverters and chargers depend on clean waveforms for stable operation.
- Reduced efficiency in AC or DC testing environments — many standards limit allowable harmonic levels.
- Voltage distortion in grid simulations — accurate grid testing requires precise harmonic control.
Improving THD
THD can be reduced through:- Filters (LC, LCL, active filters)
- Better inverter modulation strategies (SPWM → SVPWM)
- Low-distortion AC power sources
- Proper grounding and EMI suppression
- More realistic grid emulation
- Compliance with standards
- High-precision test reproducibility
Using the THD Calculator
Our online THD calculator accepts:- Fundamental RMS value
- RMS values of selected harmonics
- Or total RMS + fundamental
- THD (ratio)
- THD%
- Harmonic RMS composition
- Optional harmonic waveform visualization
What to Discover and Explore Next?
A calculated THD value is typically the first step in evaluating harmonic distortion. Further assessment often requires understanding how distortion behaves under controlled and repeatable electrical conditions. Access the following pages for more information related.
- Grid Simulation for Harmonic Distortion and Power Quality Testing
- Harmonics in Electrical Power Systems
Bibliography
- [1] What Causes Harmonics in Electrical Power Systems? Cadence System Analysis, Link
Conduct Harmonic Injection with Testing Platform
Portraying a distorted waveform is just for your reference about how harmonics affect fundamental power. A real programmable system like the TITAN Regenerative Grid Simulator by ActionPower is something you should opt for substantially for testing validation purposes.






