Harmonic Distortion Calculator
Calculate Smarter. Work Faster.
Free THD (Total Harmonic Distortion) calculator — enter individual harmonic magnitudes to instantly get the THD percentage for your voltage or current waveform.
Harmonic Distortion Details
Enter individual harmonic magnitudes as % of fundamental, calculated from the 3rd through 13th harmonics entered below.
Leave a harmonic at 0% if it wasn't measured or is negligible — a blank field is treated the same as 0%.
Enter values and hit calculate
Calculated from the 3rd–13th harmonics entered above using the THD-F definition (relative to the fundamental) — compare the result with the applicable limit for your system. Significant harmonics beyond the 13th, if present, will increase actual THD.
Enter values above to see a breakdown.
How Total Harmonic Distortion (THD) Is Calculated
General THD-F formula: THD % = (√(H2² + H3² + H4² + ...) ÷ H1) × 100, where H1 is the fundamental RMS magnitude and H2, H3... are individual harmonic RMS magnitudes. A perfectly clean AC voltage or current waveform is a pure sine wave at the fundamental frequency (50 Hz or 60 Hz depending on region). Real-world non-linear loads distort this waveform, and that distortion can be mathematically decomposed into the fundamental frequency plus a series of harmonic components at whole-number multiples of it. Total Harmonic Distortion (THD) combines all these harmonic components into a single percentage describing overall waveform distortion.
Formula used by this calculator: because each harmonic you enter below is already expressed as a percentage of the fundamental (rather than a raw RMS magnitude), the general formula above simplifies to THD (%) = √(H3² + H5² + H7² + H9² + H11² + H13²), using only the 3rd through 13th harmonics. This is a root-sum-square combination, not a simple sum — harmonic components are effectively orthogonal sinusoids at different frequencies, so their contributions combine by root-sum-square rather than by direct arithmetic addition.
Worked example: a measurement shows 3rd harmonic at 25% of fundamental, 5th at 18%, 7th at 10%, 9th at 5%, 11th at 6%, and 13th at 4%. THD = √(25² + 18² + 10² + 5² + 6² + 4²) = √(625 + 324 + 100 + 25 + 36 + 16) = √1126 ≈ 33.56%. This is an illustrative high-distortion example mixing characteristic 6-pulse harmonics (5th, 7th, 11th, 13th) with non-characteristic components (3rd, 9th) — actual harmonic spectra vary by equipment type and system conditions.
Why the root-sum-square (not simple sum) combination: harmonics exist at different frequencies and generally don't align in phase with each other or with the fundamental in a way that would make direct addition meaningful — the root-sum-square method is the mathematically correct way to combine independent sinusoidal components based on their RMS (root-mean-square) contribution to total waveform distortion, analogous to how independent random errors combine in statistics, or how orthogonal vector components combine via the Pythagorean theorem.
Individual harmonic limits versus overall THD limits: standards like IEEE 519 typically specify limits both for overall THD and for individual harmonic magnitudes separately — a waveform can pass an overall THD limit while still exceeding an individual harmonic's specific limit, or vice versa, since THD is a combined figure that doesn't reveal which specific harmonics contribute most to the total. This is why a complete power quality assessment checks both the overall THD figure and each individual significant harmonic against its own specific limit, not just the single combined THD number this calculator produces.
THD-F versus THD-R: there are two closely related but technically distinct THD definitions in common use — THD-F (the formula used here) expresses harmonic content as a percentage of the fundamental component alone, while THD-R expresses it as a percentage of the total RMS value of the waveform (fundamental plus all harmonics combined). For waveforms with modest distortion, these two definitions give very similar numerical results, but they diverge more noticeably at very high distortion levels — always confirm which definition a specific meter, standard, or specification is actually using, since mixing the two without realizing it can introduce confusion when comparing figures from different sources.
Relationship between current THD and system loading: a facility's current THD, measured at its main incoming supply, isn't purely a function of its non-linear load's characteristics in isolation — it also depends on how much linear (non-distorting) load is present alongside the non-linear load, since linear load current adds to the fundamental without adding harmonic content, effectively diluting the overall current THD percentage. This is why a facility's measured current THD can change meaningfully throughout the day as its overall load mix shifts, even if its harmonic-producing equipment's own behavior remains constant — a useful thing to understand when interpreting THD measurements taken at different times or under different loading conditions.
Summary: use THD = √(H3²+H5²+H7²+...) combining harmonics by root-sum-square, distinguish voltage THD from current THD when checking against limits, remember dominant harmonics depend on the source's pulse number (5th/7th for 6-pulse, higher orders for 12-pulse and beyond), and check both overall THD and individual harmonic limits, not just the single combined figure, for a complete power quality assessment.
Harmonic mitigation options, briefly: passive tuned filters (an inductor-capacitor combination tuned to absorb a specific problem harmonic frequency) are a common, relatively economical mitigation for a known dominant harmonic. Active harmonic filters (power-electronic devices that actively inject a canceling current waveform in real time) offer more flexible, broader-spectrum mitigation but at higher cost, useful where harmonic content varies or spans multiple significant frequencies. Higher-pulse-number rectifier configurations (discussed above) address the problem at its source for large VFD or DC drive installations, avoiding certain harmonics entirely rather than filtering them out after the fact. The right mitigation approach depends on the specific harmonic profile, the criticality of achieving compliance, and budget — often determined through a dedicated harmonic study for facilities with significant non-linear load and a genuine compliance or equipment-protection concern.
Measuring harmonics in practice: a power quality meter or harmonic analyzer capable of capturing individual harmonic magnitudes (not just an overall THD summary reading) gives the most useful diagnostic data, since it reveals which specific harmonics dominate and therefore which mitigation approach (if any is needed) would be most effective. Many modern power quality meters display both individual harmonic spectra and calculated THD simultaneously, and some can log this data over time, which is valuable for capturing how harmonic content varies with load conditions throughout a typical operating day or production cycle, rather than relying on a single spot measurement that might not represent worst-case or typical conditions.
Whether you're troubleshooting equipment sensitive to power quality, evaluating whether a new large VFD installation might need mitigation, or verifying compliance with a utility or code requirement, starting from actual measured harmonic data (not assumed or generic figures) and applying the correct root-sum-square formula gives a defensible, accurate THD figure to work from — the foundation for any further mitigation or compliance decision.
Worked Example
H3=25%, H5=18%, H7=10%, H9=5%, H11=6%, H13=4%: THD = √(25²+18²+10²+5²+6²+4²) = √1126 ≈ 33.56%.
This calculator computes THD from individual harmonic magnitudes you supply, typically obtained from a power quality meter or harmonic analyzer measurement. Interpreting whether a given THD level is acceptable requires comparing against the specific limit applicable to your system voltage level and the point of measurement, per the applicable standard (such as IEEE 519) — always consult the specific limit table for your system rather than assuming a single universal THD threshold applies everywhere. Check both overall THD and individual harmonic limits separately, and pay particular attention to triplen harmonic buildup in the neutral conductor for facilities with substantial single-phase non-linear load.
Common Harmonic Sources and Dominant Harmonics
| Common Source | Dominant Harmonics |
|---|---|
| 6-pulse VFD / rectifier | Typically 5th, 7th, 11th, 13th |
| 12-pulse VFD / rectifier | Typically 11th, 13th, 23rd, 25th (5th and 7th theoretically cancelled under ideal phase-shifted operation) |
| Single-phase switch-mode power supplies (IT loads, LED drivers) | 3rd, 9th (triplen harmonics) |
| Arc furnaces / welding equipment | Broad spectrum, often non-integer/inter-harmonics too |
The dominant harmonics produced by a given load type follow directly from its pulse number (for rectifier-based equipment) — a standard 6-pulse configuration theoretically produces harmonics at 6n±1 (5th, 7th, 11th, 13th, 17th, 19th...), while a 12-pulse configuration cancels the 5th and 7th through phase-shifted transformer windings, pushing the dominant remaining harmonics higher (11th, 13th, and beyond).
Triplen harmonics (3rd, 9th, 15th, and other odd multiples of 3) deserve special mention because they behave differently in three-phase systems with a neutral conductor — rather than canceling in a balanced three-phase system the way most other harmonics tend to, triplen harmonics from single-phase non-linear loads (common IT equipment, LED drivers) actually add together in the neutral conductor, which can cause the neutral to carry more current than any individual phase conductor in facilities with substantial single-phase non-linear load, a genuinely important and sometimes overlooked consideration in neutral conductor sizing for such installations.
Common Mistakes When Calculating or Interpreting THD
1. Adding individual harmonic percentages directly instead of using root-sum-square. Harmonics don't combine by simple addition — using THD = H3+H5+H7+... instead of the correct √(H3²+H5²+H7²+...) formula significantly overstates actual THD.
2. Confusing voltage THD with current THD when checking against a limit. These measure different things and often have different applicable limits — comparing a measured current THD figure against a voltage THD limit (or vice versa) is comparing incompatible quantities.
3. Assuming a single universal THD limit applies everywhere. Applicable THD limits vary by standard, system voltage level, and specific measurement point (often relative to system short-circuit capacity for current THD specifically) — always check the specific limit applicable to your actual system and measurement point, not a generic remembered number.
4. Ignoring even harmonics or non-integer inter-harmonics from unusual load types. Most calculations (including the formula presented here) focus on the commonly dominant odd harmonics from typical rectifier-type loads — some loads (arc furnaces, certain unusual equipment) produce significant even harmonics or inter-harmonics that a standard odd-harmonic-only calculation would miss.
5. Adding power factor correction capacitors without checking for harmonic resonance risk. Capacitor banks can resonate with system inductance at specific frequencies, potentially amplifying an existing harmonic dramatically — a harmonic study before adding significant capacitance is prudent practice in facilities with meaningful non-linear load.
6. Not measuring enough individual harmonics to capture the true THD. Stopping the measurement/summation at a lower-order harmonic (say, only through the 7th) when significant higher-order harmonics (11th, 13th, and beyond) are actually present understates true THD — use a harmonic analyzer capturing a sufficiently wide range of harmonic orders for an accurate result.
7. Overlooking triplen harmonic buildup in the neutral conductor for facilities with substantial single-phase non-linear load. Unlike most other harmonics, 3rd/9th/15th harmonics from single-phase loads can add in the neutral rather than cancel, sometimes producing higher neutral current than phase current — standard THD calculation alone doesn't flag this specific, important neutral sizing consideration.
8. Confusing THD-F and THD-R without realizing they're different definitions. These give similar but not identical results, diverging more at high distortion levels — confirm which definition your specific meter or standard is using before directly comparing figures from different sources.
Frequently Asked Questions
What is the formula for Total Harmonic Distortion (THD)? +
THD (%) = √(H3² + H5² + H7² + H9² + H11² + H13² + ...) where each Hn is that harmonic's magnitude as a percentage of the fundamental (1st harmonic). This gives the combined effect of all harmonic components relative to the fundamental, expressed as a single percentage.
What is a harmonic, in simple terms? +
A harmonic is a sinusoidal component of a distorted waveform at a frequency that's a whole-number multiple of the fundamental (base) frequency — for a 50 Hz system, the 3rd harmonic is at 150 Hz, the 5th at 250 Hz, and so on. Non-linear loads (rectifiers, VFDs, switch-mode power supplies, LED drivers) draw current in a non-sinusoidal pattern, which mathematically decomposes into the fundamental plus this series of harmonic components.
Why do only odd harmonics (3rd, 5th, 7th...) typically matter in most power systems? +
Even harmonics (2nd, 4th, 6th...) are largely absent in most practical power system waveforms because they'd require asymmetry between the positive and negative halves of the waveform, which most common non-linear loads (rectifiers, VFDs) don't produce — these loads typically draw symmetric current in both half-cycles, producing predominantly odd harmonics, which is why odd harmonics (3rd, 5th, 7th, 9th, 11th, 13th) are the ones most commonly measured and discussed.
What is the difference between voltage THD and current THD? +
Current THD (THDi) measures harmonic distortion in the current drawn by a load, primarily a characteristic of that specific load's non-linear behavior. Voltage THD (THDv) measures harmonic distortion in the actual supply voltage waveform, which results from harmonic currents flowing through system impedance — a facility can have high current THD from its own non-linear loads while contributing only modestly to voltage THD if the supply system's impedance and fault capacity are strong, or vice versa depending on system characteristics.
What problems does high harmonic distortion cause? +
High THD can cause additional heating in transformers, motors, and cables (harmonics don't do useful work but still generate resistive heating), nuisance tripping of protective devices, interference with sensitive electronic equipment, reduced power factor (beyond just the displacement power factor from reactive power), and in severe cases, resonance conditions that can amplify specific harmonic frequencies to damaging levels.
What are common sources of harmonics in an industrial or commercial facility? +
Variable frequency drives (VFDs), rectifiers and DC power supplies, uninterruptible power supplies (UPS), LED lighting drivers, arc furnaces and welding equipment, and any other equipment using switch-mode power conversion are common significant harmonic sources — as these types of loads have become more prevalent in modern facilities, harmonic distortion has become an increasingly common power quality concern.
What is a typical acceptable THD limit? +
Limits vary by standard, system voltage level, and the specific point of measurement, but commonly cited voltage THD limits under IEEE 519 are around 5% for general systems at the point of common coupling, with individual harmonic limits also specified separately — current THD limits are typically expressed relative to the load's demand current and vary more significantly by system short-circuit capacity, so always check the specific applicable limit rather than assuming one universal number.
How can harmonic distortion be reduced? +
Common mitigation approaches include harmonic filters (passive tuned filters or active filters designed to cancel specific harmonic frequencies), using higher-pulse-number rectifier configurations (12-pulse or 18-pulse instead of standard 6-pulse) for large VFD or DC drive installations, isolation transformers with specific winding configurations that cancel certain harmonics, and simply ensuring adequate system strength (low source impedance) relative to the harmonic-producing load's size.
Does adding capacitors for power factor correction affect harmonic distortion? +
It can, sometimes significantly — power factor correction capacitors can form a resonant circuit with the system's inductive impedance at a specific frequency, and if that resonant frequency happens to coincide with a significant harmonic present in the system (often the 5th or 7th), the resulting resonance can dramatically amplify that harmonic's voltage or current beyond what it would otherwise be, sometimes causing capacitor or equipment failure. This is why harmonic analysis is often specifically recommended before adding capacitor banks to a facility with significant non-linear (harmonic-producing) load.
Explore More Categories
Electrical Calculators
Cable size, transformer size, motor current, DG size, solar sizing & more.
Browse all →Mechanical Calculators
Belt length, bearing life, cooling tower efficiency & more.
Browse all →Financial Calculators
EPF, PPF, SIP, gratuity, income tax, CAGR & more.
Browse all →Blog & Guides
Maintenance guides & engineering articles.
Browse all →