A capacitor stores electrical energy in an electric field between two conductive plates separated by an insulating dielectric. In a DC circuit, it blocks steady current while resisting voltage changes; in AC, it passes signals with an impedance that drops as frequency rises ($X_c = \frac{1}{2\pi fC}$). If you need to smooth a 5V rail powering an ESP32 that draws 250mA spikes during WiFi transmission, you place a 100µF bulk capacitor and a 100nF decoupling capacitor near the VCC pin. That is the job. The rest of this guide explains how to pick the exact physical part, read its cryptic markings, and avoid the failure modes that fry boards.

The Core Types: Which Dielectric for Which Job?

The dielectric material inside a capacitor dictates its stability, physical size, and failure mode. Selecting the wrong dielectric is the most common reason a perfectly designed schematic fails on the bench. According to Murata's MLCC technical guide, the dielectric class defines the temperature coefficient and voltage stability.

Capacitor Type Comparison Matrix
Type Dielectric / Construction Typical Tolerance Tempco / Stability Best Application
MLCC (C0G/NP0) Ceramic (Class I) ±1% to ±5% 0 ±30 ppm/°C (Ultra-stable) RF filters, audio coupling, precision timing oscillators.
MLCC (X7R/X5R) Ceramic (Class II) ±10% to ±20% ±15% over temp (Moderate DC bias drop) General decoupling, bypassing, switching regulator bulk.
Aluminum Electrolytic Aluminum foil + liquid/polymer electrolyte ±20% Poor (High temp drift, dries out over time) High-capacitance bulk storage, low-frequency power filtering.
Tantalum Tantalum metal + manganese dioxide/polymer ±10% to ±20% Good (Stable, but sensitive to voltage spikes) Space-constrained bulk filtering on low-voltage (≤12V) rails.
Film (Polypropylene) Metallized plastic film ±1% to ±5% Excellent (Self-healing, low ESR) AC line filtering, snubber circuits, high-current motor drives.

Decoding the Markings: What the Codes Actually Mean

Capacitor markings are notoriously inconsistent across chemistries. While a large electrolytic will plainly state "470µF 25V", ceramic capacitors rely on a compressed 3-digit EIA code due to their tiny physical footprint.

The 3-Digit Ceramic Code

The first two digits are the significant figures, and the third digit is the multiplier (number of zeros), expressed in picofarads (pF).

  • Example: 104 → 10 × 10⁴ pF = 100,000 pF. Since 1,000 pF = 1 nF, and 1,000 nF = 1 µF, a 104 capacitor is exactly 100 nF (or 0.1 µF).
  • Example: 471 → 47 × 10¹ pF = 470 pF.
  • Example: 225 → 22 × 10⁵ pF = 2,200,000 pF = 2.2 µF.

Tolerance and Voltage Letters

A letter following the numeric code indicates tolerance. J = ±5%, K = ±10%, M = ±20%. Therefore, a marking of 104K is a 100nF capacitor with a ±10% tolerance band. Voltage codes are less standardized on small ceramics but often follow a letter system (e.g., '1E' = 25V, '1H' = 50V) derived from the EIA standard. For through-hole radial ceramics, refer to All About Circuits' component identification guides for specific manufacturer color bands or voltage stamps.

Electrolytic Polarity Stripe

On aluminum electrolytic capacitors, the painted stripe with minus signs (−) indicates the cathode (negative) lead. On through-hole parts, the negative lead is also physically shorter from the factory. Reversing polarity on a standard wet electrolytic causes internal gas generation, leading to rapid pressure buildup and venting.

Failure Modes and Visual Symptoms

Capacitors rarely fail without leaving forensic evidence. Recognizing these symptoms saves hours of multimeter probing.

