X and Y Safety Capacitors: EMI Suppression & Mains Safety Explained

“Weโ€™ve trusted Rayming with multiple PCB orders, and theyโ€™ve never disappointed. Their manufacturing process is top-tier, and their team is always helpful. A+ service!”

I have had excellent service from RayMing PCB over 10 years. Your engineers have helped me and saved me many times.

Rayming provides top-notch PCB assembly services at competitive prices. Their customer support is excellent, and they always go the extra mile to ensure satisfaction. A trusted partner!

X2 capacitor and Y safety capacitor guide for engineers: classifications, EMI suppression, leakage limits, PCB layout rules, certification requirements, and selection tables.

Every switching power supply, motor drive, and mains-connected appliance you’ve ever designed or worked on has at least one safety capacitor somewhere in its EMI filter. Most engineers know they need an X2 capacitor across the line and Y capacitors to ground โ€” but fewer understand exactly why the classification system exists, what happens when these parts fail, and why substituting an unmarked film capacitor “that’s the same value” is a potentially lethal mistake.

This guide covers the complete picture: the regulatory framework behind X and Y safety capacitor classifications, how they suppress differential and common-mode EMI, how to select and apply them correctly, and the real-world failure modes that the classification system is designed to prevent.

Why Safety Capacitors Exist: The Regulatory and Safety Background

When you connect a capacitor directly across mains voltage โ€” or between mains and a grounded chassis โ€” you’re creating a potential shock or fire hazard if that capacitor fails. Conventional film capacitors fail short-circuit when overstressed. A shorted capacitor across 230V AC is a fire hazard. A shorted capacitor between live and a grounded enclosure puts mains voltage on the chassis โ€” a lethal shock hazard.

Safety capacitors are designed and tested to fail in a predictable, safe way: open-circuit. The dielectric and metallization system are engineered so that when breakdown occurs, the fault energy vaporizes the metallization around the failure point, isolating it rather than creating a sustained arc. This self-healing behavior is the core safety property, and it’s what the X and Y classification system certifies.

The International Standards Behind X and Y Capacitors

The primary governing standard is IEC 60384-14, which defines the classification, performance requirements, and test methods for fixed capacitors used in equipment connected to AC mains. North American markets reference UL 60384-14 (harmonized with IEC) and the older UL 1414 for specific applications.

Equipment-level EMC standards โ€” CISPR 22/EN 55022 for IT equipment, EN 55032 for multimedia equipment โ€” define the conducted emissions limits that X and Y capacitors help meet. These limits appear in certification requirements for CE marking in Europe, FCC Part 15 in the United States, and equivalent marks in other markets.

The practical reality for a PCB designer is that you need safety capacitors that carry the correct safety mark from an approved certification body โ€” VDE, UL, CSA, ENEC, CQC โ€” depending on your target markets. An unmarked capacitor of the same value and voltage rating does not satisfy this requirement, regardless of its actual electrical properties.

Understanding the X and Y Classification System

X Capacitors: Line-to-Line EMI Suppression

X capacitors are connected directly across the AC mains โ€” between Line (L) and Neutral (N). They suppress differential-mode interference, which is noise that appears between the two mains conductors. In a switching power supply, the switching transients of the main power transistor couple back onto the mains as differential-mode EMI, and the X capacitor provides a low-impedance path for these high-frequency currents to circulate locally rather than propagating back onto the mains network.

X capacitors are classified by their rated voltage and the impulse voltage they must survive:

ClassApplicationRated Voltage (VAC)Impulse Voltage (Vpeak)Typical Failure Mode Requirement
X1High impulse environments>250V to 440V4,000VOpen circuit
X2General mains applicationsโ‰ค250V2,500VOpen circuit
X3Less critical applicationsโ‰ค250VNot specifiedOpen circuit

X2 capacitors are the most common class used in power supply EMI filters for 230V and 120V mains applications. The 2,500V impulse rating covers the transients that occur in normal mains environments โ€” switching of large loads on the same circuit, indirect lightning coupling, and utility switching events.

