Skip to content
GEEKnodes

Electronics

Types of Capacitors: Electrolytic, Ceramic, Tantalum and Film

Electrolytic, ceramic, tantalum and film capacitors compared: uses, polarity, voltage rating and how to choose the right replacement capacitor.

Not all capacitors are the same: an electrolytic in a power supply and a ceramic next to a microcontroller do very different jobs, and swapping one for the other can go wrong. In this guide you’ll see the four most common types, what each one is for, how to identify their polarity and how to choose a correct replacement.

In short

  • Electrolytic: lots of capacitance in a small space, polarized. Power supply filtering and energy storage.
  • Ceramic: small, cheap and non-polarized. The classic 100 nF decoupling cap next to every chip.
  • Tantalum: compact and stable, polarized, and best used well below their voltage rating.
  • Film: precise and long-lasting, non-polarized. Audio, filters and mains-connected circuits.

What a capacitor does

A capacitor stores electric charge between two plates separated by an insulator, the dielectric. The material of that dielectric is what sets one type apart from another and determines its capacitance, size, accuracy and maximum voltage.

Its most common uses:

  • Filtering: smoothing a power supply’s voltage after the rectifier.
  • Decoupling: absorbing a chip’s current spikes right at its power pins.
  • Coupling: passing an AC signal while blocking DC.
  • Timing: together with a resistor, setting time intervals in RC circuits.

Comparison table

Aluminum, ceramic, tantalum and film capacitors, with their characteristic shapes.
Each family has a different construction and different applications.
Aluminum electrolyticCeramic (MLCC)TantalumFilm
Typical capacitance0.1 µF – tens of mF1 pF – tens of µF0.1 µF – hundreds of µF1 nF – tens of µF
PolarityYesNoYesNo
Common voltages6.3 – 450 V6.3 V – kV4 – 50 V50 V – kV
AccuracyLow (±20%)Very high to low depending on dielectricMedium (±10–20%)High (±5–10%)
LifespanLimited: they dry outVery longLongVery long
PriceLowVery lowMedium-highMedium
Typical usePower supply filteringDecoupling, high frequencyRegulators, compact devicesAudio, filters, mains

To read the value printed on a ceramic or film capacitor (104, 103, 472…), see the capacitor code calculator.

Aluminum electrolytic capacitors

These are the cylinders with a plastic sleeve that you see in almost every power supply. They achieve high capacitance thanks to an extremely thin oxide layer used as the dielectric.

Polarity

  • The stripe on the sleeve (usually with − signs) marks the negative lead.
  • The longer lead is the positive one (on new, uncut components).
  • On the board, the silkscreen usually marks the negative side with a hatched or filled area, or the positive side with +.

Connecting it backwards can make it heat up, bulge or burst. The tops of many electrolytics have cross-shaped scores precisely so they vent in a controlled way.

Lifespan and ESR

Their electrolyte gradually evaporates with time and heat. That’s why the manufacturer specifies a rated life in hours at maximum temperature, for example 2,000 h at 105 °C. As a rough rule, every 10 °C below that temperature doubles the life.

Another key spec is ESR (equivalent series resistance). Switching power supplies use low-ESR models: a standard one in their place heats up and the supply eventually fails.

Signs of a bad electrolytic: a bulging top, brown electrolyte residue at the base, a power supply that makes noise or a device that is slow to start.

Ceramic capacitors

They’re the most plentiful: small discs or, in SMD, tiny rectangles (MLCC, multilayer ceramic capacitor). They’re non-polarized and work very well at high frequency.

Dielectric classes

The dielectric code matters as much as the capacitance:

DielectricClassStabilityUse
C0G / NP01Very stable over temperature and voltageOscillators, filters, timing
X7R2Good (±15% from −55 to 125 °C)Decoupling, general purpose
X5R2Good (±15% from −55 to 85 °C)Decoupling with more capacitance in a small size
Y5V / Z5U2Poor: they can lose much of their capacitanceOnly where the exact value doesn’t matter

The effect of voltage (DC bias)

Class 2 ceramics lose capacitance when DC voltage is applied. A 10 µF, 6.3 V MLCC running at 5 V can end up at a fraction of its rated value. Manufacturers publish curves for this effect; if the actual capacitance matters, choose one with a higher voltage rating or a larger size.

