Skip to content

THD calculator: total harmonic distortion in electrical systems

Total harmonic distortion is the square root of the sum of the squares of the harmonic components divided by the fundamental: THD = √(I2² + I3² + …) / I1. For example, a current carrying a 3rd harmonic of 30% and a 5th harmonic of 40% of the fundamental has a THD of 50% and a total RMS value about 1.12 times the fundamental. In contracts and guidelines, current distortion is often judged against the maximum demand current (TDD) rather than the fundamental.

Quantity
Harmonic input
A / V

One value per line: 2nd, 3rd, 4th … harmonic. The defaults are example values resembling a six-pulse drive.

12 values read

A
%

Example value; enter the limit from your contract, specification or the guideline you apply.

The fields are pre-filled with example values; enter your own. The calculation runs in your browser and no data is sent.

Result

Current THD (THDi)
25.74%
Total RMS value
258.15 A
TDD (relative to demand current)
–Demand current not entered
Dominant harmonic order
522% of the fundamental
K-factor (relative to total RMS)
3.30
Σ (Ih/I1)² · h² (relative to fundamental)
3.52
RMS sum of the harmonic components
64.34 A
  • Warning: THD (25.74%) exceeds the comparison limit entered (8%).

Have an engineer review this result

This calculation is a pre-assessment. We can check your inputs and facility data against the single-line diagram and actual operating conditions.

Request a technical pre-assessment
Harmonic components
Order (h)Value(A)Ratio to fundamental(Xh/X1)² · h²
21.250.50%0.000
35.002.00%0.004
40.750.30%0.000
5 (selected)55.0022.00%1.210
60.500.20%0.000
727.5011.00%0.593
80.250.10%0.000
92.501.00%0.008
100.250.10%0.000
1115.006.00%0.436
120.250.10%0.000
1310.004.00%0.270

← Scroll sideways to see the whole table →

Harmonic spectrum (ratio to fundamental) (%)
  • 2nd harmonic0.5 %
  • 3rd harmonic2.0 %
  • 4th harmonic0.3 %
  • 5th harmonic22.0 %
  • 6th harmonic0.2 %
  • 7th harmonic11.0 %
  • 8th harmonic0.1 %
  • 9th harmonic1.0 %
  • 10th harmonic0.1 %
  • 11th harmonic6.0 %
  • 12th harmonic0.1 %
  • 13th harmonic4.0 %
  • The K-factor indicates how much additional eddy current loss a transformer must withstand under harmonic load; a transformer with a K rating of at least this number, or a derating calculation, is needed.

Results are a preliminary assessment based on the values you enter; they do not replace design, relay settings, safety decisions, project calculations or field measurements. Before implementation, a detailed engineering study with the relevant standards and site-specific data is required.

From harmonic values read on a power analyser (as a percentage or in amperes or volts), the tool calculates THD, TDD, total RMS, the dominant harmonic and the K-factor, and shows the spectrum as a bar chart.

How is THD calculated?

THD is calculated as the ratio of the total effective value of the harmonic components to the fundamental component. A distorted periodic wave is split by Fourier analysis into a sine at the fundamental frequency and sines at its whole-number multiples. Because the harmonic components are orthogonal, their effective values combine as a sum of squares: the total RMS is the square root of the sum of the squares of the fundamental and all harmonics. THD takes the harmonic part of that sum relative to the fundamental and describes with one percentage how far the wave departs from a sine.

Current THD can mislead because the denominator is the fundamental at the time of measurement. A drive running at light load shows a high THDi even when its harmonic current is small in amperes. TDD solves this by placing in the denominator the fundamental of the maximum demand current over the measurement period, so light-load conditions with little effect on the network do not look like high distortion. When the demand current is available, the comparison is made on TDD.

Which harmonics dominate describes the source. In drives with six-pulse rectifiers the 5th, 7th, 11th and 13th harmonics stand out; in buildings with many single-phase electronic loads the 3rd harmonic is prominent and adds up in the neutral conductor of a three-phase system. Even harmonics are small in symmetrical loads; if they are large, an abnormality such as half-wave rectification or saturation should be looked for.

The K-factor measures the effect of harmonics on a transformer. Because eddy current losses in the windings rise with the square of frequency, the share of each harmonic is weighted by h². K = 1 means a pure sine; as the value grows, the transformer heats more at the same RMS current. The K-factor here is normalised to the total RMS current, and the tool also shows the sum weighted against the fundamental, because two different normalisations are used in the literature.

