The strict definition of a capacitor is a passive electronic component that stores electrical energy in an electric field by accumulating charge on two conductive plates separated by an insulating dielectric. In practical circuit terms, it acts as a localized energy reservoir that resists changes in voltage. If you push 1 coulomb of charge into a capacitor and the voltage across its terminals rises by 1 volt, you have a 1-farad (1F) capacitor. Because 1 farad is massive for standard electronics, we usually work in microfarads (µF), nanofarads (nF), or picofarads (pF).

Think of a capacitor like a municipal water pressure tank with a rubber bladder. When the pump (power supply) pushes water in, the bladder stretches, storing potential energy. If the pump suddenly stalls, the bladder pushes water back out, maintaining pressure (voltage) in the pipes. Mathematically, the energy stored is E = ½CV². A 1000µF bulk filter capacitor charged to 12V stores 0.072 joules of energy—enough to arc across a screwdriver tip if you accidentally short the terminals, which is why large electrolytics must be discharged with a bleeder resistor before bench work.

Capacitor Type Comparison and Selection Matrix

Not all capacitors are created equal. The dielectric material inside dictates the component's tolerance, temperature coefficient (tempco), equivalent series resistance (ESR), and ultimate failure mode. Choosing the wrong dielectric for a specific job is a primary cause of oscillating regulators, drifting oscillators, and melted PCBs.

Dielectric TypeConstructionTypical ToleranceTempco / StabilityESR RangeBest Application
Ceramic (C0G/NP0)Class 1 multilayer±5% or better±30 ppm/°C (Ultra-stable)< 50 mΩRF matching, precision timing, audio filters
Ceramic (X7R/X5R)Class 2 multilayer±10% to ±20%±15% over temp range< 20 mΩGeneral decoupling, bypass, non-critical bulk
Aluminum ElectrolyticEtched foil + liquid/polymer-20% / +80%Poor (high temp drift)50 mΩ to >1 ΩBulk power filtering, low-frequency coupling
Tantalum (MnO2)Sintered pellet + manganese dioxide±10% to ±20%Moderate stability100 mΩ to 5 ΩSpace-constrained bulk decoupling, medical
Film (Polypropylene)Metallized plastic film±1% to ±5%±250 ppm/°C< 10 mΩHigh-current snubbers, AC line filtering, audio

DC Bias Derating Warning: When using Class 2 ceramics (X7R, X5R) for bulk decoupling, be aware of voltage derating. A 10µF X7R capacitor rated for 16V might only provide 2µF of actual capacitance when 12V DC is applied across it. Always check the manufacturer's DC bias curve; if you need true 10µF at 12V, you may need to select a 25V or 50V rated part, or switch to a tantalum or polymer electrolytic. For authoritative data on ceramic derating, consult Murata's technical FAQs on capacitor characteristics.

Decoding Capacitor Markings and Codes

Reading the value printed on a physical capacitor is rarely as simple as reading a resistor's color bands. The marking convention depends entirely on the physical size and chemistry of the part.

Ceramic and Film 3-Digit Codes

Small radial and surface-mount ceramics use a 3-digit EIA code expressed in 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 existence).
  • 473: 47 followed by 3 zeros = 47,000 pF = 47 nF.
  • 221: 22 followed by 1 zero = 220 pF.

This is usually followed by a letter indicating tolerance: J = ±5%, K = ±10%, M = ±20%. Therefore, a cap marked 104K is a 100nF capacitor with a ±10% tolerance.

Film Capacitor Voltage Codes

Through-hole film capacitors often prepend a letter-digit code for the voltage rating before the capacitance code. For example, a cap marked 2J104J breaks down as:

  • 2J: 630V DC rating (1J = 63V, 2A = 100V, 2E = 250V).
  • 104: 100,000 pF (100 nF).
  • J: ±5% tolerance.

Aluminum Electrolytic Markings

Because they are physically larger, electrolytics print the value directly: 1000µF 25V. The critical marking here is the polarity stripe. A painted stripe with minus signs (−) running down the side of the can indicates the negative lead. On SMD aluminum electrolytics, a painted black or white half-moon on the plastic base indicates the positive terminal. Reversing these will cause the dielectric oxide layer to break down, resulting in rapid gas generation and venting.

Real-World Failure Modes and Visual Symptoms

