Skip to content
ohmplay. Electronics
laboratory

Home / Tools / RC charging and discharging

Experiment 004 / Essential electronics

RC charging and discharging

Explore how capacitor voltage changes over time and what controls its rate of change.

Workbench / Ideal model ● In your browser
01 / Adjust the inputs

Sliders with a wide range use a logarithmic scale. When zero is allowed, it has its own position. Type a number to set an exact value.

Try an example
02 / Voltage over time Solid line: selected stage
× τ

The visual sweep lasts 8 seconds, not real time. Pause it or move the marker with the keyboard.

Time constant τ 1 s
Inspected time 1 s
Voltage Vc 3.161 V
Signed current 183.9 µA
+ − R · 10 kΩ 100 µF Vc · 3.161 V Charging · 5 V supply

During charging, the capacitor starts at 0 V. After one time constant it reaches 63.2% of its final voltage.

Use it in your classroom

Share this exercise with its current values. The link contains only numbers and model options; do not add names or email addresses.

The code includes a text link to the full explanation outside the frame. Animation starts paused. Adjust the iframe height if your platform needs it.

One second does not mean “finished”

With R = 10 kΩ and C = 100 µF, τ = 10000 × 0.0001 = 1 s. If the capacitor starts discharged and is connected to 5 V, it reaches about 3.161 V after 1 s: 63.2% of its final voltage.

After 5 s, the voltage is 4.966 V, about 99.3%. The curve approaches 5 V without reaching it exactly in a finite time. During discharge from 5 V, about 1.839 V remains after 1 s.

One time constant, two trajectories

τ = R × C
Charging: Vc(t) = Vs × (1 − e^(−t/τ)), Vc(0) = 0
Discharging: Vc(t) = Vs × e^(−t/τ), Vc(0) = Vs
Charging: I(t) = (Vs/R) × e^(−t/τ)
Discharging: I(t) = −(Vs/R) × e^(−t/τ)

Positive current is defined as entering the capacitor’s positive plate during charging. During discharge it is negative because it leaves that plate. The source is removed, and R completes a path between the plates.

Doubling R or C doubles τ and the time to reach any given percentage. The graph rescales its time axis to 5τ, so its shape stays the same while time labels change. Use the marker to compare precise values.

What the drawing leaves out

The resistor and capacitor are ideal. Leakage, ESR, tolerance, voltage rating and supply output resistance are not included. Switching between charge and discharge starts a separate experiment with the stated initial conditions; it does not continue the previous experiment’s state.

The animation covers five time constants in eight seconds of screen time. It is a visual aid, not real-time simulation. It starts paused and can be paused at any time.

Common mistakes

  • Using µF as if they were F: 100 µF is 0.0001 F.
  • Assuming the capacitor is fully charged after τ.
  • Comparing curve shapes without checking the time scale.
  • Mistaking negative discharge current for a calculation error.

Try it yourself

If C doubles to 200 µF, how long does it take to reach 63.2%?

τ changes from 1 s to 2 s. Reaching the same percentage takes 2 s; final voltage remains 5 V.

What fraction remains after 3τ of discharging?

e^(−3) ≈ 0.049787, or 4.98%. About 0.249 V remains from 5 V.

Reference: RC circuits, OpenStax. This page’s examples and visualization are original.