Capacitor Charge Calculator — RC Time Constant & Energy

Free, private, serverless capacitor charge calculator. Calculate RC time constant, charge/discharge time, energy stored, voltage at any time — supports pF to F and Ω to MΩ — 100% client-side.

🔒 100% Private
Completely Free
🌐 Runs in Browser
📦 Export Ready

Capacitor Charge Calculator — RC Time Constant & Energy

Tool Workspace

Ready

Loading tool...

  1. Select mode — choose charging or discharging.
  2. Enter capacitance — type the value and select the unit (pF, nF, µF, mF, or F).
  3. Enter resistance — type the value and select the unit (Ω, kΩ, or MΩ).
  4. Enter supply voltage — the voltage source in volts.
  5. Set target voltage — optionally enter the voltage you want to reach. Leave blank for standard 99.3% charge (5τ).
  6. Set initial voltage — voltage across the capacitor at t=0 (default is 0V for charging).
  7. Click Calculate — view time constant (τ), charge/discharge time, energy stored, charge stored, peak current, and the time constants table.
  8. Check voltage at time — enter any time value to see the exact voltage at that moment.

Capacitor Charge Calculator — RC Circuit Time Constant & Energy

Understanding capacitor behavior in RC circuits is fundamental to electronics design, from simple timing circuits to complex power supplies. Our Capacitor Charge Calculator computes the time constant, charge and discharge times, stored energy, peak current, and voltage at any point in time — all running 100% in your browser with no data collection.

What Is an RC Circuit?

An RC circuit consists of a resistor (R) and a capacitor (C) connected in series or parallel. When a voltage source is applied, the capacitor charges through the resistor. The rate of charging depends on the time constant τ (tau), which equals R × C. This simple relationship governs everything from debounce circuits on push buttons to the timing of camera flashes.

Key Features

  • Charging and Discharging Modes: Calculate both the charge curve (V = Vs(1 - e^(-t/RC))) and the discharge curve (V = V₀ × e^(-t/RC)).
  • Wide Unit Range: Capacitance from picofarads (pF) to farads (F). Resistance from ohms (Ω) to megohms (MΩ).
  • Time Constant (τ): Instantly calculates τ = R × C with the result in seconds, milliseconds, or microseconds as appropriate.
  • Target Voltage: Set any target voltage to find the exact time to reach it, or leave blank for the standard 5τ full charge.
  • Initial Voltage: Specify the starting voltage across the capacitor for partially charged scenarios.
  • Energy Stored: Calculates E = ½CV² in joules, millijoules, or microjoules.
  • Charge Stored: Calculates Q = CV in coulombs, millicoulombs, or microcoulombs.
  • Peak Current: Calculates the initial current I = V/R at t=0.
  • Time Constants Table: Shows voltage percentage and absolute voltage at 1τ through 5τ.
  • Voltage at Time: Enter any specific time to find the exact capacitor voltage at that moment.
  • Calculation History: Past calculations saved locally for easy reference.

The Mathematics of Capacitor Charging

Charging Equation

When a capacitor charges through a resistor from a DC voltage source Vs, starting from initial voltage V₀:

V(t) = Vs - (Vs - V₀) × e^(-t/RC)

For a capacitor starting from 0V, this simplifies to:

V(t) = Vs × (1 - e^(-t/RC))

Discharging Equation

When a charged capacitor discharges through a resistor:

V(t) = V₀ × e^(-t/RC)

Time to Reach Target Voltage

Solving the charging equation for time:

t = -RC × ln((Vs - Vt)/(Vs - V₀))

For discharging:

t = -RC × ln(Vt/V₀)

Time Constant Reference

The time constant τ = RC determines the speed of charging and discharging. Here is what happens at each multiple of τ during charging:

  • 1τ: Capacitor reaches 63.2% of supply voltage
  • 2τ: Capacitor reaches 86.5% of supply voltage
  • 3τ: Capacitor reaches 95.0% of supply voltage
  • 4τ: Capacitor reaches 98.2% of supply voltage
  • 5τ: Capacitor reaches 99.3% of supply voltage (considered fully charged)

During discharging, the same percentages apply in reverse — at 1τ the voltage drops to 36.8% of the initial voltage, and at 5τ it drops to 0.7%.

Practical Applications

Timing Circuits

RC circuits are the simplest way to create time delays in electronics. A 555 timer IC uses RC networks to generate precise timing intervals. The time constant directly determines the pulse width or oscillation frequency.

Filter Circuits

Low-pass and high-pass filters use RC networks to selectively pass or block certain frequencies. The cutoff frequency fc = 1/(2πRC). Below this frequency, a low-pass filter passes signals; above it, signals are attenuated.

Power Supply Smoothing

Large capacitors in power supplies smooth out voltage ripples from rectified AC. The discharge time constant determines how much voltage drop occurs between AC cycles — larger capacitors maintain more stable output voltage.

Debounce Circuits

Mechanical switches bounce when pressed, creating multiple electrical pulses. An RC circuit smooths these bounces into a single clean transition. A typical debounce circuit uses a 10kΩ resistor and a 0.1µF capacitor, giving τ = 1ms.

Camera Flash

Camera flash circuits charge a large capacitor (typically 100-330µF) to several hundred volts. The energy stored (E = ½CV²) is then discharged through the flash tube in milliseconds, producing an intense burst of light.

Common Capacitor Values and Applications

  • 1pF - 100pF: RF circuits, crystal oscillators, antenna tuning
  • 1nF - 100nF: Noise filtering, bypass/decoupling, timing circuits
  • 1µF - 100µF: Audio coupling, power supply filtering, motor start
  • 100µF - 10,000µF: Power supply smoothing, energy storage, audio amplifiers
  • 1F+: Supercapacitors for backup power, energy harvesting, regenerative braking

Tips for Accurate Calculations

  • Use actual resistance values: Include the internal resistance of the voltage source if it is significant compared to the external resistor.
  • Capacitor tolerance matters: Electrolytic capacitors can have ±20% tolerance. Ceramic capacitors are typically ±10% or ±20%.
  • Temperature affects capacitance: Ceramic capacitors (especially Y5V/Z5U) can lose 50-80% of their rated capacitance at temperature extremes.
  • ESR is not zero: Real capacitors have equivalent series resistance (ESR) that adds to the circuit resistance, slightly affecting the time constant.

Privacy and Security

All calculations run entirely in your browser using JavaScript. Your circuit parameters are never transmitted to any server. Calculation history is stored in your browser's local storage. No accounts, no tracking, no data collection.

Frequently Asked Questions

Is my data safe?

Yes. Everything runs 100% in your browser. No data is sent to any server.

What is a time constant (τ)?

The time constant τ (tau) equals R × C (resistance × capacitance). After 1τ, a capacitor charges to 63.2% of the supply voltage. After 5τ, it reaches 99.3% — considered fully charged.

How is charge time calculated?

For charging: t = -RC × ln((Vs - Vt)/(Vs - V0)). For discharging: t = -RC × ln(Vt/V0). Where Vs is supply voltage, Vt is target voltage, and V0 is initial voltage.

What is the energy stored in a capacitor?

Energy is calculated as E = ½CV², where C is capacitance in farads and V is voltage in volts. The result is in joules.

Why does a capacitor never fully charge?

A capacitor charges exponentially, approaching but never quite reaching the supply voltage. After 5 time constants (5τ), it reaches 99.3% — close enough for all practical purposes.