Safety Warning: Never intentionally short a charged capacitor to discharge it. A 470µF capacitor charged to 50V stores 0.58 Joules of energy ($E = \frac{1}{2}CV^2$). Shorting it with a screwdriver will weld the tool to the leads, destroy the capacitor's internal connections, and send shrapnel into your eyes. Always discharge through a high-wattage power resistor (e.g., 1kΩ 5W).
  • Aluminum Electrolytic (Boil-Off & Venting): Visual Symptom: The top aluminum cross-score bulges upward, or a brown, crusty residue leaks from the bottom rubber bung. Cause: Operation near maximum temperature rating evaporates the internal electrolyte. This drastically increases Equivalent Series Resistance (ESR), causing the cap to overheat further in a thermal runaway loop.
  • MLCC (Flex Cracking): Visual Symptom: Often invisible to the naked eye. The board may work until pressed or flexed, then the rail shorts to ground. Cause: Mechanical stress from board depaneling, connector insertion, or thermal expansion bends the brittle ceramic, cracking the internal electrode layers and creating a dead short.
  • Tantalum (Thermal Runaway): Visual Symptom: A charred, melted, or completely exploded tan rectangular block. Cause: Reverse voltage, excessive ripple current, or voltage spikes exceeding the derated limit. Tantalum dioxide acts as an oxidizer; when it fails, it ignites the tantalum metal. Always derate tantalum voltage by 50%.

The Substitution Matrix: Swapping Parts Safely

When your exact BOM part is out of stock, you must substitute without altering circuit behavior or compromising safety. Follow these four rules:

  1. Voltage Rating: Always go UP, never DOWN. Swapping a 16V rated cap for a 25V or 50V cap is perfectly safe and often improves reliability. Never use a 10V cap on a 12V rail, even if the "nominal" voltage is 12V; transient spikes will kill it.
  2. Capacitance Value: Context Dependent. For power rail decoupling (bypassing), substituting a 220nF for a 100nF is usually fine—more bulk storage helps. For timing circuits (like a 555 timer astable oscillator) or active filters, the value must be exact (±5% or better) or your frequency response will shift.
  3. The DC Bias Trap (Crucial for MLCCs): Class II ceramics (X5R, X7R) suffer from DC bias effect. A 10µF X5R 0805 capacitor rated at 10V will physically lose 50% to 70% of its capacitance when 10V DC is applied across it. If you need a true 10µF at 10V, you must substitute with a larger physical package (like 1206 or 1210) or a much higher voltage rating (e.g., 25V or 50V). C0G/NP0 ceramics do not suffer from this effect.
  4. ESR in Switching Regulators: Do not blindly swap a standard aluminum electrolytic for a "low-ESR" polymer or ceramic in a switching regulator feedback loop without checking the datasheet. Some older regulator control loops rely on the specific ESR zero of a standard electrolytic for stability; dropping the ESR too low can cause high-frequency oscillation.

The Decision Tree: Pick Your Exact Part

Stop guessing. Use this decision path to terminate your selection process with a concrete, orderable part number.

Capacitor Selection Decision Tree
Application Scenario Required Traits Concrete Pick (Part Number)
Decoupling a 3.3V MCU (ESP32/STM32) VCC pin High frequency response, small footprint, low inductance. 100nF 0603 X7R 50V
(Samsung CL10B104KB8NNNC)
Bulk output filter on a 12V 5A Buck Converter High capacitance, very low ESR to minimize ripple voltage. 470µF 25V Low-ESR Aluminum
(Panasonic EEU-FR1E471)
Audio signal coupling or RC oscillator timing Zero microphonics, no DC bias drop, tight tolerance. 10nF C0G/NP0 100V Radial
(KEMET C315C103J1G5TA)
Snubber across a relay coil or AC motor contactor High peak current handling, self-healing, AC rated. 100nF 275VAC X2 Film
(Vishay B32921C3104M)
The Default Bench Stock Recommendation: If you are building a general-purpose prototyping kit and need to buy in bulk, stock up on X7R MLCCs in 0805 footprint. The 0805 size is large enough to hand-solder with a standard iron but small enough for dense boards, and X7R covers 90% of general decoupling needs. Buy a kit covering 100pF to 10µF (e.g., the KEMET X7R 0805 sample kits) and a separate assortment of Panasonic FR-series low-ESR aluminum electrolytics (10µF to 1000µF at 25V/50V). This combination will solve 95% of the power integrity and filtering problems you encounter on the bench.