RC Capacitor Charge/Discharge Simulator
Back
Electrical Circuit Simulator

RC Capacitor Charge / Discharge Simulator

Adjust R, C, and V₀ to see exponential charging and discharging curves update instantly. Observe the time constant τ=RC and see why 5τ means "fully charged."

Mode
Parameters
Presets
Summary
Results
τ = RC
5τ (full charge)
I₀ (A)
V at τ (V)
RC circuit diagram (charge level visualized in capacitor)
Circuit
Voltage V(t) and Current I(t) vs Time
Vc
Theory & Key Formulas

Charging: $V(t)=V_0\!\left(1-e^{-t/\tau}\right)$

Discharging: $V(t)=V_0\,e^{-t/\tau}$

$\tau=RC,\quad I(t)=\dfrac{V_0}{R}e^{-t/\tau}$

What is an RC Circuit?

🙋
What exactly is happening when I see the voltage curve climb up in this simulator? It looks like it starts fast and then slows down.
🎓
Basically, you're watching the capacitor charge up. It's like filling a water tank with a narrow pipe. At first, it's easy to push water in (the voltage rises quickly), but as the tank fills, the pressure difference slows the flow. In the circuit, the resistor limits the current flow. Try moving the `R` slider to a very high value; you'll see the curve stretch out dramatically because the "pipe" is narrower.
🙋
Wait, really? So the resistor is the only thing slowing it down? What does the capacitor's value (`C`) do then?
🎓
Good question! Think of the capacitor's capacitance as the size of the water tank. A bigger tank (larger `C`) takes longer to fill for the same pipe size. That's why the key number is the time constant $τ = R \times C$. It combines both effects. In the simulator, set `C` to 10 µF and `R` to 10 kΩ. You get $τ = 0.1$ seconds. Now double `C` to 20 µF—see how the curve takes twice as long to reach the same point?
🙋
Okay, that makes sense. So the 63.2% rule I see in the FAQ... is that always true, no matter what voltage I set with the `V₀` slider?
🎓
Exactly! That's the beauty of the exponential function. The supply voltage `V₀` just sets the final "full" level. The shape of the curve, defined by $τ$, is always the same. After one time constant ($t = τ$), the voltage always reaches 63.2% of `V₀` during charging. Try it: change `V₀` from 5V to 12V. The curve scales up, but if you look at the time markers, it still hits 63.2% of 12V at $t = τ$.

Physical Model & Key Equations

The core behavior comes from Kirchhoff's voltage law and the definition of capacitor current. For a charging capacitor, the voltage across it increases as charge builds up, reducing the current flowing from the source.

$$V(t) = V_0 \left(1 - e^{-t/\tau}\right)$$

$V(t)$ = Capacitor voltage at time $t$ (V)
$V_0$ = Supply voltage (V)
$\tau$ = Time constant, $\tau = R \times C$ (seconds)
$e$ = Euler's number (~2.718), the base of the natural logarithm.
This equation describes the "S-shaped" charging curve you control with R and C.

When discharging, the capacitor itself acts as the voltage source, and the current flows through the resistor until the stored energy is depleted.

$$V(t) = V_0 \, e^{-t/\tau}$$

$V(t)$ = Capacitor voltage at time $t$ (V)
$V_0$ = Initial voltage on the capacitor (V)
The same time constant $\tau = RC$ governs the speed of decay. The current during discharge is $I(t) = -\frac{V_0}{R}e^{-t/\tau}$ (the negative sign indicates direction opposite to charging).

Frequently Asked Questions

After moving the slider, the graph updates in real time, but if the drawing range (time axis) is fixed, the change may be difficult to see. Also, if the values of R or C are set extremely large, the time constant τ becomes large, and the curve changes more slowly. Please wait a few seconds or adjust the display range of the time axis.
The time constant τ is the time it takes for the capacitor voltage to reach approximately 63.2% of its final value. During charging, it indicates the time to reach 63.2% of V₀, and during discharging, the time to reach 36.8% of the initial voltage. The smaller τ is, the faster the response; the larger τ is, the slower it becomes. Practically, charging and discharging are almost complete at t = 5τ.
Yes. By observing the charge and discharge curves while changing the values of R and C, you can develop intuition for designing time constants in timer circuits or filter circuits. However, since actual components have tolerances and parasitic capacitance, use the simulation values as a reference and always verify with actual hardware.
In discharge mode, it starts from a fully charged state (capacitor voltage = V₀). First, in charge mode, set V₀, R, and C, allow sufficient time (more than 5τ) to elapse, and then press the discharge button. This will correctly draw the discharge curve starting from the set V₀. If you want to directly change the initial voltage, adjust the V₀ slider in charge mode.

Real-World Applications

Timers and Flashing Lights: The predictable delay of an RC circuit is perfect for creating time intervals. For instance, the blinking rate of an LED in a cheap novelty toy is often set by an RC circuit charging up to the trigger voltage of a transistor.

Camera Flash Units: A large capacitor is charged by the camera's battery over a few seconds (a slow charge with high R). It then discharges through the flashbulb almost instantly (a very fast discharge with low R), releasing a burst of bright light.

Debounce Circuits: Mechanical buttons "bounce" electrically when pressed. An RC circuit can smooth out these rapid voltage spikes into a single, clean transition, ensuring your digital circuit registers only one button press.

Analog Filters: By exploiting the frequency-dependent behavior of capacitors, RC circuits form the basis of simple low-pass or high-pass filters. These are fundamental in audio equipment to block bass or treble sounds, and in signal processing to remove noise.

Common Misconceptions and Points to Note

First, the expression "a capacitor stores 'voltage' like a battery" is not strictly accurate. What a capacitor stores is "charge"; a voltage appears across its terminals as a result. Recall the relationship $Q=CV$. For the same capacitance C, a greater charge Q leads to a higher voltage V. This is the fundamental origin of the charge/discharge curve. A common mistake is ignoring the voltage across the resistor R during charging. Because current is flowing during charging, a voltage drop occurs across the resistor due to Ohm's law. The supply voltage $V_0$ is divided between the "capacitor voltage $V_C$" and the "resistor voltage $V_R$" ($V_0 = V_C + V_R$). While it's easy to focus only on $V_C$ in the graph, tracking the change in $V_R$ makes it easier to understand the decay of the current.

Next, note that the time constant τ=RC is not the "time to complete charging". At time τ, charging is about 63% complete; at 3τ it's about 95%, and at 5τ it's about 99%. In practice, you decide the time considered "almost complete" based on the required precision of your circuit. For example, in a power supply circuit's smoothing capacitor, a design that waits until 5τ is common. Also, while simulators use ideal power sources and components, real power sources have output current limits, and capacitors have an "Equivalent Series Resistance (ESR)". Especially in circuits like camera flashes that require instantaneous high current, this ESR becomes a cause of heat generation and reduced efficiency. When experimenting with the preset values, please regard them as the "basic form of ideal behavior".