Lessons · circuits

Energy in a capacitor: the area under the voltage–charge line

Regime 2 — calculus does what algebra cannot. The integrand isn't constant, so no single algebra product gives the answer; the accumulated quantity is the area under the curve — and SymPy proves that area is exactly the closed-form result.

Regime 2 · calculus does more Math machine-derived & checked by SymPy 2 modeling assumptions (author-asserted)

A C=500 μC = 500\ \muF capacitor is charged until it holds Q=0.1Q = 0.1 C, reaching V=200V = 200 V. How much energy is stored — and why is it 12CV2\tfrac12 CV^2 and not CV2CV^2? As charge piles on, the voltage climbs as V=q/CV = q/C; the energy is the area under that rising line. Drag the cursor and watch the stored energy grow as the triangle under V(q)V(q).

Energy stored U=12CV2=Q2/2CU = \tfrac12 C V^2 = Q^2/2C (the shaded area)
10 J
Final voltage V=Q/CV = Q/C
200 V
If the voltage were constant: W=VQW = VQ (the rectangle — twice the energy)
20 J
Charge delivered Q=CVQ = C V
0.1 C
Energy is the area under the voltage–charge line
U=0QVdqU = \int_0^Q V\,dq

Pushing a charge dqdq across the capacitor's voltage VV costs energy VdqV\,dq. The total stored energy is the integral of voltage over charge — the area under the VVqq graph. Because V=q/CV = q/C rises from zero, that area is a triangle, not a rectangle.

check dUdq=V\tfrac{dU}{dq} = V; check U=0qVdqU = \int_0^q V\,dq'; recover 12CV2\tfrac12 C V^2; the constant-voltage case is the rectangle VQVQ (twice the energy)

  • The energy's slope is the voltage: U(q)=V(q)U'(q) = V(q) — the area's rate of growth is the curve's height. [structural]
  • The stored energy is exactly the area: U(q)=0qVdqU(q) = \int_0^q V\,dq'. [structural]
  • The memorized 12CV2\tfrac12 CV^2 is the area at full charge: 12CV2=U(Q)\tfrac12 C V^2 = U(Q) with V=Q/CV = Q/C. [structural]
  • A battery holding the voltage constant would do W=VQW = VQ — a rectangle, twice the stored energy (the quadrature). [structural]

Dimensional homogeneity: checked by SymPy (holds).

Common misconception: “Charging a capacitor to voltage VV with a battery of EMF VV stores all the energy the battery delivers.

The battery delivers W=VQW = VQ (it moves charge QQ across a fixed voltage VV — a rectangle). But the capacitor's voltage rises from zero as it fills, so it stores only the triangle under the VVqq line, 12VQ=12CV2\tfrac12 VQ = \tfrac12 CV^2. Exactly half the delivered energy is lost as heat in the charging resistance — and that fraction is independent of the resistance. The factor of 12\tfrac12 is the area of a triangle, not a fudge.

Modeling assumptions — author-asserted, disclosed not discharged
  • Ideal capacitor: fixed capacitance CC, no leakage, charge spread uniformly so V=q/CV = q/C holds throughout.
  • The 'where did half the energy go' step assumes the charge is delivered through some resistance (any real wire); the dissipated half does not depend on how small that resistance is.

The V–q graph, fully annotated

A static rendering (Matplotlib): the shaded area under V is the accumulated integral U, and the slope of U is V. The interactive version with a draggable cursor is in the Graph tab above.

2026-06-26T16:54:23.307631 image/svg+xml Matplotlib v3.11.0, https://matplotlib.org/