The primary use of a capacitor in any electrical circuit is to store energy in an electric field, but on the workbench, we rely on them for decoupling, filtering, timing, and AC coupling. For a concrete example: placing a 100nF (0.1µF) X7R ceramic capacitor directly across the VCC and GND pins of an ESP32-WROOM-32 module provides a local charge reservoir that shunts high-frequency switching noise to ground, preventing brownout resets during WiFi transmission spikes.

High-Voltage Safety Warning: Large electrolytic capacitors found in switch-mode power supplies, amplifiers, and motor start circuits can retain lethal DC charges for days after power is removed. Before touching any terminals, verify the circuit is dead with a CAT III/IV multimeter and safely discharge the capacitor using a high-wattage bleeder resistor (e.g., 10kΩ, 5W ceramic). Never short large capacitors with a screwdriver; the instantaneous current can weld metal, destroy the capacitor's internal foil, and cause shrapnel.

Capacitor Type Selection: Which Dielectric for Which Job?

Choosing the right capacitor goes far beyond just matching the microfarad (µF) value. The dielectric material dictates the component's temperature stability, equivalent series resistance (ESR), and physical size. Below is a benchmark comparison to guide your selection criteria.

Dielectric Type Construction / Class Tolerance Tempco (Temp Stability) Typical Use Case
Ceramic (C0G/NP0) Class 1 (Paraelectric) ±1% to ±5% 0 ±30 ppm/°C (Ultra-stable) RF circuits, precision timing, high-Q filters, oscillator tanks.
Ceramic (X7R/X5R) Class 2 (Ferroelectric) ±10% to ±20% ±15% over temp range General decoupling, bulk bypass, I2C pull-up filtering.
Aluminum Electrolytic Polarized, Liquid/Solid Electrolyte -20% to +80% High drift (Temp & Age) SMPS output filtering, bulk energy storage, audio coupling.
Tantalum (MnO2/Polymer) Polarized, Solid Dielectric ±10% to ±20% Stable, but highly temp-dependent Compact bulk decoupling in space-constrained mobile/medical PCBs.
Film (PP / PET) Non-polarized, Metalized Plastic ±1% to ±5% Low drift, self-healing Audio crossovers, motor run, AC snubbers, high-voltage resonance.

Selection Rule of Thumb: If the capacitor sets a frequency or timing constant (like in a 555 timer astable circuit), you must use C0G/NP0 ceramic or Film. If you use X7R or Electrolytic for timing, your frequency will drift wildly as the board warms up. For power supply decoupling, X7R and Aluminum Electrolytic are your workhorses. For deeper reading on dielectric behaviors, the All About Circuits capacitor chapter provides excellent foundational physics.

Decoding Physical Markings and Capacitor Codes

Through-hole ceramic and film capacitors rarely have enough surface area to print '0.1µF 50V'. Instead, they use a 3-digit EIA code paired with a letter suffix. Here is how to read the spec sheet stamped right on the part.

The 3-Digit EIA Code

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

  • 104 = 10 × 10⁴ pF = 100,000 pF = 100nF = 0.1µF (The most common bypass cap in electronics).
  • 103 = 10 × 10³ pF = 10,000 pF = 10nF = 0.01µF.
  • 471 = 47 × 10¹ pF = 470 pF.

Tolerance and Voltage Suffixes

Following the numeric code, a letter indicates tolerance, and sometimes a secondary code indicates the DC voltage rating.

  • J = ±5% | K = ±10% | M = ±20% | Z = +80% / -20%
  • Voltage Codes: 0J = 6.3V, 1A = 10V, 1C = 16V, 1E = 25V, 1H = 50V, 2A = 100V.

Therefore, a ceramic disc marked 104K 1H is a 100nF capacitor with ±10% tolerance, rated for 50VDC. For SMD electrolytic and tantalum capacitors, you will often see a color band (usually black or gray) indicating the positive anode, alongside direct printing of the µF value and voltage (e.g., '100 16V'). The SparkFun capacitor tutorial offers a great visual reference for identifying SMD polarity bands.

Failure Modes and Visual Diagnostics

Capacitors fail in distinct, predictable ways based on their chemistry. Recognizing these visual and electrical symptoms will save you hours of troubleshooting.

Aluminum Electrolytic: The Bulge and the Crust

Electrolytics contain a liquid or gel electrolyte that slowly boils off or degrades over time, especially in hot environments (like near a power resistor or inside a poorly ventilated TV chassis). Visual Symptom: The top cross-vent bulges upward, or you see a brownish, crusty residue leaking from the bottom rubber bung or the top seam. Electrical Symptom: Capacitance drops, but more importantly, Equivalent Series Resistance (ESR) spikes. A 1000µF cap might still read 900µF on a standard multimeter, but if its ESR has risen from 0.05Ω to 5Ω, it will fail to filter switching ripple, causing the power supply to whine or drop out under load.

Tantalum: Thermal Runaway

Tantalum capacitors offer high capacitance in a tiny SMD package, but they are notoriously unforgiving of reverse polarity and voltage spikes. Visual Symptom: A charred, cracked epoxy body, sometimes with a literal hole blown through the top. Failure Mechanism: Dielectric breakdown causes a short circuit. Because MnO2 tantalums have low thermal conductivity, the short rapidly escalates into thermal runaway, resulting in fire and smoke.