X1 capacitors are required in industrial environments where more severe impulse conditions are expected โ€” 400/440V three-phase systems, industrial machinery with large motor loads, and applications near high-energy switching equipment.

X3 capacitors are rarely used in modern designs because they have no impulse voltage requirement, which makes them inappropriate for any mains-connected application where transient overvoltages are possible.

Y Capacitors: Line-to-Ground EMI Suppression

Y capacitors connect between a mains conductor (Line or Neutral) and the protective earth ground. They suppress common-mode interference โ€” noise that appears identically on both mains conductors relative to ground. Common-mode EMI is typically generated by high-frequency switching currents that flow through parasitic capacitances between the switching node and the chassis or heatsink.

Because Y capacitors bridge the isolation barrier between mains potential and accessible ground, their failure mode is critical: a shorted Y capacitor puts mains voltage on the chassis, creating a shock hazard. The classification system for Y capacitors reflects the level of isolation required:

ClassApplicationReinforced/Basic InsulationRated Voltage (VAC)Capacitance LimitImpulse Voltage
Y1Across reinforced or double insulationDouble insulation250VNo limit8,000V
Y2Across basic insulation, earthed equipmentBasic insulation150/250VNo limit5,000V
Y3Across basic insulationBasic insulation250VNo limitNot specified
Y4Across basic insulationBasic insulation150VNo limitNot specified

Y2 capacitors are the workhorse class for most consumer and industrial equipment connected to earthed mains supplies. They’re rated for basic insulation โ€” meaning the chassis is grounded and a single failure (the Y capacitor shorting) doesn’t create a shock hazard because the protective earth trips the breaker.

Y1 capacitors are required in Class I equipment with reinforced insulation and in medical equipment where leakage current is strictly controlled. The higher impulse rating (8,000V) and double insulation requirement reflect the more demanding safety environment.

Why Y Capacitor Values Are Limited by Leakage Current

Here’s something that surprises engineers encountering safety capacitor design for the first time: Y capacitor values are strictly limited by the leakage current they allow to flow through the protective earth.

A Y capacitor connected between Live and PE allows a continuous current to flow through the PE conductor equal to:

I_leakage = V_mains ร— 2ฯ€ ร— f ร— C_Y

For a 230V, 50Hz system with a 10 nF Y capacitor:

I_leakage = 230 ร— 2ฯ€ ร— 50 ร— 10ร—10โปโน = 0.72 mA

IEC 60950-1 (general IT equipment) limits touch current to 3.5 mA. IEC 60601-1 (medical equipment) limits patient leakage current to 100 ยตA for type B equipment and 10 ยตA for type CF (cardiac-floating). This is why you’ll see much smaller Y capacitor values โ€” or none at all โ€” in medical power supplies, and why the EMC performance of medical equipment is often compromised compared to industrial equipment.

The practical capacitance limit for Y2 capacitors in 230V/50Hz equipment targeting IEC 60950-1 compliance is approximately 47 nF per capacitor from Line to PE and Neutral to PE combined.

How X and Y Capacitors Suppress EMI: The Filter Topology

The Standard EMI Filter Structure

A complete mains EMI filter using safety capacitors has a defined topology that addresses both differential-mode and common-mode interference. Understanding the signal flow makes it much easier to size the components correctly.

The standard single-stage filter topology from mains inlet to SMPS consists of:

From mains inlet toward load: Y capacitor (L-PE) โ†’ Common-mode choke โ†’ Y capacitor (N-PE) on output side, with X capacitor (L-N) on both input and output of the common-mode choke.

Each element in this chain targets specific interference paths:

ComponentPositionMode SuppressedMechanism
X capacitor (input)L-N at mains inletDifferential-modeShunts L-N high-frequency current
Y capacitors (input)L-PE, N-PE at inletCommon-modeShunts CM current to PE
Common-mode chokeSeries in L and NCommon-modeHigh CM impedance, low DM impedance
X capacitor (output)L-N after CM chokeDifferential-modeLimits CM choke differential leakage
Y capacitors (output)L-PE, N-PE after chokeCommon-modeFinal CM attenuation stage

