Charging & Discharging a Capacitor

Flip the switch in an RC circuit and graph voltage and current changing exponentially with time constant RC. A free physics simulation in your browser (Capacitors, Time constant, DC circuits).

How it works and what to look for

Charge: E = RI + q/C → V = E(1 − e^(−t/RC)), Discharge: V = V₀ e^(−t/RC)

Reset starts charging from zero charge, or discharging from a capacitor charged to the supply voltage. Flipping the switch alone preserves charge and changes the direction of current.

Switch to side a: at first the capacitor has no charge, so its voltage is 0, all of E falls across the resistor and a current E/R flows. As charge builds up, the capacitor's voltage rises and the resistor's falls, so the current gradually shrinks until it stops at V = E.

Switch to side b: the stored charge flows out through the resistor (current opposite to charging), and voltage and current fall at the same rate.

The rate of change is set by the time constant τ = RC: after τ seconds, charging reaches about 63% of the final value and discharging about 37%. Of the work QE done by the battery while charging, half (½QE) is stored in the capacitor and the other half becomes Joule heat in the resistor (regardless of R).

Today's question: How does doubling resistance affect charging speed and final voltage?

  1. Select charging, supply 6 V, resistance 10 kΩ, and capacitance 100 μF. Reset.
  2. Record the time constant and voltage graph. Check the voltage after a long time.
  3. Change only resistance to 20 kΩ, reset, and compare.

Read the explanation and model assumptions

The time constant τ = RC doubles. After one τ the voltage reaches about 63% of its final value. The final voltage is still the 6 V supply in both cases. Resistance changes how quickly it gets there.

τ is not the time at which charging is complete. Convert kΩ and μF carefully, and compare using the time axis on the graph.

Everyday examples

Common misconceptions

Misconception: A capacitor stores current.
In fact: It stores charge (and energy in its electric field). Current does not flow across the gap between the plates.
Misconception: Charging is complete after one time constant RC.
In fact: After RC seconds it is about 63% charged. It passes 99% after about 5RC, and in theory never quite finishes.

Related simulations