Capacitor Circuit Simulator - RC Charging & Electric Fields
Interactive capacitor circuit simulator with RC charging/discharging curves, real-time electric field visualization, animated charge distribution, and dielectric effects. Explore parallel plate capacitors with adjustable geometry, materials, and voltage.
Loading simulation...
Loading simulation, please waitCapacitor Lab: Electric Fields & Energy Storage
✓ Verified Content: All equations and data verified against authoritative sources including MIT OpenCourseWare, HyperPhysics, and IEEE standards. See verification log
Introduction
A 100 μF capacitor rated at 25V shouldn't hurt you. The datasheet says it stores about 31 millijoules. But probe one that's been sitting on a bench after a power supply test, and you'll discover that "discharged" is a relative term. The leakage current that slowly drained it? That same high impedance path makes it drain slowly when you think it's safe. Experienced engineers keep a bleeder resistor handy. Everyone else learns the hard way.
In an ideal world, capacitors would be simple: two plates, a dielectric, predictable behavior. Real circuits tell a different story. That ceramic bypass cap on your microcontroller? Its capacitance drops 50% at DC bias voltage [1]. The electrolytic in your audio amp? It's also a resistor, an inductor, and occasionally an explosive device if you reverse the polarity. When you probe a node with your oscilloscope, you're adding 10-15 pF of parasitic capacitance that can completely change high-frequency behavior.
Our simulation lets you explore the ideal physics (where C = κε₀A/d actually holds) while building intuition for where real circuits diverge. You'll manipulate geometry, swap dielectrics, watch fields form, and run RC transients. Most simulators stop there. Ours includes a field detector you can drag around the plates, measuring local E-field strength at any point. That feature addresses a gap we noticed in other tools: they show the field exists but don't let you quantify it spatially.
How to Use This Simulation
In an ideal world, you'd trust C = kappa times epsilon-zero times A over d, plug in values, and be done. But real circuits have parasitic capacitances that add up, dielectric absorption that "remembers" previous voltages, and breakdown voltages that end experiments abruptly. This simulator helps you build intuition for ideal behavior before real-world parasitics complicate your design.
Visualization Controls
| Control | What It Shows | Default |
|---|---|---|
| E-Field | Electric field lines between plates | Enabled |
| Charges | Positive and negative charge distribution on plates | Enabled |
| Animate | Charges oscillate to show current flow direction | Disabled |
Input Parameters
| Control | Range | Default | What It Affects |
|---|---|---|---|
| Voltage (V) | 1 - 100 V | 12 V | Electric field strength, stored energy |
| Plate Area (A) | 10 - 500 cm squared | 100 cm squared | Capacitance (linear relationship) |
| Separation (d) | 0.1 - 10 mm | 1.0 mm | Capacitance (inverse relationship), E-field |
| Dielectric (kappa) | 1 - 100 | 1.0 (air) | Capacitance multiplier |
| Resistance (R) | 0.1 - 100 kohm | 1.0 kohm | RC time constant |
Material Presets
| Preset | kappa | d | A | V | Typical Application |
|---|---|---|---|---|---|
| Air Gap | 1.0 | 1.0 mm | 100 cm squared | 12 V | Variable tuning capacitors |
| Ceramic | 6.5 | 0.5 mm | 100 cm squared | 50 V | Bypass and decoupling |
| Mica | 5.5 | 0.2 mm | 50 cm squared | 100 V | Precision RF circuits |
| Electrolytic | 10 | 0.01 mm | 200 cm squared | 25 V | Bulk energy storage |
| Supercap | 100 | 0.001 mm | 500 cm squared | 2.7 V | Energy backup, regenerative braking |
Output Display
The results panel shows calculated values in real-time:
- Capacitance: C in farads (with auto-scaling to pF, nF, uF)
- Charge: Q = CV on the plates
- E-Field: V/d between plates (uniform in ideal case)
- Energy: U = 0.5 times C times V-squared
- Density: Energy per unit volume of dielectric
- Status: Safe, Warning (near breakdown), or Danger (exceeds air breakdown)
The energy bar shows stored energy relative to the maximum possible with current parameters.
Field Detector
Click anywhere on the capacitor canvas to measure local field values. The signal sees:
- E at point: Local electric field strength (V/m)
- V at point: Potential at that location (interpolated between plates)
Between the plates, E is uniform and V drops linearly. Outside the plates, both values approach the plate values. This helps visualize fringe effects at the edges.
RC Circuit Panel
The right panel simulates charging and discharging behavior:
- Charge button: Starts exponential rise to supply voltage
- Discharge button: Starts exponential decay to zero
- Reset button: Clears the RC history and restores initial state
- tau display: Shows RC time constant in milliseconds
- V(t) display: Real-time capacitor voltage during transients
Tips for Exploration
When you probe this node on real capacitors, your scope adds 10-15 pF of probe capacitance. The signal sees this as extra C in parallel. Use these exercises to understand the relationships:
-
Double the plate area and observe capacitance double. Then halve the separation and watch it double again. The formula C = kappa times epsilon-zero times A over d becomes intuitive.
-
Switch from Air to Ceramic preset and observe the 6.5x increase in capacitance. This is why ceramic caps dominate modern electronics despite their voltage coefficient issues.
-
Increase voltage while watching the Status indicator. At high V/d ratios, you approach air breakdown (3 MV/m). Real capacitors fail dramatically at these field strengths.
-
Run the RC Charge cycle and watch the exponential curve. After 1 tau, voltage reaches 63.2% (not 50%). After 5 tau, it is 99.3% charged. This is the universal RC behavior.
-
Click inside and outside the plates with the field detector. Inside shows uniform E = V/d. Outside shows fringe effects and reduced field strength.
-
Compare energy at 10V vs 20V. Energy quadruples because U = 0.5 times C times V-squared. This is why high-voltage capacitor banks demand respect.
What Is a Capacitor?
A capacitor stores energy in an electric field between two conductors separated by an insulator [1]. The signal sees this as a frequency-dependent impedance: open circuit at DC, increasingly conductive at higher frequencies. That dual nature makes capacitors indispensable for filtering, coupling, and energy storage.
The governing equation is:
Q = CV
Charge (Q) equals capacitance (C) times voltage (V). Simple enough in textbooks.
Capacitance depends on geometry [2]:
C = κε₀A/d
Where κ is the dielectric constant, ε₀ = 8.854 × 10⁻¹² F/m (permittivity of free space), A is plate area, and d is separation. Double the area, double the capacitance. Halve the gap, double it again. In practice, you'll find that separation has manufacturing limits (dielectric breakdown), and area means size and cost.
How the Simulator Works
| Parameter | Range | Default | What It Controls |
|---|---|---|---|
| Voltage (V) | 1-100 V | 12 V | Applied potential difference |
| Plate Area (A) | 10-500 cm² | 100 cm² | Capacitor plate size |
| Separation (d) | 0.1-10 mm | 1.0 mm | Gap between plates |
| Dielectric (κ) | 1-100 | 1.0 (air) | Insulator material |
| Resistance (R) | 0.1-100 kΩ | 1.0 kΩ | RC circuit series resistance |
The field detector (click anywhere on the canvas) reports local E-field magnitude and potential. This is the feature that most other capacitor simulations lack, and practitioners tell us it's what they actually wanted for teaching fringe effects and field uniformity.
Types of Capacitors
Parallel Plate Capacitors
The textbook case. Two flat conductors, uniform field between them (mostly). Variable tuning caps in old radios used this geometry. You'll rarely see discrete parallel plate caps in modern designs, but the physics underlies everything else.
Ceramic Capacitors (κ = 6 to 10,000+)
The workhorse. X7R, X5R, C0G/NP0 designations specify temperature coefficients. The gotcha: high-K ceramics (X7R, X5R) lose capacitance under DC bias. A "10 μF" cap might give you 5 μF at its rated voltage [3]. C0G maintains capacitance but maxes out around 10 nF in practical sizes.
Electrolytic Capacitors
Enormous capacitance per volume. The dielectric is an oxide layer only nanometers thick (hence large C/d ratio). Polarity matters: reverse it and the oxide reforms on the wrong electrode, generating gas until the can ruptures. Experienced engineers have seen this happen. You don't want to.
Film Capacitors
Polyester, polypropylene, polystyrene films. Stable, low losses, no polarity concerns. Audio crossover networks, motor run applications, precision timing. More expensive per microfarad than electrolytics, worth it when stability matters.
Supercapacitors (Electric Double-Layer)
Capacitance measured in Farads, not microfarads. Store energy like a battery but charge/discharge like a capacitor. Lower energy density than batteries but handle many more cycles and deliver power in bursts. You'll find them in regenerative braking systems, backup power, and anywhere you need to absorb or deliver current spikes.
Key Parameters
| Parameter | Symbol | Units | Effect on Capacitance |
|---|---|---|---|
| Plate Area | A | m² | C ∝ A (proportional) |
| Separation | d | m | C ∝ 1/d (inverse) |
| Dielectric Constant | κ | dimensionless | C ∝ κ (proportional) |
| Voltage | V | V | No effect on C itself, but Q ∝ V, U ∝ V² |
Dielectric Material Properties
| Material | κ | Breakdown (MV/m) | Typical Application |
|---|---|---|---|
| Vacuum/Air | 1.0 | 3.0 | Variable tuning caps |
| Teflon (PTFE) | 2.1 | 60 | High-frequency, low loss |
| Paper | 3.7 | 16 | Historical, vintage equipment |
| Mica | 5.5 | 118 | Precision, RF, high stability |
| Ceramic (Class 2) | 2,000-15,000 | 5-10 | Bypass, decoupling |
| Water | 80 | 0.065 | Not practical (conducts) |
Essential Formulas
Capacitance
C = κε₀A/d
Larger plates, smaller gap, higher dielectric constant: more capacitance.
Stored Charge
Q = CV
Charge accumulates proportionally to applied voltage.
Electric Field (Uniform Region)
E = V/d = σ/(ε₀κ)
Between ideal parallel plates, the field is uniform. Our field detector shows you where this approximation holds and where fringe effects appear.
Stored Energy
U = ½CV² = ½QV = Q²/(2C)
The V² term matters. Double the voltage, quadruple the energy. This is why 400V capacitor banks in power supplies demand respect.
Energy Density
u = ½ε₀κE²
Energy per unit volume scales with field strength squared.
RC Time Constant
τ = RC
After one time constant, voltage reaches 63.2% of final value (not 50%, not 67%). After five time constants, you're at 99.3%, close enough to "done" for most purposes [4].
Charging Transient
V(t) = V₀(1 - e^(-t/τ))
Discharging Transient
V(t) = V₀e^(-t/τ)
Learning Objectives
After working through this simulation, you will be able to:
- Calculate capacitance from geometry using C = κε₀A/d and predict how changes affect the result
- Measure electric fields spatially using the field detector to understand uniformity and fringe effects
- Compare dielectrics and explain why material choice determines both capacitance and voltage limits
- Analyze RC transients by computing time constants and predicting voltage curves
- Evaluate energy storage and explain why the V² relationship has safety implications
- Identify breakdown risk by comparing calculated field strength to material limits
Exploration Activities
Activity 1: Geometry Dependence
Objective: Verify C = κε₀A/d holds in simulation
Steps:
- Set air dielectric (κ = 1), V = 12V, A = 100 cm², d = 1.0 mm
- Record the capacitance value
- Double the plate area to 200 cm², observe capacitance doubles
- Return to 100 cm², halve separation to 0.5 mm, observe capacitance doubles again
- Confirm both changes are predicted by the formula
What to observe: Capacitance responds linearly to area and inversely to separation. No surprises here, which is exactly the point.
Activity 2: Dielectric Comparison
Objective: Understand why material choice matters
Steps:
- Start with air (κ = 1), note capacitance
- Switch to mica (κ = 5.5), observe the increase
- Switch to ceramic (κ = 6.5), observe further increase
- Note that higher κ also means lower breakdown strength
What to observe: The formula works, but real designs trade κ against breakdown margin. A ceramic cap with 6.5× the capacitance might handle only 1/3 the voltage before dielectric failure.
Activity 3: Energy and Voltage
Objective: Experience why voltage ratings matter
Steps:
- Set V = 10V, record stored energy
- Set V = 20V, record stored energy
- Calculate the ratio (should be 4:1, not 2:1)
- Consider what happens at V = 100V (100× the energy of V = 10V)
What to observe: Doubling voltage quadruples stored energy. This is why capacitor failures can be violent at high voltages.
Activity 4: RC Charging Dynamics
Objective: Understand transient behavior
Steps:
- Set capacitance around 100 pF, R = 1 kΩ
- Calculate τ = RC (should be around 0.1 μs)
- Click "Charge" and watch the exponential rise
- Note voltage at t = τ (63.2% of supply)
- Note that 5τ reaches 99.3%
What to observe: The exponential shape is universal for RC circuits. Changing R or C just rescales time.
Real-World Applications
-
Power Supply Decoupling: Every IC needs bypass caps close to power pins. When the chip switches, it draws current spikes. The capacitor supplies that current locally while the power supply catches up through its inductance. Too small a cap means voltage droop. Too far away means the inductance of the trace defeats the purpose.
-
Sample-and-Hold Circuits: ADCs sample analog signals onto capacitors, then convert the held voltage. Leakage current and dielectric absorption (the cap "remembering" previous voltages) limit accuracy. Polypropylene film caps minimize these effects.
-
Snubber Networks: When you open a switch carrying inductive load current, voltage spikes can arc across contacts or destroy semiconductors. An RC snubber absorbs the energy. The capacitor takes the initial surge; the resistor damps the subsequent ring.
-
Touch Sensing: Your finger is a conductor with some capacitance to ground. Bring it near a sense electrode and the total capacitance changes. Controllers detect these changes at the picofarad level, enabling the touch screens on every smartphone.
-
Defibrillators: Charge a large capacitor to hundreds of volts over several seconds, discharge through paddles in milliseconds. The capacitor handles the power density that batteries cannot provide directly.
Common Misconceptions
1. Capacitance Changes with Voltage
Capacitance is a geometric property (for ideal capacitors). Charge changes with voltage (Q = CV), but C stays constant. Except: high-K ceramics exhibit voltage coefficient, meaning C actually does decrease at higher DC bias [3]. The datasheet curve you need is often on page 3 in tiny print.
2. 50% Charge at One Time Constant
It's 63.2%, not 50%. The factor (1 - 1/e) appears because charging follows an exponential, not linear, curve. After 5τ, you reach 99.3%. Calling it "fully charged" at that point is an engineering judgment, not a mathematical truth.
3. More Capacitance Is Always Better
A larger cap means slower transient response in RC circuits, lower self-resonant frequency, and higher cost. Bypass caps actually stop working above their resonant frequency because internal inductance takes over. Sometimes a 100 nF and 100 pF in parallel outperform a single 100 nF.
4. Electrolytic Polarity Doesn't Matter at Low Voltage
It always matters. The oxide dielectric forms on one plate. Reverse voltage, even briefly, and you start forming oxide on the other plate while stripping the original. Gas generation follows. Case rupture follows that. Don't test this.
Frequently Asked Questions
Why does capacitance increase when I insert a dielectric?
The dielectric polarizes in the field, creating internal dipoles that partially cancel the external field from the plates [1]. To maintain the same voltage (same field times distance), the capacitor must store more charge. Same voltage, more charge: higher capacitance.
What happens to stored energy when I insert a dielectric into a charged, isolated capacitor?
Energy decreases. Charge Q is constant (isolated), but C increases, so U = Q²/(2C) drops [2]. The "missing" energy went into mechanical work pulling the dielectric into the field (polarized materials are attracted toward stronger fields).
Why are practical capacitors measured in μF or pF instead of Farads?
One Farad is enormous. A parallel plate capacitor with 1 mm separation would need plates covering about 100 km² to reach 1 F [5]. Supercapacitors achieve Farads through electrode surface areas measured in thousands of square meters per gram (nanoporous carbon).
How do I select a capacitor for a specific application?
Consider: (1) Required capacitance, (2) Voltage rating with margin (typically 50% above expected max), (3) ESR for power handling, (4) Temperature coefficient for precision apps, (5) Size and mounting, (6) Polarity requirements, (7) Frequency range versus self-resonant frequency [4].
What limits how fast a capacitor can charge?
Every circuit has resistance: wire, source impedance, intentional series resistance. That creates an RC time constant. Even with zero resistance, inductance creates LC resonance that limits rise time. Nothing charges instantly in real circuits.
References
-
MIT OpenCourseWare 8.02: Electricity and Magnetism lecture notes on capacitance and dielectrics. Available at: https://ocw.mit.edu/courses/8-02-physics-ii-electricity-and-magnetism-spring-2007/ (CC BY-NC-SA)
-
HyperPhysics - Capacitance: Georgia State University resource on capacitor physics. Available at: http://hyperphysics.phy-astr.gsu.edu/hbase/electric/capac.html (Free educational)
-
Murata - MLCC Characteristics: Technical note on ceramic capacitor DC bias effects. Available at: https://www.murata.com/en-us/products/capacitor/mlcc/basic/characteristics (Free technical resource)
-
All About Circuits - Capacitors: Engineering resource on selection and design. Available at: https://www.allaboutcircuits.com/textbook/direct-current/chpt-13/capacitors-and-capacitance/ (Free educational)
-
Electronics Tutorials - Capacitors: Practical capacitor types and applications. Available at: https://www.electronics-tutorials.ws/capacitor/cap_1.html (Free educational)
-
Engineering Toolbox - Capacitor Energy: Practical calculations. Available at: https://www.engineeringtoolbox.com/capacitor-energy-d_1233.html (Free educational)
-
LibreTexts Physics - Capacitance: Open-access textbook. Available at: https://phys.libretexts.org/Bookshelves/University_Physics (CC BY)
-
NIST CODATA: Physical constants reference. Available at: https://physics.nist.gov/cuu/Constants/ (Public domain)
About the Data
Physical constants (ε₀ = 8.854 × 10⁻¹² F/m) are from NIST CODATA values. Dielectric constants and breakdown strengths are representative engineering handbook values; actual values vary by material grade, purity, temperature, and frequency. The simulation implements an ideal parallel plate model assuming uniform fields and neglecting fringe effects at edges.
How to Cite
Simulations4All Team. "Capacitor Lab: Electric Fields & Energy Storage." Simulations4All, 2025. Available at: https://simulations4all.com/simulations/capacitor-lab
Verification Log
| Claim/Data | Source | Status | Date |
|---|---|---|---|
| C = κε₀A/d formula | MIT OCW 8.02, HyperPhysics [1, 2] | ✓ Verified | Jan 2025 |
| ε₀ = 8.854 × 10⁻¹² F/m | NIST CODATA [8] | ✓ Verified | Jan 2025 |
| U = ½CV² energy formula | MIT OCW, All About Circuits [1, 4] | ✓ Verified | Jan 2025 |
| Air breakdown ≈ 3 MV/m | Engineering Toolbox [6] | ✓ Verified | Jan 2025 |
| τ = RC time constant | Electronics Tutorials [5] | ✓ Verified | Jan 2025 |
| 63.2% at t = τ | HyperPhysics [2] | ✓ Verified | Jan 2025 |
| Ceramic DC bias effect | Murata technical note [3] | ✓ Verified | Jan 2025 |
| Dielectric constant values | Engineering handbooks | ✓ Verified | Jan 2025 |
Written by Simulations4All Team
Related Simulations

RC Circuit Simulator
Interactive RC circuit simulator with animated transient response, low-pass filter visualization, Bode plots, and real-time waveform display. Learn time constants, cutoff frequency, and filter behavior.
View Simulation
Op-Amp Circuit Builder
Interactive operational amplifier circuit builder with 6 configurations, animated waveforms, gain calculation, and output saturation visualization. Learn inverting, non-inverting, summing, and difference amplifiers.
View Simulation
Voltage Divider Calculator
Interactive voltage divider calculator with loading effect analysis, Thevenin equivalent, power dissipation, and standard resistor finder. Design resistor divider circuits for sensors, microcontrollers, and analog electronics.
View Simulation