Differential Mode vs. Common Mode: What’s Actually Being Filtered

Differential-mode (DM) noise flows in opposite directions on Line and Neutral โ€” it’s the “normal” signal path for both the power current and for DM interference. The X capacitor presents a low impedance across L-N at high frequencies, shorting out DM interference before it reaches the mains.

Common-mode (CM) noise flows in the same direction on both Line and Neutral, returning through the PE conductor. It’s generated by parasitic capacitance between switching nodes and grounded heatsinks or chassis. The Y capacitors provide a controlled, low-impedance path for CM currents to return to the source through PE rather than coupling to the mains.

The common-mode choke โ€” two windings on a high-permeability toroidal core wound to cancel DM flux while presenting high impedance to CM currents โ€” is the key element that works with the Y capacitors to attenuate common-mode noise over the 150 kHz to 30 MHz frequency range covered by CISPR conducted emissions limits.

Selecting the Right X and Y Capacitors: Practical Engineering Guidance

Selecting X2 Capacitors for Power Supply EMI Filters

For most consumer and light industrial equipment operating from 85โ€“265V AC mains, the X2 class is the correct choice. Key selection parameters:

Capacitance value: X2 capacitors for differential-mode filtering typically range from 100 nF to 470 nF. Larger values provide more attenuation but increase the voltage surge energy that must be absorbed safely. Start with 220 nF for a first-pass design and adjust based on pre-compliance EMC testing results.

Voltage rating: For X2 class, 275V AC or 305V AC rated parts are standard for 230V mains. The AC voltage rating must exceed the nominal mains voltage โ€” the safety rating provides the impulse margin. Never use a capacitor with an AC voltage rating below the mains voltage.

Capacitance tolerance: ยฑ10% or ยฑ20% is standard for EMI filter capacitors. The filter attenuation is not sensitive to exact capacitance values, so tight tolerance is unnecessary and adds cost.

Lead pitch and package: X2 capacitors come in standard through-hole packages with 10mm, 15mm, 22.5mm, and 27.5mm lead pitches, as well as SMD packages for automated assembly. The creepage and clearance distances built into the package body are part of the safety certification โ€” don’t clip leads shorter than specified or use spacers that reduce PCB creepage.

Selecting Y2 Capacitors for Common-Mode Suppression

Capacitance value: Y2 capacitors for common-mode filtering are limited by leakage current requirements, typically 1 nF to 47 nF. For equipment with generous leakage current allowance (industrial, 3.5 mA limit), values up to 47 nF are practical. For equipment with strict leakage limits (medical, portable), 1 nF or less per Y capacitor may be the maximum.

Voltage rating: Y2 capacitors are typically rated at 250V AC or 300V AC. The impulse rating (5,000V for Y2) is the more demanding requirement, driving the choice of dielectric thickness and grade.

Placement: Y capacitors between Line/Neutral and PE should be placed as close to the mains inlet as physically possible to intercept conducted CM currents before they propagate into the equipment. A second Y capacitor pair on the secondary side of the common-mode choke improves high-frequency attenuation.

X and Y Capacitor Selection Summary Table

ParameterX1X2Y1Y2
Typical applicationIndustrial 400VConsumer 230V/120VMedical, double insulatedGeneral earthed equipment
AC voltage rating440V275/305V250V250/300V
Impulse voltage4,000V2,500V8,000V5,000V
Typical capacitance100โ€“470 nF100โ€“470 nF1โ€“10 nF1โ€“47 nF
Leakage concernNoNoYes (critical)Yes
Common dielectricMetallized PP filmMetallized PP filmCeramic (Class II) or filmCeramic (Class II) or film
Failure modeOpenOpenOpenOpen

PCB Layout Guidelines for Safety Capacitors

Creepage and Clearance Requirements

