At its core, a capacitor is a passive two-terminal component that stores electrical energy in an electric field. Unlike a battery, which generates electrons via chemical reactions, a capacitor simply hoards them on conductive plates separated by an insulating dielectric. When you need to smooth a 12V DC power rail, filter a 2.4GHz RF signal, or set the oscillation frequency of a 555 timer, the capacitor is the component doing the heavy lifting. Measured in Farads (F), practical electronics usually deal in microfarads (µF), nanofarads (nF), and picofarads (pF).

If you are asking what is capacitor in electronics doing on a PCB, the answer usually falls into three buckets: decoupling (providing local energy reserves for ICs), filtering (blocking DC while passing AC, or smoothing rectified AC), and timing (working with resistors to set RC time constants). Choosing the right one requires looking past the nominal capacitance value and understanding the dielectric material, equivalent series resistance (ESR), and temperature coefficient.

The Core Types: Which Capacitor for Which Job?

Not all capacitors are created equal. A 10µF multilayer ceramic capacitor (MLCC) behaves entirely differently from a 10µF tantalum or aluminum electrolytic under high-frequency ripple or extreme temperatures. Here is the data-dense breakdown of the most common types you will encounter at the bench.

Type / Dielectric Typical Cap Range Tolerance Tempco / Stability ESR Profile Best Use Case
MLCC (C0G/NP0) 1pF – 10nF ±1% to ±5% Ultra-stable (±30ppm/°C) Extremely Low RF filters, high-fidelity audio coupling, precision timing circuits.
MLCC (X7R/X5R) 10nF – 100µF -20% / +80% Moderate (±15% over temp) Very Low General decoupling, bypassing, SMPS input/output filtering.
Aluminum Electrolytic 1µF – 10,000µF ±20% Poor (dries out over time) Moderate to High Bulk energy storage, low-frequency power supply smoothing, audio crossovers.
Tantalum (MnO2 / Polymer) 100nF – 1,000µF ±10% to ±20% Good Low (Polymer) / Med (MnO2) Space-constrained bulk decoupling, medical/aerospace hold-up power.
Film (Polypropylene) 1nF – 100µF ±1% to ±5% Excellent Low High-voltage AC line filtering, snubber circuits, motor run capacitors.

Bench Insight: X7R and X5R ceramics exhibit a DC bias effect. A 10µF X5R 0805 MLCC rated for 6.3V might only provide 4µF of actual capacitance when 5V DC is applied across it. Always check the manufacturer's DC bias curve (from vendors like Murata or KEMET) when sizing ceramics for power rails KEMET Capacitor Tutorial.

Decoding the Markings: What the Codes Actually Mean

Reading resistor color bands is a rite of passage, but capacitor markings are notoriously fragmented. Depending on the physical size and chemistry, you will encounter three main coding systems.

The 3-Digit EIA Code (Ceramics and Films)

Through-hole and smaller SMD ceramics use a three-digit code denoting picofarads (pF). The first two digits are the significant figures, and the third digit is the multiplier (number of zeros).

Marking Calculation Value in pF Value in nF Value in µF
104 10 × 10^4 100,000 pF 100 nF 0.1 µF
103 10 × 10^3 10,000 pF 10 nF 0.01 µF
472 47 × 10^2 4,700 pF 4.7 nF 0.0047 µF
221 22 × 10^1 220 pF 0.22 nF -

Tolerance Letters: You will often see a letter trailing the numbers. J means ±5%, K means ±10%, and M means ±20%. A marking of 104K is a 100nF capacitor with a 10% tolerance.

Electrolytic and Tantalum Printing

Larger radial and axial electrolytics usually print the exact value and voltage rating directly on the sleeve (e.g., 470µF 25V). The critical marking here is the polarity stripe. On aluminum electrolytics, a black or grey stripe with minus signs (-) indicates the cathode (negative) lead. On through-hole tantalum beads, a printed line or bar indicates the anode (positive) lead. Mixing these up is a fast track to component destruction.

Safe Substitution: When You Don't Have the Exact Part

When you are prototyping or repairing a board and the exact BOM part is out of stock, you can substitute capacitors, but only if you respect the physics of the circuit. According to fundamental circuit theory documented by resources like All About Circuits, swapping parts blindly alters time constants and impedance profiles.

