Harmonic Distortion Calculator
On this page
Calculate
RMS magnitude of the fundamental frequency component. For voltage THD use volts RMS (e.g. 120 V, 230 V, 400 V). For current THD use amps RMS. All harmonic inputs must use the same unit as this value.
RMS magnitude of the 2nd harmonic component. Leave empty if not present or not known.
RMS magnitude of the 3rd harmonic component. The 3rd harmonic is common in three-phase systems with nonlinear loads. Leave empty if not present or not known.
RMS magnitude of the 4th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 5th harmonic component. The 5th harmonic is commonly produced by VFDs, rectifiers, and switching power supplies. Leave empty if not present.
RMS magnitude of the 6th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 7th harmonic component. The 7th harmonic commonly accompanies the 5th in 6-pulse rectifier and VFD systems. Leave empty if not present.
RMS magnitude of the 8th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 9th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 10th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 11th harmonic component. The 11th harmonic is significant in 12-pulse rectifier and large VFD systems. Leave empty if not present.
RMS magnitude of the 12th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 13th harmonic component. The 13th harmonic commonly accompanies the 11th in 12-pulse systems. Leave empty if not present.
Overview
The Harmonic Distortion Calculator estimates Total Harmonic Distortion (THD) for an electrical voltage or current waveform.
It uses the RMS value of the fundamental component and the RMS values of selected harmonic components to calculate THD as a percentage. The result is classified from EXCELLENT to SEVERE so engineers can quickly understand whether the waveform distortion is very low, low, moderate, high, or severe.
This calculator is useful for power quality checks, harmonic troubleshooting, nonlinear load review, VFD and UPS analysis, transformer loading review, motor power quality checks, and early electrical design comparisons.
Use it when you need a fast, consistent THD estimate from known RMS harmonic magnitudes before moving into detailed power quality measurement, harmonic spectrum analysis, or compliance review.
How to Use This Calculator
Enter the Fundamental RMS Value — the RMS magnitude of the fundamental frequency component. For voltage THD use volts RMS; for current THD use amps RMS.
Enter the RMS values of harmonic components — enter RMS magnitudes for any harmonic orders you have data for. Common orders are 2nd, 3rd, 5th, 7th, 11th, and 13th. Leave unused fields empty.
Keep all values in the same RMS unit — do not mix volts and amps. Do not mix peak values and RMS values.
Click Calculate — get the estimated Total Harmonic Distortion as a percentage.
Review the result — the status badge and classification explain what the THD percentage means for waveform quality and power system performance.
The fundamental RMS value must be greater than zero for a valid result. All harmonic RMS values must be zero or positive. The same formula applies to voltage THD and current THD as long as all components use the same RMS unit. THD is a ratio and is shown as a percentage. This calculator does not calculate TDD.
Inputs & Outputs
Inputs
- •Fundamental RMS Value
- •2nd Harmonic RMS
- •3rd Harmonic RMS
- •4th Harmonic RMS
- •5th Harmonic RMS
- •6th Harmonic RMS
- •7th Harmonic RMS
- •8th Harmonic RMS
- •9th Harmonic RMS
- •10th Harmonic RMS
- •11th Harmonic RMS
- •12th Harmonic RMS
- •13th Harmonic RMS
Outputs
- •Total Harmonic Distortion (%)
Formula
Calculator Formula
This calculator uses the standard RMS harmonic distortion formula:
THD (%) = [sqrt(H2² + H3² + H4² + ... + H13²) / V1] × 100
For current THD, the same formula applies:
THD (%) = [sqrt(I2² + I3² + I4² + ... + I13²) / I1] × 100
Where:
- THD — total harmonic distortion, %
- V1 or I1 — RMS value of the fundamental component
- H2...H13 — RMS values of harmonic components above the fundamental
- sqrt — square root
Unit consistency:
- For voltage THD: use volts RMS for all components.
- For current THD: use amps RMS for all components.
- Do not mix voltage and current values.
- Do not mix peak values with RMS values.
- THD is a dimensionless ratio shown as a percentage.
Step-by-Step Calculation
Step 1: Enter the fundamental RMS value
V1 = entered fundamental RMS (e.g. 230 V)
Step 2: Enter the harmonic RMS values
H3 = 6 V, H5 = 9 V, H7 = 4 V (unused orders = 0)
Step 3: Square each harmonic value
6² = 36, 9² = 81, 4² = 16
Step 4: Sum the squared values
36 + 81 + 16 = 133
Step 5: Take the square root
sqrt(133) ≈ 11.53
Step 6: Divide by the fundamental and multiply by 100
11.53 / 230 × 100 ≈ 5.01%
Step 7: Report the result
THD ≈ 5.01% — MODERATE
Variable Reference
| Variable | Meaning | Units |
|---|---|---|
| V1 / I1 | Fundamental RMS value | V RMS or A RMS |
| H2...H13 | Harmonic RMS values above the fundamental | same as fundamental |
| THD | Total harmonic distortion (output) | % |
What is Harmonic Distortion
Harmonic distortion is the deviation of an electrical waveform from a pure sine wave caused by harmonic frequency components. In an ideal AC power system, voltage and current follow a clean sinusoidal waveform at the fundamental frequency, such as 50 Hz or 60 Hz. In real systems, nonlinear loads such as variable frequency drives, rectifiers, UPS systems, LED drivers, switching power supplies, welders, and inverters can create harmonic currents and voltages that distort the waveform.
Total Harmonic Distortion, or THD, combines the RMS values of the harmonic components and compares them with the RMS value of the fundamental component. A lower THD percentage means the waveform is closer to sinusoidal. A higher THD percentage means stronger distortion and a greater chance of power quality problems including increased heating, nuisance trips, equipment stress, and power factor degradation.
THD thresholds are defined by widely adopted standards. Below 3% is EXCELLENT and represents a near-sinusoidal waveform with minimal harmonic risk. Between 3% and 5% is GOOD and is acceptable for most systems. Between 5% and 8% is MODERATE and warrants attention on sensitive loads or growing harmonic sources. Between 8% and 15% is HIGH and usually requires harmonic investigation. At 15% or above, distortion is SEVERE and detailed power quality review is needed. These grading ranges follow the intent of IEEE 519 and IEC 61000 series recommendations.
THD is not the same as Total Demand Distortion, or TDD. THD compares harmonic content with the fundamental component. TDD compares current harmonic content with maximum demand load current and is used specifically in IEEE 519 current distortion requirements at the point of common coupling.
Screening vs. Final Design
This calculator provides a preliminary THD estimate from entered RMS harmonic magnitudes. It is designed for concept-phase checks, load troubleshooting, harmonic comparison, and early power quality review — not for final compliance determination or utility interconnection approval. For safety-critical or regulated installations, final harmonic review must use measured harmonic spectrum data, field power quality analyzers, and project-specific standards review.
Key Facts
- THD stands for Total Harmonic Distortion and is shown as a percentage.
- THD can be calculated for voltage or current — the same RMS formula applies to both.
- All values must be RMS values. Mixing peak values with RMS values gives an incorrect result.
- Higher harmonic RMS values increase THD. A lower fundamental RMS value also increases THD for the same harmonic content.
- A single large harmonic component can dominate the final THD result.
- Common harmonic orders include the 3rd, 5th, 7th, 11th, and 13th.
- THD is not the same as TDD. TDD compares current harmonics with maximum demand load current, not the fundamental.
Applications
- Power quality analysis and harmonic troubleshooting
- Voltage and current THD estimation from RMS data
- VFD, UPS, and rectifier input quality checks
- Transformer heating and neutral loading review
- Generator and solar inverter output quality checks
- Utility interconnection screening
- Early harmonic mitigation planning
Example Calculation
Example Calculation
Voltage THD Example
Given:
- Fundamental voltage, V1 = 230 V RMS
- 3rd harmonic, H3 = 6 V RMS
- 5th harmonic, H5 = 9 V RMS
- 7th harmonic, H7 = 4 V RMS
Formula:
THD (%) = [sqrt(H3² + H5² + H7²) / V1] × 100
Step 1: Square the harmonic RMS values:
6² = 36
9² = 81
4² = 16
Step 2: Add the squared values:
36 + 81 + 16 = 133
Step 3: Take the square root:
sqrt(133) ≈ 11.53 V
Step 4: Divide by the fundamental:
11.53 / 230 ≈ 0.0501
Step 5: Convert to percent:
0.0501 × 100 ≈ 5.01%
Result: THD ≈ 5.01% — MODERATE
This falls in the MODERATE range. Harmonic content is noticeable and should be reviewed when sensitive equipment, strict power quality targets, or growing nonlinear loads are involved.
Current THD Example
Given:
- Fundamental current, I1 = 120 A RMS
- 3rd harmonic, I3 = 8 A RMS
- 5th harmonic, I5 = 12 A RMS
- 7th harmonic, I7 = 5 A RMS
Formula:
THD (%) = [sqrt(I3² + I5² + I7²) / I1] × 100
Step 1: Square the values: 64 + 144 + 25 = 233
Step 2: sqrt(233) ≈ 15.26 A
Step 3: 15.26 / 120 × 100 ≈ 12.72%
Result: THD ≈ 12.72% — HIGH
This falls in the HIGH range. The current waveform has significant harmonic content and may require investigation of nonlinear loads, transformer loading, neutral current, filtering, or resonance risk.
Standards & References
- IEEE Std 519 — Recommended Practice and Requirements for Harmonic Control in Electric Power Systems
- IEC 61000 series — Electromagnetic compatibility and harmonic-related limits and test methods
- IEC 61000-3-2 — Limits for harmonic current emissions for equipment input current up to and including 16 A per phase
- IEC 61000-3-12 — Limits for harmonic currents produced by equipment connected to public low-voltage systems with input current above 16 A and up to 75 A per phase
- EN 50160 — Voltage characteristics of electricity supplied by public distribution systems
- Utility interconnection requirements and project-specific power quality requirements
- Engineering context: THD is a useful waveform-quality indicator, but harmonic review may also require individual harmonic limits, short-circuit ratio, demand current, TDD, point of common coupling, and measured spectrum data.
Limitations
- This calculator uses a simplified RMS component-based THD model for preliminary power quality checks, troubleshooting, and comparison only.
- It calculates THD only. It does not calculate Total Demand Distortion (TDD).
- It does not perform FFT analysis or extract harmonics from a waveform automatically.
- It does not calculate individual harmonic limit compliance.
- It does not determine IEEE 519, IEC 61000, EN 50160, or utility compliance by itself.
- It does not model harmonic resonance, capacitor bank interaction, or transformer derating.
- It does not calculate neutral conductor heating, motor torque pulsation, or power factor correction capacitor stress.
- It does not replace power quality measurements or detailed harmonic analysis for final design.
- Phase angles are not part of the THD formula — phase angles can affect actual waveform shape, peak values, and crest factor but are not included here.
- Use the result as a defined THD estimate from entered RMS harmonic components. For final review, compare with project power quality targets, measured harmonic spectra, and applicable standards.
Common Mistakes to Avoid
- Mixing voltage and current values — do not calculate THD using a voltage fundamental and current harmonics, or the reverse.
- Using peak values instead of RMS values — the formula requires RMS magnitudes. Peak values will produce an incorrect THD.
- Confusing THD with TDD — THD compares harmonics with the fundamental component. TDD compares current distortion with maximum demand load current.
- Ignoring individual harmonic orders — a total THD value can look acceptable while one specific harmonic order is still problematic.
- Using a zero or very small fundamental value — a very low or zero fundamental makes THD extremely high or invalid.
- Entering harmonic percentages as RMS values — if the calculator expects RMS magnitudes, do not enter harmonic percentages unless the interface specifically asks for percentages.
- Treating THD as a full power quality diagnosis — THD is useful, but power quality review may also require spectrum data, resonance checks, and field measurements.
Frequently Asked Questions
What does a harmonic distortion calculator do?
What formula does this calculator use?
What is a good THD percentage?
Can this calculator be used for both voltage THD and current THD?
What is the difference between THD and TDD?
Why do harmonics matter in electrical systems?
Which harmonic orders are usually most important?
Can this calculator prove IEEE 519 compliance?
Frequently Used Together
Engineers often use these calculators in combination for complete project workflows:
Related Calculators
Explore similar calculators that might be useful for your project:
Every Electrical Formula. One Free Sheet.
NEC calcs, motor sizing & code coordination — one printable page.
- Instantly check voltage drop, ampacity & motor current
- Catch the 7 wiring errors that fail code inspections
- 12 design checks to run before submitting drawings
No spam. Unsubscribe any time.
Calculate
RMS magnitude of the fundamental frequency component. For voltage THD use volts RMS (e.g. 120 V, 230 V, 400 V). For current THD use amps RMS. All harmonic inputs must use the same unit as this value.
RMS magnitude of the 2nd harmonic component. Leave empty if not present or not known.
RMS magnitude of the 3rd harmonic component. The 3rd harmonic is common in three-phase systems with nonlinear loads. Leave empty if not present or not known.
RMS magnitude of the 4th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 5th harmonic component. The 5th harmonic is commonly produced by VFDs, rectifiers, and switching power supplies. Leave empty if not present.
RMS magnitude of the 6th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 7th harmonic component. The 7th harmonic commonly accompanies the 5th in 6-pulse rectifier and VFD systems. Leave empty if not present.
RMS magnitude of the 8th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 9th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 10th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 11th harmonic component. The 11th harmonic is significant in 12-pulse rectifier and large VFD systems. Leave empty if not present.
RMS magnitude of the 12th harmonic component. Leave empty if not present or not known.
RMS magnitude of the 13th harmonic component. The 13th harmonic commonly accompanies the 11th in 12-pulse systems. Leave empty if not present.