A camera flash takes a couple of seconds to charge and then dumps everything it has in about a millisecond. Same capacitor, same energy, two wildly different timescales. What changed was the resistance the charge had to squeeze through on its way in and on its way out.
That is the whole subject. In Kirchhoff's Laws you solved networks where every current was fixed the moment the switch closed and stayed there forever. Put a capacitor in and that stops being true: the circuit has a memory, and the currents drift from one set of values to another over a time you can predict.
The capacitor's one rule
A capacitor stores charge on its plates and, as a result, holds a voltage across itself:
is the capacitance in farads, and a farad is a coulomb per volt. A microfarad, , is the size you will actually meet.
The useful way to read that equation is backwards. Charge is what you can move, and moving charge takes current, and current takes time. So cannot jump. To change the capacitor's voltage by you have to deliver of charge, and if the current is finite that takes a finite time. Every other voltage in the circuit can change instantly when you flip a switch. The capacitor's cannot.
That single fact is worth more than the formulas that follow. Hold onto it.
Why the response is an exponential
Take the simplest loop: a battery of emf , a resistor , a capacitor , and a switch you close at with the capacitor empty. Go around the loop the way you learned:
The current in the loop is charge arriving at the capacitor, so . Substitute:
Rearrange to isolate the rate:
Look at what that says before you solve it. The final charge, once nothing is changing, is . The bracket is how far the capacitor still has to go. So the rate of change is proportional to the remaining gap: far from done, fast; nearly done, slow. A quantity whose rate of approach is proportional to its remaining distance is an exponential approach, always. Nothing else has that property.
Solving it (separate and integrate, ) gives
and differentiating once returns the current:
At the capacitor has no voltage, so the resistor takes the whole emf and the current is the largest it will ever be, . As charge piles up, the capacitor's voltage eats into the emf, less is left for the resistor, and the current dies.
For a capacitor with initial charge discharging through with no battery in the loop, the same algebra with gives
The current decays identically in both cases. Only the charge differs, because charging climbs to something and discharging falls to nothing.
The time constant does the thinking
The product
has units of seconds. Check it: ohms times farads is (volts per amp) times (coulombs per volt), which is coulombs per amp, which is seconds. It is the only timescale in the problem, and it is the number to compute first in any transient question.
Why the product, rather than a ratio? Bigger means less current for the same voltage, so charge arrives more slowly. Bigger means more charge is needed to reach a given voltage. Both stretch the process, so both belong upstairs.
Numbers worth memorising. After one the gap to the final value has fallen to of what it was, so a charging capacitor is 63 percent of the way there. After three, , about 5 percent remains. After five, under 1 percent.
Run the logic backwards to solve for a time. To reach a fraction of the final value while charging, you need , so
To fall to a fraction while discharging, . The half-life of a discharge is .
Five time constants is "finished" for every practical purpose, and , will get you through most of the arithmetic. A decade of decay costs .
Worked example 1. A capacitor is charged and then discharged through a resistor. How long until its voltage is half the starting value?
First the time constant:
Then the half-life:
Notice the starting voltage never entered. Every exponential decay halves in the same time no matter where you start it, which is why the question could leave that number out.
Quick check
A capacitor discharging through a resistor has fallen to half its initial voltage. How much longer until it reaches one quarter?
The two limits answer most questions
Before you reach for , check whether the question only asks about or . It usually does, and those two cases need no calculus at all, just two resistive circuits you already know how to solve.
Immediately after the switch closes, the capacitor's voltage is still whatever it was a moment earlier. If it started empty, that voltage is zero, and a component with zero volts across it is a plain wire. Redraw the circuit with the capacitor replaced by a short and solve.
After a long time, nothing is changing, so , so no current flows in the capacitor's branch. A branch carrying no current is a break. Redraw with the capacitor replaced by an open gap and solve.
Everything in between slides exponentially from the first answer to the second.
The short-circuit replacement is only valid for a capacitor that starts uncharged. A capacitor that already sits at 6 V still sits at 6 V one microsecond after you flip a switch: at you replace it with a 6 V battery, not a wire. Getting this wrong is the single most common error in transient problems.
Worked example 2. A battery feeds node through . A resistor runs from to ground, and an uncharged capacitor also runs from to ground. Find the battery current just after the switch closes, the capacitor voltage long after, and the time constant.
Just after. The capacitor is empty, so node is pinned to ground through a wire. is shorted out and irrelevant. The battery sees only :
Long after. The capacitor is a gap, so the current runs straight through and in series. That is a voltage divider:
and the capacitor, sitting from to ground, holds that same 4.0 V.
The time constant. This is where people slip. The resistance in is not , and it is not . It is the resistance the capacitor sees looking back into the circuit from its own two terminals, with the sources killed: batteries replaced by wires, since an ideal battery holds its terminals at a fixed difference and so offers no resistance.
Kill the 12 V source and the top of is connected straight to ground. Now and both run from node to ground: they are in parallel.
So volts, and you got every piece of it from two resistive sketches plus one parallel combination.
Finding the R the capacitor sees
The recipe generalises, and it is the only technique you need for messy networks.
- Pull the capacitor out, leaving two terminals.
- Kill every source: short the ideal batteries, open the ideal current sources.
- Compute the resistance between those two terminals with series and parallel rules.
- That resistance times is . Put the capacitor back and find the final voltage from the ordinary steady-state circuit.
A worked case from the problem bank. A 12 V battery drives two parallel branches: down to node then to the negative terminal, and down to node then to the negative terminal. A capacitor bridges and .
In the final state the capacitor carries no current, so each branch is just a divider on its own. and , so the capacitor settles at .
For , short the battery. Then and both run from to the same node, giving , and and both run from to that node, giving . Walking from terminal to terminal you pass through both in series:
With , .
Quick check
A capacitor charges through a 6 kilohm resistor from a battery, with a 3 kilohm resistor sitting directly across the capacitor. Compared with the same circuit without that second resistor, the time constant is:
Capacitors in the same loop combine before you do any of this. Two capacitors in series store the same charge and their voltages add, so ; in parallel they share a voltage and their charges add, so . A and a in series give , and with a resistor that is . Note that this is the opposite of the resistor rules, which catches people out constantly.
Energy, heat, and the factor of one half
A charged capacitor stores
A camera flash with at holds .
Now charge that capacitor from a battery through a resistor and count the energy. The battery pushes a total charge around the loop at emf , so it does work . The capacitor ends up with . The missing half went into the resistor:
Exactly half the battery's work is wasted as heat, whatever is. Making the resistor smaller makes the charging faster and the current bigger, and those two effects cancel perfectly. For charged by , that heat is .
If you want the heat over part of the process, integrate the power. With ,
The instantaneous power falls twice as fast as the current, because it goes as the square. Integrating from 0 to a time :
using to cancel the . The same expression with replaced by gives the energy delivered by a discharge in its first seconds.
Worked example 3. A capacitor is charged from zero through a resistor by a battery. How much energy is dissipated in the resistor between and ?
Put in the result above, so the exponent is :
So 86 percent of the waste heat appears in the first time constant. The resistance never appeared, and it could not have: the answer depends only on how far along the process you are, and measures exactly that.
Energy in a capacitor goes as , so the stored energy decays as and halves in , not . The same factor of two applies to dissipated power. Whenever a question asks about energy or power rather than voltage or charge, expect in the exponent.
When two capacitors share charge
Connect a charged capacitor at through a resistor to an uncharged in a single loop. Current flows until the loop has no net driving voltage left.
For the time constant, treat the two capacitors as being in series around that loop (the same current passes through both, delivering the same charge to each) so
For , , : the series combination is , so .
For the energy lost, do not chase the integral. Let be the charge that has moved when the current finally stops. At that moment the loop voltage is zero, so , giving where is that same series combination. The energy dissipated is the drop in stored energy, and grinding through the algebra leaves a clean result:
where is the initial voltage mismatch around the loop. Two capacitors, one at 100 V and one empty, have and , so . A quarter of the original 0.05 J is gone, and the resistance does not appear. Replace the wire with a better conductor and you lose exactly the same energy in a shorter, fiercer pulse.
Worked example 4. An uncharged capacitor charges through a resistor from a battery. At the battery is swapped for a plain wire, so the capacitor now discharges through the same resistor. Find at .
Break it at the switch-over. The time constant is the same in both phases:
Phase one, charging for one full time constant:
Phase two. The capacitor's voltage cannot jump, so 12.64 V is the starting value for the discharge. Reset the clock: one more second elapses, which is again one time constant.
Two exponentials, each handled on its own, stitched together by the one thing that carries across the switch: the capacitor voltage. That is the pattern for every multi-stage transient. Find the voltage at the moment of the change, then start a fresh problem with that as the initial condition and whatever new and final value the new circuit has.
Recognising the technique
Reach for this machinery when you see any of these.
A capacitor plus the words "switch", "at ", "just after", or "a long time". That is a transient question, and the two-limit sketches come first. If the question only asks about one of those two moments, you are done without an exponential.
A number that is a fraction of a final value (90 percent charged, down to a tenth, within 1 percent) means you want or . Settling to 1 percent of final takes time constants.
More than one resistor around a capacitor. Do not guess which one sets . Kill the sources and find the resistance across the capacitor's terminals. If a question gives you a network and asks for a time constant, that is the whole point of the question.
The words energy, heat, or power. Then you are in territory, and often you can skip the integral entirely with before and after.
Two capacitors connected to each other. Conserve charge, find the final common state, and use for the heat. The resistor's value will not matter, and a question that omits it is telling you so.
A capacitor turns an algebra problem into the same algebra problem plus a clock. Solve the circuit at the start, solve it at the end, and fills in the middle. Next you will meet networks where even the steady-state algebra fights back (bridges, ladders, and symmetry tricks) in Tricky Networks.