WARNING: Polarity and Voltage Limits
Never substitute a polarized capacitor (electrolytic/tantalum) into a circuit that sees AC voltage or reverse bias. Never substitute a capacitor with a lower DC Working Voltage (WVDC) rating than the original. A 16V cap on a 12V rail is acceptable; a 10V cap on a 12V rail will eventually vent or short.

The Substitution Decision Matrix

  • Decoupling / Bypass (e.g., 100nF on an IC VCC pin): You can safely substitute a higher capacitance value (e.g., using 220nF instead of 100nF) and a higher voltage rating. Stick to the same dielectric class (X7R for X7R).
  • Timing / Oscillators (e.g., 555 timer, crystal load caps): Do not substitute. The exact capacitance value and tight tolerance (C0G/NP0) are mathematically required to hit the target frequency. Swapping a 22pF C0G for a 22pF X7R will cause frequency drift as the board warms up due to the X7R's poor temperature coefficient.
  • Power Supply Bulk Filtering (e.g., 1000µF after a bridge rectifier): You can substitute a higher capacitance and higher voltage. However, beware of inrush current. A massively oversized capacitor bank will look like a dead short to the rectifier diodes at turn-on, potentially blowing the diodes or the upstream fuse if they aren't rated for the surge.
  • Audio Signal Coupling: Never substitute an X7R ceramic for a Film or C0G ceramic in the audio signal path. X7R ceramics are piezoelectric; they act as microphones and will introduce physical vibration noise (microphonics) and voltage-dependent distortion into the audio stream.

Failure Modes and Visual Symptoms on the Bench

Capacitors are the most common point of failure in aging electronics. However, a standard digital multimeter (DMM) capacitance test is often useless for diagnosing a failing part. A DMM measures the time it takes to charge the cap at low voltage, which a degraded capacitor might still pass. To properly diagnose failures, you need to know what to look for and when to use an ESR meter.

Aluminum Electrolytic: Drying Out and Venting

Visual Symptoms: The top aluminum cross-vent is bulged upward, or there is a crusty brown residue on the PCB beneath the capacitor. Sometimes, the rubber bung at the bottom is pushed out.
The Physics: The liquid electrolyte slowly vaporizes through the rubber seal over years of heat exposure. As it dries, the internal surface area drops, and the Equivalent Series Resistance (ESR) skyrockets.
The Fix: Test with an ESR meter. A healthy 1000µF 16V cap should have an ESR below 0.1Ω. If your meter reads >1.0Ω, the cap is dead, even if a DMM says it still reads '1000µF'. Replace with a low-ESR, 105°C rated part (e.g., Panasonic FM or Rubycon ZL series).

MLCC Ceramics: Flex Cracking

Visual Symptoms: Usually invisible to the naked eye. The PCB might have a hairline bend, or the component was subjected to mechanical stress during depaneling or connector insertion. In severe cases, you might see a tiny hairline crack at the edge of the solder joint.
The Physics: Ceramics are brittle. When the PCB flexes, the MLCC cracks internally. Because the dielectric layers are microscopic, a crack often bridges the internal electrodes, creating a dead short.
The Fix: Troubleshoot with a thermal camera while powering the board through a current-limited bench supply; the shorted MLCC will glow hot. To prevent this in future designs, use 'soft termination' MLCCs (which have a flexible epoxy layer in the terminals) or keep large ceramic caps away from PCB edges and mounting holes.

Tantalum: Thermal Runaway

Visual Symptoms: The component is cracked open, charred black, or completely missing from the board, leaving a scorch mark.
The Physics: Manganese dioxide (MnO2) tantalum capacitors are highly sensitive to reverse voltage and high inrush currents. If subjected to a voltage spike or installed backward, the dielectric breaks down. The resulting short circuit heats the MnO2, which releases oxygen, feeding a literal chemical fire.
The Fix: Replace with a Tantalum Polymer capacitor. Polymer cathodes do not contain oxygen and will fail to a safe short rather than catching fire. Alternatively, derate standard tantalums heavily (use a 25V rated part on a 5V rail).

Understanding what a capacitor is in electronics goes far beyond memorizing the formula C = Q/V. It requires matching the physical construction and dielectric chemistry to the specific electrical, thermal, and mechanical stresses of your circuit. Keep your ESR meter charged, respect the polarity stripes, and always check the DC bias curves before finalizing your BOM.