A capacitor stores electrical energy in an electric field, acting as a localized reservoir for charge. To use one correctly on the bench or in a permanent installation, you must match the dielectric material to the circuit's frequency, voltage, and temperature requirements, then verify polarity and physical footprint. Selecting the wrong dielectric or misreading a 3-digit surface-mount code will result in anything from a drifting oscillator frequency to a catastrophic thermal fire. This guide provides the exact selection criteria, decoding rules, and substitution frameworks needed to deploy capacitors reliably.

Which Capacitor Type for Which Job?

Capacitors are not interchangeable. The dielectric material inside the component dictates its behavior under temperature changes, applied voltage (DC bias), and high-frequency ripple. Below is a spec-sheet comparison of the four most common families you will encounter in power supplies, RF boards, and audio circuits.

Type / Dielectric Construction Tolerance & Tempco Typical Use Case
Ceramic (MLCC)
C0G / NP0
Multi-layer ceramic tapes ±5% typical
±30 ppm/°C
RF matching, precision oscillators, 555 timer networks, PLL filters.
Ceramic (MLCC)
X7R / X5R
Multi-layer ceramic tapes ±10% to ±20%
±15% over temp
General decoupling, I2C/SPI pull-ups, bypassing IC VCC pins.
Aluminum Electrolytic Etched aluminum foil + liquid/polymer electrolyte ±20% standard
High temp variance
Bulk filtering on DC power supplies, audio coupling, low-frequency smoothing.
Tantalum Tantalum pentoxide solid electrolyte ±10% to ±20%
Stable over temp
Space-constrained low-ESR decoupling, medical devices (requires strict voltage derating).
Film (Polypropylene) Metalized plastic film wound or stacked ±1% to ±5%
Extremely stable
Audio crossovers, AC line snubbers, motor run capacitors, high-voltage resonant tanks.

The Golden Rule of Selection: Never use Y5V or Z5U ceramic capacitors for precision work. Their capacitance can drop by up to 80% when you apply a DC bias voltage or change the room temperature. Stick to C0G for timing and X7R for decoupling. For a deeper look at how DC bias affects MLCC capacitance, refer to this SparkFun capacitor tutorial.

Decoding Capacitor Markings and Codes

Physical real estate on capacitors is notoriously tight, leading manufacturers to use cryptic shorthand. Here is how to read the markings on the three most common form factors.

Ceramic Disc and SMD MLCCs (The 3-Digit EIA Code)

Most through-hole ceramics and larger SMD packages use a three-digit code measured in picofarads (pF). The first two digits are the significant figures, and the third digit is the multiplier (number of zeros).

  • 104: 10 × 10⁴ pF = 100,000 pF = 100 nF = 0.1 µF. (The most common decoupling cap in electronics).
  • 473: 47 × 10³ pF = 47,000 pF = 47 nF.
  • 221: 22 × 10¹ pF = 220 pF.

If a letter follows the numbers, it indicates tolerance: J = ±5%, K = ±10%, M = ±20%.

Aluminum Electrolytics (Polarity and Values)

Electrolytics are large enough to print the actual microfarad (µF) value and voltage rating directly on the sleeve (e.g., "470µF 25V"). The critical marking here is the polarity stripe. A bold stripe running down the side of the cylinder, often accompanied by minus signs (-), indicates the negative (cathode) lead. The unmarked lead is positive. Reversing this will cause the internal electrolyte to boil and vent violently.

Film Capacitors

Film caps often use a microfarad decimal system alongside voltage codes. A marking of .1J250 means 0.1 µF, ±5% tolerance (J), and a 250V DC rating. If you see an AC voltage rating (e.g., 275VAC), it is an X/Y safety-rated capacitor designed specifically to bridge AC mains lines for EMI suppression.

Failure Modes and Visual Symptoms

Capacitors rarely fail silently. Knowing what a dying capacitor looks like saves hours of multimeter troubleshooting. According to All About Circuits, dielectric breakdown and electrolyte evaporation are the primary culprits in aging hardware.

