Power Quality & Harmonics

Active Harmonic Filters

An active harmonic filter is a power-electronic compensation device. Unlike a passive filter built from fixed inductors, capacitors and resistors, it measures the distorted current in real time and injects an equal-and-opposite current so the source current becomes nearly sinusoidal. This final part of the series covers how it works, how it is sized and configured, and why CT location and network impedance still matter.

Reading time ≈ 18 min · Part Four of the series

An active harmonic filter (AHF) reduces harmonic current distortion by measuring the distorted current in real time and injecting a compensating current into the system. Where a passive filter relies on fixed RLC components, the active filter is a controlled current source.

Key idea
  1. The filter injects \(i_{AF}(t)=-i_h(t)\), so the source current becomes nearly sinusoidal.
  2. It is adaptive and normally non-resonant — good for variable and mixed nonlinear loads.
  3. It is sized from the required compensation current, not from kW or transformer kVA.
  4. CT location defines what it can compensate; network impedance (\(V_h=Z_hI_h\)) still governs voltage distortion.

Section 1

The principle of active filtering

Distorted load current + active filter current = nearly sinusoidal source current.

If the nonlinear load current is \(i_L(t)=i_1(t)+i_h(t)\) — fundamental plus total harmonic current — the filter injects the opposite of the harmonic part, and the supply current is left with only the fundamental:

\[ i_{AF}(t)=-i_h(t) \qquad i_S(t)=i_L(t)+i_{AF}(t)=i_1(t)+i_h(t)-i_h(t)=i_1(t) \]
\(i_L(t)\)
nonlinear load current
\(i_1(t),i_h(t)\)
fundamental and total harmonic current
\(i_{AF}(t)\)
current injected by the active filter
\(i_S(t)\)
resulting source (supply) current

In practice compensation is not perfect — measurement delay, control bandwidth, switching frequency, CT accuracy, background distortion and rating limits all matter — but the concept holds: a controlled current cancels the unwanted harmonic components of the load current.

Section 2

Active versus passive filters

A passive filter is a fixed impedance tuned by \(L\) and \(C\); its behaviour depends on system impedance and it can resonate if poorly coordinated. An active filter measures the waveform, computes the unwanted components and injects compensating current through an inverter:

Table 1 — Passive versus active harmonic filters.
FeaturePassive FilterActive Filter
Main principleFixed impedance at selected frequenciesReal-time current compensation
Main componentsCapacitor, reactor, resistorIGBT inverter, DC link, controller, CTs, output filter
TuningFixed by \(L\) and \(C\)Programmable and adaptive
Resonance riskPossible if poorly coordinatedNormally non-resonant
Best forKnown dominant harmonics and reactive powerVariable loads and changing spectra
Losses / costUsually lowerHigher (power electronics)
Extra functionsLimitedHarmonics, reactive, unbalance, neutral current (model-dependent)

Neither is always better. Passive filters can be the best choice for large, stable industrial sources with a known spectrum and a reactive-power need; active filters are preferred where the load is variable, several sources exist, future growth is expected, or passive resonance risk is hard to manage.

Section 3

Shunt and series active filters

The most common arrangement is the shunt active filter, connected in parallel with the nonlinear load. It measures the load (or source) current and injects compensating current at the connection point, so \(i_S(t)=i_L(t)+i_{AF}(t)\). With the load expressed as a Fourier series, the filter generates the negative of the harmonics and the source keeps only the fundamental:

\[ i_L(t)=I_1\sin(\omega t+\phi_1)+\sum_{h=2}^{\infty}I_h\sin(h\omega t+\phi_h) \quad\Rightarrow\quad i_{AF}(t)=-\sum_{h=2}^{\infty}I_h\sin(h\omega t+\phi_h) \quad\Rightarrow\quad i_S(t)\approx I_1\sin(\omega t+\phi_1) \]
\(I_1,I_h\)
fundamental and \(h^{\text{th}}\)-harmonic current amplitude
\(\phi_1,\phi_h\)
fundamental and harmonic phase angles

A series active filter (much less common) is connected in series and mainly compensates voltage distortion to protect the load from a distorted supply:

Table 2 — Shunt versus series active filters.
ArrangementCompensatesTypical Purpose
Shunt active filterHarmonic currentProtect the network from nonlinear loads
Series active filterHarmonic voltageProtect sensitive loads from a distorted supply

