Sub topic 11
Where the energy goes while an RC circuit charges
This chapter assumes you know Ohm's law, Kirchhoff's laws, the capacitor relations Q = CV, i = C dv/dt and E = ½CV², and the RC charging curve vC(t) = Vs(1 − e^(−t/RC)). We follow the energy through one complete charging cycle and find a result that surprises many learners: the resistor always dissipates as much energy as the capacitor stores, no matter what R is.
The setup
A source of constant voltage Vs is connected at t = 0 through a resistor R to an uncharged capacitor C. The capacitor voltage and the current are:
- vC(t) = Vs(1 − e^(−t/τ)), with τ = RC
- i(t) = (Vs/R) e^(−t/τ)
Three energy quantities matter:
- Esource: the energy the source delivers.
- Ecap: the energy stored in the capacitor.
- ER: the energy turned into heat in the resistor.
Energy conservation requires Esource = Ecap + ER. We will compute each quantity separately and then check that the books balance.
Energy delivered by the source
The source supplies power p = Vs·i. Integrating over all time gives the total energy:
Esource = ∫ Vs·i dt = Vs ∫ i dt = Vs·Q
The integral of current is the total charge that moved. At the end of charging the capacitor holds Q = CVs, so:
Esource = Vs · CVs = CVs²
The source gives up CVs² joules in total. Notice that this is twice the final stored energy ½CVs². Half of the energy is already unaccounted for.
Energy stored in the capacitor
The capacitor stores energy as its voltage rises. Its instantaneous power is p = vC·i. Integrating:
Ecap = ∫ vC · C (dvC/dt) dt = C ∫₀^Vs v dv = ½CVs²
This confirms E = ½CV² from an earlier chapter. The stored energy depends only on the final voltage, not on how the capacitor got there.
Energy dissipated in the resistor
The resistor power is p = i²R. Substituting the current:
ER = ∫₀^∞ (Vs/R)² e^(−2t/τ) R dt = (Vs²/R) ∫₀^∞ e^(−2t/τ) dt
The integral of e^(−2t/τ) from 0 to infinity is τ/2, so:
ER = (Vs²/R)(RC/2) = ½CVs²
The resistance cancels. A 1 Ω resistor and a 1 MΩ resistor both dissipate ½CVs². The small resistor does it quickly with a large current. The large resistor does it slowly with a small current. The total is the same.
The energy balance
| Quantity | Expression | Share of source energy |
|---|---|---|
| Delivered by source | CVs² | 100% |
| Stored in capacitor | ½CVs² | 50% |
| Dissipated in resistor | ½CVs² | 50% |
So Esource = Ecap + ER holds exactly, and the charging efficiency is 50%.
Why exactly half
The 50% split is not a coincidence of the exponential. The following argument shows why.
At any instant the source voltage is Vs, the capacitor voltage is vC, and the resistor voltage is Vs − vC. The same current i flows through everything. Energy delivered per unit charge is Vs. Energy stored per unit charge is vC, which is smaller until the end. The difference, Vs − vC, is lost as heat in the resistor for each coulomb that passes.
Charge arrives in small increments dq, and vC rises from 0 to Vs as q rises from 0 to CVs. Because vC = q/C is linear in q, the average of vC over the whole charging process is Vs/2. So the capacitor keeps on average half of the energy per coulomb, and the resistor loses the other half. This argument never uses the time dependence, which is why R drops out.
Verifying the result numerically
The following program integrates power in small time steps and compares the three energies. It uses the same values as the earlier RC example: Vs = 5 V, R = 10 kΩ, C = 100 µF.
import math
Vs = 5.0
R = 10e3
C = 100e-6
tau = R * C
dt = tau / 10000
t_end = 10 * tau # long enough to be fully charged
steps = int(t_end / dt)
e_source = 0.0
e_resistor = 0.0
e_cap = 0.0
for n in range(steps):
t = (n + 0.5) * dt # midpoint of the step
i = (Vs / R) * math.exp(-t / tau)
vc = Vs * (1 - math.exp(-t / tau))
e_source += Vs * i * dt
e_resistor += i * i * R * dt
e_cap += vc * i * dt
print(f"Source delivered : {e_source * 1e3:.4f} mJ")
print(f"Resistor heat : {e_resistor * 1e3:.4f} mJ")
print(f"Capacitor stored : {e_cap * 1e3:.4f} mJ")
print(f"Formula CVs^2 : {C * Vs**2 * 1e3:.4f} mJ")
print(f"Formula 0.5CVs^2 : {0.5 * C * Vs**2 * 1e3:.4f} mJ")The output shows about 2.5 mJ delivered, and about 1.25 mJ each for the resistor and the capacitor. The small difference from the exact values comes from stopping at 10τ, where the capacitor is within 0.005% of full charge.
Energy at different moments
The split is not 50/50 at every instant. Early in charging, vC is small, so most of the power goes into the resistor. Late in charging, the current is small and the resistor loses little, so the capacitor gets most of the incremental energy.
At t = τ the capacitor voltage is 63.2% of Vs. The stored energy is ½C(0.632Vs)² = 0.2 × CVs², which is about 40% of its final value of 0.5 × CVs². The remaining energy delivered so far has largely gone to heat.
| Time | vC / Vs | Stored energy as share of final ½CVs² |
|---|---|---|
| τ | 0.632 | 39.9% |
| 2τ | 0.865 | 74.8% |
| 3τ | 0.950 | 90.0% |
| 5τ | 0.993 | 98.7% |
The stored fraction is (1 − e^(−t/τ))², which you can check against the table.
Discharging
When the charged capacitor is later discharged through a resistor, no source is involved. The stored ½CVs² flows into the resistor and becomes heat. A full charge-discharge cycle through resistors therefore turns CVs² of source energy into heat. Each time you charge and discharge a capacitor this way, the loss is the same CVs², regardless of resistance.
Edge cases and consequences
- Ideal switch, zero resistance. If R approaches zero, the current spike becomes enormous and brief, but the heat is still ½CVs². In a real circuit that energy goes into wire resistance, switch resistance, and radiation from the current spike. An ideal model with exactly zero resistance has no consistent answer, which is the well-known two-capacitor paradox.
- Charging two capacitors. Connecting a charged capacitor to an uncharged one of equal size through any resistance also loses half of the stored energy as heat.
- Switching circuits in digital chips. Each time a logic gate charges a load capacitance CL to the supply voltage VDD, the supply gives up CL·VDD² and half of it is lost in the charging path. With a switching frequency f, the dynamic power is roughly P = CL·VDD²·f for charge-discharge cycles. This is why lowering the supply voltage is so effective: power falls with the square.
- Charging with a ramp. If the source voltage rises slowly, the current is small and the loss falls. In the limit of a very slow ramp over time T ≫ RC, the heat is about (RC/T)·CVs². This is the idea behind adiabatic or stepwise charging, which can recover most of the energy.
Common mistakes
- Assuming the resistor dissipates less energy when R is small. The energy is independent of R.
- Equating the source energy with the stored energy. The source delivers CVs², not ½CVs².
- Computing the stored energy as Q·V. That gives CVs², double the correct value. Energy is ½QV because the voltage grows from zero as charge builds up.
- Stopping the integral at τ and expecting the books to balance. The energy sums are exact only over complete charging.
Exercise
A 220 µF capacitor is charged from 0 V to 12 V through a 4.7 kΩ resistor from an ideal 12 V source. Find (a) the energy the source delivers, (b) the energy stored in the capacitor, and (c) the heat in the resistor. Then state how the answer to (c) changes if the resistor is replaced with 47 Ω.
Show answer
(a) Esource = CVs² = 220e-6 × 144 = 0.03168 J (31.68 mJ). (b) Ecap = ½CVs² = 0.01584 J (15.84 mJ). (c) ER = Esource − Ecap = 0.01584 J (15.84 mJ). With a 47 Ω resistor the heat is still 15.84 mJ, because the resistance cancels in the integral. Only the charging time (τ = RC) and the peak current change.
Exercise
A logic gate drives a load capacitance of 20 pF from a 1.2 V supply and switches at 500 MHz, charging and discharging once per cycle. Estimate the power drawn from the supply by this switching.
Show answer
Each cycle the supply gives up CL·VDD² = 20e-12 × 1.44 = 2.88e-11 J. At 500 MHz, P = 2.88e-11 × 500e6 = 0.0144 W, which is 14.4 mW.