At its most fundamental level, a capacitor stores electrical energy in an electrostatic field. Unlike a battery, which relies on chemical reactions to store and release energy, a capacitor uses two conductive plates separated by an insulating material called a dielectric. When voltage is applied, electrons accumulate on one plate and are repelled from the other, creating an electric field across the dielectric. This allows the component to resist changes in voltage, making it the undisputed workhorse for filtering, decoupling, timing, and energy storage in every electronic circuit.

The Core Physics: How a Capacitor Works on the Bench

To understand how a capacitor works in a real circuit, use the water analogy: imagine a water pipe with a flexible rubber diaphragm blocking it entirely. Direct current (DC) cannot flow through the pipe because the diaphragm blocks it. However, if you push and pull the water rapidly (alternating current, or AC), the diaphragm flexes back and forth, transferring the pressure wave to the other side. The capacitor blocks DC but passes AC. The physical capacitance ($C$) is determined by the equation: $$C = \epsilon_r \epsilon_0 \frac{A}{d}$$ Where $A$ is the overlapping area of the plates, $d$ is the distance between them, and $\epsilon_r$ is the dielectric constant of the insulating material. This is why modern Multi-Layer Ceramic Capacitors (MLCCs) can achieve massive capacitance in microscopic 0402 (1.0 x 0.5 mm) packages: manufacturers stack hundreds of microscopic ceramic and metal layers, maximizing $A$ while minimizing $d$.

Worked Example: If you charge a 1000µF (0.001 Farad) aluminum electrolytic capacitor to 12V, the stored energy is $E = \frac{1}{2}CV^2$.
$E = 0.5 \times 0.001 \times (12)^2 = 0.072 \text{ Joules}$.
If you accidentally short this capacitor with a 0.1-ohm screwdriver, the initial instantaneous current spike will be $I = \frac{V}{R} = \frac{12}{0.1} = 120 \text{ Amps}$, which is more than enough to vaporize the tip of your tool and weld the capacitor's internal foil.

Dielectric Selection: Which Type for Which Job?

Choosing the right capacitor is rarely about just picking a capacitance value; the dielectric material dictates the component's behavior under temperature, voltage, and frequency stress. Below is a data-dense comparison of the five most common capacitor families you will encounter on a PCB or at a parts counter.
Table 1: Capacitor Dielectric Comparison and Selection Matrix
Type / Dielectric Typical Capacitance Tolerance Tempco / Stability ESR (Equivalent Series Resistance) Primary Application
MLCC (X7R / X5R) 100pF – 100µF ±10% to ±20% Class II. Loses up to 50% capacitance at rated DC bias. Very Low (mΩ range) General decoupling, bypass, bulk filtering in low-voltage digital logic.
MLCC (C0G / NP0) 1pF – 100nF ±1% to ±5% Class I. ±30ppm/°C. Zero DC bias voltage coefficient. Ultra-Low RF tuning, precision analog filters, snubber circuits, high-Q resonant tanks.
Aluminum Electrolytic 1µF – 10,000µF -20% / +80% Poor. Electrolyte boils off over time (limited lifespan at high temp). Medium to High (Ω to mΩ) Power supply bulk storage, audio coupling, low-frequency filtering.
Tantalum (MnO2 / Polymer) 100nF – 1000µF ±10% to ±20% Moderate. Highly stable over temperature, but prone to thermal runaway. Low (Polymer) / Med (MnO2) Compact DC-DC converter output filtering, sample-and-hold circuits.
Film (Polypropylene) 1nF – 100µF ±1% to ±5% Excellent. Self-healing dielectric, highly linear, no microphonics. Ultra-Low (handles high ripple) AC mains filtering (X/Y safety caps), motor run/start, high-power audio crossovers.

Decoding Physical Markings and Part Codes

Capacitors are notoriously cryptic when it comes to labeling, largely because the physical real estate on a 0603 ceramic chip or a 5mm film capacitor is microscopic. Here is how to read the markings on the three most common form factors.

1. The 3-Digit Ceramic Code (Through-Hole and SMD)

Most ceramic disc and larger SMD capacitors use a three-digit EIA (Electronic Industries Alliance) code expressed in picofarads (pF). The first two digits are the significant figures, and the third digit is the multiplier (number of zeros).
  • Code 104: 10 followed by 4 zeros = 100,000 pF = 100 nF = 0.1 µF.
  • Code 471: 47 followed by 1 zero = 470 pF.
  • Code 220: 22 followed by 0 zeros = 22 pF. (Note: 221 would be 220 pF).
A trailing letter indicates tolerance: J = ±5%, K = ±10%, M = ±20%, Z = +80%/-20%.

2. Film Capacitor Voltage and Value Codes

Film capacitors often use a prefix to denote the voltage rating before the capacitance code. For example, a marking reading 2A104J breaks down as follows:
  • 2A: EIA voltage code for 100V DC. (1E = 25V, 1H = 50V, 2A = 100V, 2E = 250V, 2G = 400V).
  • 104: 100,000 pF (100 nF).
  • J: ±5% tolerance.

