Tools / RC charge and discharge time
How to work out RC charge and discharge time to a level
The time constant gives 63 %. Real designs need another level, such as a logic threshold. The log formula finds it.
t = −RC × ln(1 − V ÷ Vs) charging; t = −RC × ln(V ÷ Vs) discharging
Result
- Charge time
- 91.63 ms
- Discharge time
- 51.08 ms
- Time constant
- 100 ms
- Level
- 60 %
Step by step
The working with your numbers
- Find τ
τ = R × C = 10,000 × 10⁻⁵ = 100 ms - Level as a fraction of the supply
3 ÷ 5 = 60 % - Charging from 0 V up to the level
t = −τ × ln(1 − 0.6) = 0.9163 × 100 ms = 91.6 msFrom V(t) = Vs × (1 − e^(−t/τ)) solved for t. - Discharging from the supply down to the level
t = −τ × ln(0.6) = 0.5108 × 100 ms = 51.1 msFrom V(t) = Vs × e^(−t/τ) solved for t.
See it
Charging to your level
Does the answer make sense?
- OK: Sanity check: at 63.2 % the charge time equals τ = 100 ms. Your level is below that, so the time is shorter than τ.
- OK: Charging up and discharging down to the same level take different times unless the level is 50 %. Here they are 91.6 ms and 51.1 ms.
Pick a real part
- With a ±20 % capacitor and 5 % resistor the time can be about ±26 % off. For a reliable delay use a film or C0G capacitor, or let a microcontroller count it.
- Nearest standard parts for 10 kΩ and 10 µF: 10 kΩ and 10 µF. A reset threshold of 3 V on a 5 V supply also moves with the chip's own tolerance.
Common mistakes
- Using 0.63τ for every level. That is only the 63 % point.
- Forgetting that the capacitor never quite reaches the supply, so 100 % has no finite time.
- Ignoring the input threshold's spread. A logic input switches somewhere between 30 % and 70 % of the supply, not at one exact value.
Learn it, try it, build it
Calculated, not measured. Check the exact part datasheet and your real circuit before powering anything.
Common questions
How long does a capacitor take to charge to a given voltage?
t = −R × C × ln(1 − V ÷ Vs). To reach 3 V of a 5 V supply through 10 kΩ and 10 µF: −0.1 × ln(0.4) ≈ 92 ms.
How do you work out the discharge time to a level?
t = −R × C × ln(V ÷ Vs), where Vs is the starting voltage. Dropping from 5 V to 3 V through the same 10 kΩ and 10 µF takes −0.1 × ln(0.6) ≈ 51 ms.
