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.
AC Line Filter Capacitors: The Complete EMI Suppression Guide
The first time I had a product fail EMC pre-compliance testing, it wasn’t a layout problem, a grounding issue, or a software glitch generating unexpected switching. It was two missing Y capacitors on the AC input filter — parts that had been value-engineered out during a cost-reduction review. Half a day in the chamber, three redesign cycles, and a few thousand dollars of testing fees later, those components came back onto the BOM permanently. If you’re designing anything that connects to mains power, understanding your AC line capacitor options is not optional — it’s the foundation of passing conducted emissions tests and keeping your product safe.
This guide covers the full picture: what X and Y safety capacitors do, how to classify and select them, the leakage current constraints that define how far you can push Y capacitor values, PCB placement rules, and which standards govern all of it.
An AC line capacitor — formally called an EMI/RFI suppression capacitor or safety capacitor — is a specially certified capacitor connected directly across or from the AC mains conductors. Its job is to provide a low-impedance path for high-frequency noise so that interference generated inside your equipment doesn’t escape onto the power line and affect other connected devices, and so that noise from the power grid doesn’t enter and destabilize your converter.
Capacitors connected line-to-line are called X capacitors, also referred to as “line to neutral” capacitors. Those connected from line-to-ground are called Y capacitors, also called “line bypass capacitors.” X capacitors are used for differential-mode EMI filtering. Y capacitors are used for common-mode EMI filtering, bypassing interference from the wires to ground.
Because these capacitors sit directly across or bridging the AC mains, they can be exposed to overvoltages, lightning surges, and voltage transients at any time. That’s why they must be safety-certified — a regular film capacitor of equivalent capacitance is not a substitute, no matter how similar the datasheet looks.
Differential Mode vs. Common Mode Noise — Why Both Matter
Before selecting any AC line capacitor, you need to understand what you’re actually filtering. There are two distinct types of conducted EMI on the AC line, and they require different treatment.
Differential mode (DM) noise appears between Line and Neutral as a symmetrical interference signal — it’s caused by rapid changes in current within the converter’s switching stage. X capacitors shunt this noise by providing a low-impedance bypass across Line and Neutral.
Common mode (CM) noise appears on both Line and Neutral simultaneously with respect to Earth Ground. Common mode noise is created by rapid changes in voltage within the converter — from line and neutral to ground. Common mode chokes see this as a high impedance, with each Y capacitor diverting noise current to ground. Y capacitors are the primary component handling this, working in conjunction with a common mode choke.
A complete AC line EMI filter combines both: X capacitor(s) across Line–Neutral, a common mode choke (current-compensated inductor), and Y capacitors from Line and Neutral to Earth. The structure is sometimes called an LC π-filter or a double-stage filter for higher-attenuation applications.
X Capacitor Classes — Selecting the Right One
Class-X and Class-Y capacitors are safety-certified and generally designed and used in AC line filtering in many electronic device applications. Both Class-X and Class-Y capacitors have subclasses: X1, X2, and X3, and Y1, Y2, Y3, and Y4. Subclass X2 and Y2 are the most common type for applications that use 120VAC (USA) or 220/240VAC (Europe).
X capacitors are classified by their peak impulse voltage withstand — the defining characteristic is how much transient punishment they can absorb without failing. The failure mode of an X capacitor is designed to be a short circuit, which trips upstream overcurrent protection (a fuse or breaker) and shuts down the equipment rather than allowing it to run unprotected. A short-circuit failure is acceptable here because X capacitors bridge Line to Neutral — no direct path to Earth Ground means no electrocution risk, though a fire hazard can exist if upstream protection fails to clear.
X Capacitor Subclass Summary
Class
Peak Impulse Voltage
Rated AC Voltage
Typical Application
X1
> 2.5 kV, ≤ 4 kV
≤ 440 VAC
Industrial, 3-phase mains, heavy equipment
X2
> 1.2 kV, ≤ 2.5 kV
≤ 275 VAC
Consumer electronics, SMPS, home appliances
X3
≤ 1.2 kV
≤ 250 VAC
Benign environments, low-surge applications
For most designs connected to 120VAC or 240VAC consumer or light industrial mains, X2 is the right class. If your product is permanently installed on an industrial 3-phase supply with long cable runs — where inductive switching of contactors can generate spikes exceeding 2.5 kV — you need X1. X3 is rarely specified in modern designs.
Typical X Capacitor Values
X capacitors typically run from 0.1 µF to 1 µF at 275–310VAC AC rated voltage. Larger values give better low-frequency differential mode attenuation. IEC 62368-1 for ITE and media equipment dictates that a discharge resistor should reduce the X capacitor voltage to less than 60V within two seconds for CX > 300nF after the AC supply is disconnected. This means any X capacitor above 300 nF requires a bleed resistor (typically 1 MΩ) across it, or an active X-capacitor discharge IC — a safety requirement, not just a design courtesy.
Y Capacitor Classes — Where Safety Gets Critical
Y capacitors bridge a safety barrier. Line or Neutral to Earth Ground means that if a Y capacitor fails short, the protective earth ground becomes live — creating a direct shock hazard to anyone touching the equipment’s metal enclosure. This is why Class-Y capacitors are designed to fail open-circuit — shorting a Y capacitor could present a fatal shock hazard for personnel using the equipment. While failing open exposes the load circuit to an unfiltered AC power source, the fire risk is reduced.
Y capacitors are classified by both rated operating voltage and peak impulse withstand capability. Higher-class Y capacitors provide reinforced insulation — capable of bridging across a double-insulated barrier.
Y Capacitor Subclass Summary
Class
Peak Impulse Voltage
Rated Voltage
Insulation Type
Typical Application
Y1
≥ 8 kV
≤ 500 VAC
Double/reinforced
Industrial, long cable, high-surge
Y2
≥ 5 kV
≥ 150V, ≤ 250 VAC
Basic/supplementary
Consumer electronics, SMPS
Y3
No pulse rating
≤ 250 VAC
Basic
Limited use, benign environments
Y4
≥ 2.5 kV
< 150 VAC
Basic
Low-voltage AC applications
X2 and Y2 safety capacitors are used in common appliances that operate from ordinary household wall outlets. X1 and Y1 safety capacitors are used in industrial settings. In practice, Y2 ceramic capacitors are the most commonly stocked and sourced components for consumer and light industrial SMPS design.
Typical Y Capacitor Values
Y capacitors typically range from 470 pF to 4700 pF with voltage ratings from 250V to 500VAC. Unlike X capacitors, the value of Y capacitors is not just a filter design parameter — it is hard-constrained by maximum allowable leakage current, as discussed in the next section.
The Leakage Current Problem — The Real Constraint on Y Capacitor Sizing
This is the part most engineers underestimate until a product fails safety testing. Every Y capacitor you add to the filter improves common mode attenuation, but also increases the current that flows through the Earth Ground connection. That leakage current is limited by safety standards — and the limits vary dramatically by application.
Leakage current is a function of line-to-ground capacitances (direct and parasitic), line voltage, and operating frequency. Bigger Y capacitors help filter performance but also give higher leakage current. High leakage current can also damage other electronics in use, such as pacemakers and heart pumps. High leakage currents can also trip GFCI protection, causing disruption in areas such as MRI rooms or operating theaters.
Leakage current through a Y capacitor is calculated as:
I_leak = 2π × f × C_Y × V_line
At 250VAC, 50 Hz, a single 4.7 nF Y2 capacitor produces approximately 0.37 mA of leakage current. Two Y capacitors (one from Line, one from Neutral, to Ground) double this figure. Add internal power supply leakage and parasitic paths, and the total can push against the allowed limit quickly.
Maximum Leakage Current Limits by Application
Application Type
Maximum Leakage Current
Governing Standard
Information Technology Equipment (ITE)
3.5 mA (3-wire) / 0.75 mA (2-wire)
IEC 62368-1 / UL 60950
Household appliances
0.75–3.5 mA
IEC 60335-1
Industrial equipment
Up to 10 mA (with warning label)
IEC 61010-1
Medical — Body contact (BF class)
100 µA
IEC 60601-1
Medical — Cardiac contact (CF class)
10 µA
IEC 60601-1
Considering that there are many unavoidable sources of leakage current in medical equipment, the available leakage current budget for filters is almost zero, which translates to no Y capacitors in practice. One EMI filter feature that is very useful in medical applications is the option of adjustable/selectable Y capacitors (0 / 0.1nF / 0.22nF / 0.33nF / 0.47nF / 0.68nF / 1.0nF etc).
When Y capacitor values are constrained by leakage limits, the only way to recover common mode attenuation is to increase common mode choke inductance — a design tradeoff that affects size, cost, and current handling.
Dielectric Selection for X and Y Capacitors
While it is theoretically possible to use several capacitor technologies to design X and Y safety capacitors, most commercial devices are either film capacitors or ceramic capacitors. Film capacitors may be the best choice when higher capacitance values are needed. Film capacitors cost more but offer self-healing, enabling the device to recover from a dielectric breakdown with only a small reduction in capacitance. The capacitance and dissipation factor of film capacitors are stable across temperature and voltage.
For Y capacitors specifically, ceramic types are less expensive than metallised film, but unstable over time and temperature and less mechanically stable. Ceramic failure mode tends toward short circuit, whereas metallised paper and film types tend toward open circuit. Since Y capacitors must fail open to be safe, film dielectrics are technically the more appropriate choice — though certified Y2 ceramic capacitors are widely used in practice because their safety certification testing validates their behavior in failure scenarios.
Capacitor Technology Comparison for AC Line Filter Use
Property
Metallized Polypropylene Film
Ceramic (Class 1 / C0G)
Ceramic (Class 2 / X7R)
Capacitance stability
Excellent
Excellent
Poor with bias/temp
Self-healing
Yes
No
No
Preferred failure mode
Open circuit
Short circuit
Short circuit
Dissipation factor
Very low
Low
Medium
Available capacitance
Up to 10 µF
< 1 µF practical
< 1 µF practical
Cost
Higher
Lower
Lower
Best for
X capacitors (large value DM)
Y capacitors (small value CM)
Limited use in safety apps
Safety Certifications and Standards You Must Know
An AC line capacitor without the right certification marks is not compliant — full stop. Agencies do not accept “equivalent” components that simply meet the electrical specifications.
International Standards Governing AC Line Capacitors
Standard
Region
Scope
IEC 60384-14
International (IEC)
Defines X and Y classes, test requirements, ratings
EN 60384-14
Europe (CENELEC)
Identical to IEC 60384-14
UL 1414
USA (UL)
Across-the-line capacitors; required for TV/radio/telecom
UL 1283
USA (UL)
EMI filter assemblies
CAN/CSA C22.2 No. 1
Canada
Equivalent to UL 1414
CISPR 32 / EN 55032
International / EU
Conducted emissions limits for multimedia equipment
CISPR 11 / EN 55011
International / EU
Conducted emissions limits for industrial equipment
Since EMI filters connect directly to mains power, safety isn’t optional — it’s mandatory. Only use capacitors with clearly marked safety approvals such as UL, VDE, or ENEC. Class X capacitors should fail short to trigger upstream protection like a fuse or breaker, and Class Y capacitors must fail open to avoid shock hazards.
Look for the certification logo marks physically printed on the capacitor body — UL mark, VDE diamond, ENEC star, or equivalent. If it’s not on the part, assume it’s not certified, regardless of what the distributor’s product description says.
PCB Layout Rules for AC Line Filter Capacitors
Getting filter components onto the schematic is the easy part. PCB layout is where many EMI filter designs fail to deliver their theoretical attenuation.
Since Y capacitors bridge line/neutral to ground, PCB layout must follow isolation rules for safety — for example, more than 6.4 mm creepage for reinforced insulation. This distance is not negotiable and must be maintained on both the PCB surface and through-air. On dense boards, slotting the PCB beneath Y capacitors is sometimes required to achieve the needed creepage.
Place the EMI filter as close to the AC inlet as possible. If the mains wiring runs 10 cm across the board before hitting the filter, that wiring acts as an antenna radiating the very noise you’re trying to contain.
Separate the filter ground connections from digital ground. Y capacitors connect to Earth Ground — this should be chassis or PE, not the system’s signal ground. Mixing them defeats the purpose of having a safety barrier and can create signal integrity problems.
Keep input and output filter traces separated. If the noisy (unfiltered) mains traces run adjacent to the clean (filtered) output traces, conducted noise can capacitively couple around your carefully designed filter.
Use proper component orientation. Radial capacitors should always be used and installed on end to minimize lead inductance at high frequencies. Laying axial capacitors flat on the board significantly increases their effective series inductance, degrading high-frequency performance.
Verify creepage and clearance at layout review. Most PCB layout tools support design rule checks for creepage, but the settings must be correctly configured for the applicable standard and overvoltage category.
Common Mistakes in AC Line Filter Design
These are the errors that cause EMC test failures and safety non-conformances:
Using generic film capacitors instead of certified X/Y types. The certification isn’t bureaucratic overhead — it validates the failure mode, the impulse withstand, and the long-term reliability under AC stress.
Ignoring the X capacitor discharge requirement. Any X capacitor above 300 nF must discharge to below 60V within two seconds of AC disconnection. Missing this requirement causes failure on safety tests even when EMC results are clean.
Oversizing Y capacitors without leakage current calculation. More nF buys better common mode attenuation, but at the cost of leakage current that can trip GFCIs, fail medical safety tests, or violate the equipment standard.
Routing unfiltered mains traces across the board before the filter. The filter must be at the AC inlet — not downstream of a 15 cm run of board wiring.
Using Y2 capacitors in applications requiring reinforced insulation. If your product requires double or reinforced insulation (as many Class II devices do), you need Y1 capacitors or two Y2 capacitors in series.
Useful Resources for AC Line Capacitor Selection
Resource
Description
Link
IEC 60384-14 Standard
Defines all X and Y safety capacitor classes and test requirements
Q1: Can I use a standard film capacitor instead of a certified X2 capacitor if the capacitance and voltage rating match?
No, and this is a hard boundary — not an engineering judgment call. Standard film capacitors are not tested or certified for the failure modes, impulse withstand voltages, and long-term AC stress that safety capacitors must pass. Using a non-certified capacitor across the AC line will cause failure during safety agency testing (UL, CE, etc.) and creates genuine fire and shock hazards. Always source X and Y capacitors from components that carry the appropriate certification marks on the body itself.
Q2: Why is my product tripping the GFCI on certain outlets?
Almost certainly a leakage current problem. Total leakage current from all Y capacitors (plus any internal power supply Y caps and parasitic paths) is flowing to Earth Ground and exceeding the GFCI’s trip threshold — typically 4–6 mA. Calculate your total leakage budget, check all Y capacitor values across every filter stage including the power supply’s internal filter, and reduce total Y capacitance. If you can’t reduce Y cap values without failing emissions tests, increase common mode choke inductance to compensate.
Q3: What’s the difference between X2 and Y2 capacitors? Can I just use Y2 for everything since it has a higher voltage rating?
They are not interchangeable. X capacitors (Line–Neutral) are designed to fail short — that triggers the fuse and safely shuts down equipment. Y capacitors (Line/Neutral to Earth) are designed to fail open — a short-circuit Y cap connects Live to the equipment chassis, creating a potentially lethal shock hazard. The physical construction, creepage distances, and certification testing are fundamentally different. Using a Y capacitor where an X capacitor is specified (or vice versa) is a safety non-conformance regardless of the voltage rating.
Q4: How do I size the X capacitor discharge resistor?
The discharge resistor value must be chosen to reduce the X capacitor voltage from peak mains (approximately 340V for 240VAC) to below 60V within two seconds after disconnection. Using a simple RC time constant: τ = R × C, and solving for V(t) = V₀ × e^(−t/τ) < 60V at t = 2s. For a 470 nF X2 capacitor, R ≤ 1 MΩ satisfies this. The resistor also dissipates power continuously during operation (P = V²/R), so for a 1 MΩ resistor on 240VAC: approximately 58 mW — worth accounting for in thermal design and standby power budgets. Many designers now use an active X-cap discharge IC to minimize standby loss while still meeting the discharge requirement.
Q5: Do I need both X and Y capacitors, or can I use just one type?
Most practical EMI filters require both. X capacitors handle differential mode noise and Y capacitors handle common mode noise — these are distinct interference mechanisms that require separate treatment. Omitting X capacitors leaves differential mode noise unattenuated. Omitting Y capacitors means common mode noise has no return path to Earth and will likely cause conducted emissions failures. The only exception is some 2-wire ungrounded equipment where Y capacitors cannot be used (no Earth connection) — in that case, common mode chokes alone must provide the CM attenuation, which is more challenging to achieve adequately.
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.