The Core Function: What Do Capacitors Do in a Circuit?

At the most fundamental level, capacitors store electrical energy in an electric field between two conductive plates separated by a dielectric insulator. In practice, what capacitors do is act as temporary, high-speed batteries, frequency-dependent resistors (reactors), and timing elements. They block direct current (DC) while allowing alternating current (AC) to pass, making them indispensable for filtering, decoupling, and signal coupling.

Think of a capacitor like a municipal water tower connected to a pumping station. The pump (power supply) provides a somewhat pulsating flow of water. The water tower (capacitor) absorbs the high-pressure surges and fills in the gaps when the pump's output drops, delivering a smooth, continuous flow to the houses (the load).

Worked Numeric Example: Power Supply Smoothing
Suppose you are building a linear power supply and need to smooth the rectified output of a 60Hz AC transformer. A full-wave bridge rectifier converts 60Hz AC into a 120Hz pulsing DC waveform. If your load draws a steady 1A of current, and you want to keep the peak-to-peak ripple voltage under 8.5V, you can calculate the required capacitance using the formula: C = I / (f × V_ripple).

  • I (Load Current) = 1A
  • f (Ripple Frequency) = 120Hz
  • V_ripple (Acceptable Ripple) = 8.33V
  • C = 1 / (120 × 8.33) = 0.001 Farads, or 1000µF.

If you install a 1000µF capacitor, the voltage will sag by exactly 8.33V between the 120Hz peaks. To get tighter regulation, you would scale up to a 4700µF or 10,000µF electrolytic capacitor.

Capacitor Types and Selection Criteria

There is no universal capacitor. The dielectric material dictates the component's behavior, parasitic losses, and physical size. Selecting the right type for the job requires balancing capacitance density, voltage rating, and temperature stability. Below is a benchmark comparison of the four most common families you will encounter on a workbench.

Type Construction / Dielectric Typical Tolerance Tempco / Temp Stability Typical Use Case
MLCC (Ceramic) Multi-layer ceramic (X7R, C0G, Y5V) ±5% to -20%/+80% C0G: ±30ppm/°C
X7R: ±15% over range
High-frequency decoupling, RF filtering, bypassing IC VCC pins.
Aluminum Electrolytic Etched aluminum foil with liquid/polymer electrolyte ±20% typical High capacitance drop at -20°C; dries out >105°C Bulk power supply filtering, low-frequency audio coupling.
Tantalum Porous tantalum anode with manganese dioxide/polymer cathode ±10% to ±20% Very stable over temperature; low microphonics Compact DC decoupling, sample-and-hold circuits, medical devices.
Film (Polypropylene) Metallized plastic film wound or stacked ±1% to ±5% Excellent (±100ppm/°C); self-healing properties AC line filtering (X/Y safety caps), audio crossovers, high-voltage snubbers.

Selection Rule of Thumb: Use C0G/NP0 ceramics for precision timing and RF. Use X7R ceramics for general DC decoupling. Use aluminum electrolytics for bulk energy storage (>10µF). Use film capacitors for anything connected directly to the AC mains or high-fidelity audio paths.

Decoding the Markings: How to Read Capacitor Codes

Physical space on components is limited, especially for surface-mount and small radial ceramics. Manufacturers use standardized EIA (Electronic Industries Alliance) codes. Misreading these is a primary cause of bench errors.

The 3-Digit Ceramic Code

Most through-hole and leaded MLCCs use a three-digit code representing picofarads (pF). The first two digits are the significant figures, and the third digit is the multiplier (number of zeros).

  • 104: 10 followed by 4 zeros = 100,000 pF = 100 nF = 0.1 µF (The most common decoupling cap in electronics).
  • 223: 22 followed by 3 zeros = 22,000 pF = 22 nF.
  • 471: 47 followed by 1 zero = 470 pF.

Letter Codes for Tolerance and Voltage

You will often see a letter trailing the numeric code, or a letter prefix indicating voltage. According to SparkFun's capacitor tutorial and standard EIA tables:

  • Tolerance: J = ±5%, K = ±10%, M = ±20%, Z = +80%/-20%. (e.g., 104K is a 0.1µF cap with 10% tolerance).
  • Voltage Prefixes (Film/Ceramic): 1H = 50V, 2A = 100V, 2E = 250V, 2J = 630V. (e.g., 2A104J is a 100V, 0.1µF, 5% tolerance film or ceramic capacitor).

Failure Modes and Visual Diagnostics

Capacitors are statistically the most likely passive component to fail in aging electronics. Recognizing the visual symptoms saves hours of oscilloscope troubleshooting.

⚠️ Safety Warning: Large electrolytic capacitors in power supplies and camera flashes can retain lethal charges for weeks after being unplugged. Always verify they are discharged to < 1V using a multimeter, and safely bleed them through a high-wattage power resistor (e.g., 5W 100Ω) before touching the terminals.

Aluminum Electrolytic Failures

