Capacitor charge, discharge and safety-discharge calculator

Enter decimal or scientific notation. Changing a unit reinterprets its number.

Enter 0 for an empty capacitor when charging.

Enter the limit your product standard or safety procedure sets. This tool does not choose one.

Result

Enter capacitance, resistance and voltages to see the time.

No curve to draw.

Interactive calculation is unavailable until JavaScript loads. The formulas, worked examples and references below remain available.

Find how long a capacitor takes to charge or discharge through a resistor to a voltage threshold, and size a bleeder resistor for a safe discharge time.

How to use

Choose Charge to a voltage, Discharge to a voltage or Size a bleeder resistor.

Enter the capacitance and choose its unit.

For charge or discharge, enter the resistance, the voltages and the target. For charging, also enter the supply voltage.

For a bleeder, enter the starting voltage, the safe voltage and the time allowed.

Read the time or the largest resistance, then the time constant, current, power and energy.

Copy result copies labeled values; Reset restores the starting fields.

Science

Through a resistor, a capacitor's voltage moves exponentially toward its final value: v(t) = V_final + (V_start − V_final) × e^(−t/RC). When charging from a supply the final value is the supply voltage; when discharging through a resistor it is 0 V. Solving for t gives the time to any voltage between the two.

A capacitor stores ½CV². While it discharges, the resistor turns the difference into heat. Charging from a fixed supply also costs energy: charging from 0 V all the way loses as much energy in the resistor as ends up in the capacitor, whatever the resistance.

A bleeder resistor stays connected across the capacitor so that it discharges after the power is removed. The largest resistance that reaches the safe voltage within the time allowed is t / (C × ln(V_start / V_safe)). A smaller resistor is faster but draws V/R and dissipates V²/R all the time the circuit is powered, so check its power and voltage ratings.

"Five time constants" is not zero: 0.67 % of the starting voltage remains, which is still 2.7 V from 400 V, and an ideal discharge never reaches 0 V, so always choose a threshold. Workplace electrical rules require stored energy that could harm someone to be released and a capacitor being discharged to be treated as live. The safe voltage and time come from the standard or procedure that applies to your work, not from this tool. Measure the voltage before touching.

Limitations: the model assumes a constant capacitance and resistance in a single path. It ignores capacitor leakage, dielectric absorption (the voltage can partly return after a short), ESR, capacitance tolerance and voltage derating, the resistor's tolerance and voltage rating, and any load on the capacitor.

Formulas

Time constant: τ = R × C. R in ohms, C in farads, τ in seconds.

Voltage: v(t) = V_final + (V_start − V_final) × e^(−t / τ).

Charge time: t = τ × ln((V_s − V_start) / (V_s − V_target)), for V_start < V_target < V_s.

Discharge time: t = τ × ln(V_start / V_target), for 0 < V_target < V_start.

Bleeder: R_max = t_allowed / (C × ln(V_start / V_safe)); power at V_start: P = V_start² / R.

Energy: E = ½ × C × V². Charging loss in R: C × (V_target − V_start) × (V_s − (V_target + V_start) / 2).

Examples

470 μF from 400 V to 50 V through 10 kΩ: 9.77338 s. τ = 4.7 s; 4.7 × ln(400 / 50) = 4.7 × ln 8. The energy falls from 37.6 J to 587.5 mJ.

1000 μF from 0 V to 10 V on a 12 V supply through 1 kΩ: 1.79176 s. τ = 1 s; ln(12 / 2) = ln 6. The capacitor stores 50 mJ and the resistor dissipates 70 mJ.

Bleeder for 2200 μF at 450 V, safe voltage 50 V within 60 s: 12.4124 kΩ or less. 60 / (0.0022 × ln 9). At 450 V that resistor dissipates 16.3144 W, so choose a resistor rated for the power and voltage.

400 V capacitor after five time constants: 2.69518 V left. Common mistake: e^-5 is 0.67 %, not zero. Reaching 1 V takes 5.99146 τ.

Discharge to 0 V: No finite time. Boundary: the exponential approaches 0 V without reaching it; enter a threshold above 0 V.

10 F from 2.7 V to 0.5 V through 100 Ω: 28.1066 min (1686.4 s). τ = 1000 s; 1000 × ln 5.4. Supercapacitors take minutes or hours.

References

OpenStax University Physics Volume 2: RC circuits

OpenStax University Physics Volume 2: Energy stored in a capacitor

OSHA 29 CFR 1910.333: Selection and use of work practices

BIPM: SI prefixes