Formulas

  • THD = √(Σ_{h≥2} Xh²) / X1

    • Xh: RMS value of the h-th harmonic (A or V)
    • X1: RMS value of the fundamental component
  • X_rms = √(X1² + Σ Xh²) = X1 · √(1 + THD²)

    • X_rms: total effective value
  • TDD = √(Σ_{h≥2} Ih²) / I_L

    • I_L: fundamental of the maximum demand current over the measurement period (A)
  • K = Σ_{h≥1} (Ih² · h²) / Σ_{h≥1} Ih²

    • Normalised to total RMS current; K = 1 for a pure sine

Assumptions and limits

The calculation rests on the assumptions below; outside these conditions the result may deviate:

  • The values entered are steady-state RMS harmonic components; for loads that vary with time, the average or a percentile value of the measurement window should be used.
  • Interharmonics (components that are not whole multiples of the fundamental frequency) and components above the 50th harmonic are not included.
  • The phase angles of the harmonics are ignored; how the harmonics of several sources add up at one point cannot be found with this calculation.
  • The comparison limit is a user input; the tool does not apply the limit table of any standard.
  • The K-factor is calculated from the harmonic spectrum alone, without knowing the real loss distribution of the transformer; the derating factor must be found separately from manufacturer data.

Worked example

Suppose a 250 A outgoing feeder supplying a group of six-pulse drives has measured harmonics of 22% at the 5th, 11% at the 7th, 6% at the 11th and 4% at the 13th. The THDi comes out at 25.7% and the total RMS current at 258.1 A; the dominant component is harmonic order 5. With a maximum demand current of 300 A, the TDD is 21.4%, to be compared with the example limit of 8%. Because the K-factor comes out at 3.30, the harmonic losses of the transformer supplying this feeder should be assessed separately.

Produced with the example values by the calculation engine on this page.

Example inputs

Quantity
Current
Harmonic input
% (relative to fundamental)
Fundamental component (50/60 Hz) RMS
250 A / V
Harmonics, in order starting from h = 2
12 values
Maximum demand current I_L (for TDD)
300 A
Comparison limit
8 %

Result

Current THD (THDi)
25.74%
Total RMS value
258.15 A
TDD (relative to demand current)
21.45%
Dominant harmonic order
522% of the fundamental
K-factor (relative to total RMS)
3.30
Σ (Ih/I1)² · h² (relative to fundamental)
3.52
RMS sum of the harmonic components
64.34 A

Related standards

Standards the calculation relies on, or that should be checked alongside the result:

  • IEEE 519Recommended practice for harmonic control in power systems; definition of TDD
  • IEEE C57.110Establishing transformer capability when supplying nonsinusoidal load currents
  • IEC 61000-4-7Measurement method for harmonics and interharmonics

Frequently asked questions

What is the difference between THD and TDD?

Both are the square root of the sum of squares of the harmonic currents; the difference is the denominator. THD uses the fundamental at the moment of measurement, while TDD uses the maximum demand current over the measurement period. When load falls, THD rises but TDD does not change, so TDD is the more meaningful indicator when judging the distortion fed into the network.

Why is voltage THD usually smaller than current THD?

Harmonic currents produce harmonic voltage drops across the network impedance, and voltage distortion is the result of those drops. With a strong source and low impedance, even tens of percent of current distortion lead to only a few percent of voltage distortion. On weak networks, generator supplies or in resonance conditions, voltage THD rises quickly.

What is the K-factor used for?

Harmonic currents create eddy current losses in transformer windings that grow with the square of frequency. The K-factor expresses that extra heating as one number and is used when selecting a transformer or when calculating the derating of an existing one. For a pure sine it is 1, and it grows as drive and rectifier loads increase.

Where should I get the harmonic values from?

The most reliable source is a measurement with a power analyser that has a defined measurement window and harmonic grouping method. Analysers usually give every harmonic both in amperes and as a percentage, and either gives the same THD. Percentile values from a week-long record are more representative than a single instantaneous reading.

What can be done if THD is high?

First identify the source and the dominant harmonic order. For drives, a line reactor, a multi-pulse rectifier or an active front end can be considered; across a plant, passive or active filters. Because compensation capacitors can resonate with harmonics, a frequency scan should be made before a decision on filters or compensation.