LCL Filter Design for Grid-Tied Inverters: A Step-by-Step Method

Output LCL filter of a three-phase inverter with toroidal inductors and film capacitors
In this article

Cet article existe aussi en français. Lire en français →

Every grid-tied inverter needs a filter between its switching bridge and the grid. A single inductor works, but it has to be large: at 10 kHz switching and 100 kW it ends up around 5 to 10 % of the base impedance, heavy, lossy, and it eats the voltage headroom on the DC link. The LCL filter does the same job with a fraction of the inductance, because its attenuation falls at 60 dB per decade instead of 20. The price is a resonance, and most of the design work is about that resonance.

−60 dB/decLCL slope above resonance, versus −20 for an L
10·fg < f_res < fsw/2classic placement window
fs/6stability boundary set by the control delay
0.3 %common target for switching harmonics, % of rated current

In short

  • Size L1 from the ripple, Cf from the reactive power budget and L2 from the attenuation you need at the switching frequency.
  • Then check the design against the real PWM spectrum: the closed-form ripple formula overestimates L1 by 20 to 30 % with SVPWM.
  • The grid inductance moves the resonance down. A filter that is stable in the lab can cross the fs/6 boundary on a weak grid.
  • Damping is a trade: a series resistor costs losses and turns the −60 dB slope into −40 dB above 1/(Rd·Cf).

Why an LCL filter

LCL filter attenuation, grid current over inverter voltage10 Hz100 Hz1 kHz10 kHz100 kHz-140-100-60-202060f_resfs/6fswfrequency|ig / vi|, dBno dampingwith Rd, stiff gridwith Rd, weak grid (SCR 20)
Attenuation of the example filter (L1 = 208 µH, Cf = 99.5 µF, L2 = 90.2 µH, Rd = 0.38 Ω). Dashed: undamped. The weak grid adds 255 µH and pulls the resonance from 2.0 to 1.4 kHz.

Below the resonance the filter behaves like one inductor L1 + L2. Above it, the capacitor shunts the switching current and the grid sees an attenuation that falls three times faster than with a single inductor. With the resonance at 2 kHz and switching at 10 kHz, the undamped LCL gives about 28 dB more attenuation at the switching frequency than an inductor of the same total value; damping gives some of it back.

Step 1: base values and the operating point

QuantityFormula100 kW, 400 V, 50 Hz
Rated currentIn = P / (√3 · V)144 A rms, 204 A peak
Base impedanceZb = V² / P1.6 Ω
Base inductanceLb = Zb / ω5.09 mH
Base capacitanceCb = 1 / (ω · Zb)1989 µF
Everything that follows is easier to judge in per unit.

Fix the DC-link voltage and the switching frequency before starting: they set the ripple and the modulation headroom. In the example the DC link is 700 V and the switching frequency 10 kHz with double-update PWM, so the controller samples at 20 kHz.

Step 2: inverter-side inductor L1

L1 = Vdc / (6 · fsw · ΔI_max)Reznik et al., worst case of a two-level bridge with sinusoidal PWM

With a ripple of 20 % of the peak current the formula gives 286 µH. It is a safe starting point and a pessimistic one: the worst case it describes happens at a modulation index of 0.5, while a grid inverter runs near 0.9, and space-vector modulation spreads the zero vectors. Simulating the real switching waveform at the actual operating point gives 208 µH for the same 20 %: a quarter less copper and core.

L1 also sets the current the bridge semiconductors see. Peak current = fundamental peak plus half the ripple; check it against the semiconductor rating and the current sensor range, not only the inductor saturation. For a first pass on the core, the inductor design calculator turns L1 and that peak current into an area product, a number of turns and an air gap; entering the fundamental peak as the DC current keeps the wire sizing on the safe side.

Step 3: filter capacitor Cf

Cf = x · Cb, x ≤ 5 %reactive power drawn at the fundamental, as a share of rated power

A larger capacitor lowers the resonance and helps the attenuation, but it draws reactive current at 50 Hz that the inverter must supply, which raises its current rating and lowers the power factor at light load. Five percent is the usual budget: 99.5 µF per phase in star for the example, or 33.2 µF in delta at 400 V.

Step 4: grid-side inductor L2

L2 = (1 + 1/ka) / (Cf · ωsw²)ka = ripple attenuation from inverter current to grid current at fsw

With ka = 20 % the formula gives 15 µH. This is where the textbook method stops and where real designs usually fail their harmonic test. The attenuation target says nothing about the amplitude of the voltage harmonics the bridge produces around fsw and 2·fsw, and with SVPWM the largest grid-current harmonic sits at fsw ± 2·fg, not at fsw. Checking each harmonic of the grid current against a 0.3 % target raised L2 to 90 µH in the example, still only 1.8 % in per unit.

Step 5: resonance placement and damping

The resonance must sit well above the control bandwidth and the low-order harmonics, and well below the switching frequency: the usual window is 10·fg < f_res < fsw/2. Inside that window, the resonance amplifies whatever excites it: background voltage distortion of the grid, the control loop itself, or a neighbouring inverter.

  • Passive damping: a resistor in series with Cf. Rd = 1/(3·ω_res·Cf) gives a quality factor of about 3. It costs losses (0.12 % of rated power in the example) and reduces the high-frequency attenuation.
  • Active damping: feedback of the capacitor current emulates a virtual resistor, without losses, but only within limits set by the control delay (next step).
  • No damping: possible with grid-current control if the resonance stays above fs/6 over the whole grid range.

Step 6: the weak grid and the fs/6 boundary