Safety capacitors bridge isolation barriers, which means the PCB traces connected to them must maintain required creepage and clearance distances. These are not arbitrary โ€” they’re mandated by IEC 60664-1 and the product safety standards that reference it.

For 230V mains-connected equipment in a Pollution Degree 2 environment (typical indoor equipment):

Insulation LevelMinimum ClearanceMinimum Creepage (CTI โ‰ฅ175, Material Group IIIa)
Basic insulation1.5 mm2.5 mm
Reinforced insulation3.0 mm5.0 mm
Double insulation3.0 mm5.0 mm

These distances apply to copper traces on the PCB as well as component lead spacing. Y capacitors crossing the primary-to-secondary barrier in an isolated power supply must maintain reinforced insulation distances โ€” the capacitor package itself is designed for this, but your PCB layout must not violate it with adjacent copper.

Common Layout Mistakes with Safety Capacitors

The most frequent PCB layout error with Y capacitors is routing the PE return trace through a long path before reaching the chassis ground point. Any inductance in the PE trace reduces the effectiveness of the Y capacitors at high frequencies. The PE connection should be as short and direct as possible โ€” ideally directly to the chassis mounting point rather than routed through the PCB ground plane.

For X capacitors, placing them close to the mains inlet connector prevents high-frequency currents from circulating through the PCB before being shunted. An X capacitor at the far end of a long PCB trace has significantly reduced effectiveness because the trace inductance prevents the capacitor from presenting a low impedance at the frequencies of interest.

Thermal Considerations

Safety capacitors in mains filters carry continuous reactive current. For a 470 nF X2 capacitor on 230V/50Hz, the reactive current is approximately 34 mA โ€” not enough to cause significant heating in the capacitor itself, but the PCB traces and through-hole pads must be sized for this current. In high-frequency operation above 50 Hz (variable frequency drives, aircraft 400 Hz mains), this current scales linearly with frequency and becomes more significant.

Regulatory Compliance and Certification Requirements

What Safety Marks Are Required?

For equipment sold in different markets, the safety capacitors in your design must carry the appropriate certification marks:

MarketRequired MarksCertification Body
European UnionVDE, ENEC, or equivalentVDE, TรœV, KEMA-KEUR
North AmericaUL, CSAUL, CSA Group
ChinaCQC (compulsory for many categories)CQC
JapanJIS mark or PSEJET, UL Japan
GlobalMultiple marks or IECEx-basedMultiple

The key requirement from a procurement standpoint: the safety mark must be on the component itself (physically marked on the capacitor body), not just in a test report. During product safety audits, inspectors verify the marks on installed components.

Working with Approved Component Databases

Rather than attempting to verify individual capacitor certifications manually, use the manufacturer’s certified part number lists and cross-reference with the certification body’s online databases:

Major approved X2 capacitor manufacturers for reference: KEMET, Vishay, WIMA, Panasonic, TDK/EPCOS, Murata, Wรผrth Elektronik, AVX. All publish approved part number lists linked to their certification marks.

Useful Resources for X and Y Safety Capacitor Design

These references are essential for any engineer working with mains-connected equipment:

  • IEC 60384-14 Standardย โ€” iec.ch/storeย โ€” the primary international standard defining X and Y capacitor classifications and test requirements
  • KEMET X2/Y2 Safety Capacitor Selectorย โ€” kemet.com/en/us/capacitors/film/safety-capacitorsย โ€” parametric search tool with certification filter by market
  • Wรผrth Elektronik WCAP-FTXX Series Application Notesย โ€” we-online.com/components/products/WCAP-FTXXย โ€” includes complete EMI filter design guidance with X and Y component sizing
  • TDK/EPCOS Safety Capacitor Portfolioย โ€” tdk-electronics.tdk.com/en/safety-capacitorsย โ€” full lineup of X1, X2, Y1, Y2 with cross-market certifications
  • VDE Component Certification Databaseย โ€” vde.com/en/institute/services/certification/component-certificationย โ€” searchable database of VDE-approved components including X and Y capacitors
  • UL Product iQ Databaseย โ€” iq.ul.comย โ€” official UL certified component database, search by manufacturer and part number
  • Murata EMI Filter Design Tool (SimSurfing)ย โ€” product.murata.com/simsurfingย โ€” simulation tool for EMI filter frequency response with safety capacitor models
  • CISPR 32 / EN 55032 Conducted Emissions Standardย โ€” iec.chย โ€” the emissions limits standard that X and Y capacitors help meet for multimedia equipment
  • Wรผrth Elektronik “EMC Design Guide” (free download)ย โ€” we-online.com/emc-design-guideย โ€” comprehensive practical guide covering safety capacitor selection and filter topology