Most industrial AHFs — for drives, UPS, EV chargers, rectifiers and mixed loads — are shunt-connected.

Section 4

Internal operating principle

Table 3 — Main components of an active harmonic filter.
ComponentFunction
Current transformersMeasure source or load current
Digital controllerCalculates harmonic and reactive current components
DC-link capacitorProvides the internal DC energy buffer
IGBT inverterGenerates the compensating current
Output LCL / interface filterSmooths the inverter current and reduces switching-frequency components
Protection and monitoringGuards against overload, temperature and abnormal operation

The controller decomposes the measured current into the parts to keep and the parts to compensate:

\[ i_L(t)=i_{\text{active}}(t)+i_{\text{reactive}}(t)+i_{\text{harmonic}}(t)+i_{\text{unbalance}}(t) \]

and forms an output current command from the components selected for compensation:

\[ i_{AF}^{*}(t)=-\left[i_{\text{harmonic}}(t)+k_Q\,i_{\text{reactive}}(t)+k_U\,i_{\text{unbalance}}(t)\right] \]
\(i_{AF}^{*}(t)\)
output current command (reference) for the inverter
\(k_Q,k_U\)
weights for reactive and unbalance compensation, set by the chosen mode and priority

Depending on settings and rating, the filter may compensate harmonics, reactive current, unbalance and sometimes neutral current or selected harmonic orders.

Section 5

Overall and selective compensation

Active filters run in one of two modes:

Table 4 — Overall versus selective compensation.
ModeDescriptionTypical Use
OverallReduces all detectable harmonics within the bandwidthMixed loads, general THD reduction
SelectiveTargets selected harmonic ordersKnown dominant harmonics, limited rating, capacitor coordination

Selective compensation is valuable when the rating is limited or capacitor banks are present — it focuses the available current on the most important orders. A six-pulse rectifier produces \(h=6n\pm1\) (orders \(5, 7, 11, 13, 17, 19, \ldots\)), so selective compensation usually prioritises \(5, 7, 11, 13\), which dominate voltage distortion and resonance. A twelve-pulse converter produces \(h=12n\pm1\) (orders \(11, 13, 23, 25, \ldots\)) and is configured differently.

Section 6

Compensation priority and current rating

The filter has a finite current rating \(I_{AF,\text{rated}}\). The current it would need to compensate everything at once is:

\[ I_{AF,\text{req}}=\sqrt{I_h^{2}+I_Q^{2}+I_U^{2}} \]
\(I_h\)
harmonic compensation current
\(I_Q\)
reactive compensation current
\(I_U\)
unbalance compensation current

If \(I_{AF,\text{req}} > I_{AF,\text{rated}}\) the filter cannot compensate everything at once, and the priority setting decides how the available current is allocated — harmonic-first (then reactive with any spare capacity) or reactive-first (then harmonics). The rating must therefore be selected from the required compensation current, not from transformer kVA or load kW:

\[ I_{AF}\geq\sqrt{\sum_{h=2}^{H}I_h^{2}} \quad\text{(harmonics)}\qquad I_{AF}\geq\sqrt{\sum_{h=2}^{H}I_h^{2}+I_Q^{2}+I_U^{2}} \quad\text{(+ reactive + unbalance)} \]
\(H\)
highest harmonic order within the filter operating range

A margin should be added, because load conditions change and the spectrum is rarely constant:

Table 5 — Why a design margin is needed.
FactorReason
Load growthAdditional nonlinear loads may be connected later
Operating diversitySeveral loads may operate simultaneously
Background distortionThe filter may absorb existing system harmonics
CT errorMeasurement accuracy affects compensation
Temperature / altitude deratingCooling capability reduces the usable rating
Generator operationHigher source impedance may increase voltage distortion
Capacitor-bank operationResonance and current sharing may change

Section 7

The PCC, network impedance and generators

Compliance is checked at the point of common coupling (PCC). The aim is not perfectly sinusoidal internal currents but acceptable distortion at the PCC and protected internal equipment. The active filter reduces \(I_h\), so the harmonic voltage falls — but network impedance still governs the result:

\[ V_h=Z_h I_h \qquad I_{h,\text{new}}=I_{h,\text{load}}-I_{h,\text{AF}} \qquad V_{h,\text{new}}=Z_h\left(I_{h,\text{load}}-I_{h,\text{AF}}\right) \]
\(V_h,Z_h\)
harmonic voltage and network impedance at order \(h\)
\(I_{h,\text{load}},I_{h,\text{AF}}\)
load harmonic current and filter compensation current

