The capacitor charging equation

Calculate · 7 min

The 63% rule gives the voltage at whole numbers of τ. For any other time, use the curve's formula:

v(t)=Vf+(Vi−Vf)e−t/τ
SymbolMeaning
v(t)the capacitor's voltage at time t
Viwhere it starts (its initial voltage)
Vfwhere it's heading (its final voltage)
τthe time constant, RC
ethe number 2.718…, the ex key on a calculator

Read it as: the gap between where it starts and where it's heading, (Vi−Vf), shrinks by a factor e−t/τ. At t=τ that factor is 0.37: the 37% left.

Charging from empty, Vi=0, and it becomes v=Vf(1−e−t/τ). Discharging to empty, Vf=0: v=Vie−t/τ.

Worked example. A 10 kΩ resistor charges a 47 µF capacitor from 9 V, starting empty. What is its voltage after 0.3 s?

τ=10000×47×10−6=0.47 sv=9×(1−e−0.3/0.47)=9×(1−0.528)=4.25 V

A little under one τ, so a little under 63% of 9 V: the answer passes the sense check.

A 22 kΩ resistor charges a 22 µF capacitor from a 5 V supply, starting empty. What is the capacitor's voltage 0.5 s after it starts?

Answer in V.

Turned round, the formula gives the time to reach a voltage. Starting empty and charging towards Vf:

t=−τln⁡(1−vVf)

(ln⁡ is the natural log, the key that undoes ex.)

A circuit switches on when its capacitor reaches 4.5 V. The capacitor charges from 9 V through 47 kΩ, and it is 47 µF. How long after switch-on does it switch?

Answer in s.

The formula works from any start. A capacitor sits at 3 V when it's switched to charge towards 9 V through a resistor, with τ = 0.47 s. What is its voltage 0.5 s later?

Answer in V.

One formula covers every charge and discharge:

v(t)=Vf+(Vi−Vf)e−t/τ

and turned round, the time to reach a voltage v:

t=τln⁡Vi−Vfv−Vf

It holds for anything that settles by covering the same share of the remaining gap in each equal stretch of time: a cooling cup of tea, a draining tank, and, in a few lessons, the current in a coil.