3. Aluminum Electrolytic Direct Printing

Electrolytics have enough surface area to print directly, but you must look for the WV (Working Voltage) and the temperature rating. A marking of 470µF 25V 105°C means the capacitance is 470 microfarads, the maximum continuous DC voltage is 25V, and the electrolyte is rated to survive 105°C ambient heat. Always prefer 105°C rated caps over 85°C caps for switch-mode power supplies (SMPS), as the internal ripple current generates significant localized heat.

Failure Modes and Visual Diagnostics

⚠️ SAFETY WARNING: High-Energy Discharge and Fire Risk
Never short-circuit large capacitors with a screwdriver. The instantaneous current can cause the tool to weld to the terminals, vaporize metal, and cause severe burns. Always discharge capacitors over 50V using a properly rated high-wattage bleeder resistor (e.g., a 1kΩ 5W resistor on an insulated probe). Furthermore, tantalum capacitors fail as a dead short and can ignite if the power supply lacks current limiting.
When troubleshooting a dead board, capacitors are often the primary suspects. Here is what to look for based on the dielectric type:

Aluminum Electrolytic: Venting and Drying
Electrolytic capacitors contain a liquid or gel electrolyte. If subjected to overvoltage, reverse polarity, or excessive ripple current, the electrolyte boils and generates gas.
Visual Symptom: The scored cross on the top of the can bulges upward or pops open. You may see a crusty brown or black residue leaking from the rubber bung at the base.
Electrical Symptom: Capacitance drops drastically, and ESR skyrockets, causing power supply ripple to increase until the downstream logic resets or fails.

MLCC Ceramic: Flex Cracking
Ceramic capacitors are brittle. If a PCB is subjected to mechanical bending (e.g., board flexure during depaneling, or dropping a handheld device), the ceramic body can crack.
Visual Symptom: Often invisible to the naked eye. Under a microscope, you will see a hairline fracture originating from the inner edge of the solder fillet.
Electrical Symptom: The capacitor fails as a dead short, which can blow upstream traces or trigger thermal shutdown in voltage regulators.

Tantalum: Thermal Runaway
Manganese dioxide (MnO2) tantalum capacitors have a fatal flaw: if a localized defect causes a short, the MnO2 dielectric turns into manganese oxide, which is highly conductive. This creates a positive feedback loop of increasing current and heat.
Visual Symptom: A charred, melted, or completely exploded epoxy case, often leaving a black scorch mark on the PCB.
Electrical Symptom: Dead short across the power rail.

The Substitution Matrix: Swapping Parts Safely

According to component engineering guidelines, substituting a capacitor is not as simple as matching the microfarad value. When the exact BOM (Bill of Materials) part is out of stock, follow these strict substitution rules:

Rule 1: Voltage Ratings Can Always Go Up (With Caveats)
You can safely replace a 16V capacitor with a 25V or 50V part. However, in aluminum electrolytics, higher voltage ratings for the same capacitance require larger physical cans. Ensure the footprint allows for the larger diameter. In ceramics, a higher voltage rating often means a thicker dielectric, which can actually increase the physical size and alter the resonant frequency.

Rule 2: Beware the MLCC DC Bias Derating Trap
This is the most common mistake hobbyists and junior engineers make. Class II ceramics (X7R, X5R) suffer from severe DC bias derating. A 10µF X7R capacitor in an 0805 package rated for 16V will lose up to 70% of its capacitance when 12V DC is applied, effectively acting as a 3µF capacitor in-circuit.
Substitution Fix: If you must substitute, either choose a physically larger package (e.g., 1206 instead of 0805) to reduce the electric field density, or step up the voltage rating significantly (e.g., use a 25V or 35V rated part for a 12V rail).

Rule 3: Match the ESR for Power Supply Filters
In the output filter of a buck or boost converter, the capacitor must absorb high-frequency ripple current. Standard electrolytics have high ESR and will overheat and fail prematurely in this role.
Substitution Fix: You must substitute with a "Low-ESR" or "Ultra-Low ESR" electrolytic series (like Panasonic FR or Rubycon ZL), or use a solid polymer capacitor. Never swap a standard 105°C cap into a high-ripple SMPS node.

Rule 4: Timing and Filter Circuits Demand Precision
If the capacitor is setting the frequency of a 555 timer, an RC oscillator, or an active analog filter, the tolerance and temperature coefficient are critical.
Substitution Fix: Do not use X7R or Y5V ceramics, as their capacitance shifts wildly with temperature and applied voltage. Substitute only with C0G/NP0 ceramics or polypropylene film capacitors to maintain timing accuracy and prevent frequency drift.

Rule 5: Tantalum Derating is Mandatory
If you are forced to substitute a tantalum capacitor, you must apply a minimum 50% voltage derating. A 10V tantalum should never see more than 5V in continuous operation. If your circuit operates at 12V, you must substitute with a 25V or 35V tantalum, or switch to a solid polymer aluminum capacitor which does not suffer from the same catastrophic thermal runaway risks.