At its core, a capacitor stores electrical energy in an electric field between two conductive plates separated by an insulating dielectric. The direct answer to the physics of how it works capacitor storage is governed by the formula $C = \epsilon(A/d)$: capacitance increases with plate area ($A$) and the dielectric material's permittivity ($\epsilon$), and decreases as the distance between the plates ($d$) shrinks. When voltage is applied, electrons accumulate on one plate and are repelled from the other, creating an electric field that holds energy until a discharge path is provided.

The Core Physics: Charge Storage and Energy

To understand the energy dynamics, consider a standard 100µF bulk decoupling capacitor charged to 12V. The stored energy is calculated as $E = 0.5 \times C \times V^2$. Plugging in the numbers: $0.5 \times 0.0001 \text{ F} \times 144 \text{ V}^2 = 7.2 \text{ millijoules}$. While this seems small, in a high-speed digital circuit, that 7.2mJ is enough to supply transient current spikes to a microcontroller during a clock edge, preventing a brownout before the main power supply can react.

Think of a capacitor like a municipal water tower. The water pressure represents voltage, the physical volume of the tank represents capacitance, and the water flowing through the pipes represents current. When a neighborhood suddenly turns on all its taps (a transient current spike), the water tower instantly supplies the volume needed to maintain pressure, while the pumping station (your voltage regulator) ramps up to refill the tower.

Dielectric Showdown: Which Type for Which Job

The dielectric material inside the capacitor dictates its real-world behavior. Selecting the wrong dielectric is a common cause of circuit failure. Below is a spec-sheet-table comparing the most common bench and production types.

Type / Dielectric Construction Typical Tolerance Tempco / Stability Typical Use Case
MLCC (X7R / X5R) Barium titanate ceramic layers -15% to +15% High variation over temp/voltage General decoupling, bulk bypass
MLCC (C0G / NP0) Calcium zirconate ceramic ±0.5% to ±5% Near zero (±30ppm/°C) RF matching, precision timing, filters
Aluminum Electrolytic Etched foil + liquid electrolyte -20% to +80% High drift, dries out over time Power supply bulk filtering, audio coupling
Tantalum Tantalum powder + MnO2 dielectric -10% to +30% Moderate, prone to thermal runaway Space-constrained low-profile filtering
Film (Polypropylene) Metallized plastic film wound/stacked ±1% to ±5% Very low, highly linear Audio crossovers, AC snubbers, high voltage

Decoding the Case: How to Read Capacitor Markings

Physical markings vary wildly by chemistry and package size. Misreading these codes leads to ordering parts that are off by orders of magnitude.

Ceramic MLCCs (The 3-Digit Code)

Through-hole and larger SMD ceramics use a 3-digit EIA code. The first two digits are the significant figures, and the third is the multiplier (number of zeros), expressed in 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.
  • 221 = 22 followed by 1 zero = 220 pF.

If a letter follows the numbers (e.g., 104Z), it indicates tolerance. J = ±5%, K = ±10%, M = ±20%, Z = +80%/-20%.

Aluminum Electrolytics

These print the exact value (e.g., 470µF) and voltage rating (e.g., 25V) directly on the sleeve. The critical marking is the polarity stripe. On an electrolytic capacitor, the stripe indicates the negative lead. This is the opposite of diodes, where the stripe marks the cathode (positive current flow direction).

SAFETY WARNING: Reversing polarity on an aluminum electrolytic capacitor causes the internal dielectric oxide layer to break down. The electrolyte boils, generating gas that will eventually blow the capacitor's vent score, spraying hot, corrosive electrolyte across your workbench. Always double-check the negative stripe against the PCB silkscreen before soldering.

When Things Go Wrong: Failure Modes and Visual Symptoms

