Guys those who asked question why capacitors are rated at 400v and not 230v,
In Britain our nominal mains supply voltage is 230v AC, but power companies are obliged to keep it within a certain limits i.e. it can rise upto 10% or go lower by 6% of this.
So that means we can often get as much as 253v AC, or as little as 216V AC. But what is important is that this voltage is equivalent of providing a same amount of power or energy as if it were a steady DC voltage. So we refer to our mains voltage as an RMS voltage, and not a peak voltage.
So in other words, if you were to wire up 20 car batteries in series each at exact 12v Dc, such that your total DC voltage was 20x 12 = 240V DC, then our 240v DC would provide exact same amount of power as our 240V AC, However AC voltage is a lot different, because it is not a steady as a DC voltage , but AC voltage has series of peaks and troughs, or valleys, and so its peak has to be much higher in order for it to be rated as equal to a steady DC volts,
This means our 240V AC must peak at up to 330 - 340volts in order to qualify as equivalent to a DC voltage.
So we are never told this unless you were studying in electrical engineering that as an actual fact, our voltage is much higher than it is labelled, so maximum voltage that power companies are allowed to supply us is 230V AC plus 10% that means 253V AC, (RMS) but this really means it is in fact 253 x 1.414 = 357Volts peak voltage.
So in reality when we do get electrical shocks from mains we are actually being subjected to not just 230v but 1.414 times more, so that comes to 325V !
1.414 is a conversion factor for converting any ac RMS voltage to as peak voltage.
Therefore capacitors will only store what is being applied to them, so when you apply RMS 230V they will store the true Peak voltage and not the actual labelled 230V RMS.
So capacitors must be rated to stand true peak voltage and not labelled RMS voltage.
Any capacitors used on mains appliances, they must be rated at peak voltage rather than RMS voltage or equaivalent DC voltage which is also called Root Means Square or RMS.
So if you must select a capacitor it should be rated to handle peak mains voltage, so for 230v that can rise to 253v you must use a minimum 400V capacitor.
If you were to use a capacitor rated at 230V, it will fail very quickly as it is actually being subjected to by a voltage that is 1.414 times higher or true peak voltage.