FreeCircuitSim
April 20268 min readBeginner

Capacitors Explained — How They Work and What They Do

Capacitors store and release electrical energy. They are the second most common component in electronics after resistors, appearing in almost every circuit — from simple filters to complex power supplies and timing circuits.

Open Capacitor Simulator
Advertisement

RC Circuit Diagram

graph LR V["Voltage Source (Vs)"] --> R["Resistor (R)"] R --> C["Capacitor (C) — charges up"] C --> GND["GND"] V --> GND note["After τ = R×C seconds: Capacitor = 63.2% of Vs"] style C fill:#2a1a3a,stroke:#aa88ff,color:#aa88ff style note fill:#1a3a2a,stroke:#00ff88,color:#00ff88

How a Capacitor Works

A capacitor consists of two conductive plates separated by an insulating material (the dielectric). When voltage is applied, positive charge builds on one plate and negative charge on the other. The capacitor stores this charge and the energy associated with it.

Unlike a battery, a capacitor does not generate voltage — it stores it. A fully charged capacitor acts like a short circuit to AC signals (passing them through) and like an open circuit to DC (blocking it after charging).

💡 A capacitor is like a spring, not a fuel tank: A spring stores mechanical energy when you compress it and releases it suddenly when released. A capacitor stores electrical energy when you charge it and releases it when connected to a load. Like a spring, it gives up energy quickly — much faster than a battery, which is why capacitors are used where you need fast bursts of energy (camera flashes, audio amplifiers, power supply filtering).
Q = C × V
Q = charge in coulombs, C = capacitance in farads, V = voltage
E = ½ × C × V²
Energy stored in joules

RC Time Constant — Charging and Discharging

When a capacitor charges through a resistor, it does not charge instantly. The time it takes is determined by the RC time constant (τ, pronounced tau):

τ = R × C
Time constant in seconds. After one τ, capacitor is 63.2% charged. After 5τ, fully charged.

Example: R = 10kΩ, C = 100µF → τ = 10,000 × 0.0001 = 1 second. After 5 seconds, fully charged.

During charging, voltage across the capacitor follows: V(t) = Vfinal × (1 − e^(−t/RC)). During discharging: V(t) = Vinitial × e^(−t/RC).

Simulate RC Charging

Capacitor Types

TypeCapacitanceVoltage RatingBest For
Ceramic1pF–10µFUp to 1kVDecoupling, filtering, high frequency
Electrolytic1µF–100,000µFUp to 500VPower supply filtering, large capacitance
Film (polyester)1nF–100µFUp to 630VAudio circuits, precision applications
Tantalum0.1µF–1000µFUp to 50VCompact, SMD applications
Supercapacitor0.1F–3000F2.7V–5.5VEnergy storage, backup power

Common Uses

⚠️ Polarity warning: Electrolytic and tantalum capacitors are polarised — they must be connected with the correct polarity (positive to higher voltage). Reversing them can cause them to fail explosively. Ceramic and film capacitors are non-polarised.

Common Beginner Mistakes

⚠️

Reversed Electrolytic Capacitor

Electrolytic and tantalum capacitors are polarised. Reverse connection can cause them to fail catastrophically — sometimes explosively. Always check the stripe (negative leg) and longer lead (positive leg).

⚠️

Using Electrolytic for High-Frequency Filtering

Electrolytic capacitors have high equivalent series resistance (ESR) and inductance at high frequencies. For decoupling ICs from high-frequency noise, use ceramic capacitors (100nF), not electrolytic.

⚠️

Calculating Time Constant Wrong

τ = R × C in base units only: ohms × farads = seconds. Using kΩ with µF gives you milliseconds, not seconds — a 1000× error if you forget to convert. Always convert to base units first.

⚠️

Assuming Capacitor is Fully Discharged

After switching power off, large capacitors (especially in power supplies) retain charge for minutes or hours. Always check and discharge before working on circuits with capacitors above 100µF.

Frequently Asked Questions

What does a capacitor do in a circuit?
Capacitors store charge and release it. In DC circuits they block DC after charging and smoothe voltage ripple. In AC circuits they pass signals and are used in filters. In timing circuits the RC time constant determines how long they take to charge.
What is the RC time constant?
The RC time constant (τ = R × C) is the time it takes a capacitor to charge to 63.2% of the final voltage through a resistor, or discharge to 36.8% of its initial voltage. After 5 time constants, the capacitor is considered fully charged or discharged.
What is a decoupling capacitor?
A decoupling or bypass capacitor (typically 100nF ceramic) is placed from an IC power supply pin to ground to filter out voltage spikes and high-frequency noise. Every IC should have one placed as close to its power pins as possible.
Keep Going
Ready to simulate this yourself?
Open the free simulator — no account, no download needed.
⚡ Open Simulator →
📍 Step 6 — components
Continue Learning →
Next up: Diodes Explained
Next: Diodes Explained →

Related Guides

← Back to All Guides