They're all called "capacitors", but a 100 nF ceramic and a 1000 µF electrolytic have nothing in common in how they're used. Choosing the wrong type causes strange problems: noise, a regulator that oscillates, or a capacitor that bulges after a few months. If you need a reminder of what a capacitor does in the first place, start with what is a capacitor.
The ceramic capacitor (MLCC)
The most used in the world. Small, cheap, and with a very low internal resistance (ESR), so it's excellent at high frequencies.
- No polarity; it can be fitted either way round.
- Values from 1 pF up to tens of µF.
- Available as SMD (0402, 0603, 0805…) and through-hole (the one that looks like a yellow or orange lentil).
The code on it matters: C0G or X7R?
| Type | Stability | Use |
|---|---|---|
| C0G (or NP0) | Very stable with temperature and voltage | Crystals, filters and timing |
| X7R / X5R | Medium; its capacitance changes somewhat | Decoupling and supply smoothing |
| Y5V / Z5U | Poor; it can lose most of its capacitance | Unimportant things only |
The trap: capacitance falls with voltage
A small 10 µF 6.3 V X5R ceramic capacitor, with 5 V across it, may have its actual capacitance drop to only 3 or 4 µF. This is called DC bias. The fix: take a higher voltage rating (for example 16 or 25 V) or a larger size (0805 instead of 0402), and look at the datasheet curve if the value matters.
And this matters a lot with regulators whose datasheet says "needs 10 µF on the output". See decoupling capacitors.
The electrolytic capacitor (aluminium)
The cylinder with a stripe. Large capacitance at a low price.
- It has polarity: the long leg is positive, and the stripe on its body marks the negative. Fitted backwards, it heats up and bulges, and can pop.
- Values from 0.1 µF up to thousands of µF.
- Higher ESR than ceramic, which produces heat with alternating current (ripple).
- Its life is limited: marked for example 2000 hours at 105 °C. Every 10 degrees cooler roughly doubles the life. So keep it away from hot things.
In switching circuits (buck, boost and power supplies), use a low-ESR type; an ordinary one heats up and bulges quickly. See bulging capacitors and the filter capacitor.
Polymer
An advanced version: very low ESR, a much longer life, and it doesn't bulge in the same way. Found on motherboards and graphics cards. More expensive, but excellent on supplies with large changing currents.
The tantalum capacitor
Small and usually yellow or orange, and in SMD it has a stripe on the positive side (the opposite of the electrolytic!).
- Relatively large capacitance in a small size, and stable.
- The serious drawback: if it gets too much voltage or a current surge (for example at power-up), it can short and catch fire.
- The rule: choose a voltage rating at least double the circuit voltage, and don't put it directly on a battery or adapter input without protection.
Today many designers use large ceramics or polymer instead.
The film capacitor
Rolled plastic (polyester or polypropylene). Stable and accurate, and it withstands high voltages.
- For audio: coupling capacitors and filters, because it doesn't distort the signal the way an ordinary ceramic does.
- For mains: capacitors marked X2 are designed to sit directly across 220 V (noise filters and small motor starters), and if they fail they go open rather than short.
- Don't use any ordinary capacitor across 220 V in place of an X2 or Y. See mains safety.
The supercapacitor (supercap)
Huge capacitance (from 0.1 up to hundreds of farads), but a low voltage (about 2.7 V per cell).
- It keeps a chip running for seconds or minutes when the power goes off (to save data, or keep a clock running).
- It charges and discharges quickly and withstands hundreds of thousands of cycles.
- It's no substitute for a battery for long-term storage, because it holds much less energy.
- If you put two in series for 5 V, they need balancing (resistors or a circuit).
Voltage: take a margin
The practical rule: the capacitor's rated voltage should exceed the circuit's maximum voltage by at least 20–50%:
| Circuit voltage | Electrolytic | Ceramic | Tantalum |
|---|---|---|---|
| 5 V | 10 V | 10–16 V | 10–16 V |
| 12 V | 16–25 V | 25 V | 25 V |
| 24 V | 35 V | 50 V | 50 V |
What to choose for each use?
| Use | Suitable type |
|---|---|
| Decoupling next to each chip (100 nF) | X7R ceramic |
| Crystal capacitors (12–27 pF) | C0G ceramic |
| Regulator or buck output | Large X7R ceramic, polymer, or low-ESR electrolytic |
| Smoothing after the bridge in a power supply | Large electrolytic |
| Audio signal coupling | Film or electrolytic |
| Accurate timing filters (555, RC) | Film or C0G |
| Directly across 220 V | X2 (film) only |
| Saving data when the power goes off | Supercap |
And to read the marked value (104, 472…), use the capacitor code calculator or read capacitor codes.
FAQ
Can I use a capacitor with more capacitance than required? For smoothing and supply filters, usually yes, within limits. But in timing and filters (555 and RC) it will change the frequency. And with some regulators, a very large output capacitor can make them oscillate, so check the datasheet.
Can I use a capacitor with a higher voltage rating than required? Always safe. The only drawback is that it's larger and more expensive.