Skip to main content
Virtual Laboratory
Physics Simulations Free · No Account Free & source-available · CC BY-NC-SA 4.0

Capacitor Charging & Discharging (Capacitor Simulation)

In an RC circuit, capacitor charging and discharging currents flow in opposite directions and decay exponentially toward 0 as voltage approaches equilibrium, while the area under the I–t curve equals the total transferred charge Q = C·U. Toggle the SPDT switch, vary R, C, or U, and count grid squares in this free 3D capacitor simulation below.

Capacitor Charging & Discharging (Capacitor Simulation) — 3D Bench Preview

Interactive 3D Lab Preview

Runs right on this page in fullscreen · No account required

  • Determine the direction of current through the current-limiting resistor R and center-zero milliammeter—and how the pointer deflects—when toggling the single-pole double-throw (SPDT) switch between Contact 1 (charging from the DC supply) and Contact 2 (discharging through R).
  • Apply a consistent sign convention (charging i > 0, discharging i < 0) to distinguish signed charge change Δq = ∫₀^t i dt from released charge Q_dis = ∫₀^t |i| dt. Estimate Q by counting grid squares (≥ half = 1, < half = 0) and calculate capacitance C = Q / U.
  • Explain why, in an ideal unclipped linear RC circuit with fixed C and initial U, changing resistor R alters initial peak |I₀| = U/R and time constant τ = RC (extension). Show why total I–t area over complete discharge or a fixed 5τ window stays unchanged.

Press Esc or your browser Back button anytime to return to the guide.

Principle, Mechanism & Key Concepts

Capacitor Charging & Discharging (Capacitor Simulation)

What You Will Investigate
Goal 01

Determine the direction of current through the current-limiting resistor R and center-zero milliammeter—and how the pointer deflects—when toggling the single-pole double-throw (SPDT) switch between Contact 1 (charging from the DC supply) and Contact 2 (discharging through R).

Goal 02

Apply a consistent sign convention (charging i > 0, discharging i < 0) to distinguish signed charge change Δq = ∫₀^t i dt from released charge Q_dis = ∫₀^t |i| dt. Estimate Q by counting grid squares (≥ half = 1, < half = 0) and calculate capacitance C = Q / U.

Goal 03

Explain why, in an ideal unclipped linear RC circuit with fixed C and initial U, changing resistor R alters initial peak |I₀| = U/R and time constant τ = RC (extension). Show why total I–t area over complete discharge or a fixed 5τ window stays unchanged.

When a capacitor in series with a resistor and an ammeter is first connected to an 8.0 V DC power supply and then switched to a discharge branch, why does the pointer swing right first, then left, and gradually return to 0 both times?

Many students assume that because an insulating dielectric separates the two capacitor plates, direct current cannot pass through and no current should flow at all. In fact, the instant you close the charging switch (lesson defaults: U = 8.0 V, R = 3.3 kΩ, C = 470 μF), the power supply pulls electrons off the upper plate and pushes them onto the lower plate, creating an initial +2.42 mA charging surge in the wires. As plate voltage u_C climbs to match 8.0 V, the current decays exponentially to 0. Switching to the discharge side lets stored charge flow back through the external loop to neutralize, kicking the meter immediately left to −2.42 mA.

Sign convention: take charging as i > 0 and discharging as i < 0. Charging and discharging currents flow through the same resistor in opposite directions, each decaying exponentially from its peak to 0. During discharge, the signed integral Δq = ∫₀^t i dt is negative while the geometric area between the curve and time axis Q_dis = ∫₀^t |i| dt gives the charge released. For an ideal linear RC circuit with fixed C, fixed initial U, and no over-range clipping, the complete discharge area equals the initial single-plate charge Q₀ = C·U, independent of R.
A. SPDT RC Circuit (Lesson setting: U = 8.0 V, R = 3.3 kΩ, C = 470 μF, τ = 1.55 s)+−U = 8.0 VContact 1 (Chg)Contact 2 (Dis)R=3.3 kΩACB. Bidirectional Current (+i Chg, −i Dis)+2.42 mA (Chg)−2.42 mA (Dis)t/sC. Larger R: Lower Peak, Same Full QR₁ = 3.3 kΩ (tall)R₂ = 4.7 kΩ (wide, same Q)Full-discharge area Q₀ = C·U = 3.76 mC
2D Visual Guide & Diagram — Capacitor Charging & Discharging (Capacitor Simulation)

