At its most fundamental level, a capacitor stores electrical energy in an electric field between two conductive plates separated by an insulating dielectric. But if you are asking what's a capacitor do on a practical workbench, the answer is simpler: it acts as a localized, high-speed energy reservoir that resists changes in voltage. It smooths out power supply ripples, blocks DC while passing AC signals, filters noise, and tunes resonant frequencies. Unlike a battery, which relies on slow chemical reactions, a capacitor dumps and absorbs charge almost instantaneously.
The Core Function: What's a Capacitor Do in a Real Circuit?
To understand a capacitor's job, think of it like a water pressure tank on a municipal supply line. If the city water pressure suddenly drops for a fraction of a second, the pressurized tank pushes water out to keep the flow steady. In a circuit, the capacitor does the same for voltage.
Let’s look at a concrete numeric example using an ESP32-WROOM-32 module. When the ESP32 transmits a WiFi packet, it can draw a transient current spike of roughly 300mA for about 5 microseconds. If your PCB trace has parasitic inductance, the main 3.3V regulator cannot respond fast enough, and the voltage at the chip’s VCC pin will droop, potentially causing a brownout reset.
We solve this by placing a 10µF ceramic decoupling capacitor as close to the VCC pin as possible. Using the capacitor current equation rearranged for voltage change ($\Delta V = \frac{I \cdot \Delta t}{C}$):
- Current (I): 0.3A
- Time ($\Delta t$): $5 \times 10^{-6}$ seconds
- Capacitance (C): $10 \times 10^{-6}$ Farads
$\Delta V = \frac{0.3 \cdot 0.000005}{0.000010} = 0.15V$
The local capacitor supplies the transient, limiting the voltage droop to a highly acceptable 0.15V. Without it, the parasitic inductance of the trace would cause a much severe voltage collapse. For a deeper look at the physics of capacitive reactance and charge storage, the All About Circuits DC textbook chapter on capacitors provides an excellent foundational breakdown.
Capacitor Type Comparison: Which Dielectric for Which Job?
Not all capacitors are created equal. The dielectric material inside the component dictates its tolerance, temperature stability, and equivalent series resistance (ESR). Choosing the wrong type is a primary cause of circuit instability. Here is how the major families stack up.
| Type | Dielectric / Construction | Typical Tolerance | Tempco (Temp Stability) | Best Use Case |
|---|---|---|---|---|
| MLCC (X7R / X5R) | Barium Titanate Ceramic | ±10% to ±20% | ±15% over temp range | General bypass, decoupling, bulk filtering |
| MLCC (C0G / NP0) | Paraelectric Ceramic | ±1% to ±5% | ±30 ppm/°C (Near zero) | RF matching, precision timing, active filters |
| Aluminum Electrolytic | Aluminum Oxide / Liquid Electrolyte | -20% / +80% | High drift, dries out over time | Bulk power supply smoothing, low-frequency audio coupling |
| Tantalum | Manganese Dioxide / Solid Polymer | ±10% to ±20% | Moderate drift | Compact, low-profile bulk decoupling (with strict derating) |
| Film (Polypropylene) | Metallized Plastic Film | ±1% to ±5% | Very low drift, highly stable | Audio crossovers, high-voltage snubbers, motor run caps |
Selection Rule of Thumb: Use C0G/NP0 ceramics for anything involving timing or frequencies above 1MHz. Use X7R/X5R for power decoupling. Use aluminum electrolytics when you need massive capacitance (100µF+) on a budget, and reserve film capacitors for high-voltage AC or high-fidelity audio paths.
Decoding the Markings: What Do Those Numbers and Letters Mean?
Through-hole and large SMD capacitors often have their values printed plainly (e.g., "10µF 25V"). But small ceramic discs and MLCCs use a condensed EIA (Electronic Industries Alliance) coding system that trips up many hobbyists.
The 3-Digit Picofarad Code
The first two digits are the significant figures, and the third digit is the multiplier (number of zeros). The base unit is always picofarads (pF).
- 104: 10 followed by 4 zeros = 100,000 pF = 100 nF = 0.1 µF
- 473: 47 followed by 3 zeros = 47,000 pF = 47 nF = 0.047 µF
- 221: 22 followed by 1 zero = 220 pF = 0.22 nF
Tolerance Letter Suffixes
You will often see a letter immediately following the numeric code. This indicates the maximum allowable deviation from the stated capacitance.
- J: ±5%
- K: ±10%
- M: ±20%
- Z: +80% / -20% (Common on older electrolytics)
EIAJ Voltage Codes
Surface mount tantalum and ceramic capacitors frequently use a letter-number combination to denote maximum DC voltage. If you misread this, you risk catastrophic failure.
- 0J: 6.3V
- 1A: 10V
- 1C: 16V
- 1E: 25V
- 1H: 50V
Safe Substitution: When You Don't Have the Exact Part
When you are prototyping on a Sunday afternoon and your parts bin lacks the exact BOM component, you can substitute, but you must respect the physics of the dielectric. Here are the hard rules for safe substitution.
1. Voltage Ratings: Go Up, But Beware DC Bias
The golden rule is that you can always substitute a higher voltage rating for a lower one (e.g., using a 50V cap on a 12V rail). However, with modern high-density MLCCs (X5R/X7R), you must account for DC bias degradation. A 10µF, 25V X5R ceramic capacitor in an 0805 package might only provide 2µF of actual capacitance when 12V DC is applied across it. If you are substituting a ceramic cap in a power path, always oversize the physical package (use 1206 instead of 0805) or choose a much higher voltage rating to mitigate DC bias roll-off.
2. Capacitance Values: Context Matters
For bulk power decoupling, substituting a 22µF cap for a 10µF cap is usually fine—more local energy storage is rarely a bad thing. However, if the capacitor is part of an RC timing circuit, an active filter, or a switching regulator's compensation network, a 20% deviation in capacitance will shift your pole/zero frequencies and can cause the regulator to oscillate.
3. ESR and LDO Stability
Older Low-Dropout Regulators (LDOs) were designed assuming the output capacitor would be an aluminum electrolytic with relatively high Equivalent Series Resistance (ESR). If you substitute a modern, ultra-low-ESR ceramic or polymer capacitor, the LDO's feedback loop may lose its phase margin and oscillate. Always check the LDO datasheet for "ESR requirements" before swapping an electrolytic for a ceramic on the output pin.
Failure Modes and Visual Symptoms
Capacitors do not last forever. The dielectric breaks down, the electrolyte dries out, and mechanical stress fractures the casing. Knowing what a failing capacitor looks like saves hours of oscilloscope debugging.
Solid tantalum capacitors fail as a dead short. If a voltage spike exceeds their rating, or if reverse polarity is applied, the internal manganese dioxide dielectric ignites. Always derate tantalum capacitors by at least 50% (e.g., use a 10V rated part on a 5V rail) and never use them on power rails subject to high inrush currents without soft-start circuitry.
Aluminum Electrolytic: The Bulging Vent
Electrolytic capacitors contain a liquid electrolyte that slowly evaporates over time, a process accelerated by heat. As the electrolyte dries, the ESR spikes, causing the cap to heat up further under ripple current. This generates internal gas pressure. Visual symptom: The top of the can bulges upward, the scored cross-vent on top splits open, or a brown, crusty residue leaks from the bottom rubber seal. If you see a dome-shaped top, the capacitor is dead.
MLCC Ceramics: The Invisible Flex Crack
Multilayer Ceramic Capacitors (MLCCs) are essentially brittle blocks of glass. If a PCB is bent during assembly, connector insertion, or mounting, the mechanical stress transfers to the MLCC. Visual symptom: Often, there is none. The crack is microscopic and internal. However, it eventually propagates through the dielectric layers, causing the capacitor to fail as a dead short. This is why critical MLCCs are often placed away from board edges and mounting holes, or why manufacturers use "soft-termination" MLCCs in high-stress zones.
Film Capacitors: Metallization Clearing
Metallized film capacitors are self-healing. When a localized dielectric breakdown occurs, the thin metal layer around the fault vaporizes, isolating the short. Visual symptom: The capacitor looks perfectly fine on the outside, but its total measured capacitance slowly drops over years of operation as more and more internal surface area is vaporized and cleared. If a high-voltage snubber or motor-run circuit stops working but the capacitor looks pristine, measure it with an LCR meter; it has likely lost 30%+ of its nominal value.
Understanding the physical realities of these components—their markings, their hidden DC bias quirks, and their distinct failure modes—is what separates a parts-swapper from a true circuit designer. For further reading on practical component selection, the SparkFun capacitor tutorial offers excellent visual references for identifying these parts in the wild.