The 100 nF decoupling cap

A 100 nF ceramic is placed next to the power pins of every integrated circuit, as close to its pins as possible. It absorbs the fast current spikes that long traces can’t supply in time. That’s why you’ll see so many of them on any microcontroller board.

100 nF ceramic capacitor between VCC and GND, connected next to a chip.
The parallel capacitor absorbs fast spikes close to the chip’s power supply.

Tantalum capacitors

They offer a lot of capacitance in a very small volume and are more stable than aluminum electrolytics. Through-hole ones are usually teardrop-shaped; SMD ones look like small blocks.

Polarity: the opposite of aluminum

The stripe marks the negative on aluminum and the positive on an SMD tantalum.
Check which terminal the stripe marks before mounting the capacitor.
  • On SMD parts, the stripe marks the positive, exactly the opposite of an aluminum electrolytic.
  • On teardrop ones, the positive lead is usually marked with + or is the longer one.

Voltage: use them well below their rating

Manganese dioxide (MnO₂) tantalums can fail short, sometimes with smoke or flame, if they get voltage or current spikes. That’s why the classic industry recommendation is to run them at 50% of their voltage rating: for a 5 V circuit, one rated 10 V or more.

Polymer tantalums tolerate this use better and manufacturers recommend smaller derating, around 80% of the rated voltage depending on the model. Always check the datasheet.

Film capacitors

They use a plastic film as the dielectric. They’re usually colored rectangular blocks (yellow, red, blue). They’re non-polarized, accurate and barely age.

TypeMaterialCharacteristics
MKTPolyester (PET)Small and cheap, general purpose
MKPPolypropylene (PP)Very low losses: audio, filters, high current
X2Certified filmAcross line and neutral in mains circuits
Y2Certified film or ceramicBetween mains and ground or accessible parts

X and Y capacitors are safety-rated: they’re designed so that if they fail, they don’t cause shocks or fires. In a mains-connected repair, they’re always replaced with one of the same class and voltage.

How to choose a replacement capacitor

Follow this list when replacing a bad one:

  1. Same type: electrolytic for electrolytic, ceramic for ceramic. Changing technology alters the ESR and can destabilize regulators.
  2. Same capacitance: within the original’s tolerance. In power supply filtering, a bit more capacitance usually isn’t a problem; in timing circuits or filters, it is.
  3. Equal or higher voltage: never lower. A 16 V part can replace a 10 V one; not the other way around.
  4. Equal or higher temperature: if the original is rated 105 °C, don’t fit an 85 °C one.
  5. ESR: in switching power supplies, look for the equivalent low-ESR series.
  6. Size and lead spacing: it has to fit on the board and not touch a heatsink.
  7. Polarity: check the silkscreen or take a photo before desoldering.
  8. Safety class (X/Y) on any mains-connected capacitor.

Example: the output capacitor of a 12 V switching power supply is a 1,000 µF, 16 V, 105 °C, low-ESR electrolytic. A valid replacement: 1,000 µF, 25 V, 105 °C, from a reputable manufacturer’s low-ESR series, with the same diameter.

For the swap, go over how to solder and desolder through-hole components.

Safety

Large capacitors hold their charge after the device is unplugged. The main electrolytic in a mains-powered supply can store over 150 V (over 300 V on 230 V mains) for minutes. Before touching it, discharge it with a suitable resistor (not a screwdriver) and check with the multimeter that the voltage is zero.

Common mistakes

MistakeConsequenceFix
Electrolytic or tantalum backwardsHeating, bulging or explosionCheck the stripe and the silkscreen
Lower-voltage replacementPremature failureEqual or higher voltage rating
Standard electrolytic in a switching supplyIt heats up and the supply failsUse a low-ESR one
MnO₂ tantalum at its voltage limitShort circuit with smokeDerate to 50% of its voltage rating
Y5V where the value mattersActual capacitance much lowerUse X7R, X5R or C0G
Standard capacitor instead of an X2Risk of fire or shockAlways the same safety class

Accessibility preferences

Quick profiles

Text and reading

Text size
Default
Line height
Default
Letter spacing
Default
Word spacing
Default

Colour

Motion and orientation

Cursor