Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.
Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.
Notes: For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.
Safety Capacitors: X & Y Class for AC Lines — The Complete Design Guide
Every product that plugs into a wall socket has a safety boundary between the mains wiring and everything the user can touch. That boundary doesn’t hold itself up — it’s maintained by components specifically engineered to fail safely when stressed beyond their limits. The safety capacitor is one of those components. Not just any capacitor placed across the AC line, but a specifically certified device whose failure mode is as carefully defined as its electrical rating.
I’ve seen what happens when a design team swaps a certified X2 type for a “similar” film capacitor to save fifteen cents per unit. It passes EMC pre-compliance, passes initial safety lab testing, and then returns from the field in smoke-damaged housings eighteen months later because the non-certified part doesn’t have the impulse withstand capability the certified version was tested to. Getting safety capacitors right is not optional design practice — it’s the foundation of product certification.
This guide covers the X and Y classification system fully, how the IEC 60384-14 standard governs everything in this space, the right dielectric for each application, leakage current constraints, discharge requirements, PCB layout rules for creepage and clearance, and the certification marks that actually matter.
What Is a Safety Capacitor and Why Does It Differ from a Standard Capacitor?
A safety capacitor is a fixed capacitor certified for permanent connection across or between the conductors of an AC mains supply. The defining characteristic is not the electrical rating — it’s the certification to a standard that validates both performance and failure behavior under worst-case stress conditions including voltage surges, humidity, and long-term AC endurance.
IEC 60384-14 classifies safety capacitors into class X — where failure of the capacitor would not lead to danger of electrical shock but could result in a risk of fire — and class Y, where failure could lead to a danger of electrical shock.
This failure mode classification is the core reason safety capacitors exist as a distinct product category. A standard film capacitor of identical electrical ratings has no defined failure mode under surge stress, no humidity endurance testing requirement, and no impulse voltage certification. When it fails, it can fail in any mode — including modes that are lethal in a mains-connected circuit.
X2 and Y2 safety capacitors are the most common subclasses for applications using 120VAC in the USA or 220/240VAC in Europe, found in common appliances operating from ordinary household wall outlets.
The IEC 60384-14 Standard — What It Actually Tests
IEC 60384-14 is the most widely used standard for safety capacitor classification, along with UL 1414, UL 1283, CAN/CSA C22.2 No. 1, and CAN/CSA 384-14. It defines the safety classification of Class-X and Class-Y according to various levels of peak voltage pulse before failure.
The 2023 edition (Edition 5.0) is the current version and includes significant technical changes from the previous 2013/2016 edition. Significant changes in IEC 60384-14:2023 include damp heat steady state tests now performed both with and without rated voltage, increased number of test pieces, tangent of loss angle added in Group 0 tests, a normative annex for creepage and clearance distance measurement, and heightened emphasis on the importance of mechanical failures such as cracks in component encapsulation as a safety feature.
The Two Key Certification Tests
The two key tests performed during certification are the impulse test and the endurance test. These verify that the X/Y capacitor can withstand ten impulses of alternating polarity, followed by a 1,000-hour endurance AC life test. After completing these two tests, the capacitors must perform reliably in the circuit under AC voltage conditions.
Testing requirements are more demanding for Y safety capacitors than for X capacitors — for example, the endurance test voltage is 1.7 times the rated voltage for Y capacitors versus 1.25 times for X capacitors — which necessarily results in higher safety margins for Y capacitors even at the same nominal ratings.
This difference reflects the consequence of failure: a short-circuit X capacitor trips a fuse and shuts down the equipment. A short-circuit Y capacitor puts mains voltage on the chassis that users can touch.
Class X Safety Capacitors — Line-to-Line Protection
Class X capacitors provide line-to-line protection: if there is a failure, a short may occur, but there is no risk of shock. They connect between Line and Neutral — across the AC supply — and their primary function is differential mode EMI suppression. They must absorb voltage spikes generated by switching operations in neighboring equipment, inductive load switching on the same distribution panel, and lightning-induced transients on overhead lines.
X Capacitor Subclasses and Ratings
The three X subclasses are defined by the peak impulse voltage they must withstand during certification:
Class
Peak Impulse Voltage
Rated AC Voltage
Safety Level
Typical Application
X1
> 2.5 kV, ≤ 4.0 kV
≤ 440 VAC
III
Industrial, 3-phase, long cable runs
X2
≤ 2.5 kV
≤ 275 VAC
II
Consumer electronics, household appliances, SMPS
X3
≤ 1.2 kV
≤ 250 VAC
Not specified
Benign environments only
A subclass X1 safety capacitor would be used for an industrial lighting ballast connected to a 3-phase line. X2 is appropriate for most household applications. X3 is rarely specified in modern designs — the cost difference versus X2 is minimal, and X2’s better surge withstand provides more design margin.
Typical X Capacitor Values and the Discharge Resistor Requirement
X capacitors typically run from 0.1 µF to 1.0 µF at 275–310VAC AC rated voltage. Larger values provide better low-frequency differential mode attenuation, but trigger an important safety requirement. Standards require that the voltage across the X capacitor decay with a maximum time constant of one second. This discharge requirement ensures that any high-voltage level at the pins of the AC plug does not present an electric shock hazard after disconnection. This is typically achieved by including a bleed resistor in parallel with the X capacitor. At 230VAC, assuming that the discharge resistor meets the time-constant requirement, that resistor results in dissipation of 5.3 milliwatts for every 100 nF of X capacitance.
For designs with large X capacitor values, the bleed resistor standby power dissipation becomes a significant factor in meeting ErP or ENERGY STAR standby power limits. Power Integrations and other vendors offer X-capacitor discharge ICs — such as the CAPZero-3 — that enable designers to meet IEC 60335 safety approvals while minimizing standby power dissipation by actively discharging only when AC is removed rather than continuously bleeding current.
Class Y Safety Capacitors — Line-to-Ground Protection
Class Y capacitors are used to address common-mode noise by providing a common shunt point to Earth. When used on an AC input to a DC power supply, one Class Y capacitor is used on each of the Line and Neutral connections to Earth.
Because Y capacitors bridge a conductor that is live to Earth Ground — a conductor that any user touching the equipment’s metal enclosure is connected to — the consequences of a short-circuit failure are immediately dangerous. Y2 safety capacitors are more robust than their X counterparts, can withstand higher peak impulse voltages, and are designed to fail open as opposed to failing short.
The open-failure mode is a non-negotiable design requirement: a short-circuit Y capacitor puts mains voltage directly on the chassis.
Y Capacitor Subclasses and Ratings
Y capacitors are classified by both rated voltage and insulation type — whether they bridge a basic insulation barrier or a reinforced/double insulation barrier:
Class
Peak Impulse Voltage
Rated Voltage
Insulation Type
Typical Application
Y1
≥ 8 kV
≤ 500 VAC
Double or reinforced
Medical, double-insulated, industrial with long cables
Y2
≥ 5 kV
150–300 VAC
Basic or supplementary
Consumer electronics, SMPS, household appliances
Y3
< 2.5 kV
≤ 250 VAC
Basic
Limited, benign environments
Y4
≥ 2.5 kV
< 150 VAC
Basic
Low-voltage AC applications
X1 and Y1 safety capacitors are used in industrial settings with higher electrical performance requirements. X2 and Y2 are used in common appliances operating from ordinary household wall outlets.
Y1 capacitors are required in medical devices and double-insulated equipment where no earth ground is available as a backup safety mechanism. Y2 capacitors are acceptable only when an earth ground provides redundant protection.
Typical Y Capacitor Values and the Leakage Current Ceiling
Y capacitors are typically specified between 470 pF and 4700 pF — far smaller than X capacitors — and this is not an arbitrary range. Y capacitors conduct AC leakage current from line to Earth. IEC 62368-1 limits total Earth leakage to 3.5 mA for Class I equipment. Medical devices under IEC 60601-1 limit it to 0.5 mA or less.
Leakage current is calculated directly from the Y capacitor value:
I_leak = 2π × f × C_Y × V_line
At 250 VAC, 50 Hz, a 4.7 nF Y2 capacitor passes approximately 0.37 mA. Two Y capacitors (Line and Neutral to Earth) double this figure. Add internal power supply parasitics, and the total can push against the 3.5 mA budget quickly. For medical equipment, the leakage budget leaves almost no room for Y capacitors at all. Restrictions of leakage current limit the capacitance value of Y1 capacitors to 4.7 nF, though certain applications can use two or more capacitors in parallel with appropriate voltage derating.
Film vs. Ceramic: Choosing the Right Dielectric for Safety Capacitors
Film materials are often utilized in X capacitors for reduced assembly space, weight, and cost, while Y capacitors utilize ceramics because their capacitance needs to remain relatively low — under 0.1 µF — to minimize leakage current.
This general rule holds well in practice, but understanding the reasons behind it helps when you’re working with unusual form factor or environmental constraints.
Film Safety Capacitors
Film capacitors are most commonly used in Class X applications where they are installed across the AC line. They offer high voltage tolerance enabling reliable performance, self-healing properties that allow recovery from small dielectric failures without catastrophic failure, and excellent stability over time and varying environmental conditions ensuring consistent safety compliance.
The self-healing mechanism — where localized dielectric breakdown causes the thin metallized electrode to evaporate around the fault — is particularly valuable in X capacitor service, where the capacitor regularly absorbs surge energy. Each self-healing event removes a tiny region of electrode, slightly reducing capacitance, but the capacitor continues to function. In X and Y capacitor applications we must count on self-healing breakdowns. Zinc metallized film capacitors have been superior to traditional aluminium metallized types because zinc’s evaporation process requires lower energy, enabling more efficient self-healing with less thermal stress to surrounding dielectric.
Film capacitors are through-hole devices in the majority of safety-certified formats. This means they require a separate soldering process if the rest of the board is surface-mount, which is a real production cost consideration in high-volume consumer products.
Ceramic Safety Capacitors (MLCCs and Disc Types)
Safety MLCCs include X2 and X1/Y2 devices rated for 250 Vrms and are available in Class I NP0 (C0G) and Class II X7R dielectrics. Some safety MLCCs are designed specifically for space-sensitive applications such as antenna coupling, and some are available with special terminations for harsh automotive environments.
Leaded ceramic safety capacitors offer the highest dielectric rating and pulse capabilities. They are available in X1/Y1 safety classification and can handle pulses up to 10 kV. They tend to have lower capacitance ratings than film capacitors, limiting their use in some applications, but are lower cost.
The critical limitation of ceramic Y capacitors is failure mode. Ceramic failure modes are more likely to result in a short circuit, whereas metallized paper and film failure modes are more likely to result in an open circuit. For Y capacitors, open-circuit failure is the safe mode — short circuit means live voltage on the chassis. Safety-certified ceramic Y capacitors are specifically designed and tested so their certification validates their open-circuit failure behavior, but uncertified ceramics do not provide this guarantee.
Film vs. Ceramic Safety Capacitor Comparison
Property
Film (PP Metallized)
Ceramic MLCC (C0G/NP0)
Ceramic Disc (Leaded)
Preferred failure mode
Open circuit
Short circuit (certified open for Y)
Short circuit (certified for application)
Self-healing
Yes
No
No
Max capacitance
Up to 10 µF
Up to ~10 nF
Up to ~20 nF
Voltage rating
Up to 310 VAC rated
Up to 305 VAC rated
Up to 760 VAC (X1)
Pulse withstand (X1/Y1)
Yes (selected types)
Some MLCCs (SYX, UYX families)
Yes — highest pulse capability
Package
Through-hole only
SMD (reflow)
Through-hole
Capacitance stability
Excellent
Excellent (C0G), Poor (X7R with bias)
Good (C0G), Variable (X7R)
Size
Large
Smallest
Medium
Cost
Higher
Lower
Lowest
Best for
X1, X2 industrial/power
X2, Y2 consumer SMD designs
X1/Y1 high-surge, industrial
The Humidity Robustness Factor in Outdoor and Automotive Applications
IEC 60384-14 Edition 5 includes a new Annex allowing classification of components in terms of moisture resistance. The automobile industry introduced an extremely demanding 1,000-hour THB (Temperature Humidity Bias) test in AEC-Q200 to simulate long-term environmental influences within a short test duration. Even under harsh conditions in outdoor applications, Y1 and Y2 safety capacitors must not fail, because failure could present a shock hazard.
For solar inverters, outdoor smart meters, EV onboard chargers, and industrial equipment exposed to condensation cycles, specifying capacitors to Humidity Robustness Grade III (IEC 60384-14 Annex I) provides additional assurance beyond basic certification.
PCB Layout Rules for Safety Capacitors — Creepage and Clearance
Specifying the right certified component and then routing it incorrectly on the PCB produces a system that can fail safety audit even when all parts are correctly chosen. The spacing rules exist because arc tracking on a contaminated PCB surface can breach insulation at voltages far below the air breakdown voltage.
Clearance is the shortest straight-line distance through air between two conductors. Creepage is the shortest distance along an insulating surface between two conductors. Creepage distances must be longer than clearance distances because insulator surfaces can become contaminated with dust, moisture, or flux residue, creating a partially conductive path that tracks at voltages well below the air breakdown voltage.
For X1/Y1 capacitors, the minimum allowed creepage and clearance distance is 8 mm. Surface-mount capacitors also need to meet certain standards for termination-to-termination creepage. For X2/Y2 capacitors, the standard minimum creepage distance is typically 4–6 mm depending on pollution degree and insulation class — always verify against the specific product standard for your equipment category.
Practical PCB Layout Checklist for Safety Capacitors
These are the rules I apply on every mains-connected design before sending to the safety lab:
Confirm the certified creepage distance is achieved from the capacitor’s high-voltage terminal to any accessible conductor on the low-voltage side. Measure along the PCB surface, not through air. On double-sided boards, include any via barrel as a potential creepage path.
Add PCB slots beneath Y capacitors if needed. Routing a slot in the PCB between the high-voltage pad and low-voltage ground plane physically increases the creepage distance without increasing component spacing. This is standard practice on compact power supply boards.
Keep unfiltered mains traces on one side of the filter, clean low-voltage traces on the other. Running an unfiltered Line trace adjacent to filtered low-voltage signal traces defeats the purpose of the filter. The EMI filter should be at the AC inlet — the first thing mains power reaches on the board.
Don’t route digital signal traces beneath safety capacitors or between mains-connected pads. Even if clearance distance is technically sufficient, the trace becomes a coupling path for radiated noise from the mains conductors.
Verify creepage in your PCB design tool before submission. Most DRC engines support configurable clearance rules; add separate rules for mains-class nets with the creepage requirements of your applicable standard.
Certification Marks — What to Look For and Why They’re Non-Negotiable
Whichever safety capacitor you choose, make sure it has all the proper safety-approval logo markings. The certification mark printed on the component body is not cosmetic — it’s the evidence that the specific component was tested and passed the standard’s requirements at a recognized test laboratory.
Key Safety Certification Marks for Safety Capacitors
Mark
Organization
Region
Applicable Standard
UL (Recognized Component)
Underwriters Laboratories
USA
UL 60384-14, UL 1414, UL 1283
cUL
Underwriters Laboratories
Canada
CAN/CSA C22.2 No. 1
VDE
VDE Testing and Certification Institute
Germany/EU
IEC/EN 60384-14
ENEC
European NRTL scheme
Europe
EN 60384-14
TÜV
TÜV Rheinland / TÜV SÜD
Germany/International
IEC 60384-14
CQC
China Quality Certification Centre
China
GB/T 14472
PSE
Japan Product Safety Electrical Appliances
Japan
PSE mark on component
Most product safety certifications (CE marking for Europe, UL listing for USA, PSE for Japan) require that components connected to the mains supply carry recognized component certifications. A safety capacitor without a visible, readable certification mark on its body will fail component-level review regardless of what the distributor’s product page or datasheet claims.
Interchangeability Rules — What You Can and Cannot Substitute
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. Although an X2-type capacitor would work and filter noise sufficiently in an X position, it does not meet line-to-ground safety standards. Y2 safety capacitors are more robust, can withstand higher peak impulse voltages, and are designed to fail open.
Combination capacitors such as X1/Y2 types are also available, meaning the same component can be used as an X1 in a line-to-line position or as a Y2 in a line-to-ground position — providing flexibility in multi-regulatory market designs.
The practical interchangeability rules are:
Substitution
Allowed?
Reason
Y2 used in X2 position
Yes
Y2 is more robust; failure mode acceptable in X position
X2 used in Y2 position
No
X2 fails short; Y position short is a shock hazard
Y1 used in Y2 position
Yes
Y1 is higher class; over-specified but safe
X1 used in X2 position
Yes
X1 is higher class; over-specified but safe
X2 used in Y1 position
No
Wrong insulation class; not certified for reinforced barrier
Uncertified film used in X or Y
Never
No validated failure mode; not certifiable
Common Design Mistakes with Safety Capacitors
These are the errors that cause safety lab failures and field returns:
Using uncertified capacitors. The most common and costly mistake. There is no workaround — only components with visible, tested certification marks are acceptable in safety agency submissions.
Placing X capacitors without discharge resistors. Any X capacitor above 300 nF must discharge within 1–2 seconds of AC disconnection (standard-dependent). Missing this causes failure on safety functional tests even when EMC performance is clean.
Exceeding the Y capacitor leakage current budget. More nF improves common mode attenuation but increases leakage current. Calculate I_leak = 2π × f × C × V for every Y capacitor and sum all contributions including the SMPS internal filter.
Incorrect creepage distances on PCB. The component can be correctly certified but improperly laid out, creating a creepage violation at the board level that fails insulation resistance testing.
Series-connecting standard capacitors to simulate a higher-rated part. Series connection of two non-certified capacitors does not produce a certified Y1 equivalent — each capacitor must carry individual certification for the position it occupies.
Useful Resources for Safety Capacitor Design and Selection
Resource
Description
Link
IEC 60384-14:2023 (Edition 5)
The current governing standard for all X and Y safety capacitor classification and testing
Q1: My product passed EMC testing with generic film capacitors across the mains. Why do I still need certified X2 types?
EMC pre-compliance testing measures radiated and conducted emissions — it doesn’t test for safety behavior under surge conditions. An uncertified film capacitor can suppress conducted emissions perfectly while completely failing the impulse voltage test that certified X2 capacitors must pass. Safety agency submissions (UL, CE, etc.) require component-level certification marks on any component connected to the mains supply. Products that pass EMC but don’t have certified safety capacitors will fail safety review at the agency lab — and the test fee is non-refundable whether you pass or fail.
Q2: Can I use one X1/Y2 combination capacitor instead of separate X2 and Y2 parts?
Yes, combination capacitors rated as both X1 and Y2 are designed exactly for this scenario. They satisfy the X1 requirement (impulse withstand > 2.5 kV) in a line-to-line position and the Y2 requirement in a line-to-ground position. Using a single combination part instead of two separate components can reduce BOM count and PCB footprint. Just verify that the specific combination part is certified for both positions — the mark on the body should explicitly show both classes (e.g., “X1/Y2”). A part certified only as X1 does not automatically satisfy Y2 requirements.
Q3: What’s the right way to handle X capacitor discharge compliance in a low-standby-power design?
There are two practical approaches. The simpler one is a high-resistance bleed resistor permanently across the X capacitor, sized so the RC time constant discharges below 60V within the required time (usually 1–2 seconds). The problem is continuous power dissipation — 5.3 mW per 100 nF at 230VAC adds up quickly if standby power is tightly budgeted. The better approach for modern designs is an active X-capacitor discharge IC (Power Integrations CAPZero, for example), which provides zero quiescent current draw during normal operation and only activates to discharge the capacitor when AC is removed. These ICs are now well-supported, inexpensive, and eliminate the standby power penalty of passive bleed resistors.
Q4: I’m designing for both 120VAC (USA) and 240VAC (Europe) markets. Which safety capacitor class do I use?
Design for the higher stress environment — Europe at 240VAC with X2 rated to 275VAC (or 305VAC for additional margin) and Y2 rated to 300VAC. These parts are fully compliant in USA 120VAC service as well. Specifying separate BOM entries for 120V and 240V markets is unnecessary and creates manufacturing risk. The practical voltage rating choice: X2 at 305VAC and Y2 at 300VAC covers both markets globally with meaningful margin above the highest mains nominal. For industrial or 3-phase applications, step up to X1/Y1.
Q5: We’re designing an EV onboard charger rated for 400VAC 3-phase input. Can I still use standard X2/Y2 capacitors?
No — X2 is rated for AC mains up to 275VAC. A 400VAC 3-phase system presents line-to-line voltages of 400VAC nominal with transients potentially exceeding 2.5 kV from inductive switching events on the industrial supply. You need X1 capacitors (rated to 440VAC) for line-to-line positions and Y1 capacitors (rated to 500VAC) for line-to-ground positions. Additionally, automotive-grade variants tested to AEC-Q200 and IEC 60384-14 Humidity Grade III are required for the under-hood thermal and humidity environment of a production vehicle. Murata offers the KCA series safety-certified metal terminal type MLCCs specifically intended for onboard chargers, inverters, and DC/DC converters in electric vehicles.
Inquire: Call 0086-755-23203480, or reach out via the form below/your sales contact to discuss our design, manufacturing, and assembly capabilities.
Quote: Email your PCB files to Sales@pcbsync.com (Preferred for large files) or submit online. We will contact you promptly. Please ensure your email is correct.
Notes: For PCB fabrication, we require PCB design file in Gerber RS-274X format (most preferred), *.PCB/DDB (Protel, inform your program version) format or *.BRD (Eagle) format. For PCB assembly, we require PCB design file in above mentioned format, drilling file and BOM. Click to download BOM template To avoid file missing, please include all files into one folder and compress it into .zip or .rar format.