The charging and discharge of a capacitor follows a strict exponential curve governed by the RC time constant ($\tau = R \times C$). In a DC circuit, it takes exactly $5\tau$ (five time constants) for a capacitor to reach 99.3% of its source voltage during charging, or to decay to 0.7% of its initial voltage during discharge. Selecting the right physical component for this job requires matching the dielectric type to your timing precision, voltage, and temperature requirements, rather than just grabbing any part with the right microfarad rating.
The Physics of Charging and Discharge of a Capacitor
When a DC voltage is applied to a resistor-capacitor (RC) series circuit, current flows immediately, but the voltage across the capacitor builds up gradually. This happens because the capacitor opposes changes in voltage by drawing charge. The governing equations for the voltage across the capacitor ($V_c$) at any time ($t$) are:
- Charging: $V_c(t) = V_s(1 - e^{-t/\tau})$
- Discharging: $V_c(t) = V_0(e^{-t/\tau})$
Think of it like filling a pressurized air tank through a restricted valve. Initially, the tank is empty, and air rushes in quickly (high current). As pressure builds inside the tank (voltage across the capacitor), it pushes back against the incoming air, slowing the flow until the pressures equalize (current drops to zero).
Worked Numeric Example
Suppose you are designing a soft-start delay circuit using a $10\text{k}\Omega$ resistor and a $100\mu\text{F}$ capacitor connected to a 12V DC source.
- Time Constant ($\tau$): $10,000\,\Omega \times 0.0001\,\text{F} = 1\text{ second}$.
- At $1\tau$ (1 second): The capacitor reaches 63.2% of 12V, which is 7.58V.
- At $3\tau$ (3 seconds): The capacitor reaches 95.0% of 12V, which is 11.4V.
- At $5\tau$ (5 seconds): The capacitor is considered fully charged at 99.3%, or 11.91V.
If your microcontroller's GPIO pin triggers at 8V, it will cross that threshold just after the 1.5-second mark. If you need a faster trigger, you must decrease R or C.
Capacitor Type Selection for RC Timing and Filter Circuits
Not all capacitors charge and discharge identically. Dielectric absorption, leakage current, and temperature coefficients drastically alter the real-world RC curve compared to ideal textbook math. Below is the selection matrix for common dielectrics used in timing, filtering, and energy storage.
| Dielectric / Type | Construction | Tolerance | Tempco (Temperature Coefficient) | Typical RC Use Case |
|---|---|---|---|---|
| Ceramic C0G / NP0 | Class I Ceramic | $\pm$5% or better | $\pm$30 ppm/°C (Virtually zero) | Precision oscillators, 555 timer astables, high-Q filters. |
| Ceramic X7R / X5R | Class II Ceramic | $\pm$10% to $\pm$20% | $\pm$15% over temp range | Decoupling, general-purpose bypass, non-critical low-pass filters. |
| Aluminum Electrolytic | Etched foil with liquid/solid electrolyte | -20% to +80% | High drift, sensitive to cold | Bulk energy storage, power supply smoothing, long-duration soft-start delays. |
| Film (Polypropylene) | Metallized plastic film | $\pm$1% to $\pm$10% | $\pm$200 ppm/°C | High-voltage snubbers, audio crossovers, precision analog integrators. |
| Tantalum | Porous tantalum anode with MnO2/polymer | $\pm$10% to $\pm$20% | Moderate drift | Compact sample-and-hold circuits, space-constrained timing where low leakage is needed. |
Which Type for Which Job?
For precision timing (like setting the frequency of an astable multivibrator), always use C0G/NP0 ceramics or Film capacitors. Their capacitance value remains stable regardless of ambient temperature or applied DC bias. For bulk energy storage or delays spanning several seconds where exact timing isn't critical, Aluminum Electrolytic is the only cost-effective choice. Never use Y5V or Z5U ceramics for timing; their capacitance can drop by 80% just by applying the circuit's operating voltage.
Decoding Capacitor Markings and Safe Substitution
When you pull a capacitor from a parts bin, the physical markings dictate whether it will survive your circuit. Small ceramic capacitors use a 3-digit EIA code, while electrolytics print their values directly.
What the Markings Mean
The 3-digit code works like resistor color bands, but the base unit is picofarads (pF). The first two digits are significant figures, and the third digit is the multiplier (number of zeros).
- Code "104": $10 \times 10^4\text{ pF} = 100,000\text{ pF} = 100\text{ nF} = 0.1\mu\text{F}$.
- Code "473": $47 \times 10^3\text{ pF} = 47,000\text{ pF} = 47\text{ nF}$.
- Code "221": $22 \times 10^1\text{ pF} = 220\text{ pF}$.
Letters following the numbers indicate tolerance: J = $\pm$5%, K = $\pm$10%, M = $\pm$20%. For electrolytics, the stripe indicates the negative lead (cathode). Reversing polarity on an aluminum electrolytic during the charging phase will cause the dielectric oxide layer to break down, leading to rapid gas generation and catastrophic venting.
How to Substitute Safely When the Exact Part is Missing
If your BOM calls for a specific capacitor and you are out of stock, follow these bench rules:
- Voltage Rating: You can always substitute a higher voltage rating (e.g., using a 50V part in a 12V circuit). Never substitute a lower voltage rating.
- Capacitance Value: For power supply filtering, a value up to 2x higher is usually safe (check inrush current limits). For RC timing, you must match the value exactly or adjust the resistor to compensate ($R_{new} = R_{old} \times (C_{old} / C_{new})$).
- Dielectric Upgrade: You can safely substitute a C0G ceramic for an X7R, or a Film for an Electrolytic (if physical space permits). Never downgrade a C0G timing capacitor to an X7R or Y5V.
- ESR Considerations: In switching power supply discharge paths, low ESR is mandatory. Do not substitute a standard electrolytic with a high-ESR general-purpose part, or it will overheat.
Failure Modes, Visual Symptoms, and Safe Discharge Practices
Capacitors fail in predictable ways based on their chemistry. Recognizing these visual symptoms on the bench saves hours of troubleshooting with a multimeter.
| Failure Mode | Primary Cause | Visual / Measured Symptoms |
|---|---|---|
| Dielectric Breakdown (Short) | Overvoltage spike exceeding rated WVDC. | Scorched epoxy coating, cracked ceramic body, or blown vent on electrolytics. Measures $< 1\,\Omega$ on a multimeter. |
| Electrolyte Drying (Open/Low C) | Prolonged heat exposure causing seal evaporation. | No external signs, or slight shrinkage of the sleeve. Measured capacitance is 30-50% below rating; ESR spikes above $5\,\Omega$. |
| Venting / Explosion | Reverse polarity or extreme overvoltage. | Bulging top dome, ruptured cross-vent, or crusty brown/black electrolyte residue leaked onto the PCB. |
| Dielectric Absorption | Molecular dipole alignment lag in Class II ceramics/electrolytics. | No visual symptom. Capacitor "recharges" itself to a few volts after being fully discharged and left open-circuit. |
Never discharge a capacitor rated above 50V by shorting its terminals with a screwdriver or pliers. The instantaneous current ($I = V/R$, where $R$ is near zero) can weld the tool to the terminals, vaporize the capacitor's internal bond wires, and shower you with shrapnel.
The Fix: Always use a properly sized bleeder resistor. For a 400V, $1000\mu\text{F}$ power supply capacitor, use a $10\text{k}\Omega$, 5W wirewound resistor attached to an insulated probe. This limits peak discharge current to 40mA and safely bleeds the cap to a safe voltage ($< 5\text{V}$) in roughly $5\tau$ ($5 \times 10\text{s} = 50\text{ seconds}$). Verify it is dead with a CAT III multimeter before touching the board.
Real-World Troubleshooting: When the RC Curve is Wrong
If your oscilloscope shows an RC charging curve that deviates from the theoretical exponential math, you are likely fighting parasitic effects inherent to the physical component.
Leakage Current Altering the Asymptote: In high-resistance timing circuits (e.g., $R > 1\text{M}\Omega$), the capacitor's internal leakage resistance acts as a parallel resistor. An aluminum electrolytic might have a leakage current of $0.01\text{CV}$ or $3\mu\text{A}$ (whichever is greater). This leakage creates a voltage divider with your timing resistor, meaning the capacitor will never actually reach the full source voltage, stalling out at an asymptote lower than expected. Fix: Switch to a Film or Tantalum capacitor with nanoamp-level leakage.
Dielectric Absorption (Soakage): If you discharge a capacitor to 0V, remove the short, and watch the voltage slowly creep back up to 2V or 5V, you are witnessing dielectric absorption. The dielectric material acts like a sponge, slowly releasing trapped charges. This is a massive problem in sample-and-hold circuits or precision integrators, causing "memory" errors. Fix: Avoid electrolytics and high-K ceramics; use Polystyrene or Polypropylene film capacitors, which exhibit negligible soakage.
For deeper analysis on component parasitics and RC network design, refer to the application guides from All About Circuits and the foundational RC theory documentation at Electronics Tutorials. Always verify your final component selection against the manufacturer's datasheet, specifically checking the DC bias derating curves for Class II ceramics, as a "10µF" X5R part may only provide 2µF of actual capacitance at its rated voltage.