Cause-and-Effect Chain

01 Charging: Plate Voltage Rises to Match Supply
Condition: Flip the SPDT switch to Contact 1 to connect an uncharged capacitor (u_C = 0) to the U = 8.0 V DC supply (lesson setting).

At t = 0, u_C = 0 so the entire voltage drops across R, giving peak charging current i(0) = +U/R = +2.42 mA. As charge builds up and u_C rises, i = (U − u_C)/R decays exponentially.

→ At steady state, u_C = U = 8.0 V and current i = 0; the fully charged capacitor acts like an open circuit.
02 Discharging: Neutralization Reverses Current
Condition: Move the switch from Contact 1 to Contact 2, closing the fully charged capacitor directly across resistor R and the ammeter.

The charged capacitor acts as a temporary source, driving positive charge from the positive plate back through the meter to the negative plate. Current reverses through the meter, while the electric field between the plates keeps pointing from the positive plate to the negative plate.

→ The center-zero meter kicks left to −2.42 mA, then decays back to 0 together with u_C and Q.
03 Area Integration: I–t Area Gives Transferred Charge
Condition: A current sensor samples the discharge curve i(t) at 100 Hz (lesson setting), with discharging current defined as i < 0.

Each tiny interval Δt carries signed charge change Δq = i·Δt (negative), whose magnitude |i|·Δt equals one narrow rectangular strip. Summing all strips gives total released charge Q_dis = Σ |i|·Δt.

→ Complete discharge (t → ∞) yields total area Q₀ = C·U. Over 5τ, 99.3% (3.73 mC) is released with about 0.025 mC remaining; with ideal meters and no clipping, increasing R stretches time without changing total area.

Core Formulas & Quantitative Relations

Capacitance Definition & Parallel-Plate Formula
C = Q / U = ΔQ / ΔU | C = ε_r ε₀ S / d (extension)

Capacitance C is determined by plate overlap area S, plate separation d, and relative permittivity ε_r—not by stored charge Q or applied voltage U (OpenStax Physics §18.5; College Physics 2e §19.5).

First-Order RC Transient Current & Time Constant (Extension)
τ = R · C | |i₀| = U / R | Δq = ∫₀^t i dt | Q_dis = ∫₀^∞ |i(t)| dt = C · U

With charging i > 0 and discharging i < 0, Δq = ∫₀^t i dt is the signed charge change and Q_dis = ∫₀^t |i| dt is the charge released. With lesson defaults U = 8.0 V, R = 3.3 kΩ, and C = 470 μF, τ = 1.55 s: 1τ reaches 63.2% U (5.06 V); 5τ (7.75 s) discharge gives Δq = −3.73 mC and released charge 3.73 mC (about 0.025 mC remaining), while initial single-plate charge is Q₀ = C·U = 3.76 mC (OpenStax College Physics 2e §20.1, §21.6).

Grid-Counting Rule (Lesson Method) & Stored Field Energy (Extension)
Q = N_cells × q_cell (≥ half = 1, < half = 0) | E_C = ½ C U² = ½ Q U

When computing single-cell charge q_cell = ΔI × Δt, convert mA to 10⁻³ A; omitting that factor inflates calculated capacitance C by 1000×. Stored electric field energy formula: OpenStax University Physics Vol. 2 §8.3.

From 3D Bench to 2D Graphs: Comparing |I|–t Discharge Curves for Different R and U

