Curvo Studio

Part 2 · Chapter 10

RC time constant: capacitor charging and discharging

The time constant of a resistor and capacitor is τ = R × C. When a capacitor charges through a resistor from a fixed supply, it reaches 63.2% of the supply voltage after one τ and is effectively full (99.3%) after 5τ. With R = 10 kΩ and C = 100 µF, τ = 1 s.

What the time constant means

A capacitor cannot change its voltage instantly, so when a supply is connected through a resistor the voltage climbs gradually. The resistor limits the charging current, and the current falls as the capacitor fills, so the climb slows down. The result is an exponential curve.

The time constant τ=R×C\tau = R \times C is the single number that sets its speed, with RR in ohms and CC in farads giving seconds. A larger resistance or a larger capacitance makes the capacitor slower to charge. The same τ\tau governs discharge.

The charging and discharging formulas

Charging from a supply VsV_s through RR, starting at 0 V:

vC(t)=Vs(1−e−t/τ),i(t)=VsR e−t/τv_C(t) = V_s \left(1 - e^{-t/\tau}\right), \qquad i(t) = \frac{V_s}{R}\, e^{-t/\tau}

Discharging from an initial voltage V0V_0 through RR:

vC(t)=V0 e−t/τv_C(t) = V_0\, e^{-t/\tau}

The time to reach a chosen voltage vv while charging is t=−τln⁡(1−v/Vs)t = -\tau \ln(1 - v/V_s). A handy rule: after t=τln⁡10=2.3τt = \tau \ln 10 = 2.3\tau the capacitor is at 90%, and the 10% to 90% rise time is about 2.2τ2.2\tau.

Why 63% and 5τ

Putting t=τt = \tau into the charging formula gives 1−e−1=0.6321 - e^{-1} = 0.632. Each further time constant closes 63.2% of the remaining gap:

  • After 1τ: 63.2% of the final voltage
  • After 2τ: 86.5%
  • After 3τ: 95.0%
  • After 4τ: 98.2%
  • After 5τ: 99.3%

For practical work the capacitor is treated as fully charged (or discharged) after about 5τ5\tau, which is also the time span the capacitor simulator shows for RC charging.

Worked example: R = 10 kΩ, C = 100 µF, 5 V supply

1. Time constant: τ=10 kΩ×100 μF=1 s\tau = 10\,\mathrm{k\Omega} \times 100\,\mathrm{\mu F} = 1\,\mathrm{s}. 2. Voltage after 1 s: 5×(1−e−1)=3.16 V5 \times (1 - e^{-1}) = 3.16\,\mathrm{V}. 3. Voltage after 3 s: 5×(1−e−3)=4.75 V5 \times (1 - e^{-3}) = 4.75\,\mathrm{V}. 4. Time to reach 3.3 V, for example a logic threshold: t=−1×ln⁡(1−3.3/5)=1.08 st = -1 \times \ln(1 - 3.3/5) = 1.08\,\mathrm{s}. 5. Charging current: it starts at 5/10 kΩ=0.5 mA5 / 10\,\mathrm{k\Omega} = 0.5\,\mathrm{mA} and falls to 0.5×e−1=0.18 mA0.5 \times e^{-1} = 0.18\,\mathrm{mA} after one time constant. 6. As a low-pass filter the same network has a cut-off frequency fc=1/(2πRC)=0.16 Hzf_c = 1/(2\pi R C) = 0.16\,\mathrm{Hz}.

Reaching 90% (4.5 V) takes 2.3 s2.3\,\mathrm{s}, and the capacitor is full after about 5 s.

Where the RC time constant is used

  • Timing and delays: the 555 timer and microcontroller reset circuits set a delay with an RC network.
  • Filters: an RC low-pass filter passes frequencies below fc=1/(2πRC)f_c = 1/(2\pi R C) and attenuates higher ones.
  • Debouncing a switch, smoothing a PWM signal and slowing down a signal edge.
  • Supply decoupling: the capacitor's equivalent series resistance, ESR, adds to RR and changes how fast it can respond.

Its counterpart for coils is the RL time constant, and the same exponential shape appears in many other systems.

Try it in the capacitor simulator

Open the capacitor simulator. Set the Supply voltage, Capacitance, Resistance and ESR, and watch the RC charging curve over 5τ.

  • Double the Resistance and note that the curve takes twice as long to rise, since τ\tau doubles.
  • Compare the voltage at one time constant with 0.632×Vs0.632 \times V_s.
  • Look at how the impedance changes with frequency, which links the time constant to the filter cut-off 1/(2πRC)1/(2\pi R C).

Impedance, ESR and frequency

An ideal capacitor has impedance 1/(2πfC), which falls as frequency rises, so it passes AC and blocks DC. Real parts add equivalent series resistance (ESR) from the leads, foil and dielectric losses, plus a small series inductance. ESR puts a floor under the impedance curve: past a certain frequency, a larger capacitance no longer lowers the impedance. It also turns ripple current into heat, which is why low-ESR types are preferred for supply decoupling.

Sources and further reading

  • C. K. Alexander and M. N. O. Sadiku, "Fundamentals of Electric Circuits", chapter on first-order circuits.
  • J. W. Nilsson and S. A. Riedel, "Electric Circuits", chapter on the natural and step responses of RL and RC circuits.
  • P. Horowitz and W. Hill, "The Art of Electronics", sections on capacitors and RC circuits.

Try it in the simulator

Frequently asked questions

What is the RC time constant formula?
τ=R×C\tau = R \times C, with RR in ohms and CC in farads, giving τ\tau in seconds. For 10 kΩ and 100 µF it is 1 s.
Why does a capacitor reach 63% after one time constant?
Putting t=τt = \tau into v=Vs(1−e−t/τ)v = V_s(1 - e^{-t/\tau}) gives 1−e−1=0.6321 - e^{-1} = 0.632. Each further time constant closes 63.2% of the remaining gap.
How long does a capacitor take to fully charge?
In theory never, but after 5τ5\tau it is at 99.3% of the supply voltage and is treated as full. With τ\tau = 1 s that is about 5 s.
How do I find the time to reach a given voltage?
Use t=−τln⁡(1−v/Vs)t = -\tau \ln(1 - v/V_s). To reach 3.3 V from a 5 V supply with τ\tau = 1 s you need 1.08 s.
Why does a capacitor block DC but pass AC?
Once fully charged, a capacitor draws no more current from a steady DC source, so it behaves like an open circuit. An alternating voltage keeps charging and discharging it, so current keeps flowing, and its impedance 1/(2πfC) drops as frequency rises. The impedance plot in the simulator shows this.
What happens if you exceed a capacitor's rated voltage?
The dielectric can break down and let current punch through. Ceramic and film capacitors may short, while aluminum electrolytics heat up, vent gas, bulge or burst; reverse polarity is just as harmful. Keep the working voltage well below the rating. The simulator warns when the supply exceeds it.