SMPS EMI Filter Basics Guide: How a Common-Mode Choke and X/Y Capacitors Keep Noise Out of the Mains

Author: Abloom Spark Date: November 29, 2026

A switching power supply is a radio transmitter that does not mean to be one. Every time its MOSFET switches, a sharp edge of current and voltage rings through the circuit, and some of that energy escapes back down the mains cable as conducted noise — high-frequency currents riding on the 50 Hz mains. Without a filter, the supply fails its EMC test and can disturb other equipment on the same circuit. The filter that stops it sits right at the mains inlet, before the bridge rectifier, and it is just four parts: a common-mode choke, one X capacitor and two Y capacitors. This guide sizes one for a 100 W supply and shows exactly how much noise each part removes.

An EMI filter schematic with a fuse, a 0.47 microfarad X2 capacitor and 820 kilo-ohm discharge resistor across live and neutral, a 10 millihenry common-mode choke, and two 2.2 nanofarad Y2 capacitors to earth feeding a 100 watt switched-mode supply, beside a chart of insertion loss rising at 40 decibels per decade above 24 kilohertz to about 32 decibels at 150 kilohertz

Figure 1: An EMI filter (a) — Cx shunts differential noise across L–N, the common-mode choke blocks common-mode noise, and the two Cy capacitors shunt it to earth. The chart (b) shows the insertion loss: both paths give about 32 dB at 150 kHz, where the CISPR 32 conducted band starts, and 40 dB more for every decade above that. (Schematic, not to scale.)

How this guide's filter works — two kinds of noise, two paths

Mains noise comes in two forms, and the filter treats them separately. Differential-mode noise flows out on the live wire and back on the neutral — a loop, like the load current itself. Common-mode noise flows out on live and neutral together, in the same direction, and returns through the earth wire and stray capacitance — the path that makes a supply buzz in a nearby radio. The two Y capacitors deal with common-mode noise: each one connects a mains wire to earth, giving the high-frequency current a short path home instead of letting it travel down the cable.

The common-mode choke is the clever part. It is two identical windings on one core, one in the live wire and one in the neutral. Common-mode current flows the same way through both windings, so their magnetic fields add and the choke presents its full inductance — 10 mH here — to that noise. But the load current flows out on live and back on neutral, in opposite directions through the two windings, so its fields cancel and the choke looks like almost a short circuit to the 50 Hz mains. That is why a choke can filter noise without dropping voltage or wasting power at 50 Hz. The choke is not perfect, though: a little flux leaks between the windings, and that leakage inductance — about 1% of the common-mode value, or 100 µH — is in series with the load current, so it acts as a differential-mode inductor for free. Together with Cx across L–N it forms the differential filter, with no extra part needed.

Worked example — a 100 W supply switching at 100 kHz

The conducted-emissions band starts at 150 kHz, so the filter must already be working hard there. Start with the common-mode path: the choke is 10 mH per winding, and for common-mode signals the two 2.2 nF Y capacitors are in parallel, giving 4.4 nF to earth. The corner frequency of that LC pair is f0 = 1 / (2Ï€√(L × C)) = 1 / (2Ï€√(10 mH × 4.4 nF)) = 24.0 kHz. Above the corner, a second-order LC filter attenuates at 40 dB per decade, so at the 100 kHz switching frequency the attenuation is (100 / 24)² = 17.4 times, or 24.8 dB; at 150 kHz it is (150 / 24)² = 39 times, or 31.8 dB; at 500 kHz it is 52.8 dB, and at 1 MHz 64.8 dB. The filter keeps getting better with frequency — until the choke's own parasitic capacitance takes over above a few megahertz, which is why real filters add a small ferrite bead for the top end.

The differential path is the same story with different parts: the leakage inductance of 100 µH and Cx = 0.47 µF give f0 = 1 / (2Ï€√(100 µH × 0.47 µF)) = 23.2 kHz, so the differential attenuation is 25.4 dB at 100 kHz and 32.4 dB at 150 kHz — almost identical to the common-mode path, which is no accident: both corners were chosen near 24 kHz so both kinds of noise meet the same wall.

