Skip to content
Omnikalc

RC circuit charging and discharging calculator: time constant, voltage at a given time and time to a target voltage

Enter the resistance, the capacitance, the supply voltage, a time and a target voltage to get the time constant, the capacitor voltage and the time to reach the target.

Updated on
Your inputs
kΩ

Value out of range

µF

Value out of range

V

Value out of range

s

Value out of range

V

Value out of range

Results

Time constant τ = R × C

0.470 s

Capacitor voltage while charging at that time
3.274 V
Capacitor voltage while discharging at that time (from the supply voltage)
1.726 V
Time to charge up to the target voltage
0.507 s
Time to charge to 99 % (5 τ)
2.35 s
Energy stored at the supply voltage
587.5 µJ

When a capacitor charges through a resistor, its voltage follows an exponential curve set by the time constant R × C. The RC charging time calculator gives the time constant, the voltage at a given time while charging and discharging, the time to reach a target voltage, the time to charge to 99 % and the energy stored.

How the calculation works

  • Enter the resistance in kilohms, the capacitance in microfarads and the supply voltage.
  • Enter the time after the switch is closed, and a target voltage if you want to know how long it takes to reach it.
  • The time constant is τ = R × C. While charging, the voltage is V(t) = Vs × (1 − e^(−t/τ)). While discharging from the supply voltage, it is V(t) = Vs × e^(−t/τ).
  • The time to reach a voltage Vt is t = −τ × ln(1 − Vt / Vs). The capacitor is charged to 99 % after 5 τ, and it stores ½ C V² of energy.

Example

A 10 kΩ resistor charges a 47 µF capacitor from a 5 V supply. The time constant is 10 × 47 / 1000 = 0.470 s. After 0.5 s, the charging voltage is 5 × (1 − e^(−1.064)) = 3.274 V, while a capacitor discharging from 5 V would be at 1.726 V. To reach 3.3 V, the time is −0.47 × ln(1 − 3.3 / 5) = 0.507 s. The capacitor is 99 % charged after 2.35 s and stores 587.5 µJ.

Why it matters

The calculator helps electronics students, hobbyists and engineers to design delays, debounce circuits, timing and smoothing networks, and to predict the voltage on a capacitor at any time. It saves the use of the exponential formulas and gives the energy stored, which is useful to check the safety of large capacitors.

Good to know

The formulas assume an ideal resistor and capacitor with the supply voltage applied at once and a capacitor that starts empty. The leakage, the equivalent series resistance, the tolerance of the capacitor (often 20 % for electrolytics) and the internal resistance of the supply change the real time. If the target voltage is above the supply voltage, the capacitor never reaches it, and the calculator shows 0.

The RC filter calculator gives the cutoff frequency of the same circuit, the capacitor calculator combines capacitors, the RLC impedance calculator handles the AC case, and the LC resonance calculator gives the frequency of an inductor and a capacitor.

Frequently asked questions

What is the time constant of an RC circuit?

The time constant τ is the product of the resistance and the capacitance. It is the time for the capacitor to charge to about 63.2 % of the supply voltage, or to fall to 36.8 % of its starting voltage when it discharges. A larger resistance or a larger capacitance makes the circuit slower. With R in kilohms and C in microfarads, τ in milliseconds is simply R × C.

How is the voltage computed while charging?

The capacitor voltage grows as Vs × (1 − e^(−t/τ)). The growth is fast at first, since the current is large, and it slows down as the voltage of the capacitor approaches the supply. After one time constant the voltage is 63.2 % of Vs, after two it is 86.5 %, after three 95.0 % and after five 99.3 %.

How long does it take to charge fully?

In theory the capacitor never reaches the supply voltage, since the current gets smaller and smaller. In practice, five time constants give 99.3 % of the final voltage, a value that is accepted as fully charged in most circuits. Ten time constants give 99.995 %. The same numbers apply to the discharge, where the remaining voltage is under 1 % after 5 τ.

Where is this used?

RC networks set the delay of a reset circuit at power-up, the debounce time of a switch, the timing of a flash, the smoothing of a power supply and the time of a camera shutter. They are also the base of RC filters and of the 555 timer. The time to reach a voltage tells how long a delay circuit takes to trigger a threshold.

Was this calculator helpful?

Thanks for your feedback!

Results are estimates provided for information purposes. They do not replace professional advice.