RC Circuit Simulation
This simulation plots the exponential charging and discharging curves of a resistor-capacitor (RC) circuit in real time, letting you adjust resistance, capacitance, and supply voltage and see how the time constant τ = RC controls the speed of charge and discharge.
Interactive simulation
The physics behind this simulation
When a capacitor charges through a resistor from a supply voltage V₀, its voltage follows an exponential approach to the supply voltage:
When discharging (supply disconnected, capacitor discharging through the resistor), the voltage instead decays exponentially from its starting value toward zero: V_C(t) = V₀e⁻ᵀ¹ₕᵀ⁾⁾ᵏₕ⁾⁾ₕₕ. In both cases, τ = RC (the time constant) is the time for the voltage to close roughly 63% of the remaining gap to its final value — a single, convenient number capturing how "fast" a given RC circuit responds.
Sources
- Halliday, D., Resnick, R., Walker, J. (2013). Fundamentals of Physics, 10th ed. Wiley, Ch. 27.