At the most fundamental physics level, the function of a capacitor is to store electrical energy in an electric field between two conductive plates separated by a dielectric insulator. But on the workbench, asking "what are the functions of a capacitor" yields four distinct practical answers: decoupling (smoothing voltage rails), coupling (passing AC signals while blocking DC bias), timing (setting RC charge/discharge constants), and filtering (tuning resonant frequencies or suppressing EMI).

Choosing the right capacitor is rarely just about the microfarad (µF) or picofarad (pF) value. A 10µF ceramic capacitor and a 10µF aluminum electrolytic capacitor will behave entirely differently in a 1MHz switching regulator. This guide breaks down the exact functions, dielectric types, physical markings, and safe substitution rules you need to design and repair circuits without a second trip to the component distributor.

Core Functions in DC and AC Circuits

To understand capacitor behavior, we have to look at how they react to different signal types. In DC circuits, a capacitor acts as a temporary energy reservoir. In AC circuits, it acts as a frequency-dependent resistor (reactance, calculated as $X_c = 1 / (2\pi fC)$).

Decoupling and Bypass (DC Rails)

Digital ICs draw current in sharp, high-frequency spikes. If you are designing a power rail for an ESP32-WROOM-32, the module can draw transient spikes exceeding 500mA during WiFi transmission. If the power supply trace has too much inductance, the voltage at the VCC pin will sag, triggering a brownout reset.

Numeric Example: To solve this, we place a 100nF (0.1µF) X7R multilayer ceramic capacitor (MLCC) within 2mm of the ESP32's VCC pin. Its ultra-low Equivalent Series Inductance (ESL) allows it to source high-frequency current instantly. We then pair it with a 10µF or 47µF bulk aluminum electrolytic or tantalum capacitor near the voltage regulator to handle lower-frequency current demands. The ceramic handles the nanosecond spikes; the bulk cap handles the millisecond sags.

AC Coupling and DC Blocking

When routing an audio signal from a DAC to an amplifier, the DAC might output a signal centered around a 1.5V DC bias, while the amplifier expects a signal centered at 0V. A series capacitor blocks the 1.5V DC (acting as an open circuit to DC) but passes the AC audio waveform. The value must be chosen so the capacitive reactance at the lowest audio frequency (e.g., 20Hz) is negligible compared to the amplifier's input impedance.

Capacitor Type Comparison: Which Dielectric for Which Job?

The dielectric material inside the capacitor dictates its tolerance, temperature stability, Equivalent Series Resistance (ESR), and physical size. Never select a capacitor based solely on capacitance and voltage; the dielectric class is equally critical. According to TDK Electronics technical documentation, misapplying a high-capacitance Class II ceramic in a precision timing circuit will result in massive frequency drift.

Table 1: Capacitor Dielectric and Construction Comparison
Type / Dielectric Construction Typical Tolerance Tempco (Temp Stability) ESR Range Primary Application
MLCC (C0G / NP0) Class I Ceramic ±1% to ±5% ±30 ppm/°C (Ultra-stable) Ultra-low (<10mΩ) RF filters, precision oscillators, PLL loops
MLCC (X7R / X5R) Class II Ceramic ±10% to ±20% ±15% cap change over temp Low (<50mΩ) General decoupling, bypass, non-critical filtering
Aluminum Electrolytic Foil + Liquid Electrolyte -20% to +80% Poor (High tempco) High (100mΩ - 2Ω) Bulk energy storage, low-freq power filtering
Solid Tantalum Tantalum pellet + MnO2/Polymer ±10% to ±20% Moderate (±10% over temp) Very Low (Polymer: <20mΩ) Space-constrained bulk decoupling, medical/defense
Film (PPS / PET) Metallized Plastic Film ±1% to ±5% Excellent (Linear drift) Low High-voltage snubbers, audio crossovers, EMI suppression

Decoding Physical Markings and Capacitance Codes

Unlike resistors, which have color bands, capacitors rely on printed alphanumeric codes that vary wildly by physical size and chemistry. Here is how to read the markings on the physical part.

The 3-Digit MLCC Code (Picofarad Base)

Small ceramic capacitors use a 3-digit EIA code where 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 × 10^4 pF = 100,000 pF = 100 nF = 0.1 µF. (The most common decoupling cap in electronics).
  • 473: 47 × 10^3 pF = 47,000 pF = 47 nF.
  • 221: 22 × 10^1 pF = 220 pF.

Tolerance and Voltage Suffixes

