RC circuit time constant and charge/discharge

Enter resistance (ohms) and capacitance (farads). The tool returns the time constant tau, voltage across the capacitor during charging and discharging at a specified time, and the time to reach a target voltage. Assumes ideal components, series RC circuit, and step input. This is not an AC analysis or frequency response calculator.

RC circuit

Formulas

τ = R x C

V_charge(t) = V_supply x (1 - e^(-t/τ))

V_discharge(t) = V_supply x e^(-t/τ)

t_target = -τ x ln(1 - V_target / V_supply)

Where τ = time constant, s; R = resistance, Ω; C = capacitance, F; V_supply = supply voltage, V; t = time, s; V_target = target voltage, V.

Checked examples

R=1kΩ, C=100µF -> τ=0.1 s. At t=1 ms: V_charge=5(1-e^(-0.01))=0.050 V, V_discharge=5e^(-0.01)=4.950 V. Time to 3.16 V (63.2%): t=-0.1*ln(1-3.16/5)=0.100 s.

R=10kΩ, C=10µF -> τ=0.1 s. At t=0.05 s (0.5τ): V_charge=12(1-e^-0.5)=4.722 V, V_discharge=12e^-0.5=7.278 V. Time to 7.59 V (63.2%): t=-0.1*ln(1-7.59/12)=0.100 s.

R=4.7kΩ, C=22µF -> τ=0.1034 s. At t=0.1 ms: V_charge≈0.003 V, V_discharge≈3.297 V. Time to 2.08 V (63.2%): t=-0.1034*ln(1-2.08/3.3)=0.1029 s.

Limits

Based on standard RC circuit transient analysis (OpenStax University Physics, Section 10.5). Assumes ideal series RC circuit with step voltage input at t=0. Time constant τ = RC is the time to reach 63.2% of final voltage (charging) or fall to 36.8% (discharging). After 5τ, the capacitor is considered fully charged (>99.3%) or discharged (<0.7%). Time to target formula assumes charging from 0V; returns 0 if target >= supply voltage. Not for: AC impedance or frequency response; RLC or higher-order circuits; non-ideal capacitors (ESR, leakage); PWM or non-step inputs.

OpenStax University Physics - Section 10.5 RC Circuits and All About Circuits - RC Time Constant Calculator.