Capacitors rarely fail without leaving forensic evidence. Knowing what to look for saves hours of troubleshooting.

  • Electrolytic Venting: Look at the top of radial electrolytics. You will see a 'K', 'X', or 'Y' scored into the aluminum can. When internal pressure exceeds safe limits, this score mark splits open to vent gas. If the top is domed or the score mark is split, the cap is dead. Under the board, you may see a crusty brown residue (leaked electrolyte) which is highly corrosive to copper traces.
  • MLCC Flex Cracking: Multilayer Ceramic Capacitors (MLCCs) are brittle. If a PCB flexes during depaneling or connector insertion, mechanical stress fractures the ceramic layers internally. This creates a short circuit between the interleaved plates. Visually, the part looks perfect, but it will read near 0Ω on a multimeter.
  • Tantalum Thermal Runaway: Tantalum capacitors fail as a dead short. Because they lack a self-healing mechanism and have high internal energy density, a short circuit causes them to literally catch fire and emit acrid white smoke. Bench rule: Always derate tantalum voltage by at least 50% (e.g., use a 16V rated part on a 5V rail).
  • ESR Degradation: In switching power supplies, capacitors endure high ripple current. A 1000µF cap with an Equivalent Series Resistance (ESR) of 50mΩ carrying 2A of ripple dissipates $I^2R$ heat ($4 \times 0.05 = 0.2\text{W}$). Over time, this heat dries out the electrolyte, causing ESR to spike to several ohms, rendering the cap useless for high-frequency filtering despite still reading 1000µF on a basic capacitance meter.

The Bench Rulebook: How to Substitute Safely

When your exact part is out of stock, follow these substitution rules to avoid blowing up your prototype.

  1. Voltage Rating: Always substitute with a voltage rating equal to or higher than the original. Never step down.
  2. Capacitance Value: For bulk power decoupling, a higher value (e.g., subbing 22µF for 10µF) is generally safe. For timing circuits (like a 555 timer oscillator) or active filters, the value must be exact, or your frequency response will shift.
  3. The LDO ESR Trap: Older Low Dropout Regulators (LDOs) like the LM1117 require a minimum ESR (typically >0.1Ω) on the output capacitor to maintain phase margin and prevent oscillation. If you replace the original high-ESR aluminum electrolytic with a modern, ultra-low ESR MLCC (ESR ~3mΩ), the LDO will oscillate at high frequencies. Fix: Add a 1Ω series resistor to the MLCC to artificially raise the ESR, or use the specified electrolytic. For deeper insights on LDO stability, refer to Analog Devices' guidelines on LDO capacitor selection.
  4. DC Bias Derating: If substituting MLCCs, beware of DC bias. A 10µF 0805 X7R capacitor rated at 10V might only provide 2µF of actual capacitance when 10V is applied. If replacing an electrolytic with ceramics, you often need to parallel three or four MLCCs to achieve the effective capacitance under load. For comprehensive MLCC behavior data, consult the SparkFun capacitor tutorial or manufacturer datasheets.

Frequently Asked Questions

How it works: capacitor behavior in AC vs DC circuits?

In a DC circuit, a capacitor acts as an open circuit once fully charged; it blocks steady-state DC current. In an AC circuit, the continuously reversing voltage causes the capacitor to charge and discharge cyclically, effectively allowing AC current to 'pass' through. The opposition to this AC flow is called capacitive reactance ($X_c$), calculated as $X_c = 1 / (2\pi f C)$. As frequency ($f$) increases, reactance drops, which is why small-value capacitors are used to shunt high-frequency noise to ground while blocking DC.

How it works: capacitor self-healing in metallized film types?

Metallized film capacitors (like polypropylene or polyester) feature an ultra-thin layer of aluminum or zinc vapor-deposited onto the plastic film. If a voltage spike punctures the dielectric film, the resulting arc instantly vaporizes the surrounding metallization. This clears the short circuit and isolates the defect, leaving the rest of the capacitor fully functional. This 'self-healing' mechanism makes film capacitors exceptionally reliable in high-voltage AC applications like motor run circuits and AC line snubbers.

Why does my multimeter read a different value than the capacitor marking?

There are three common reasons for this discrepancy. First, basic multimeters test capacitance at a low frequency (often 100Hz) and low voltage, which doesn't account for the DC bias derating seen in X7R/X5R ceramics. Second, if the capacitor is still in-circuit, parallel impedances will skew the reading. Third, high ESR in a degraded electrolytic capacitor can confuse the meter's charge-time measurement algorithm, resulting in a falsely low or highly erratic reading. Always measure capacitance with the part removed from the board, and for critical applications, use an LCR meter that allows you to set the test frequency and bias voltage.