You will often see a letter trailing the 3-digit code. This indicates tolerance: J = ±5%, K = ±10%, M = ±20%.
Voltage ratings on small ceramics are sometimes denoted by EIAJ alphanumeric codes rather than raw numbers. For example, 1H = 50V, 1E = 25V, 1C = 16V, 1A = 10V. As All About Circuits notes in their DC textbook, assuming a 50V rating on an unmarked ceramic is a common bench mistake that leads to catastrophic dielectric breakdown.

Electrolytic and Tantalum Markings

Through-hole and large SMD electrolytics print the value directly (e.g., 470µF 25V). Polarity is critical: Aluminum electrolytics have a painted stripe with minus signs indicating the cathode (negative) lead. Tantalum capacitors are the opposite: a painted band or bar indicates the anode (positive) lead.

⚠️ SAFETY WARNING: High-Voltage Discharge
Capacitors in mains-powered equipment (like ATX power supplies, camera flashes, or microwave ovens) can store lethal charges for weeks after being unplugged. Always verify the voltage across the terminals with a multimeter and safely discharge large electrolytics using a high-wattage bleed resistor (e.g., 10kΩ 5W) before touching the board. Never short them directly with a screwdriver; the instantaneous current spike can weld the tool and destroy the capacitor's internal connections.

Safe Substitution: What to Do When the Exact Part is Missing

When repairing a board or prototyping, you rarely have the exact BOM part in your bench drawers. Substituting capacitors safely requires understanding which parameters are flexible and which are absolute.

Rule 1: Voltage Rating (Always Go Higher)

You can safely substitute a capacitor with a higher voltage rating. Replacing a 16V cap with a 25V or 50V cap is electrically safe. However, be aware of the physical trade-offs: a 50V electrolytic will be physically larger than a 16V part of the same capacitance, and higher-voltage MLCCs often exhibit worse DC bias characteristics (capacitance drops significantly as applied DC voltage approaches the rated maximum).

Rule 2: Capacitance Value (Context Matters)

  • For Decoupling/Bypass: Substituting a slightly higher value (e.g., using 220nF instead of 100nF) is almost always acceptable and can improve low-frequency noise rejection.
  • For Timing/Oscillators: Do not substitute. A 555 timer astable circuit or a crystal load capacitor network requires exact values. A 10% deviation in capacitance will result in a 10% deviation in frequency or duty cycle.
  • For AC Coupling: Going higher is generally fine, as it lowers the high-pass cutoff frequency. Just ensure the physical footprint fits.

Rule 3: ESR and Ripple Current (The Hidden Killer)

If you are replacing an output capacitor on a switching buck converter (e.g., an LM2596), you cannot substitute a standard, general-purpose aluminum electrolytic for a "low-ESR" or "polymer" variant, even if the µF and V ratings match. Switching regulators subject output caps to high-frequency ripple current. A standard cap will overheat, vent, and fail in weeks. Always check the datasheet for the required ESR (often <50mΩ) and ripple current rating.

Failure Modes and Visual Diagnostics

Capacitors are the most common point of failure in aging electronics. Identifying how they fail tells you what caused the failure and how to prevent it in your own designs. According to KEMET's technical failure analysis resources, environmental stress and electrical overstress manifest very differently across dielectric types.

Table 2: Capacitor Failure Modes and Visual Symptoms
Capacitor Type Primary Failure Mode Visual / Measured Symptoms Root Cause
Aluminum Electrolytic Electrolyte Boil-off / Drying Domed/bulging top vent, crusty brown/white residue around the rubber seal. Measured: ESR spikes, capacitance drops. Excessive ripple current, high ambient heat, or simply exceeding the 2,000-10,000 hour operational lifespan.
MLCC (Ceramic) Flex Cracking Invisible to the naked eye. Board functions intermittently or shorts out completely when flexed. Measured: Dead short (near 0Ω). Mechanical PCB bending during depaneling, connector insertion, or dropping the device. The brittle ceramic fractures, allowing internal plates to short.
Solid Tantalum Thermal Runaway / Short Capacitor pops, emits smoke, and leaves a black scorch mark on the PCB. Often destroys the upstream trace. Reverse polarity, excessive voltage spikes, or failure to derate. Tantalum caps must typically be derated by 50% (e.g., use a 20V cap on a 10V rail).
Film Capacitors Corona Discharge / Metallization Vaporization Swollen casing, audible hissing/crackling in high-voltage circuits. Measured: Gradual capacitance loss. Operating near or above the AC voltage rating, causing internal micro-arcing that vaporizes the thin metal film layers (self-healing, but degrades total area).

By understanding the specific functions of a capacitor in your circuit, selecting the correct dielectric for the electrical environment, and knowing how to read and substitute parts safely, you can drastically reduce prototype iterations and eliminate the most common causes of field failures in electronic hardware.