X cap and Y cap selection made clear: differential vs common mode noise, X1/X2/Y1/Y2 classifications, certification requirements, and PCB layout guidance for EMI filters.
Every AC-connected product ships with an EMI filter on its mains input. Most engineers have placed X capacitors and Y capacitors on a schematic without giving them much thought beyond copying a reference design. That approach worksโright up until the first pre-compliance EMI scan comes back with a problem, or the certification lab flags a safety concern, or the product fails in the field because an unsuitable part was substituted during a BOM revision.
The EMI filter capacitor is not a generic bypass component. The X cap and Y cap classifications exist because these components are connected directly to AC mains voltage and their failure modes are safety-critical. Understanding the classification system, the physics behind how each type suppresses noise, and the selection rules that govern them is essential knowledge for any engineer working on a mains-powered product.
This guide covers the complete picture: how X and Y caps work, the IEC safety classification system, value selection logic, PCB layout practices, and the compliance obligations that make these components different from every other capacitor on the board.
What Is an EMI Filter Capacitor?
An EMI filter capacitor is a safety-rated capacitor connected directly to AC power lines with the specific purpose of suppressing conducted electromagnetic interference. Conducted EMI travels along the mains cables in two distinct modes, and the EMI filter network needs to address both:
Differential mode (DM) noise flows in opposite directions on the Live and Neutral conductorsโit is essentially noise current that takes the normal circuit current path but at frequencies far above mains frequency. X capacitors suppress differential mode noise by connecting across Live and Neutral (LโN), providing a low-impedance shunt path for high-frequency DM current.
Common mode (CM) noise flows in the same direction on both Live and Neutral conductors and returns via the protective earth (ground). It is caused by parasitic capacitance between switching nodes and the chassis or earth, and it is the harder noise mode to suppressโand the more likely cause of radiated emissions failures. Y capacitors suppress common mode noise by connecting between Live and Earth (LโE) and between Neutral and Earth (NโE), providing a shunt path for CM noise current to return to its source without traveling back through the mains cable.
This fundamental difference in noise typeโand in connection topologyโis why X and Y capacitors are separate components with separate safety classifications, separate failure mode requirements, and separate regulatory constraints.
Why EMI Filter Capacitors Are Safety Components
The fact that both X and Y capacitors connect to AC mains lines means their failure modes directly determine whether a product can shock or electrocute a user.
Class X capacitors should fail short to trigger upstream protection such as a fuse or breaker. Class Y capacitors must fail open to avoid shock hazards. This is the foundational safety requirement that defines everything about how these components are constructed, tested, and certified.
An X capacitor failing short is safe: it blows the mains fuse, the product stops working, and the user is not at risk. An X capacitor failing open is also safe: the filter becomes less effective but no hazard is created.
A Y capacitor failing short is catastrophic: it creates a direct connection between the live mains conductor and the equipment chassis. If the chassis is touchableโand on most products it isโthe user faces a lethal shock hazard. This is why Y capacitors must be manufactured to fail open under fault conditions, and why their construction, dielectric integrity, and certification requirements are far more stringent than X capacitors.
The “safety” designation on these capacitors refers not to the dielectric material but to the component having passed specific safety certification tests. In terms of material, safety capacitors are mainly CBB (metallized polypropylene film) capacitors and ceramic capacitors. The certification, not the chemistry, is what makes a component a safety capacitor.
X Capacitor and Y Capacitor Classifications Explained
Both Class-X and Class-Y capacitors have subclasses: subclass X1, X2, and X3, and subclass Y1, Y2, Y3, and Y4. Subclass X2 and Y2 are the most common type of subclass for applications that use 120VAC (USA) or 220/240VAC (Europe).
X Capacitor Subclasses
| Class | Peak Impulse Voltage | Safety Level | Typical Application |
| X1 | >2.5 kV, โค4.0 kV | III | Industrial 3-phase mains, lighting ballasts |
| X2 | โค2.5 kV | II | Consumer electronics, household appliances (most common) |
| X3 | โค1.2 kV | No specific class | Low-energy equipment (rarely used) |
Whereas X2 and Y2 caps are appropriate for household applications, X1 and Y1 safety capacitors are used in industrial settings. For most consumer product designsโSMPS adapters, white goods, industrial controls connected to single-phase 230 V mainsโX2 is the correct specification. For equipment connected to 3-phase industrial supplies where surge voltages can be significantly higher, X1 is required.
Y Capacitor Subclasses
| Class | Insulation Type | Test Voltage | Max Capacitance | Typical Application |
| Y1 | Double/reinforced | 8 kV peak | 4.7 nF (typically) | Industrial, medical across reinforced insulation |
| Y2 | Basic/supplementary | 5 kV peak | 4.7 nF | Consumer electronics, general mains products |
| Y3 | Basic/supplementary | โ | โ | Not widely used in practice |
| Y4 | Functional insulation | <150 V | โ | Telecom, low-voltage applications |
The difference between Y1 and Y2 capacitors is the maximum isolation voltage of the component. Y2 capacitors can be used for barriers with up to 1500VAC test voltage; Y1 rated capacitors can be used for barriers up to 3000VAC test voltage.
For medical equipment, the Y classification maps directly onto patient safety requirements: Y2 rated capacitors will provide sufficient protection to an operator in a 2รMOOP isolation barrier, while Y1 capacitors are required where 2 MOPP (Means of Patient Protection) is needed.
Can You Substitute X2 for Y2 or Vice Versa?
A Y2 capacitor can safely be used in place of an X2 capacitor, but an X2 capacitor should not be used in place of a Y2 capacitor. This is because, although an X2-type capacitor would work and filter noise sufficiently, it would not meet the line-to-ground safety standards. In plain terms: always use the correct class for the connection topology. Never place an X-rated capacitor in a Y position.
Certification Standards: What the Labels Mean
Every safety capacitor should carry visible certification marks on its body. Understanding what you’re looking at matters for both compliance and BOM management.
| Standard | Region | Scope |
| IEC 60384-14 | International | Primary global standard for X and Y safety capacitors |
| EN 60384-14 | Europe (CENELEC) | Identical to IEC 60384-14 |
| UL 1414 | USA | Across-the-line (X cap) applications |
| UL 1283 | USA | EMI filter assemblies |
| CAN/CSA C22.2 No.1 | Canada | Canadian safety requirements |
| GB/T 14472 | China | Chinese national standard |
| AEC-Q200 | Automotive | Qualification standard for automotive-grade safety caps |
The certification marks on a compliant safety capacitor body typically include VDE, ENEC, UL, CUL, CQC, or KC (Korea). A part carrying IEC/ENEC certification is recognized across all CENELEC member countries without repeat testing. For North American markets, UL certification is required separately. Dual-certified parts (carrying both European and North American marks) simplify BOM management for products sold in multiple regions.
When reviewing a BOM or approving a substitute component, verify that the replacement part carries the same certification marks as the original. A physically identical-looking capacitor without the correct certifications is not an acceptable substitute in a safety-capacitor positionโregardless of what the basic electrical datasheet says.
EMI Filter Capacitor Values: How to Select the Right Capacitance
Value selection for X and Y capacitors is governed by two competing requirements: filtering effectiveness (which increases with capacitance) and regulatory limits (which constrain maximum capacitance, particularly for Y caps).
X Capacitor Value Selection
X capacitors suppress differential mode noise. Higher capacitance provides more attenuation at a given frequency, and X capacitors are not limited by leakage current concerns in the way Y capacitors are. Common X2 capacitor values range from 33 nF to 2.2 ยตF.
The X capacitor, together with the differential mode inductance of the common mode choke, forms a low-pass filter for DM noise. The cutoff frequency is:
f_cutoff = 1 / (2ฯ ร โ(L_DM ร C_X))
For a 1 mH differential mode inductance and a 470 nF X2 capacitor: f_cutoff = 1 / (2ฯ ร โ(0.001 ร 0.00000047)) โ 7,300 Hz
This gives strong attenuation above roughly 7 kHzโuseful for a 100 kHz SMPS switching frequency with its harmonics. For higher switching frequencies, smaller X capacitor values are often sufficient, and using too large a value wastes board space and cost.
One critical practical requirement: standards require that the voltage across the X-capacitor decay with a maximum time constant of one second. Typically, this is achieved by including a resistor as a discharge element in parallel with the X-capacitor (sometimes called a “bleeder resistor”). This prevents the mains plug pins from remaining at dangerous voltage after the plug is removed. The resistor must be sized to discharge the capacitor within 1 second per IEC 60950/IEC 60335 requirements.
At 230 VAC, assuming the discharge resistor meets the time-constant requirement, that resistor results in a dissipation of 5.3 milliwatts for every 100 nF of X-capacitance. This ongoing power loss matters for energy efficiency ratings (ErP standby power directives in Europe limit standby consumption to under 0.5 W), which is why X-capacitor discharge ICs have become popular in designs with large X-cap values.
Y Capacitor Value Selection
Y capacitors are far more tightly constrained than X caps. Because Y capacitors connect between the mains line and the protective earth (chassis), any current flowing through them appears as chassis leakage currentโthe same current that flows through a person touching the chassis if the earth connection is broken. Regulatory limits on leakage current are set to safe levels, and those limits directly cap the maximum Y capacitor value.
Restrictions of the leakage current limit the capacitance value of Y1 capacitors to 4.7 nF, but there are applications that require higher capacitance values. In these applications, two or more capacitors can be used in parallel.
| Product Category | Max Leakage Current | Typical Max Y Cap (per phase, 230 V, 50 Hz) |
| IT equipment (IEC 60950) | 3.5 mA | ~47 nF |
| Household appliances (IEC 60335) | 0.75 mA | ~10 nF |
| Industrial equipment (IEC 61010) | 5.0 mA (portable), 3.5 mA (handheld) | ~68 nF |
| Medical equipment class B (IEC 60601) | 0.5 mA | ~6.8 nF |
| Medical equipment class BF/CF | 0.1 mA | ~1.5 nF |
The leakage current at 50 Hz through a Y capacitor is simply I = 2ฯ ร f ร C ร V_rms. For a 4.7 nF Y cap on 230 V, 50 Hz mains: I = 2ฯ ร 50 ร 4.7ร10โปโน ร 230 โ 0.34 mA. Well within the 0.75 mA household appliance limit.
Because the maximum Y cap value is tightly constrained, common mode choke impedance carries the primary burden of common mode attenuation. Y capacitors handle the remaining high-frequency CM noise that the choke doesn’t adequately attenuate.
Complete EMI Filter Capacitor Selection Guide
| Parameter | X Capacitor | Y Capacitor |
| Connection | Line to Neutral (LโN) | Line to Earth (LโE), Neutral to Earth (NโE) |
| Noise type suppressed | Differential mode (DM) | Common mode (CM) |
| Typical values | 33 nF โ 2.2 ยตF | 470 pF โ 10 nF |
| Required failure mode | Fail short (safe to blow fuse) | Fail open (prevent shock) |
| Self-healing | Yes (metallized film) | Yes (metallized film) |
| Most common class | X2 (consumer/industrial) | Y2 (consumer) |
| Voltage rating (consumer 230 V) | 305 VAC or 310 VAC | 250 VAC or 300 VAC |
| Discharge resistor needed? | Yes (bleeder required) | No |
| Leakage current limited? | No | Yes (product-category dependent) |
| Dominant dielectric material | Metallized polypropylene (MKP) | Metallized polypropylene or ceramic |
Choosing Between Film and Ceramic for Y Capacitors
Both metallized polypropylene film and ceramic are used for Y capacitors. Each has a distinct niche.
| Parameter | Film Y Capacitor | Ceramic Y Capacitor |
| Capacitance range | 1 nF โ 47 nF (film) | 10 pF โ 10 nF |
| Self-healing | Yes | No |
| Package | THT, leaded radial | SMD (0805, 1206, 1812) |
| Suitable for SMT reflow? | No (most film types) | Yes |
| Temperature coefficient | Low | Moderate |
| Surge capability | High | Moderate |
| Typical use case | Bulk Y cap in mains filter | High-frequency bypass, SMD designs |
For compact designs using SMD assembly and needing Y capacitors at very small values (33 pF to 4.7 nF), MLCC Y2 capacitors in 1808โ2220 packages at 250 VAC are an effective SMD option for compact or SMT designs, while MKP film capacitors are used for higher capacitance.
The self-healing property of metallized film Y capacitors is a significant safety advantage: if a minor dielectric fault occurs, the arc vaporizes the local metallization and the capacitor continues to function in open-circuit at the fault site. Ceramic Y capacitors do not self-healโa fault propagates. This is why film construction is preferred in higher-stress Y capacitor positions, particularly in industrial environments.
How the Role of the Capacitor Fits Into the Full EMI Filter Network
An EMI filter is not just X and Y capacitorsโit is a network that combines inductive and capacitive elements to create attenuation across a wide frequency range. Understanding where the capacitor fits in this network explains why selecting value and placement both matter enormously.
A typical single-stage LC EMI filter consists of: a common mode choke (provides CM impedance), X capacitors (shunt DM noise), and Y capacitors (shunt CM noise). The combination works as a low-pass filter for both DM and CM paths simultaneously. More demanding applications use two-stage filtersโan additional LC stageโwhich roughly doubles the attenuation slope from โ20 dB/decade to โ40 dB/decade per noise mode.
The order in which these components are arranged on the PCB matters significantly. PCB layout is critical. Incorrect placement of Y capacitors or poor grounding can reduce attenuation by tens of decibels. The standard arrangement places the X and Y capacitors at the mains input, before the common mode choke, and then a second set of Y capacitors at the choke output before the rectifier. This two-stage arrangement handles both the mains-conducted noise coming into the equipment (immunity) and the internally generated switching noise going out onto the mains (emissions).
PCB Layout Rules for EMI Filter Capacitors
Layout errors are the most common reason a well-specified EMI filter fails to perform on the measurement bench. A capacitor that looks correct on the schematic but is routed with long traces and shared ground paths can lose 20โ30 dB of attenuation at high frequency compared to a well-implemented layout.
Keep the filter loop area small. The effectiveness of a Y capacitor is determined by the inductance of the path from the noisy conductor, through the capacitor, and back to the chassis/earth return. Minimizing that loop area minimizes the parasitic inductance that degrades high-frequency performance.
Connect Y capacitor earth terminals directly to the chassis ground pour. A shared via or a long trace between the Y cap ground pad and the chassis earth plane adds series inductance that reduces attenuation above a few MHz. For Y capacitors in particular, multiple vias in parallel directly to a copper pour connected to the chassis earth are the correct approach.
Separate the noisy and clean sides of the filter. The input side of the EMI filter (the mains side) carries conducted noise. The output side (the converter side) should be physically separated to prevent coupling. Running traces from both sides in parallel on adjacent layers or in close proximity on the same layer partially defeats the filter by coupling noise capacitively around the filter network.
Place X capacitors close to the mains entry point. The goal is to intercept differential mode noise before it can propagate across the board. X capacitors located well away from the mains entry point allow DM noise to radiate from the long interconnecting traces before the capacitor has a chance to shunt it.
Application-Specific Selection Table
| Application | Recommended X Cap | Recommended Y Cap | Notes |
| Consumer SMPS adapter (230 V) | X2, 100โ470 nF, 305 VAC | Y2, 2.2โ4.7 nF, 250 VAC | UL+ENEC dual certification for global product |
| Industrial drive, single-phase | X1, 470 nFโ1 ยตF, 305 VAC | Y1, 2.2โ4.7 nF, 300 VAC | Higher surge immunity, X1/Y1 class |
| Industrial drive, 3-phase | X1, 470 nFโ2.2 ยตF, 305 VAC | Y1 (per phase), 4.7 nF | Leakage budget shared across three phases |
| Medical Class B equipment | X2, 100โ470 nF | Y2, โค1 nF (strict leakage budget) | IEC 60601-1; max 0.5 mA touch current |
| Medical Class BF/CF equipment | X2 | Y1, โค470 pF | 2 MOPP required; use two Y1 caps in series |
| Automotive (12 V/48 V systems) | X2, AEC-Q200 rated | Y2, AEC-Q200 rated | Must meet AEC-Q200 qualification standard |
| LED driver (mains dimmable) | X2, 100โ220 nF | Y2, 1โ2.2 nF | Y cap value limited by dimmer compatibility |
| Telecom/server PSU | X2, 470 nFโ1 ยตF | Y2, 4.7 nF | Meet ATIS/Telcordia discharge requirements |
Useful Resources for EMI Filter Capacitor Selection
These are the authoritative references that engineers working on mains-connected products should bookmark:
IEC 60384-14 Standard โ iec.ch โ The primary international standard governing fixed capacitors for EMI suppression connected to mains. Essential for understanding classification, test conditions, and certification requirements.
Vishay Safety Capacitor Series (X1/Y1, X2/Y2) โ vishay.com/safety-capacitors โ Comprehensive product range with IEC, UL, VDE, CQC certifications; includes F340 series technical documentation.
KEMET EMI Safety Capacitor Selector โ kemet.com/safety โ Parametric search covering X1/Y1 and X1/Y2 combination types with full compliance documentation.
Knowles Precision Devices โ EMI Safety Capacitor Guide โ knowlescapacitors.com โ Strong technical resources including the Engineer’s Guide to Safety Capacitors (downloadable eBook).
Wรผrth Elektronik Safety Capacitor Portfolio โ we-online.com/safety-caps โ WCAP-FTXH (X2 film) and WCAP-CSSA (Y2 MLCC) series with application notes.
Power Electronic Tips โ FAQ on X and Y Capacitors โ powerelectronictips.com โ Clear, concise FAQ format covering safety classification, certification, and discharge requirements.
Digi-Key Safety Capacitor Parametric Search โ digikey.com/safety-capacitors โ Real-time stock and pricing with certification filter options; essential for verifying availability of certified parts.
CISPR 22 / EN 55032 โ The conducted EMI limits standard for information technology equipmentโdefines the test methodology and limit lines that X and Y capacitor networks must help meet.
Frequently Asked Questions About EMI Filter Capacitors
What is the difference between an X capacitor and a Y capacitor?
An X capacitor connects across the AC mains linesโbetween Live and Neutral. Its job is to suppress differential mode (DM) noise by shorting high-frequency noise current between the two mains conductors. If it fails, it must fail short to blow the mains fuse. A Y capacitor connects from a mains conductor to earth/ground. Its job is to suppress common mode (CM) noise by shunting high-frequency noise current to ground. Because a Y capacitor failure to short would place mains voltage on a touchable chassis, Y capacitors must be built and certified to fail open under fault conditions. The two types have fundamentally different failure mode requirements, different certification standards, and must never be interchanged.
Can I use any capacitor rated for 250 VAC as a Y capacitor?
No. A standard 250 VAC-rated film or ceramic capacitor is not equivalent to a Y2 safety capacitor, even if the voltage rating matches. Safety capacitor certification (IEC 60384-14) requires the component to pass specific surge withstand tests, humidity and temperature endurance tests, andโcriticallyโto demonstrate the correct open-circuit failure mode under fault conditions. A standard capacitor has not been tested or characterized for these requirements. Using an uncertified capacitor in a Y position will fail EMC certification testing and creates a genuine electric shock hazard.
How many Y capacitors should I use in a typical EMI filter?
A typical single-phase mains EMI filter uses two Y capacitors: one between Live and Earth, and one between Neutral and Earth. Both are needed because common mode noise exists on both mains conductors relative to earth. Some designs use a single Y capacitor from the midpoint of two X capacitors to earthโthis is a CY arrangement that uses the midpoint of the X cap voltage divider. More demanding designs use a two-stage filter with four Y capacitors totalโone pair at the mains entry and one pair at the converter side of the common mode choke.
Why is there a maximum value limit for Y capacitors?
Y capacitors connect between mains conductors and the protective earth. At mains frequency (50 or 60 Hz), even a small capacitor allows a continuous AC current to flow to earthโthis is the chassis leakage current. International safety standards set a maximum allowable leakage current based on the risk of electric shock if a person touches the chassis while the earth connection is broken. For household appliances (IEC 60335), the limit is 0.75 mA; for IT equipment it is 3.5 mA; for medical equipment it can be as low as 0.1 mA. These current limits, at 230 V and 50 Hz, directly translate into a maximum permissible Y capacitor value. The limit is not about circuit performanceโit is purely a safety constraint.
What certifications should I check when selecting a safety capacitor?
At minimum, verify that the capacitor carries certification marks from the recognized bodies for your target markets. For Europe, look for VDE or ENEC marks confirming IEC 60384-14 compliance. For the USA, UL 1414 (X caps) or UL 1283 (EMI filter assemblies) certification. For Canada, CUL or CSA marks. For China, CQC certification to GB/T 14472. For automotive applications, AEC-Q200 qualification. Also verify the specific sub-classification (X1 vs X2, Y1 vs Y2) matches your application’s surge voltage and insulation requirements. The certification marks should be visibly printed on the component bodyโnot just claimed in a distributor’s datasheet field.
Summary
The EMI filter capacitor is one of the few components on a PCB where getting the specification wrong can simultaneously cause a product to fail regulatory compliance testing and create a genuine safety hazard. X capacitors and Y capacitors are not interchangeable with each other, not replaceable with uncertified general-purpose film capacitors, and not simply a higher-voltage-rating version of a standard bypass cap.
The selection logic is straightforward once you understand the architecture: X caps go across the line for differential mode noise, Y caps go line-to-earth for common mode noise, both must carry the correct IEC safety certification for their position and the target market, and Y cap values are capped by leakage current limits that vary by product category. PCB layoutโparticularly low-inductance Y cap connections directly to chassis earthโdetermines whether a correctly specified filter actually performs at the frequencies the design needs.
Getting this right at the first schematic review prevents the expensive cycle of pre-compliance failures, layout revisions, and re-certification that comes from treating safety capacitors as an afterthought.
Related posts:
- 4.7nF Capacitor (Code 472): RC Filter Design, Dielectric Selection & PCB Layout Guide
- 2.2nF Capacitor (Code 222): The PCB Engineer’s Complete Guide to Timing & Filter Applications
- How to Choose the Right Capacitor: Complete Selection Guide
- Ceramic Capacitor (MLCC) Complete Guide: Types, Uses & Selection