# How do I calculate how fast a capacitor will discharge?

Say I have a 1F capacitor that is charged up to 5V. Then say I connect the cap to a circuit that draws 10 mA of current when operating between 3 and 5 V. What equation would I use to calculate the voltage across the capacitor, with respect to time, as it is discharging and powering the circuit?

charge on a cap is a linear product of capacitance and voltage, Q=CV. If you plan to drop from 5V to 3V, the charge you remove is 5V*1F - 3V*1F = 2V*1F = 2 Coulombs of charge. One Amp is one Coulomb per second, so 2C can provide 0.01A for 2C / (0.01 C/sec) or 200 seconds. If you actually withdraw charge from the cap at a constant current, the voltage on the cap will decrease from 5V to 3V linearly with time, given by Vcap(t) = 5 - 2*(t/200).

Of course, this assumes you have a load that draws a constant 10mA even while the voltage supplied to it changes. Common simple loads tend to have relatively constant impedance, which means that the current they draw will decrease as the cap voltage decreases, leading to the usual non-linear, decaying exponential voltage on the cap. That equation has the form of V(t) = V0 * exp(-t/RC).

• "Common simple loads tend to have relatively constant impedance" -- these days switching power converters are common, and they tend to draw constant power, not constant current (meaning the current goes up w/ increasing voltage) Commented Oct 7, 2010 at 12:51
• with constant power, wouldn't current go up with decreasing voltage? Commented Oct 7, 2010 at 22:00

The general equation for the voltage across the capacitor is

$V = V_0+\dfrac{1}{C} \int {i dt}$

In the special case where $I$ is constant this translates to

$V = V_0 + \dfrac{I \times t}{C}$

We want to find $t$, so rearranging gives us

$t = \dfrac{C (V - V_0)}{I} = \dfrac{1F (3V - 5V)}{-10mA} = 200s$ = 3 minutes and 20 seconds.

The more general solution is where $I$ is a function of time. I'll assume that the 10mA is the initial current, at $V_0$ = 5V. Then the discharge resistor $R = \dfrac{5V}{10mA} = 500\Omega$. The time constant $RC$ is then 500s. Then

$V = V_0 \times e^{\left(\dfrac{-t}{RC}\right)}$

or

$t = -RC \times ln{\left(\dfrac{V}{V_0}\right)} = -500s \times ln{\left(\dfrac{3V}{5V}\right)} = 255s$ = 4 minutes and 15 seconds.

This makes sense. Following an exponential discharge will get us at 3V later than with the linear discharge.

• Your time calculation doesn't appear to take ESR into account. Where would that fit in? Commented Aug 22, 2018 at 1:39

$\Delta U = \dfrac{I \times T}{C}$ for DC current only! (I - current, T - time, C - capacitance).

in general:

$u(t) = \dfrac{1}{C} \times \int{i dt}$

• So is that the total time? Commented Oct 7, 2010 at 12:00
• wouldn't that be the time to dissipate 63 percent of the voltage? Commented Oct 7, 2010 at 12:01
• @Jordan; T - yes that is total time; the 63% is the value change in one RC constant. In this case you are discharging through current not resistance. Commented Oct 7, 2010 at 12:08
• He is asking about 5v down to 3v. Not asking for the time constant. Commented Oct 7, 2010 at 15:02
• @Kellenjb, that is why I gave the equations on how the capacitor is discharged using constant current, the RC mention is to explain why he may think that T is 63% Commented Oct 7, 2010 at 20:22