X and Y capacitors are the safety capacitors inside every certified power supply: X capacitors sit across the mains lines to suppress differential noise, and Y capacitors bridge live to ground to suppress common-mode noise. This guide explains where they live, why they are safety-rated, and why component quality matters to OEM buyers.

What Are X and Y Capacitors?
X capacitors are connected between the live and neutral mains lines; Y capacitors connect between live/neutral and earth. Their jobs are opposite but complementary: X caps suppress differential-mode noise, Y caps suppress common-mode noise. Both are safety-certified because a failure would put the user at risk — X cap failure can short the mains, Y cap failure can leak current to ground.
Where You’ll Find Them (Inside Every Certified Power Supply)
Open any CE/FCC-certified switch-mode power supply and you will find an X capacitor across the input and one or two Y capacitors to ground, usually near the mains connector and the EMI filter stage. They are part of the electromagnetic compatibility (EMC) design that lets the product pass radiated and conducted emission tests.
Why Safety Capacitors Fail and How to Spot a Bad One
Safety capacitors degrade with heat, voltage stress and age. Common failure modes are cracking (from soldering stress), capacitance loss and, in cheap parts, premature wear under rated conditions. On inspection, look for the safety mark (like the IEC 60384-14 reference) on the part, check soldering quality, and confirm the part matches the BOM. A supplier that cannot show the component-level BOM is a red flag.
Creepage and Clearance Around Capacitors
The distance between live parts and other conductors is regulated: creepage is the distance along the surface, clearance is through air. Around Y capacitors and the mains input, these distances are part of the safety design and are checked during certification. Getting them wrong shows up in hi-pot and surge tests — exactly the tests our factory runs on every model.
Why OEM Buyers Should Care About Component Quality
Component choice is a long-term reliability decision: cheap safety capacitors save pennies per unit but drive early failures, returns and certification headaches. In an ISO9001-based factory, the BOM is verified against the work order at incoming inspection, and every batch is traceable. Our quality control page documents those gates, and the CE/FCC/RoHS guide explains what to ask for in the certificate file.

X Capacitor vs Y Capacitor: Which Is Which
The names come from their positions in the circuit, and remembering the positions makes the whole topic easy.
- X capacitor — across the live and neutral lines; filters differential-mode noise; fails short-safe.
- Y capacitor — between live/neutral and earth; filters common-mode noise; fails open-safe for the user.
- Safety classes — X1/X2 and Y1/Y2 ratings define the voltage and failure requirements.
If a part is not safety-rated for its position, it cannot legally or safely replace an X or Y capacitor.
How to Choose Safety Capacitors for Your Design
Choosing the right X and Y capacitors is a small decision with a large compliance impact. Four inputs drive it.
- Position — X or Y, which fixes the safety class.
- Mains voltage — 250VAC-class parts cover most global inputs.
- Capacitance and leakage — Y capacitors trade noise filtering against leakage current; medical and low-leakage designs use smaller values.
- Certification — the part should carry the relevant safety mark, and the BOM should match the certified design.
A certified factory keeps the BOM under change control so the shipped part matches the tested one.
Common X/Y Capacitor Failures and Fixes
Capacitor failures cause a share of power-supply returns, and most are preventable.
- Cracking — mechanical stress from soldering or handling; fixed with correct footprint and process.
- Capacitance drift — ageing under heat and voltage; fixed with higher-grade parts where the design allows.
- Overheating — usually a symptom of a bigger design issue; check placement and thermal path.
- Counterfeit parts — unmarked “safety” caps fail the test; buy from traceable supply chains.
FAQ
Can I replace an X capacitor with a regular one? No — X and Y capacitors are safety-rated for mains use; regular capacitors are not certified for that failure mode.
Why are Y capacitors a safety concern? They connect to earth; a failed Y cap can leak current or fail dangerously, which is why they are specially rated.
Do all power supplies have X and Y capacitors? Certified switch-mode supplies do, as part of the EMC filter; the exact configuration depends on the design.
How can I verify the components in my charger? Ask the factory for the component-level BOM and incoming-inspection records, shareable under NDA.
Can you OEM a charger with a defined BOM? Yes — BOM control and batch traceability are standard. Start on the OEM/ODM page or contact us.
References: Wikipedia’s capacitor article, All About Circuits on safety capacitors, Texas Instruments for EMC filter design, and Mouser for component data.
Further reading: Wikipedia IEC 60384, Electronic Design.
