A capacitor is used to store and release electrical energy, block DC while passing AC, filter power supply ripple, and stabilize voltage rails via decoupling. For example, on a 5V microcontroller rail, a 100nF ceramic capacitor is used to shunt high-frequency switching noise to ground, preventing logic brownouts. In power supplies, bulk electrolytic capacitors smooth rectified AC into stable DC. The specific job dictates the dielectric material, physical construction, and tolerance required for the circuit to function reliably.

The Core Jobs: Why a Capacitor Is Used in Real Circuits

While the fundamental physics of a capacitor involves two conductive plates separated by a dielectric, the practical application on a PCB or in a panel boils down to four primary functions. Understanding these functions is the first step in answering why a specific capacitor is used over another.

  • Decoupling and Bypass: Integrated circuits like the ESP32 or ATmega328P draw current in sharp, high-frequency spikes during clock transitions. A 100nF (0.1µF) X7R multilayer ceramic capacitor (MLCC) placed physically adjacent to the VCC and GND pins acts as a localized, low-impedance energy reservoir. It supplies the instantaneous current demand, preventing the voltage rail from dipping and causing a reset.
  • Bulk Filtering and Smoothing: After an AC waveform is rectified by a bridge diode, the output is pulsating DC. A high-capacitance aluminum electrolytic capacitor (e.g., 470µF to 4700µF) is used to absorb the peaks and fill in the valleys, reducing the ripple voltage to a level acceptable for linear or switching regulators.
  • AC Coupling (DC Blocking):strong> In audio amplifiers or RF stages, a capacitor is used in series with the signal path to block the DC bias voltage of one stage from affecting the next, while allowing the AC audio or radio signal to pass through unimpeded.
  • Motor Start and Run: Single-phase AC induction motors cannot generate a rotating magnetic field on their own. A motor start or run capacitor (typically 5µF to 100µF metallized polypropylene film) is used to shift the phase of the current in the auxiliary winding, creating the necessary starting torque and improving running efficiency.
⚠️ MAINS VOLTAGE WARNING: When working with motor run/start capacitors or AC line filtering (X/Y safety capacitors), you are dealing with lethal mains voltage. Always de-energize the circuit, lock out the breaker, verify the circuit is dead with a CAT III/IV rated meter, and safely discharge the capacitor using a high-wattage bleeder resistor before touching any terminals. Local electrical codes may require a licensed electrician for hardwired appliance repairs.

Capacitor Type Selection Matrix: Which Dielectric for Which Job?

Not all capacitors are interchangeable. The dielectric material determines the component's temperature stability, equivalent series resistance (ESR), microphonic behavior, and voltage derating characteristics. Below is a data-dense selection matrix to guide your component choice based on real-world bench parameters.

Type / Dielectric Typical Tolerance Tempco (Temp Stability) ESR Range Best Application Example Part Number
MLCC Class 1 (C0G/NP0) ±1% to ±5% 0 ±30 ppm/°C (Ultra-stable) < 50mΩ RF tuning, precision timing, oscillator tanks, filters KEMET C0805C103J5GACTU
MLCC Class 2 (X7R/X5R) ±10% to ±20% ±15% over temp range < 20mΩ General decoupling, bypass, DC/DC converter output Murata GRM188R61H105KA93D
Aluminum Electrolytic -20% to +80% High variance, degrades in cold 100mΩ - 2Ω Bulk PSU filtering, low-frequency coupling, energy storage Nichicon UHW1H471MPD
Tantalum Solid (MnO2) ±10% to ±20% Stable, minimal DC bias derating 50mΩ - 500mΩ Low-profile bulk decoupling, medical/aerospace hold-up AVX TPSB106K016R0800
Metallized Film (PP) ±3% to ±5% -200 ppm/°C (Very stable) < 10mΩ AC mains filtering (X/Y), motor run, high-current snubbers Cornell Dubilier 940C20S1K-F

Source references for dielectric characteristics and part selection can be found in the KEMET Technical Resources and Cornell Dubilier (CDE) Technical Resources documentation hubs.

Decoding the Silk Screen: How to Read Capacitor Markings

Reading capacitor markings is a mandatory bench skill, especially when salvaging parts or verifying a BOM against physical inventory. The coding system changes drastically depending on the physical construction of the part.

Ceramic MLCC (Through-Hole and Small SMD)

Small ceramics use a three-digit EIA code based on picofarads (pF). The first two digits are the significant figures, and the third digit is the multiplier (number of zeros).
Example: A marking of 104 means 10 × 104 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).
If a letter follows the number, it indicates tolerance: J = ±5%, K = ±10%, M = ±20%. Therefore, 104K is a 100nF capacitor with a 10% tolerance.

Aluminum Electrolytic