When comparing two ideal, unclipped complete-discharge |I|–t curves on the same axes, focus on two invariants—the vertical intercept |I₀| = U/R and the total enclosed area Q₀ = C·U:

  • Case A (Increase R only, keeping C and initial U fixed with no meter clipping): total discharged charge Q₀ = C·U stays constant (and every 5τ normalized window releases 0.993 C·U), so both curves enclose the exact same area. The larger-R curve starts lower (|I₀| = U/R is smaller) and stretches farther in time, so the two curves must intersect once.
  • Case B (Increase supply voltage U only, keeping R and C fixed): both the initial peak I₀ = U/R and total area Q = C·U scale up in direct proportion to U, while the decay time constant τ = R·C stays unchanged. One curve stays strictly above the other and they never cross.
Case A · Larger R (Same Area → Curves Cross)Case B · Higher U (Same τ = RC → Never Cross)Intersection (same area CU)Small R2Rt|I|Higher 2U (area 2Q)Lower U (area Q)t|I|

Concept Breakdown

01

No charge crosses the insulating layer between the plates—instead, the external wires move free charge onto and off the plates.

If the Dielectric Blocks DC, Why Does the Ammeter Deflect During Charging and Discharging?

An electrolytic or parallel-plate capacitor holds an insulating dielectric between its two plates, so free electrons cannot cross the gap. When the switch closes to Contact 1 (charging), the supply's electric field drives free electrons onto the negative plate while pulling an equal number off the positive plate. That wire flow creates a transient charging current (+2.42 mA with lesson defaults, deflecting right) and builds an electric field between the plates as u_C rises from 0 toward 8.0 V. Switching to Contact 2 (discharging) lets Coulomb forces drive charge back around the external loop to neutralize. Current through resistor R and the ammeter reverses (−2.42 mA, deflecting left), yet the upper plate stays positive so the electric field still points downward while stored energy becomes Joule heat in R.

Try in the 3D bench: Open Step 2 (Charge & Hold) and Step 3 (Reverse Discharge) in the 3D bench. Flip the SPDT switch to Contact 1 (Charge) and then Contact 2 (Discharge) while watching the center-zero milliammeter swing right then left and the cutaway electric-field arrows stay pointed downward.
02

Steady current gives Q = I·t as a rectangle; changing current uses narrow strips or counted grid squares to integrate area.

How Can You Determine Capacitance C Accurately from a Curved I–t Graph?

Because discharging current decays exponentially along a curve, you cannot multiply the peak current by the total time. Take charging as i > 0 and discharging as i < 0. In Setup 2, the current sensor (100 Hz sampling, lesson setting) uses trapezoidal integration to compute signed charge change Δq = ∫₀^t i dt (the unmetered charging branch shows model estimates). It plots the discharge curve on a standard grid where each cell is 0.4 s × 0.2 mA = 0.08 mC (lesson setting). Count every cell covered at least halfway by the curve (≥ half = 1; < half = 0). With lesson defaults U = 8.0 V, R = 3.3 kΩ, and C = 470 μF over 5τ = 7.75 s, 45 cells are counted: Q_grid = 45 × 0.08 = 3.60 mC. For comparison, the exact 5τ integral is |Δq| = 3.73 mC (about 0.025 mC remains), and initial single-plate charge is Q₀ = C·U = 3.76 mC. Combining the full-discharge baseline q₀ with real-time Δq gives remaining charge q at each instant; fitting q versus u_C through the origin yields slope k = 0.4700 mC/V, or C = 470 μF.

Try in the 3D bench: Open Step 4 (Grid-Area Q) to inspect the 45 highlighted half-or-more cells and the initial 0–0.2 s narrow strip (0.48 mC), then open Step 6 (q–u Slope for C) to log 5 (u_C, q) pairs and fit a line through the origin.
03

Resistance R acts like a valve setting the flow rate, whereas C·U sets the total charge stored in the tank.

How Does Changing the Current-Limiting Resistor R Affect the Charge–Discharge Curves?