Design Rule for Tantalums: Never use standard MnO2 tantalum capacitors on circuits with high inrush currents or low-impedance power sources without strict derating. The industry standard is to derate the voltage rating by at least 50%. If your rail is 5V, you must use a 10V or 16V rated tantalum. For modern designs, substitute Polymer Tantalums or MLCCs, which do not suffer from catastrophic short-circuit failure modes.

MLCC (Ceramic): Piezoelectric Cracking

Class 2 ceramics (X7R/X5R) exhibit piezoelectric properties—they can physically vibrate ("sing") under AC ripple, and conversely, mechanical stress generates electrical noise. Visual Symptom: Often invisible to the naked eye. Under a microscope, you will see microcracks running parallel to the PCB pads. Failure Mechanism: PCB flexure during assembly or operation causes the rigid ceramic body to crack, leading to internal short circuits. Always keep large MLCCs away from board edges, mounting holes, and heavy connectors.

Safe Substitution Rules When the Exact Part is Missing

When you are prototyping on the bench and the BOM calls for a part you don't have, you can substitute safely if you follow these four immutable rules:

  1. Voltage Rating Can Go UP, Never DOWN: If the schematic calls for a 25V capacitor, a 50V or 100V part is perfectly safe. The physical size will be larger, and the ESR might be slightly different, but it will not break down. Never substitute a 16V part for a 25V requirement; the dielectric will eventually puncture.
  2. Match the Circuit Function, Not Just the Value:
    • Decoupling/Bypass: You have wide latitude. Swapping a 100nF (0.1µF) for a 220nF or even 1µF ceramic will usually work fine, as you are just providing a broader low-impedance shunt.
    • Timing/Filtering: You must match the value exactly. If a 555 timer calls for 10nF, using 22nF will halve your output frequency. Use ±1% or ±5% tolerance parts here.
  3. Respect the ESR Requirements: Do not substitute a standard aluminum electrolytic for a 'Low-ESR' or Polymer capacitor on the output of a switching regulator (like an LM2596 or buck converter). The control loop relies on the specific ESR zero for stability; high ESR will cause severe output ringing or outright oscillation.
  4. Never Substitute Y5V for X7R: Y5V and Z5U ceramics have atrocious temperature and voltage coefficients. A 10µF Y5V capacitor might drop to 2µF just by applying its rated DC voltage. Always substitute with X7R or X5R at a minimum.

Frequently Asked Questions

What is the use of a capacitor in a single-phase AC motor?

Single-phase AC power cannot generate a rotating magnetic field on its own; it just pulsates. The use of a capacitor here (specifically a 'start' or 'run' capacitor) is to shift the phase angle of the current in the auxiliary winding by up to 90 degrees. This creates a synthetic two-phase system that generates the necessary rotating magnetic field to produce starting torque. Start capacitors (usually electrolytic, high µF) are switched out of the circuit via a centrifugal switch once the motor reaches ~75% speed, while run capacitors (oil-filled film, lower µF) remain in the circuit continuously to optimize running efficiency and power factor.

Can I use a capacitor to drop AC mains voltage safely?

Yes, this is known as a 'capacitive dropper' circuit, utilizing the capacitive reactance ($X_c = 1 / (2\pi f C)$) to limit current without dissipating heat like a resistor. However, you must use an X2-rated safety film capacitor specifically designed for across-the-line AC mains use. X2 caps are self-healing and designed to fail open, not short. Warning: Capacitive dropper circuits are not isolated from the mains. The entire low-voltage side of your circuit will be at a lethal potential relative to earth ground. Never use this topology for anything a human will touch; use an isolated transformer or an off-the-shelf isolated SMPS module instead. For more on safety capacitor classifications, refer to the Cornell Dubilier technical guides on AC line filtering.

Why use a capacitor in parallel with a bridge rectifier diode?

Placing a small ceramic or film capacitor (typically 1nF to 10nF) in parallel with each diode in a bridge rectifier creates an RC snubber network (the 'R' is often the inherent circuit resistance or an added series resistor). When a diode switches off (reverse recovery), parasitic inductance in the transformer windings and PCB traces can cause high-frequency voltage ringing and spikes. This ringing causes electromagnetic interference (EMI) and can audibly buzz in audio equipment. The parallel capacitor absorbs this high-frequency transient energy, dampening the ringing and protecting the diode from overvoltage spikes.

How do I test the use of a capacitor in-circuit without desoldering?

Testing capacitance in-circuit with a standard multimeter is highly unreliable because parallel components (resistors, ICs, other caps) will skew the reading. However, you can test for the most common failure mode of electrolytics—high ESR—without removing the part. Using a dedicated ESR meter, which injects a high-frequency AC signal (usually 100kHz) that passes through parallel inductors and is blocked by parallel low-impedance paths, you can measure the internal resistance. If a 1000µF, 16V capacitor reads an ESR greater than 0.5Ω, it has degraded and must be replaced, regardless of what its capacitance value reads on a standard DMM.