The formula
Charging from empty toward the supply voltage :
Discharging from :
is the resistance in ohms, the capacitance in farads, the time constant in seconds and the voltage across the capacitor after time .
Where it comes from
A capacitor stores charge , and its voltage is . When it charges through a resistor from a supply , the resistor gets whatever voltage the capacitor hasn’t yet taken, so by Ohm’s law the current is:
Current is the rate charge arrives, . As the capacitor fills, the gap shrinks, so the charging slows. The rate is always proportional to how far is left to go:
Anything that shrinks at a rate proportional to its own size decays exponentially. The gap starts at , so , which rearranges to the charging equation. Discharging is the same idea with the gap being the voltage itself.
The product has units of seconds (ohms times farads), and it sets the speed. After one the capacitor is charged. To reach 99%, solve :
Worked example
A 10 kΩ resistor and a 100 µF capacitor on a 5 V supply:
It reaches 99% (4.95 V) after about 4.6 s.
Watch out for
- “Fully charged after 5τ” is a rule of thumb. At the capacitor is at 99.3%. Mathematically it never quite gets to 100%.
- Include every resistance. The source’s internal resistance and any load across the capacitor change the effective . A load in parallel also lowers the final voltage.
- Electrolytic tolerance. Electrolytic capacitors are often ±20%, so timing from an RC circuit is only as good as that.
Sources
Last checked