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 is the single number that sets its speed, with in ohms and in farads giving seconds. A larger resistance or a larger capacitance makes the capacitor slower to charge. The same governs discharge.
The charging and discharging formulas
Charging from a supply through , starting at 0 V:
Discharging from an initial voltage through :
The time to reach a chosen voltage while charging is . A handy rule: after the capacitor is at 90%, and the 10% to 90% rise time is about .
Why 63% and 5τ
Putting into the charging formula gives . 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 , 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: . 2. Voltage after 1 s: . 3. Voltage after 3 s: . 4. Time to reach 3.3 V, for example a logic threshold: . 5. Charging current: it starts at and falls to after one time constant. 6. As a low-pass filter the same network has a cut-off frequency .
Reaching 90% (4.5 V) takes , 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 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 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 doubles.
- Compare the voltage at one time constant with .
- Look at how the impedance changes with frequency, which links the time constant to the filter cut-off .
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?
- , with in ohms and in farads, giving in seconds. For 10 kΩ and 100 µF it is 1 s.
- Why does a capacitor reach 63% after one time constant?
- Putting into gives . 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 it is at 99.3% of the supply voltage and is treated as full. With = 1 s that is about 5 s.
- How do I find the time to reach a given voltage?
- Use . To reach 3.3 V from a 5 V supply with = 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.