If the filter fully compensates the harmonic current, \(I_{h,\text{AF}}\approx I_{h,\text{load}}\) and \(V_{h,\text{new}}\approx 0\); in practice a residual remains. Where the system resonates near a harmonic, even a small residual current can produce significant voltage, so a harmonic study may still be needed. The same \(V_h=Z_h I_h\) explains why a load fed from a generator can show higher voltage distortion than from a transformer — the generator's subtransient reactance gives a higher \(Z_h\):

Table 6 — Supply mode and the checks it drives.
Supply ModeCheck Required
Utility transformer supplyNormal PCC harmonic limits
Generator supplyHigher voltage distortion from higher source impedance
Parallel transformersLower impedance but different harmonic sharing
Single-transformer outageHigher impedance and possible resonance shift
Weak networkIncreased voltage-distortion sensitivity

For installations with standby generation, the AHF should be checked in both utility and generator modes.

Section 8

CT location and capacitor banks

Correct CT location is critical — the filter can only compensate what it measures:

Table 7 — CT location and what it makes the filter do.
CT LocationMeaning
Source-side / PCC-sideThe filter tries to make the source current sinusoidal
Load-sideThe filter measures the load current and injects the opposite harmonics
Measured current → calculated compensation → injected current. The filter only compensates loads inside the measured zone.

If CTs are on the wrong side, or a load sits outside the measurement zone, compensation is poor; if capacitor current is wrongly included, the filter may respond in an unintended way. CT polarity, phase sequence, ratio, burden and accuracy all matter — reversed polarity can make the filter inject in the wrong direction. Active filters can work with capacitor banks, but the arrangement needs care, because a non-detuned bank can resonate with the source inductance and the filter is not a cure for a severe capacitor resonance:

Table 8 — Principles when active filters and capacitor banks coexist.
RequirementReason
Use detuned capacitor banks with nonlinear loadsReduces resonance risk
Check the capacitor tuning frequencyKeep it out of the AHF compensation range
Use selective compensation where neededPrevent unwanted interaction
Place CTs so capacitor current is not compensatedAvoid hunting or unintended operation
Frequency scan for all combinationsConfirm no dangerous resonance
Check capacitor RMS current and voltageEnsure the capacitor is not overloaded

Power-factor-correction capacitors should not be added blindly to a system with drives, rectifiers or active filters — their effect on harmonic impedance must be checked.

Section 9

The shunt-filter maths and a worked example

Decomposing the load into fundamental active, fundamental reactive and harmonic parts, \(i_L(t)=i_{1p}(t)+i_{1q}(t)+i_h(t)\), shows that harmonic compensation and power-factor correction are not the same. With harmonics only, the source still carries the reactive current; with harmonics and reactive together, the source is left with active current alone:

\[ i_{AF}(t)=-i_h(t)\ \Rightarrow\ i_S(t)=i_{1p}(t)+i_{1q}(t) \qquad\qquad i_{AF}(t)=-\left(i_h(t)+i_{1q}(t)\right)\ \Rightarrow\ i_S(t)=i_{1p}(t) \]
\(i_{1p}(t),i_{1q}(t)\)
fundamental active and reactive current
\(i_h(t)\)
harmonic current

As a concrete example, take a distorted current with a fundamental and four harmonics. The filter injects the negative of the harmonic part, leaving a clean fundamental:

\[ i_L(t)=\sin(\omega t)+0.30\sin(5\omega t)+0.18\sin(7\omega t)+0.09\sin(11\omega t)+0.07\sin(13\omega t) \]
\[ i_{AF}(t)=-\left[0.30\sin(5\omega t)+0.18\sin(7\omega t)+0.09\sin(11\omega t)+0.07\sin(13\omega t)\right] \quad\Rightarrow\quad i_S(t)=\sin(\omega t) \]

The filter does not remove the fundamental active current — it removes the unwanted harmonic components. This is the core idea behind every active-filter waveform.

Section 10

Advantages and limitations

