RC Circuit Simulator

A circuit that takes time to respond. Charge a capacitor through a resistor and its voltage climbs the exponential curve VC = ε(1 − e−t/τ); flip the switch to discharge and it falls back the same way, ε·e−t/τ. The pace is set entirely by the time constant τ = R·C — after one τ the capacitor has covered 63% of its change, and after about 5τ it is effectively done. Set the EMF, resistance and capacitance, throw the switch, and watch the plates fill, the current dots slow, and the curve sweep — live on your device.

You are in the Physics lab.

Flip the switch to charge or discharge. The dashed guide marks 63% (or 37%) at t = τ; 5τ ≈ 99%.
Time constant τ = RC
Capacitor voltage V_C
Current I
Charge Q
% charged
Elapsed (t / τ)
One number sets the pace: the time constant τ = R·C. A capacitor charging through a resistor doesn't jump to the supply voltage — it eases up the curve ε(1 − e−t/τ), reaching 63% of ε after one τ and near-full (≈99%) after about 5τ. The current does the opposite, starting at ε/R and decaying to zero, which is why the flow dots slow as the plates fill. Bigger R or C both make τ larger and the whole process slower. Same exponential shape whether you charge or discharge — τ is the only knob that changes how fast it happens.

Reading the simulation

What each moving part of the picture is telling you.

1

The plates and the flow dots

On the left is the real circuit: battery, switch, resistor and capacitor in a loop. The shading between the capacitor plates tracks VC — it darkens as the capacitor fills and fades as it empties. The blue dots are the current: they race around the loop at the instant of switching and slow down as the current decays toward zero, because I = (ε/R)e−t/τ. When the switch reads Discharge the battery greys out — it is no longer in the circuit.

2

The curve and its markers

The right panel plots the capacitor voltage VC (blue) and the current I (amber) against time measured in units of τ. The dashed guide marks the 63% point (charging) or 37% point (discharging) reached at exactly t = τ, and the green line at marks the ≈99% point where the capacitor is effectively fully charged or discharged. The bright dot sweeps along the voltage curve at the current instant.

3

τ = RC sets everything else

Every live readout follows from τ = R·C. Drag R or C up and τ grows, so the curve stretches out and the plates fill more slowly; drag them down and it all happens in a flash. The EMF ε sets the height the voltage climbs to and the charge Q = C·VC stored at the top. Try the presets — Fast τ, Slow τ, Big capacitor and Discharge from full — to feel how each knob changes the pace.

How It Works

An exponential approach to a limit, governed by a single time constant.

1

Charging the capacitor

Throw the switch to Charge and current floods in, but as charge piles onto the capacitor its voltage rises to oppose the supply, so the current tapers off. The voltage grows along VC = ε(1 − e−t/τ) — steep at first, then flattening toward ε — while the current falls as I = (ε/R)e−t/τ. The stored charge is Q = C·VC, climbing the same curve as the voltage.

2

Discharging it again

Flip to Discharge and the battery drops out of the loop. The capacitor now drives the current, so its voltage falls along VC = ε·e−t/τ — fast then slow — and the current decays with the same magnitude, (ε/R)e−t/τ, just flowing the other way. After one τ the voltage has dropped to 37% of where it started.

3

Why it is exponential

The rate the voltage changes is proportional to how far it still has to go: the charging current is set by the remaining gap (ε − VC)/R, the defining property of exponential approach to a limit. Solving that gives the e−t/τ form with τ = R·C. That is why the curve only ever approaches its target — 63% of the way there after one τ, and about 99% after five.

What is the time constant of an RC circuit?
The time constant τ of an RC circuit is τ = R·C, in seconds. After one time constant the capacitor voltage has reached about 63% of the supply when charging, or fallen to about 37% when discharging, and after about 5τ it is effectively fully charged or discharged. A bigger resistor or capacitor makes τ larger and the circuit slower — for example, R = 1 kΩ with C = 1 mF gives τ = 1 s.
How does a capacitor charge and discharge?
Charging through a resistor, the voltage rises along VC = ε(1 − e−t/τ) — fast then levelling off toward ε; discharging, it falls along ε·e−t/τ. The current is the mirror: largest at the instant of switching, I = (ε/R)e−t/τ, decaying to zero. Here the plates fill and empty, the flow dots slow as the current decays, and a dot sweeps the curve, marking the 63%/37% point at t = τ.
How much charge does the capacitor store?
The charge is Q = C·VC, so it climbs the same exponential as the voltage: Q = C·ε(1 − e−t/τ) while charging, up to a maximum of C·ε when full. A larger capacitance stores more charge for the same voltage but also lengthens τ, so it fills more slowly. The simulator shows Q live, and the Big capacitor preset makes the extra stored charge easy to see.
Why is the charge and discharge exponential?
Because the rate of change is proportional to how far the quantity still has to go: the charging current is proportional to the remaining voltage gap (ε − VC)/R, the defining property of exponential approach to a limit. Solving that gives the e−t/τ form with τ = R·C — and it is why the curve only ever approaches its target, never quite reaching it, getting about 99% of the way there after five time constants.

Teaching capacitors, inductors or time constants? You can embed this simulator on your own site free — one line of code, no sign-up.