In this simulation, the current-limiting resistor R offers five presets: 0.47, 1.0, 2.2, 3.3, and 4.7 kΩ (lesson setting). For an ideal linear RC circuit with fixed capacitance C, fixed initial voltage U, and no meter clipping, increasing R from 3.3 kΩ to 4.7 kΩ drops the initial discharge peak i(0) = −U / R from −2.42 mA to −1.70 mA and lengthens the time constant τ = R·C from 1.55 s to 2.21 s, making discharge slower and flatter. Yet the initial stored charge Q₀ = C·U = 3.76 mC and the 5τ released area 3.73 mC remain completely unchanged. Only changing capacitance (such as switching from 470 μF to 220 μF and recharging to 8.0 V) or changing voltage U alters the released area proportionally—switching to 220 μF shrinks the 5τ area from 3.73 mC to 1.75 mC, or about 46.8% of the original.

Try in the 3D bench: Open Step 7 (Vary R & Vary C): first discharge at 4.7 kΩ · 470 μF (charged to 8.0 V) against the orange 3.3 kΩ baseline to confirm 5τ area conservation, then switch to 220 μF, recharge at Contact 1 to 8.0 V, and discharge to see the 5τ area drop to 1.75 mC (about 46.8%).

Reference & Comparison Table

Standard RC Charging/Discharging Conditions and Parameter Responses (lesson baseline: U = 8.0 V, R = 3.3 kΩ, C = 470 μF)
Stage or Parameter ChangeKey Circuit StateInitial Current i(0)Time Constant τ = RCTransferred Charge Q & Curve Shape
Baseline charging (Setup 1, Contact 1)u_C rises from 0 V to 7.95 V (5τ)+2.42 mA (right)1.55 s (5.06 V at 1τ)Starts at 0 mC; full charge Q_full = 3.76 mC (5τ integral Δq = +3.73 mC); u_C approaches 8.0 V
Baseline discharging (Contact 2)u_C falls from 8.00 V to 0.05 V (5τ)−2.42 mA (left)1.55 s (2.94 V at 1τ)5τ signed Δq = −3.73 mC, released |Δq| = 3.73 mC (0.025 mC left; grid count 45 cells = 3.60 mC)
Increase R only: 3.3 kΩ → 4.7 kΩU = 8.0 V, C = 470 μF fixedDrops to −1.70 mALengthens to 2.21 sSame initial U, unclipped: Q₀ = 3.76 mC (5τ release 3.73 mC) unchanged; curve lower and wider
Decrease C only: 470 μF → 220 μFU = 8.0 V, R = 3.3 kΩ fixedStays −2.42 mAShortens to 0.73 sRecharged to 8.0 V: Q₀ = 1.76 mC (5τ release 1.75 mC, about 46.8% of 3.73 mC)
Lower U only to 4.0 VR = 3.3 kΩ, C = 470 μF fixedHalves to ±1.21 mAStays 1.55 sQ halves to 1.88 mC; stored field energy ½CU² drops to 1/4 of original
Common Misconceptions

Common Misconceptions

Does discharging current flow in the same direction as charging current?

No. During charging, the power supply pushes positive charge onto the positive plate; during discharging, positive charge flows back off that positive plate through the external resistor and ammeter toward the negative plate. The current through the same resistor and meter reverses strictly, while the electric field between the plates still points from the positive plate to the negative plate.

Does using a larger series resistor R reduce the total charge Q stored on the capacitor?

No. As long as supply voltage U stays unchanged, steady-state charging ends with i = 0 and 0 voltage drop across R, so the plate voltage reaches u_C = U. Total stored charge Q = C·U depends only on C and U, never on R.

If I double the charging voltage U, does the capacitance C double as well?

No—that confuses the definition ratio with physical determinants. Capacitance C is set solely by plate overlap area S, plate spacing d, and dielectric permittivity ε_r. Doubling U doubles stored charge Q in step, leaving the ratio C = Q / U constant.

Practice Quiz

Test your understanding with 6 diagnostic questions

Check concepts, graphs, and experimental error reasoning with immediate feedback for every choice.

Embed & Source Availability

Embed this simulation

Paste this iframe snippet into your non-commercial course page or learning platform.

Free & Source-Available (CC BY-NC-SA 4.0)

This simulation is licensed under CC BY-NC-SA 4.0 for non-commercial educational use, embedding, and adaptation with attribution.

Browse All 159 Free Labs →
Sources, Revision & Feedback

Sources, Revision & Feedback

Quiz →