Table 9 — Advantages of active harmonic filters.
AdvantageExplanation
Adaptive compensationResponds to changing load conditions
No fixed LC tuningLower risk of passive resonance
Parallel installationOften retrofitted with limited system rework
Selective controlCan target selected harmonic orders
Combined functionsHarmonics, reactive compensation and load balancing may be possible
Modular expansionModules can be added for future growth
Good for variable loadsSuits VSDs, UPS, chargers, mixed electronic loads
Table 10 — Limitations of active harmonic filters.
LimitationExplanation
Higher costPower electronics and controls are expensive
Limited current ratingCannot compensate beyond its rated current
CT-dependent performanceWrong CT location or polarity causes poor operation
Switching lossesHeat dissipation and ventilation required
Control bandwidthVery high-order harmonics may not be fully compensated
Not a substitute for poor designSevere resonance or unsuitable capacitors still need correction
Requires commissioningSettings, priorities and CT configuration must be verified

The headline advantage is flexibility; the headline caution is that an AHF is engineered equipment, not a plug-in device.

Section 11

Sizing philosophy and study requirements

The rating should be based on measured or calculated harmonic current, with reactive and unbalance added if required, then a margin applied:

\[ I_{AF,h}=\sqrt{I_5^{2}+I_7^{2}+I_{11}^{2}+I_{13}^{2}+\cdots} \qquad I_{AF}=\sqrt{I_{AF,h}^{2}+I_Q^{2}+I_U^{2}} \qquad I_{AF,\text{selected}}\geq K_m\,I_{AF} \]
\(I_{AF,h}\)
harmonic compensation current
\(I_Q,I_U\)
reactive and unbalance compensation currents (if required)
\(K_m\)
design margin (load growth, uncertainty, duty cycle, background distortion)

For small LV jobs, manufacturer sizing tools and measurements may suffice; for larger or MV / utility-facing installations a harmonic study is needed, reviewing the inputs and running the study items below.

Table 11 — Harmonic study items for an active-filter installation.
Study ItemPurpose
Existing harmonic measurementsEstablish background distortion
Harmonic source spectrumEstimate injected harmonic currents
Frequency scanIdentify resonance and impedance peaks
Harmonic load flowCalculate harmonic voltages and currents
Active-filter and capacitor modelsRepresent compensation limits and detuning
Source and generator impedanceAssess source strength
Operating scenariosNormal, outage, generator, minimum fault level
PCC compliance and equipment dutyVerify limits and equipment ratings

A frequency scan is useful even with an active filter: it reduces current injection, but the network impedance still determines voltage distortion and possible amplification.

Section 12

Commissioning, standards and key message

Harmonic limits are normally referenced to the PCC: IEEE 519 for voltage and current distortion at the user interface, IEC TR 61000-3-6 for emission allocation on MV/HV/EHV systems, and CIGRE guidance for frequency-domain network modelling. In short:

AHF rating + PCC limit + network impedance = an acceptable design.

At commissioning, the most common real-world problem is not the filter technology but incorrect CT installation or a wrongly defined compensation zone. The key checks are:

Table 12 — Active-filter commissioning checks.
CheckPurpose
CT ratio, polarity, phase sequenceCorrect scaling, direction and phase reference
CT location settingSource-side or load-side compensation
Compensation mode and priorityOverall/selective; harmonic or reactive priority
Individual harmonic settingsTarget the dominant orders
Capacitor-bank interactionAvoid unintended response
Current rating and loadingConfirm the filter is not at its limit
Source-current waveform and PCC THDConfirm improvement and compliance
Thermal performance, alarms and tripsConfirm ventilation, derating and protection
Active harmonic filtering = measurement + real-time control + counter-phase current injection.
Key message

An active harmonic filter is a controlled current source in parallel with nonlinear loads: it measures the unwanted harmonic current and injects an equal-and-opposite current, \(i_{AF}(t)=-i_h(t)\), so the source current \(i_S(t)=i_L(t)+i_{AF}(t)\) becomes nearly sinusoidal — and with reactive compensation enabled, more closely in phase with the supply voltage. It cancels current, not “magic distortion”; its rating must come from harmonic current rather than kW; CT location defines what it can do; and \(V_h=Z_h I_h\) means network impedance and capacitor banks still matter. A good AHF design must satisfy PCC limits, internal equipment duty, CT correctness and network frequency-response requirements together.

Four-Part Technical Series

Harmonic Filters

A four-part guide to harmonic filters — passive filter arrangements, single-tuned filter design, the second-order damped filter, and the active harmonic filter for adaptive current compensation.

Part Four Reading now

Active Harmonic Filters

The active filter that cancels harmonic current in real time — shunt vs series, selective compensation, current rating, CT location and PCC compliance.

Series progress 4 of 4