RC Circuit Simulator: Charging & Discharging Curves

simulator intermediate ~8 min
Loading simulation...
τ = 1.0 s — reaches 63.2% in one time constant

With R=10kΩ and C=100μF, the time constant τ = RC = 1 second. The capacitor reaches 63.2% of the supply voltage after 1s and 99.3% after 5s.

Formula

V_charge(t) = V₀ × (1 - e^(-t/RC))
V_discharge(t) = V₀ × e^(-t/RC)
τ = R × C
E = ½CV²

The Exponential Curve of Electronics

The RC circuit — a resistor and capacitor in series — produces the most important waveform in electronics: the exponential charging curve. This deceptively simple circuit appears in virtually every electronic device, from the timing circuits in microcontrollers to the filters in audio equipment to the coupling capacitors in amplifiers. Understanding the RC time constant is essential for designing circuits that respond at the right speed.

Charging: The Self-Limiting Process

When a voltage source is connected to an uncharged RC circuit, current flows through the resistor into the capacitor. Initially, the full voltage appears across the resistor, driving maximum current. As charge accumulates on the capacitor plates, the voltage across the capacitor rises, reducing the voltage across the resistor and slowing the current. This negative feedback produces the exponential curve: fast at first, then gradually tapering toward the supply voltage.

The Time Constant τ = RC

The time constant τ = R × C elegantly captures the circuit's speed in a single number. After one time constant, the capacitor reaches 63.2% of its final voltage. After two, 86.5%. After five, 99.3% — effectively fully charged. Doubling the resistance or capacitance doubles the time constant. This simple multiplication makes RC circuits easy to design: need a 1-second delay? Use R = 10kΩ and C = 100μF.

Discharging and Energy

Disconnecting the voltage source and shorting the circuit through the resistor reverses the process. The capacitor voltage decays exponentially: V(t) = V₀ × e^(−t/RC). The stored energy E = ½CV² is dissipated as heat in the resistor. This discharge curve is equally important in practice — it determines how quickly a power supply decays after shutdown, how long a sample-and-hold circuit maintains its value, and how fast a signal filter rolls off.

FAQ

What is a time constant in an RC circuit?

The time constant τ = R×C is the time it takes for the capacitor voltage to reach 63.2% of its final value during charging (or drop to 36.8% during discharging). After 5 time constants (5τ), the capacitor is considered fully charged or discharged (within 1%). The time constant determines how fast the circuit responds to changes.

Why is the charging curve exponential?

As the capacitor charges, the voltage across it increases, reducing the voltage across the resistor and therefore the charging current. This creates a negative feedback loop: the more charged the capacitor, the slower it charges. This self-limiting behavior produces the characteristic exponential curve V(t) = V₀(1 - e^(-t/RC)).

What are RC circuits used for?

RC circuits are everywhere in electronics. They serve as low-pass and high-pass filters in audio systems, timing elements in oscillators and delay circuits, coupling and decoupling capacitors in amplifiers, debouncing circuits for mechanical switches, and smoothing filters in power supplies.

How much energy does a charged capacitor store?

A capacitor stores energy E = ½CV², where C is capacitance and V is voltage. This energy can be released very quickly, which is why capacitors are used in camera flashes, defibrillators, and pulsed lasers. Large capacitors at high voltages can store dangerous amounts of energy.

Sources

Embed

<iframe src="https://homo-deus.com/lab/electrical-engineering/rc-circuit/embed" width="100%" height="400" frameborder="0"></iframe>
View source on GitHub