Two safety numbers complete the design. Each Y capacitor leaks a little 50 Hz current to earth: I = 2Ï€ × 50 × 2.2 nF × 230 V = 0.159 mA. The two caps' 50 Hz currents cancel in the earth wire when the caps are balanced, because live and neutral are in antiphase, and even one cap alone is far below the 3.5 mA limit for Class I equipment — that is why Y capacitors stay small: bigger Cy would filter better but leak more. And Cx holds charge after unplugging: it sits at the 325 V mains peak, and safety rules require the plug pins to fall below 34 V within 1 second. The discharge resistor must satisfy R × C < 1 / ln(325 / 34) = 0.443 s, so R < 0.443 / 0.47 µF = 943 kΩ. An 820 kΩ resistor gives a time constant of 0.385 s, so after 1 second the pins sit at 325 × e−1/0.385 = 24.3 V — safe — and it burns only 230² / 820 kΩ = 0.065 W while running. (Two 1 MΩ resistors in series is the usual alternative, which also survives a single resistor failing short.)

Three traps that defeat the filter

The first is using ordinary capacitors. X2 capacitors are built to fail open-circuit across the mains, and Y2 capacitors to fail open-circuit to earth — if either failed short, the mains would reach the case or the fuse would blow. An ordinary ceramic capacitor has no such guarantee, so never substitute one, whatever its voltage rating says. The second trap is choke saturation: the core must carry the full load current — 100 W / 230 V = 0.43 A RMS here — without saturating. That is safe here because the load current's flux cancels between the windings, but a choke rated for less than the load current will saturate on the mains peaks and stop filtering exactly when the supply is working hardest. The third trap is placement: the filter belongs at the inlet, before the bridge rectifier, with short wires and a solid earth connection. A filter bolted on after the bridge, or with a long earth lead that adds inductance, filters almost nothing — the noise simply walks around it.

Design it for something else — a 200 W supply at 65 kHz

A bigger, slower supply needs a lower corner, because its switching harmonics start lower. Pick a 15 mH choke and 3.3 nF Y capacitors (6.6 nF in parallel for common-mode): f0 = 1 / (2Ï€√(15 mH × 6.6 nF)) = 16.0 kHz, giving (150 / 16)² = 88 times, or 38.9 dB at 150 kHz — about 7 dB better than the 100 W design, which is what a 200 W supply needs to meet the same limit. The leakage current per Y capacitor rises to 2Ï€ × 50 × 3.3 nF × 230 = 0.238 mA, still small, and the choke must now carry 200 / 230 = 0.87 A RMS. The same two formulas scale the whole design: pick the corner a decade below the frequency where you need attenuation, then check the leakage and the current rating.

Key points to remember

  • Worked example: a 10 mH common-mode choke with two 2.2 nF Y capacitors gives a 24.0 kHz corner and 31.8 dB of attenuation at 150 kHz, where the CISPR 32 conducted band starts; the differential path (100 µH leakage + 0.47 µF X2) gives 32.4 dB at the same frequency.
  • A second-order LC filter attenuates at 40 dB per decade above its corner — 24.8 dB at 100 kHz, 52.8 dB at 500 kHz, 64.8 dB at 1 MHz for the common-mode path here.
  • The choke blocks common-mode noise but is nearly invisible to the 50 Hz load current, because the two windings' fields cancel; its leakage inductance does the differential filtering for free.
  • Each 2.2 nF Y capacitor leaks only 0.159 mA at 230 V / 50 Hz, and the two cancel in the earth wire — but Y capacitors must stay small, and only X2/Y2 safety-rated parts may be used.
  • Cx must discharge below 34 V within 1 second of unplugging: 820 kΩ across 0.47 µF leaves 24.3 V after 1 second and burns just 0.065 W.
  • Rate the choke for the full load current (0.43 A RMS here), keep the filter at the inlet before the bridge, and keep the earth lead short — or the noise walks around it.