Warning: Never rely solely on visual inspection for SMD ceramics. A flex crack can cause a dead short with zero visible damage to the top of the component. Always check for board-bending stress near MLCCs placed too close to mounting holes.
  • Aluminum Electrolytic (Dried Out / Vented): Look for a domed or bulging top. The stamped "X" or "K" vent on the top is designed to pop open to prevent shrapnel. If it is raised, or if there is a brownish, crusty residue leaking from the bottom rubber bung onto the PCB, the capacitor has lost its electrolyte and its Equivalent Series Resistance (ESR) has skyrocketed.
  • Tantalum (Thermal Runaway): Tantalum capacitors fail short-circuit and often catch fire. A failed tantalum leaves a charred black crater, a melted solder pad, and a distinct acrid smoke smell on the PCB. This usually happens due to voltage spikes exceeding the rated limit.
  • MLCC (Flex Cracking): When a PCB bends (from being pushed into a tight enclosure or depanelized poorly), the rigid ceramic body cracks near the metal terminals. Visually, this is a microscopic hairline fracture on the side edge. Electrically, it manifests as a dead short that intermittently opens and closes when you tap the board.
  • Film (Metallization Clearing): Film caps are self-healing up to a point. Overvoltage causes internal micro-arcs that vaporize the metalized coating, permanently reducing the total capacitance. There are no external visual symptoms; you must measure the capacitance with an LCR meter to confirm it has dropped below tolerance.

How to Substitute Safely When the Exact Part is Missing

When your parts bin is missing the exact BOM specification, you can substitute, but you must follow strict electrical rules to avoid destroying the circuit or violating safety codes.

  1. Voltage Rating Can Go UP, Never DOWN: If the schematic calls for a 16V capacitor, a 25V or 50V part is perfectly safe. However, for tantalum capacitors, you must apply a 50% voltage derating rule. If the rail is 10V, use a 20V tantalum to survive turn-on surge currents without catching fire.
  2. Match the ESR for Regulators: Many older Low Dropout (LDO) linear regulators and specific buck converters rely on the Equivalent Series Resistance (ESR) of the output capacitor for feedback loop stability. If the datasheet specifies an aluminum electrolytic (high ESR), substituting a super-low ESR ceramic MLCC can cause the regulator to oscillate wildly. If you must use ceramic, add a 1-ohm series resistor to artificially mimic ESR.
  3. Temperature Coefficient in Timing Circuits: If you are building an astable multivibrator, an RC oscillator, or an analog synth filter, do not substitute an X7R ceramic for a C0G/NP0. The X7R will cause the frequency to drift noticeably as the component self-heats or the ambient room temperature changes.
  4. Safety Caps are Non-Negotiable: Never substitute a standard DC-rated film capacitor for an X2 or Y2 AC safety capacitor across mains voltage. DC caps lack the internal fusing and flame-retardant encapsulation required to prevent a line-to-line fire during a grid surge.

Frequently Asked Questions

How to use a capacitor to smooth DC voltage?

To smooth rectified AC into clean DC, place a large bulk aluminum electrolytic capacitor (e.g., 1000µF to 4700µF) in parallel with the load, immediately after the bridge rectifier. Observe the polarity stripe. The capacitor charges to the peak voltage during the AC waveform's crest and discharges into the load during the trough, filling in the "valleys" and reducing ripple voltage. For high-frequency switching noise, add a 0.1µF (104) ceramic MLCC in parallel with the bulk electrolytic, placing the ceramic as physically close to the load IC's VCC and GND pins as possible.

How to use a capacitor for AC motor starting vs running?

Start capacitors and run capacitors serve entirely different mechanical functions and are not interchangeable. A start capacitor (typically black plastic casing, 50µF to 1200µF) provides a massive phase-shifted torque jolt to get a single-phase motor spinning. It is connected via a centrifugal switch and is only in the circuit for a few seconds; leaving it in the circuit will cause it to overheat and explode. A run capacitor (typically silver metal or oil-filled, 1µF to 100µF) remains in the circuit continuously while the motor operates to optimize efficiency and power factor. Always match the exact µF rating and voltage (usually 370VAC or 440VAC) when replacing a run cap.

How to safely discharge a large capacitor before handling?

Large power supply capacitors and motor run caps can hold a lethal charge for days after power is removed. Never short the terminals with a screwdriver; the instantaneous current spike can weld the screwdriver to the terminals, vaporize the metal, and destroy the capacitor's internal dielectric. Instead, build a discharge tool using a high-wattage bleeder resistor. A 10kΩ, 5-watt ceramic or wirewound resistor clamped to insulated alligator leads will safely bleed a 400V capacitor down to a safe sub-50V level in a few seconds. Afterward, verify the voltage is zero using a multimeter before touching the terminals.