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.
Related tools
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.