Compute capacitor voltage at any instant during charging or discharging. Visualize the exponential transient curve, determine the time constant τ = R·C, and explore step response. Ideal for electronics design, lab experiments, and circuit analysis education.
The RC circuit is a fundamental building block in electronics. When a voltage step is applied, the capacitor voltage changes exponentially from its initial value V₀ to the final value V_f. The instantaneous voltage is given by:
VC(t) = Vf + (V0 – Vf)·e –t/τ
where τ = R·C (time constant). After one time constant, the voltage changes by ≈63.2% of the remaining difference.
This exponential behavior governs timing circuits, filters, and many real‑world applications. Our calculator solves the differential equation dVC/dt = (Vf – VC)/(RC) exactly and provides instant visual feedback.
Starting from Kirchhoff’s voltage law, a series RC circuit excited by a step voltage Vf yields: VR + VC = Vf. Since VR = i·R = R·C·(dVC/dt), we obtain the first‑order linear ODE: RC·dVC/dt + VC = Vf. Solving with initial condition VC(0)=V₀ gives the exponential expression above. The time constant τ = RC determines how fast the capacitor charges or discharges. After 1τ, the voltage moves 63.2% toward Vf; after 5τ, it reaches >99% of Vf – the standard “settling time”.
Our calculator uses this exact analytic solution, avoiding numerical integration errors. It also computes the instantaneous slope and can be used to verify the 2τ, 3τ values (86.5%, 95.0% respectively). The interactive graph displays up to 6τ or the user‑specified time, whichever is larger, providing a complete view.
The following table illustrates common RC circuit configurations and computed values using this tool. All results are validated against theoretical expectations.
| Configuration | R (Ω) | C (F) | τ (s) | V₀ → V_f | t (s) | VC(t) (V) |
|---|---|---|---|---|---|---|
| Standard charging | 1k | 1000µF (0.001) | 1.000 | 0 → 5 | 1.0 | 3.161 |
| Fast charging | 100 | 100µF (1e-4) | 0.010 | 0 → 3.3 | 0.01 | 2.086 |
| Discharging | 2k | 470µF (4.7e-4) | 0.940 | 5 → 0 | 0.94 | 1.839 |
| RC filter | 10k | 0.1µF (1e-7) | 0.001 | 5 → 0 | 0.001 | 1.839 |
| Partial charge (corrected) | 5k | 200µF (2e-4) | 1.000 | 2 → 10 | 0.5 | 5.148 |
Mechanical switches often produce multiple voltage bounces. An RC circuit with τ ≈ 10–50 ms can smooth the signal. Suppose R = 10 kΩ, C = 4.7 µF ⇒ τ = 47 ms. A 5V logic signal charging from 0V to 5V reaches the logic threshold (≈2.5V) at t = τ·ln(2) ≈ 32.6 ms, effectively filtering glitches. Our tool lets you pick R/C values and instantly see the voltage curve, ensuring proper threshold timing before feeding into a Schmitt trigger.
τ = R·C has units of seconds and characterizes the system’s inertia. A small τ (e.g., 1 µs) yields a very fast transient, while a large τ (e.g., 10 s) indicates a slow voltage change. The exponential factor e-t/τ decays to 0.368 after 1τ, to 0.135 after 2τ, and to 0.018 after 4τ. Engineers often design circuits using the “five‑time‑constant” rule: after 5τ the voltage reaches 99.3% of the final value, considered steady state. This calculator graphically marks multiples of τ to reinforce the concept.