Capacitors fail in distinct ways based on their chemistry. Recognizing these visual and electrical symptoms on the bench will save you hours of oscilloscope debugging. For a deeper look into how parasitic elements cause circuit failures, reference the Electronics Tutorials capacitor guide.

Safety Warning: Never rely solely on visual inspection to declare a capacitor 'good'. A capacitor can look pristine while its internal Equivalent Series Resistance (ESR) has degraded to the point of circuit failure. Always verify with an ESR meter or LCR bridge.

Aluminum Electrolytic: Drying and Venting

The Mechanism: The liquid electrolyte slowly evaporates through the rubber end seal over time, accelerated by high ambient heat and ripple current.

Visual Symptoms: The scored aluminum top dome bulges upward. In severe cases, the rubber bottom bung extrudes, or the top vent pops open, leaving crusty brown electrolyte residue on the PCB and the capacitor sleeve.

Electrical Symptoms: Capacitance drops significantly (e.g., a 1000µF cap measures 400µF), and ESR spikes from 0.05Ω to >2Ω. This causes switching power supplies to whine, output voltage ripple to increase, and logic to reset randomly.

Tantalum: Thermal Runaway

The Mechanism: Manganese dioxide tantalum capacitors are highly intolerant of reverse voltage and voltage spikes. If subjected to a reverse bias or a surge exceeding their rated voltage, the dielectric shorts out. The resulting current heats the MnO2, which releases oxygen, feeding an exothermic chemical fire.

Visual Symptoms: A charred, cracked, or completely exploded epoxy package. The PCB underneath will often be scorched black.

Prevention: Always derate tantalum voltage by at least 50% (use a 16V cap on a 5V rail) and never use them on rails with high inductive kickback.

MLCC (Ceramic): Flex Cracking

The Mechanism: Multilayer ceramic capacitors (MLCCs) are essentially tiny bricks of brittle ceramic soldered to a flexible PCB. If the board is bent during assembly, testing, or enclosure mounting, the mechanical stress fractures the ceramic near the solder joints.

Visual Symptoms: Usually invisible to the naked eye. Under a microscope, you will see a hairline crack propagating from the terminal edge into the active layers.

Electrical Symptoms: Intermittent dead shorts that cause the power rail to collapse, or microphonic noise in audio circuits where mechanical vibration translates into electrical noise via the piezoelectric effect.

Safe Substitution Rules When the Exact Part is Missing

When you are prototyping on the bench or repairing a legacy board, you rarely have the exact BOM part in your bins. Substituting capacitors is safe if you follow the physics, but disastrous if you guess. Use this decision framework:

1. Voltage Rating: Always Go Up, Never Down

You can safely replace a 16V capacitor with a 25V or 50V capacitor of the same value and dielectric. The thicker dielectric in the higher-voltage part simply means it will operate well below its stress limits. Caveat: Higher voltage caps are physically larger. Ensure they fit the PCB footprint and do not block adjacent components or airflow.

2. Capacitance Value: Context is Everything

  • Power Decoupling/Bypass: You can generally substitute a higher value. Swapping a 100nF (0.1µF) ceramic for a 1µF ceramic on an IC VCC pin is usually fine and will provide better low-frequency charge reservoir support.
  • Timing and Filtering: Never deviate. If a 555 timer circuit or an active RC low-pass filter calls for a 4.7nF C0G capacitor, substituting a 10nF cap will halve your oscillator frequency or shift your filter cutoff. Substituting an X7R for a C0G here will cause the frequency to drift as the room temperature changes.

3. ESR and Regulator Stability (The Hidden Trap)

This is where experienced engineers get tripped up. Many older Low Dropout (LDO) linear regulators (like the classic LM1117) are designed with control loops that require the high ESR of an aluminum electrolytic or tantalum output capacitor for phase margin stability. If you 'upgrade' the output cap to a ultra-low ESR MLCC ceramic, the LDO will lack the necessary zero in its feedback loop and will oscillate violently at high frequencies, destroying your load. Always check the regulator datasheet for 'ESR requirements' before swapping electrolytics for ceramics.

4. Temperature Coefficient Swaps

Never substitute a Class 2 ceramic (X7R/Y5V) for a Class 1 (C0G/NP0) in precision analog paths, ADC reference decoupling, or RF oscillators. Y5V capacitors, in particular, can lose up to 80% of their capacitance just from operating at room temperature extremes or under mild DC bias. If a schematic specifies C0G, it is because the designer needs the value to remain constant regardless of thermal or voltage stress.