In various circuits intended for use with 230-250 V AC I've seen capacitors labelled as "400V" (Examples: 1, 2)

When I look at Capacitor specifications, they often give separate AC and DC ratings. For example:

(I believe an X-rated cap is designed for use across AC supply live-neutral)

Should I take the "400V" on the diagram as a DC or AC indication?

Am I right in thinking a 350 VAC rated X2 cap is perfectly suitable for 50Hz 240 VAC at say 10 mA?


Let's do this properly and explain all the aspects you need to take into account when designing in capacitors on a mains-connected circuit.

First, there is the voltage rating. The voltage rating on a capacitor is of course a maximum DC (i.e. a peak) rating. For 50/60Hz mains we're talking about a sinusoidal voltage waveform with an RMS value of for instance 230V, so the DC peak value of such a supply is \$V_{rms} \cdot \sqrt{2}\$ or about 1.4 times this quoted value. If you're already dealing with a DC system, there is no math involved. The peak rating of your cap should be more than the peak DC voltage you expect over the device.

For longevity and nonlinear effects at high stresses, it is recommended to keep ample margin on these ratings, especially on the voltage rating. For 230VAC applications, even though typical you wouldn't expect more than about 325V peak over your lines, choose at least a 400V or better even a 450V capacitor. And yes, even when the manufacturer specifies survivability of the part at higher voltages. Survivability does not mean proper operation. It just means that it doesn't blow up and cause a mess.

The next important consideration is the location of your capacitor with respect to the mains net. Any capacitor that is directly connected across live (L) and neutral (N) on the mains lines is required to have self-healing properties in case of arc-over. Capacitors with this property are marked as X-class (X1, X2 denote different levels of this specification). For capacitors connected between either of the mains wires and earth, so between live (L) and earth (E), or between neutral (N) and earth (E) you are required to use a capacitor that will never fail short, as this can compromise protection earth safety. These capacitors are marked as Y class, with again Y1, Y2, etc. as different levels within this specification. Voltage ratings on these parts may not reflect what you would expect according to VDC=sqrt(2)*VAC. This is because DC and AC safety tests are conducted differently, and may cause different certified working voltages.

Any non-X/Y-class capacitor may never be directly connected to any of the mains lines. They need to be behind some kind of protection circuitry, at minimum a fuse or circuit breaker. Best practice is to implement a complete line filter (MOV, varistor/fusible resistor/fuse, common-mode filter, differential filter, optional rectifier).

Lastly, any non-X/Y rated capacitor needs to be checked if it is capable of handling the expected current ripple. Some technologies to get higher capacity at high voltage cause high ESR in this type of capacitor, which makes them unsuitable for e.g. SMPS usage.

I think this is all there is to it, let me know if I forgot something or borked up.

  • \$\begingroup\$ Your answer here has been suggested as an answer to a question of mine. It doesn't directly answer it, but it would be great if you could have a look. \$\endgroup\$ Jun 13 '15 at 2:26
  • \$\begingroup\$ DC != peak. I think when you say "DC peak voltage" you really mean "instantaneous voltage". The voltage isn't DC in this case. \$\endgroup\$
    – Reinderien
    Sep 25 '18 at 2:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.