Log #24 · Sep 27, 2026
Choosing Capacitors for Your Circuit
Ceramic, electrolytic and film capacitors compared, how to read their markings, and which values to use for decoupling, filtering and motor noise.
Capacitors appear in almost every circuit diagram, often with values that seem to be chosen by magic: a 100 nF here, a 470 µF there. They are not magic. A capacitor stores a small amount of charge and releases it quickly, which lets it smooth out voltage dips, absorb spikes and block steady DC while passing changing signals. This guide explains the main types, how to read their markings and which ones to reach for in common hobby situations.
What a capacitor does
Think of a capacitor as a tiny, very fast rechargeable reservoir sitting on a power line. When the load suddenly needs extra current, the capacitor supplies it for a moment before the power supply can react. When a spike arrives, the capacitor soaks it up.
Capacitance is measured in farads (F), but a farad is huge, so real parts use:
| Unit | Value | Typical use |
|---|---|---|
| pF (picofarad) | 0.000000000001 F | Radio and crystal circuits |
| nF (nanofarad) | 0.000000001 F | Decoupling, filtering |
| µF (microfarad) | 0.000001 F | Power supply smoothing |
1000 pF = 1 nF, and 1000 nF = 1 µF. So 100 nF is the same as 0.1 µF.
The main types
Ceramic capacitors
Small, cheap and fast, usually from 10 pF to about 10 µF. Through-hole ceramics are often little blue or yellow discs. They are not polarized, so either leg can go anywhere.
- Best for: decoupling next to chips, filtering high-frequency noise, timing circuits.
- Watch out: the actual capacitance of high-value ceramics drops when you apply a DC voltage close to their rating. Choose a voltage rating well above your circuit voltage.
Electrolytic capacitors
Cylinders with values from about 1 µF to thousands of µF. They store a lot of charge for their size.
- Polarized: the negative leg is marked with a stripe and is usually shorter. Connecting one backwards can make it bulge, leak or burst.
- Best for: bulk storage on power lines, smoothing after a regulator, absorbing motor current spikes.
- Watch out: they are slower than ceramics, so they are usually paired with a small ceramic.
Film capacitors
Rectangular boxes, not polarized, stable and durable, typically 1 nF to a few µF. They appear in audio circuits, and small film or ceramic caps are often soldered directly across brushed DC motor terminals to reduce electrical noise.
Reading the markings
Electrolytics print the value and voltage directly, for example "470 µF 25V".
Small ceramics and film caps use a three-digit code in picofarads, like resistor codes:
first two digits, then the number of zeros
- 104 = 10 + 0000 = 100 000 pF = 100 nF (0.1 µF)
- 103 = 10 000 pF = 10 nF
- 220 = 22 pF
- 474 = 470 000 pF = 470 nF
A letter after the code often gives tolerance, such as J for ±5% or K for ±10%. If you already know resistor color codes, the logic will feel familiar.
The voltage rating
Every capacitor has a maximum voltage. Choose a rating comfortably above the highest voltage in the circuit: a common rule is at least 1.5 to 2 times the working voltage. For a 5 V rail, a 10 V or 16 V part is fine. For a 12 V motor supply, use 25 V. Exceeding the rating damages the capacitor, and with electrolytics it can be dramatic.
Which capacitor for which job
Decoupling chips: 100 nF ceramic
Place a 100 nF ceramic between VCC and GND of every chip, as close to its power pins as possible. When the chip switches, it pulls short bursts of current, and this capacitor supplies them locally so the voltage does not dip. Most breakout modules already include one, but if you build circuits on perfboard with bare chips, add it yourself.
Smoothing a power rail: 10 to 100 µF electrolytic
After a regulator, or where power enters a board, a 10–100 µF electrolytic smooths slower fluctuations. Regulator datasheets list the input and output capacitors they need; follow them, because some regulators become unstable without the right ones. See voltage regulators explained for more.
Motors and servos: 470 to 1000 µF electrolytic
Motors and servos draw sudden current spikes. A 470–1000 µF electrolytic across the motor supply, close to the motor driver or servos, stops those spikes from resetting your microcontroller. This is the capacitor recommended in our servo guide and power guide.
Brushed DC motor noise: 100 nF across the terminals
Brushes spark as they switch, creating radio-frequency noise that can disturb sensors. A 100 nF ceramic soldered directly between the two motor terminals helps.
Safety notes
- Large capacitors can hold a charge after power is removed. Hobby 5–12 V circuits are harmless to touch, but never short a large charged capacitor with a screwdriver; the spark can damage the tool and the part.
- Never reuse capacitors from mains-powered equipment unless you know how to discharge them safely. Those can store dangerous voltages.
- Double-check electrolytic polarity before powering up.
A starter assortment
For most hobby work, keep these on your bench: 100 nF ceramics (lots of them), 10 nF and 1 µF ceramics, and 10 µF, 100 µF, 470 µF and 1000 µF electrolytics rated 25 V. That set covers decoupling, filtering and motor spikes in nearly every project on this site.
— TheSolderBench · found a mistake? tell me