Frequently Asked Questions About X and Y Safety Capacitors

Q1: Can I use an X2 capacitor in place of a Y2 capacitor to get a higher capacitance value?

Absolutely not, and this is one of the most dangerous substitutions in mains filter design. X2 capacitors are designed to fail open-circuit when connected line-to-line โ€” but they are not designed or tested for the isolation requirements between mains and earth that Y capacitors must meet. An X2 capacitor placed line-to-PE lacks the impulse voltage rating, the creepage distance, and the insulation structure required for Y applications. If it fails short-circuit (which is possible, since it wasn’t designed for this position), you put mains voltage on the chassis. Use Y-rated capacitors in Y positions, always.

Q2: My equipment needs very low leakage current โ€” how do I maintain EMC performance with tiny Y capacitor values?

This is the fundamental tension in medical and battery-operated equipment EMC design. The solutions available to you are: increase the common-mode choke impedance (use a larger core with more turns or higher permeability material) to compensate for reduced Y capacitance; add multiple filter stages with small Y capacitors in each stage; use a shielded transformer with a Faraday screen connected to both primary and secondary grounds to intercept CM currents without contributing leakage; or accept a higher conducted emission level and address the EMC budget at the system level through enclosure shielding.

Q3: What’s the difference between metallized film X2 capacitors and ceramic Y2 capacitors โ€” why the different dielectrics?

X2 capacitors use metallized polypropylene film because PP film has excellent self-healing properties at the capacitances and voltages required โ€” the metallization evaporates cleanly around breakdown sites without forming carbon tracking paths. Ceramic Y2 capacitors use a Class II (X7R or similar) or Class I ceramic because ceramic can be manufactured with very thin, uniform dielectric layers in small packages, and the material has good self-healing under impulse conditions. Some Y2 capacitors also use metallized film โ€” particularly in higher-capacitance values. The choice between ceramic and film Y capacitors often comes down to package size, temperature stability requirements (film is better), and cost.

Q4: How do I verify that safety capacitors in my design are properly certified without buying samples and sending them to a lab?

Use the certification body’s online databases directly. For UL certification, search UL Product iQ (iq.ul.com) by manufacturer and part number. For VDE, use the VDE component certification database. For ENEC, check the ENEC certification holders list at enec.eu. The manufacturer’s datasheet will list certification file numbers โ€” cross-reference these numbers in the official database to confirm the specific part number you’re buying is covered. This takes 10 minutes and is far faster than waiting for lab results.

Q5: What happens to X2 capacitors over time? Is there a replacement interval?

X2 capacitors degrade through two primary mechanisms: dielectric aging from continuous AC voltage stress, and cumulative damage from surge events. The self-healing process that makes them safe also gradually reduces the effective electrode area each time a micro-breakdown is healed โ€” capacitance decreases slowly over time. Modern X2 capacitors from reputable manufacturers have design lifetimes of 100,000 hours or more at rated conditions. In practice, well-designed power supplies outlast their X2 capacitors in harsh environments (high temperature, severe surge exposure), while in benign environments the capacitors can last the life of the equipment. There’s no standard replacement interval for consumer equipment, but industrial equipment in harsh environments benefits from periodic capacitance measurement to detect degraded parts.