Circuit Theory

Solving Circuits With Capacitors and Resistors

How to solve RC circuits with a capacitor and resistor: the time constant RC, charging and discharging equations, and a worked example you can follow.

On this page
  1. What an RC circuit is
  2. The time constant
  3. Worked example: charging
  4. Worked example: discharging
  5. Step-by-step method
  6. Energy stored
  7. Common mistakes
  8. Where to go next

What an RC circuit is

An RC circuit has a resistor and a capacitor, usually connected to a DC source through a switch. A capacitor stores charge: Q = C × V, where C is the capacitance in farads (F). Practical values are often in microfarads (µF, 10⁻⁶ F). The capacitor’s voltage cannot change instantly, so the circuit’s voltages and currents change gradually after a switch closes or opens.

The time constant

The speed of that change is set by the time constant:

τ = R × C (in seconds, when R is in ohms and C is in farads)

For a capacitor charged from zero by a source of voltage V:

  • Capacitor voltage: V_C(t) = V × (1 − e^(−t/τ))
  • Charging current: I(t) = (V / R) × e^(−t/τ)

For a capacitor discharging from an initial voltage V0:

  • Capacitor voltage: V_C(t) = V0 × e^(−t/τ)

After one time constant, a charging capacitor reaches about 63% of its final voltage. After about five time constants, it is at about 99% (more precisely 99.3%).

Worked example: charging

Take R = 10 kΩ, C = 100 µF, and a 9 V source. The capacitor starts uncharged, and the switch closes at t = 0.

  • Time constant: τ = 10,000 Ω × 100 × 10⁻⁶ F = 1 s
  • Capacitor voltage: V_C(t) = 9 × (1 − e^(−t))
  • Initial current: I(0) = 9 V / 10 kΩ = 0.9 mA
Time V_C (approx.)
0 s 0 V
1 s (1τ) 5.69 V
2 s 7.78 V
5 s (5τ) 8.94 V

At t = 0 the uncharged capacitor acts like a short circuit, so all of the 9 V appears across the resistor.

Worked example: discharging

Start with the same capacitor charged to 9 V. Remove the source and connect R across the capacitor. Then V_C(t) = 9 × e^(−t). After 1 s the voltage is about 3.31 V, and after 5 s it is about 0.06 V.

Step-by-step method

  1. Find the initial state at t = 0+. The capacitor voltage cannot jump, so use the value just before the switch changed. An uncharged capacitor starts at 0 V.
  2. Find the final state as t → ∞. In steady DC, a capacitor blocks current and acts as an open circuit. Solve the remaining resistive network for the final capacitor voltage.
  3. Find τ. Reduce the network seen by the capacitor to one equivalent resistance R_eq (with sources turned off). Then τ = R_eq × C. For capacitors in series or parallel, first combine them into one C_eq.
  4. Write the solution: V_C(t) = V_final + (V_initial − V_final) × e^(−t/τ).
  5. Find other quantities with Ohm’s law and Kirchhoff’s laws, using V_C(t) and the currents it implies.

Capacitors combine like this: in parallel, C_eq = C1 + C2. In series, 1 / C_eq = 1 / C1 + 1 / C2.

Energy stored

A charged capacitor stores energy E = ½ × C × V². At 9 V, the 100 µF capacitor stores ½ × 0.0001 F × 81 V² ≈ 0.00405 J, or about 4.05 mJ.

Common mistakes

  • Mixing units. Convert kΩ to Ω and µF to F before calculating τ. Working in kΩ and µF gives τ in milliseconds directly: 10 × 100 = 1,000 ms = 1 s.
  • Assuming the capacitor voltage changes instantly. It does not, although the current can.
  • Forgetting the open-circuit behaviour of the capacitor at steady state.
  • Using the source voltage for the initial capacitor voltage when the switch has not yet closed.

Where to go next

The complete guide to circuit theory

Circuit Analysis Basics: Voltage, Current and Sources
Read the guide

Keep exploring

Guides from other topics

All topics →