Resonance frequency versus short-circuit ratio of the grid351020501002000.5 kHz1 kHz1.5 kHz2 kHz2.5 kHz3 kHz3.5 kHz4 kHzfs/6 = 3.33 kHz (double-update PWM at 10 kHz)SCR 20short-circuit ratio at the point of connectionresonance frequency
Resonance of the example filter as the grid weakens. At SCR 20 it has already fallen to 1.4 kHz, far below fs/6.

The grid is not an ideal source: its inductance adds to L2. At a short-circuit ratio of 20, a common minimum in grid codes for medium-size plants, the example sees 255 µH of grid inductance, almost three times L2. The resonance moves from 2.0 to 1.4 kHz.

That matters because of the digital control delay. With one sample of computation and half a sample of PWM delay, Parker, McGrath and Holmes showed that the loop changes behaviour at fs/6. With grid-current control, the undamped loop is stable only if the resonance is above fs/6. With inverter-current control it is the opposite. Capacitor-current active damping behaves as a positive resistance below fs/6 and as a negative one between fs/6 and fs/2. A resonance that crosses fs/6 when the grid changes is the worst case: no fixed controller handles both sides.

Step 7: check against the harmonic limits

Harmonic order hOdd harmonics (IEEE 1547-2018)Even harmonics
below 114.0 %h = 2: 1.0 %, h = 4: 2.0 %, h = 6: 3.0 %
11 to 172.0 %as odd range
17 to 231.5 %as odd range
23 to 350.6 %as odd range
35 to 500.3 %as odd range
Total demand distortion5 %
Limits in % of rated current, equal to IEEE 519 for Isc/IL < 20. Neither standard limits harmonics above the 50th.

Above the 50th harmonic the standards are silent, so the requirement comes from the customer, the grid operator or EMC concerns; 0.3 % of rated current is a common target. Low-order harmonics come mostly from dead time and the grid, and the current controller reduces them with resonant terms. The switching harmonics are far above the control bandwidth: only the filter acts on them, which is why they decide L2.

Tolerances: the filter you build is not the one you designed

EffectTypical sizeWhat it moves
Inductance roll-off at rated current (powder cores)−10 to −30 %Resonance up, ripple and switching harmonics up
Film capacitor tolerance±5 to ±10 %Resonance, reactive power
Grid short-circuit ratiofrom stiff to SCR 10–20Resonance down
Temperatureinductance and capacitance driftSecond-order, but adds to the above

Check the design at the corners: inductors rolled off with capacitance at both ends of its tolerance, on both the stiff and the weakest grid. In the example the worst switching harmonic rises from 0.17 % to 0.28 % at the low-inductance, low-capacitance corner, still inside the 0.3 % target.

Worked example: from formulas to a verified design

Textbook formulasAfter PWM simulation and checks
L1286 µH208 µH (0.041 pu)
Cf99.5 µF99.5 µF
L215.3 µH90.2 µH (0.018 pu)
Rd0.13 Ω0.38 Ω, Q = 3 on the weakest grid
Resonance4.2 kHz2.0 kHz stiff, 1.4 kHz at SCR 20
Worst switching harmonicnot checked0.17 % nominal, 0.28 % at worst corner
100 kW, 400 V, 700 V DC link, 10 kHz SVPWM with double update, grid-current control.

Every number in this table comes from the free LCL filter designer, which simulates the modulator with dead time, sweeps stiff and weak grid and the tolerance corners, and checks each harmonic against IEEE 1547. Change the inputs to your converter and the method above runs in a second.

For the semiconductors on the other side of L1, see SiC MOSFETs and three-phase gate drivers; for the overall method, power electronics design.

FAQ

What is an LCL filter?

A third-order filter between an inverter and the grid: an inductor on the inverter side, a capacitor to the neutral or in delta, and an inductor on the grid side. It attenuates switching harmonics at 60 dB per decade above its resonance.

How do you choose the LCL resonance frequency?

Between ten times the grid frequency and half the switching frequency, and on one side of fs/6 over the whole range of grid strength, where fs is the control sampling frequency.

Do I need a damping resistor in an LCL filter?

Not always. With grid-current control and a resonance that stays above fs/6, the loop is stable without damping. Otherwise use passive damping or capacitor-current active damping below fs/6.

Why does my LCL filter oscillate only on site?

The grid inductance adds to the grid-side inductor and lowers the resonance. On a weak grid it can cross fs/6, where the control loop loses its damping.

What harmonic limits apply to grid-tied inverters?

IEEE 1547-2018 and IEEE 519 up to the 50th harmonic, or EN 50549 and the national grid code in Europe. Above the 50th, the requirement comes from the customer or the grid operator.

Learn it live

This topic is covered in depth, with industrial case studies, in the Industrial power electronics program. Join the waitlist to hear first when it opens — or browse the 64 free guides in the meantime.

Mohamed Yasser El Mekadem, Technical Leader in battery systems and power electronics

Written by

Mohamed Yasser El Mekadem

Technical Leader on a 1500 V rail traction battery. Eight years in onboard railway energy: power converters, HIL validation, battery systems.

Waitlist

Learn this live, with industrial case studies.

Three programs — power electronics, battery systems & BMS, HIL validation. Join the list to hear first when one opens.

One email when a program opens. Unsubscribe in one click. Privacy policy.

Keep reading

Related articles

Drone batteries: LiPo vs Li-ion, specific energy, flight time and BMS
Batteries & BMS

Drone Batteries: LiPo vs Li-Ion, Wh/kg, C-Rate and BMS

A drone battery is the heaviest component in the aircraft and the one that sets its endurance. LiPo against Li-ion, the Wh/kg of real packs and cells, how flight time depends on battery mass, what C-rate a mission actually needs, and what the BMS of a flight battery does differently.

Read the article →