Capacitor Simulator: RC Charging & Impedance

A capacitor is a passive component that stores energy in an electric field between two plates separated by a dielectric. Its capacitance is C=Q/VC = Q/V and the energy is E=12CV2E = \tfrac{1}{2}CV^2. In an RC circuit it charges with the time constant τ=RC\tau = RC, reaching about 99 % after 5τ5\tau.

  • Power off
  • Positive plate
  • Negative plate
  • Dielectric
  • Drag to rotate

Parameters

Capacitance, equivalent series resistance and rated voltage

Editable

Educational RC charging model with ESR and ESL · Not a substitute for a manufacturer datasheet

Live values

Off

0.0 s

Charge statePower off
Time constant τ47.2ms
Stored energy0J
Inrush current0A
Reactance3.39Ω

Charts

Follow the voltage and current while the capacitor charges, then see how its impedance changes with frequency.

Capacitor voltage while charging

Vc(t) = V·(1 − e^(−t/τ)): 63 % after one time constant, about 99 % after five.

Charging current

I(t) = (V/R)·e^(−t/τ): the inrush is limited only by the resistance and falls to 37 % after one τ.

Impedance versus frequency

|Z| falls as 1/(2πfC), bottoms out at the ESR at self-resonance and then rises again because of the lead inductance.

Watch an electrolytic capacitor charge through a resistor: charge builds up on the plates, the voltage follows an exponential curve and the time constant τ = RC sets the pace.

What is a capacitor?

Energy stored in an electric field

A capacitor is a passive component that stores energy in an electric field between two plates separated by a dielectric. Its capacitance is C=Q/VC = Q/V and the energy is E=12CV2E = \tfrac{1}{2}CV^2. In an RC circuit it charges with the time constant τ=RC\tau = RC, reaching about 99 % after 5τ5\tau.

More about this simulator

Ratings and where it is used

The rated voltage is the highest continuous voltage the dielectric is guaranteed to withstand. Exceed it and the dielectric can break down: an electrolytic may vent or swell, a ceramic can short. Designers usually derate by 20–50%. Capacitors smooth rectified supplies, decouple ICs, set timing in RC circuits and oscillators, couple AC signals between stages and filter noise. Electrolytics give the most capacitance per volume, ceramics the best high-frequency behavior. Run a hands-on capacitor simulation: this free capacitor simulator works online in your browser, with live readouts beside the 3D model. Compare it with the inductor simulator and the resistor simulator. The glossary defines RC time constant.

Frequently asked questions

How do you calculate the time constant of an RC circuit?
τ = R × C. With R = 10 kΩ and C = 100 µF, τ = 10,000 Ω × 0.0001 F = 1 s. The capacitor reaches about 63% of the supply voltage after one τ, 86% after two and over 99% after five. Change the resistance or capacitance in the simulator to see the 5τ window rescale.

What you will learn

  • Calculate the time constant τ = (R + ESR)·C and predict when the capacitor reaches about 63% and over 99% of the supply voltage.
  • Explain why the inrush current at t = 0 equals V/(R + ESR) and how the series resistance limits it.
  • Compute the final charge Q = C·V and stored energy ½·C·V², and show why doubling the voltage quadruples the energy.
  • Compare the ideal reactance 1/(2πfC) with the real impedance including ESR and ESL, and locate the self-resonant frequency.
  • Judge a safe working voltage by comparing the supply with the rated voltage and the 80% near-rated threshold.
Model assumptions & references

Model assumptions and limitations

  • The supply is an ideal DC source and the capacitor always starts empty at 0 V; it charges along a single exponential with τ = (R + ESR)·C. Negative supply values are treated as 0 V, so reverse polarity is not modelled.
  • Capacitance, ESR and ESL are constant: they do not change with voltage, frequency, temperature or ageing. Leakage current and dielectric absorption are not included.
  • The equivalent series inductance is fixed at 15 nH, so the self-resonant frequency 1/(2π√(L·C)) changes only with the capacitance. The impedance uses a series ESR–C–ESL model: |Z| = √(ESR² + (ωL − 1/(ωC))²).
  • The reactance read-out Xc = 1/(2πfC) is the ideal capacitive value and ignores ESR and ESL; only the impedance |Z| includes them. The frequency is limited to at least 0.01 Hz.
  • The rated voltage is only a threshold: above 80% of it the state is shown as near-rated, above 100% as overvoltage with a warning. Dielectric breakdown, heating or venting are not simulated; Q and energy still follow C·V and ½·C·V².
  • Inputs are clamped: if R + ESR is zero, a total resistance of 1 mΩ is used so τ and the inrush current stay finite; capacitance is at least 1 pF (10⁻⁶ µF) and rated voltage at least 0.1 V.

References

  • The Art of Electronics — Paul Horowitz, Winfield Hill. Covers RC charging, the time constant, practical capacitor types, ESR and supply decoupling.
  • Fundamentals of Electric Circuits — Charles K. Alexander, Matthew N. O. Sadiku. Covers capacitor energy, the step response of first-order RC circuits and capacitive impedance with phasors.
  • Engineering Electromagnetics — William H. Hayt, John A. Buck. Covers the electric field between plates with a dielectric, capacitance and the energy stored in the electric field.