MechSimulator

RC Circuit — Capacitor Charging & Discharging

τ = RC • V(t) = V₀(1−e−t/τ) • Charging • Discharging — Simulate • Explore • Practice • Quiz

Mode
📖 User Guide
R (Ω) 1000 Ω
C (μF) 100 μF
Vsupply (V) 12.0 V
Mode
Presets
Capacitor Voltage
0.00 V
Time Constant τ
0.100 s
Current
0.00 mA
Energy Stored
0.00 mJ
Charge %
0.0 %
User Guide — RC Circuit Simulator
1 Overview

The RC Circuit Simulator lets you explore how a resistor-capacitor circuit behaves during charging and discharging. The core relationship is the time constant τ = RC, which determines how quickly a capacitor charges or discharges through a resistor. During charging, the capacitor voltage follows V(t) = V₀(1 − e−t/τ), reaching 63.2% of the supply voltage after one time constant and 99.3% after five time constants (5τ).

This simulator is built for electrical engineering students, electronics technicians, and physics learners studying transient analysis, exponential decay, cutoff frequency, and RC filter design. You can adjust resistance, capacitance, and supply voltage, then watch the capacitor charge or discharge in real time with animated current flow and a live voltage-time graph.

2 Getting Started

The simulator opens in Simulate mode with R = 1000 Ω, C = 100 μF, and Vsupply = 12 V, giving a time constant of τ = 0.1 s. To begin:

  • Click Charge or Discharge to select the operating mode, then observe the voltage curve on the canvas.
  • Drag the R slider (1–10,000 Ω) and C slider (1–1000 μF) to change the time constant and see the curve stretch or compress.
  • Adjust the Vsupply slider (1–24 V) to change the final voltage the capacitor charges toward.
  • Use Presets to load common RC combinations: Fast (10 Ω, 100 μF), Standard (1 kΩ, 100 μF), Slow (10 kΩ, 1000 μF), or Filter (1 kΩ, 10 μF).
  • Click Reset to restart the animation from t = 0.

Switch between the four modes — Simulate, Explore, Practice, Quiz — using the pill tabs at the top of the page.

3 Simulate Mode

Simulate mode is the primary interactive workspace. The canvas displays the RC circuit schematic with animated current dots and a real-time voltage-vs-time graph. Key controls include:

  • R slider (1–10,000 Ω): Controls resistance. Higher R means a longer time constant and slower charging.
  • C slider (1–1000 μF): Controls capacitance. Higher C stores more charge and takes longer to reach full voltage.
  • Vsupply slider (1–24 V): Sets the target voltage for charging. During discharge, the capacitor starts at this voltage.
  • Charge / Discharge toggle: Switches between charging (voltage rises exponentially) and discharging (voltage decays exponentially as V(t) = V₀·e−t/τ).

The readout cards show: capacitor voltage (VC), time constant (τ), instantaneous current, energy stored (E = ½CV²), and charge percentage. Watch how the current starts at maximum (I₀ = V/R) and decays exponentially as the capacitor charges.

4 Explore Mode

Explore mode organises educational content into three categories:

  • Fundamentals: Covers capacitor construction, capacitance definition (C = Q/V), electric field between plates, and the relationship between charge, voltage, and energy storage.
  • Time Response: Explains the exponential charging and discharging curves, the meaning of τ = RC, the 5τ rule for full charge, and how to read time-domain waveforms.
  • Applications: Describes real-world uses of RC circuits including low-pass and high-pass filters (cutoff frequency fc = 1/(2πRC)), timing circuits, switch debouncing, and power supply smoothing.

Select any concept card to view a detailed explanation with formulas and an interactive canvas illustration.

5 Practice & Quiz

Practice mode generates unlimited calculation problems on RC circuits. Typical questions include: “Calculate the time constant for R = 2.2 kΩ and C = 47 μF”, “What is the capacitor voltage after 3τ when charging from 0 to 12 V?”, or “Find the cutoff frequency of an RC filter with R = 1 kΩ and C = 10 μF.” Enter your numeric answer, click Check, and see a step-by-step solution.

Quiz mode presents 5 multiple-choice questions covering time constant calculations, exponential decay, energy storage, and filter behaviour. Your score is shown at the end with explanations for each answer.

6 Tips & Best Practices
  • Remember the 5τ rule: after 5 time constants, the capacitor is at 99.3% of its final value — effectively fully charged or discharged.
  • Compare charging and discharging curves side by side by switching modes and clicking Reset each time.
  • Use the Fast preset (10 Ω, 100 μF) to see rapid charging, then switch to Slow (10 kΩ, 1000 μF) to observe a much longer time constant.
  • Watch the current readout during charging — it starts at I₀ = V/R and decays to near zero, confirming exponential behaviour.
  • For filter design, remember that fc = 1/(2πRC). A larger RC product gives a lower cutoff frequency.
  • The energy stored in the capacitor (E = ½CV²) increases quadratically with voltage, so doubling voltage quadruples energy.
  • Practice converting between time constant notation and actual seconds: τ = RC in seconds when R is in ohms and C is in farads.

Understanding RC Circuits — Free Interactive Capacitor Charging & Discharging Simulator

An RC circuit consists of a resistor (R) and a capacitor (C) connected in series with a voltage source. When the switch closes, the capacitor charges through the resistor following an exponential curve: V(t) = V₀(1 − e−t/τ), where τ = RC is the time constant. The time constant represents the time for the voltage to reach 63.2% of its final value. After 5τ, the capacitor is considered fully charged at 99.3% of the supply voltage. Our interactive simulator lets you adjust resistance, capacitance, and supply voltage, then watch the capacitor charge or discharge in real time with animated current dots flowing through the circuit and a live voltage-time graph.

Capacitor Charging & Discharging Curves

During charging, voltage across the capacitor rises exponentially toward the supply voltage while current decreases exponentially from its initial maximum of I₀ = V/R. During discharging, the capacitor releases its stored energy: voltage decays as V(t) = V₀·e−t/τ and current flows in the opposite direction, also decaying exponentially. The simulator displays both curves simultaneously so you can compare charging and discharging behaviour at any resistance and capacitance combination.

Energy Storage and RC Filters

A capacitor stores energy as an electric field between its plates. The energy stored is given by E = ½CV². RC circuits are also fundamental building blocks for electronic filters. A low-pass RC filter passes low-frequency signals while attenuating high frequencies, with a cutoff frequency of fc = 1/(2πRC). A high-pass RC filter does the opposite, blocking DC and passing AC signals above the cutoff frequency. These filters are used extensively in audio electronics, signal processing, and power supply smoothing.

Practical Applications of RC Circuits

RC circuits appear everywhere in electronics: timing circuits in 555 timers, debouncing switches, smoothing rectified power supplies, coupling and decoupling signals between amplifier stages, and setting the bandwidth of communication receivers. The time constant τ = RC is the key design parameter — choosing the right combination of R and C determines how fast the circuit responds. Engineers use RC calculations daily when designing filters, timing delays, and transient response networks.

Who Uses This Simulator?

This simulator is designed for electrical engineering students studying transient analysis, electronics technicians learning about capacitor behaviour, physics students exploring exponential growth and decay, and instructors teaching RC circuit theory. It provides visual, hands-on understanding of time constants, charging curves, and energy storage without requiring laboratory equipment or oscilloscopes.

Explore Related Simulators

If you found this RC Circuit simulator helpful, explore our Ohm’s Law simulator, RLC Circuit simulator, Transformer simulator, and Wheatstone Bridge simulator for more hands-on practice with electrical circuits.