Visual Symptom: The scored cross or 'K' vent on the top of the can bulges upward or ruptures. You will often see a brown, crusty residue (dried electrolyte) leaking from the bottom rubber seal or the top vent.
Electrical Symptom: Capacitance drops drastically, and Equivalent Series Resistance (ESR) spikes. This causes power supply ripple to increase, leading to system resets or audio hum. For deep diagnostics on ESR, refer to All About Circuits' guide on capacitive reactance and losses.

MLCC (Ceramic) Failures

Visual Symptom: Often invisible to the naked eye. Under magnification, you may see a hairline crack near the solder joint, caused by PCB flexure (bending the board during assembly or enclosure mounting).
Electrical Symptom: They almost always fail as a dead short circuit. This causes the upstream voltage regulator to overheat, shut down, or blow a fuse. You must desolder the cap to confirm the short isn't in the IC itself.

Tantalum Failures

Visual Symptom: Catastrophic thermal runaway. If subjected to reverse polarity or voltage spikes exceeding their derated limit, tantalum capacitors literally catch fire, emit a loud pop, and leave a charred black mark on the PCB.
Electrical Symptom: Dead short. Once a tantalum fails, it destroys the physical pad on the board and must be scraped clean or replaced with a polymer alternative.

Safe Substitution Rules When the Exact Part is Missing

When your parts bin lacks the exact BOM specification, you can substitute, but you must follow strict electrical boundaries to avoid altering circuit phase margins or causing dielectric breakdown.

  1. Voltage Rating: You can always substitute a higher voltage rating for a lower one (e.g., using a 50V cap instead of a 25V cap). Never substitute a lower voltage rating. Note that higher voltage caps are physically larger, which may cause clearance issues.
  2. Capacitance in Power Filtering: For bulk DC filtering (rectifier outputs, linear regulators), substituting a higher capacitance is generally safe and improves ripple rejection. (e.g., subbing 2200µF for 1000µF).
  3. Capacitance in Switching Regulators (Buck/Boost): Do not arbitrarily increase capacitance. Switching regulators rely on specific output capacitance and ESR to maintain control loop stability. Swapping a 22µF X5R ceramic for a 100µF low-ESR polymer might cause sub-harmonic oscillation or phase margin collapse, resulting in a squealing inductor and unstable output voltage.
  4. Timing and Oscillators: In 555 timer circuits, RC oscillators, or crystal load capacitors, the exact value is mandatory. Substituting a 10% tolerance cap where a 1% C0G is specified will shift your frequency or baud rate out of spec.
  5. Dielectric Class Swaps: Never replace a C0G/NP0 (temperature stable) capacitor with an X7R or Y5V in an analog filter or oscillator. X7R capacitance drops by up to 50% when DC bias voltage is applied, and Y5V varies wildly with temperature, which will detune your circuit.

Frequently Asked Questions

What do capacitors do on a motherboard?

On a PC motherboard or GPU, capacitors serve two primary roles. First, bulk electrolytic or polymer capacitors filter the DC-DC voltage regulator modules (VRMs), smoothing out the high-frequency switching noise to deliver clean 1.2V to the CPU cores. Second, tiny 0.1µF and 0.01µF MLCC ceramics are placed directly under the BGA packages as decoupling capacitors. They act as localized, high-speed energy reservoirs, supplying instantaneous microsecond current spikes when millions of CPU transistors switch states simultaneously, preventing local voltage brownouts.

What do capacitors do in an AC motor?

Single-phase AC induction motors (like those in HVAC compressors or garage door openers) cannot generate a rotating magnetic field on their own. A start capacitor (usually 50-500µF, electrolytic) is wired in series with the start winding to create a phase shift, providing the high initial torque needed to spin the rotor. Once the motor reaches ~75% speed, a centrifugal switch disconnects it. A run capacitor (usually 2-50µF, oil-filled metallized film) remains in the circuit continuously, optimizing the phase angle to improve running torque and electrical efficiency while the motor operates.

What do capacitors do to audio signals?

Because capacitive reactance ($X_c = 1 / (2\pi f C)$) decreases as frequency increases, capacitors act as frequency-dependent gates. In an audio crossover, a capacitor placed in series with a tweeter blocks low-frequency bass (which could destroy the delicate voice coil) while allowing high-frequency treble to pass. In amplifier coupling, a capacitor blocks the DC bias voltage of one transistor stage from reaching the next, while allowing the AC audio waveform to pass through unimpeded. If a coupling capacitor dries out and loses capacitance, its reactance rises, rolling off the bass frequencies and making the audio sound thin and tinny.

Can a capacitor shock you after being unplugged?

Yes. A capacitor stores energy physically in an electric field, not chemically like a battery. A large 400V, 470µF capacitor in a switch-mode power supply stores roughly 37 Joules of energy ($E = 0.5 \times C \times V^2$). This is more than enough to deliver a painful, potentially lethal shock days after the device is unplugged. Furthermore, the dielectric material inside large electrolytics exhibits "dielectric absorption." Even if you short the terminals to 0V, the capacitor can chemically "recharge" itself to 20V-50V over the next few hours. Always store a wire-wound 10kΩ bleeder resistor across the terminals of high-voltage capacitors when they are removed from a circuit.