Electrolytics are large enough to print values directly. You will see the capacitance in µF and the maximum DC voltage rating (e.g., 470µF 25V). Crucially, look for the negative stripe on the cylindrical can, which contains minus signs (-) indicating the cathode. Installing an electrolytic with reverse polarity will cause the internal electrolyte to boil, leading to a violent venting or explosion.

Metallized Film Capacitors

Film caps often use a hybrid code. A marking like 105J 400V breaks down as follows:
105 = 10 × 105 pF = 1,000,000 pF = 1.0 µF.
J = ±5% tolerance.
400V = Maximum DC voltage rating (or AC rating if explicitly marked VAC).

Safe Substitution Rules When the Exact Part Is Missing

When your exact BOM part is out of stock, you can substitute components, but you must respect the physics of the dielectric. Blindly swapping parts based solely on capacitance and voltage ratings is a common mistake that leads to field failures.

  1. The Voltage Rating Rule (and the DC Bias Trap): You can always substitute a capacitor with a higher voltage rating, never a lower one. However, with Class 2 MLCCs (X5R, X7R), you must account for DC bias derating. A 10µF, 16V X5R 0805 MLCC subjected to 12V of DC bias will actually exhibit a capacitance drop of up to 70%, effectively acting as a 3µF capacitor. If you need 10µF at 12V, you must substitute with a 25V or 50V rated part, or step up to a larger physical case size (like 1210) to maintain the required effective capacitance.
  2. Temperature Coefficient (Tempco) Matching: Never substitute a Class 2 ceramic (X7R) into a precision timing circuit, oscillator, or filter designed for a Class 1 ceramic (C0G/NP0). X7R dielectrics exhibit piezoelectric effects (microphonics) and severe capacitance shifts over temperature, which will cause your oscillator to drift or your filter to detune.
  3. ESR Requirements in Switching Regulators: If a datasheet for a buck converter specifies a 'low-ESR' output capacitor, do not substitute a standard aluminum electrolytic with a high ESR. The control loop relies on the capacitor's ESR zero for stability; too much ESR will cause severe output ripple, while too little ESR (like swapping in a ceramic without adjusting the compensation network) can cause control loop oscillation and switching noise.
  4. Safety Capacitors (X and Y Class): Never substitute a standard DC film or ceramic capacitor for an X/Y safety capacitor used across AC mains lines. Safety caps are designed to fail open (not short) and are certified to withstand high-voltage transient surges (like lightning strikes on the grid) without catching fire. Look for UL/IEC 60384-14 certification marks.

Failure Modes and Visual Symptoms on the Bench

Capacitors are statistically the most common point of failure in aging electronics. Diagnosing them requires knowing what to look for and how to test them. For a comprehensive look at component selection and failure analysis, the Vishay Capacitor Selection guides provide excellent manufacturer-level insights.

Capacitor Type Primary Failure Mode Visual / Olfactory Symptoms Bench Testing Method
Aluminum Electrolytic Electrolyte evaporation / drying out over time and heat. Bulging top vent, cracked rubber bung, brown crusty leakage on the PCB, or a completely flat top. Measure ESR with a dedicated ESR meter. A 1000µF cap should read <0.2Ω. High ESR = dead.
MLCC (Ceramic SMD) Flex cracking due to PCB mechanical bending or thermal shock during soldering. Often invisible to the naked eye. May show a hairline crack near the terminal. Causes a dead short across the rail. Measure resistance across the cap with a DMM. A reading of 0Ω to 5Ω indicates a shorted, cracked dielectric.
Tantalum (Solid MnO2) Thermal runaway due to reverse voltage, overvoltage spikes, or excessive ripple current. Component is charred black, cracked open, or completely missing. Distinct smell of burnt sugar and ozone. Visual inspection. Once a tantalum shorts and burns, it destroys the PCB pad. Must be scraped and replaced.
Metallized Film Self-healing degradation or metallization vaporization from sustained overvoltage. Bulging plastic casing, melted potting compound, or a distinct 'pop' sound followed by an open circuit. Measure capacitance. A significant drop from the rated value (e.g., reading 2µF on a 10µF cap) indicates internal clearing.
⚠️ TANTALUM FIRE HAZARD: Solid manganese dioxide (MnO2) tantalum capacitors contain an oxidizer and a fuel source. If subjected to reverse polarity or a voltage spike exceeding their rating, they do not just fail—they ignite violently, burning at temperatures high enough to melt solder and ignite the PCB. When prototyping or working in environments with high inrush currents, always substitute MnO2 tantalums with Polymer Tantalum or Niobium Oxide alternatives, which fail safely and will not catch fire.

Understanding exactly why a capacitor is used in a specific node of your circuit dictates everything from its physical size to its chemical composition. By respecting DC bias derating, reading the EIA codes correctly, and recognizing the visual symptoms of dielectric breakdown, you can design more robust PCBs and troubleshoot legacy hardware with confidence on the bench.