Calculator
Formula Used
Capacitor current: i = C × dV / dt
Linear ramp: i = C × ΔV / Δt
Time constant: τ = R × C
Charging voltage: Vc(t) = Vs + (V0 − Vs) × e−t / RC
Charging current: i(t) = ((Vs − V0) / R) × e−t / RC
Discharging voltage: Vc(t) = V0 × e−t / RC
Discharging current: i(t) = −(V0 / R) × e−t / RC
Stored charge: Q = C × V
Stored energy: E = 0.5 × C × V²
How to Use This Calculator
- Select charging, discharging, or voltage ramp mode.
- Enter capacitance and choose its unit.
- Enter series resistance for RC transient modes.
- Enter source voltage, initial voltage, and selected time.
- For ramp mode, enter start voltage, end voltage, and ramp duration.
- Add leakage resistance when you want an estimated leakage current.
- Press Calculate to view results above the form.
- Use CSV or PDF buttons to save the report.
Example Data Table
| Mode | Capacitance | Resistance | Voltage | Time | Expected current |
|---|---|---|---|---|---|
| RC charging | 1000 uF | 1000 ohm | 12 V source | 1 s | 0.004415 A |
| RC discharging | 470 uF | 2200 ohm | 24 V initial | 2 s | -0.001576 A |
| Linear ramp | 10 uF | Not required | 0 V to 5 V | 0.02 s | 0.0025 A |
Understanding DC Capacitor Current
Basic Idea
A capacitor does not pass steady direct current forever. It draws current only while its voltage is changing. That change may come from a voltage step, a timed ramp, or a discharge path. This calculator focuses on those practical DC cases. It uses capacitance, resistance, voltage, and time to estimate current, charge, energy, time constant, and stored voltage.
Why DC Current Changes
In an RC charging circuit, current starts at its highest value. Then it falls as the capacitor voltage rises. The resistor limits the starting current. The capacitance controls how slowly the change happens. A larger capacitor holds more charge, so it responds more slowly. A larger resistor also slows the current decay. The product of resistance and capacitance is the time constant.
Charging, Discharging, And Ramp Modes
Charging mode uses a source voltage and a series resistance. It predicts capacitor voltage at the selected time. It also returns the remaining current. Discharging mode starts with an initial capacitor voltage. It predicts the falling voltage and the negative current direction. Ramp mode is different. It uses the basic relation between current and voltage slope. If voltage rises linearly, capacitor current is nearly constant.
Useful Design Checks
The result helps size resistors, drivers, relays, switches, and power paths. High starting current may stress a supply. Slow settling may affect timing circuits. Stored energy may matter when large capacitors are handled. The calculator also reports charge, because capacitor charge equals capacitance times voltage. These values support design reviews and troubleshooting.
Practical Notes
Real capacitors have leakage, equivalent series resistance, tolerance, and temperature effects. Very fast pulses may need a deeper model. Electrolytic capacitors may have polarity limits. Ceramic capacitors may lose capacitance under DC bias. Use measured values when precision is important. For safety work, include margins and component ratings. Treat this calculator as an engineering aid, not a replacement for qualified electrical testing.
Reading The Result
A positive current means the selected model is charging the capacitor. A negative current means discharge from the stored voltage. The percentage of source voltage shows settling progress. After about five time constants, an RC charge is nearly complete. Use the export buttons to save repeatable calculation records for review.
FAQs
What does capacitor current mean in DC?
It is the transient current caused by changing capacitor voltage. In steady DC, an ideal capacitor current becomes zero after charging finishes.
Why is current highest at the start of charging?
At the start, capacitor voltage may be low. The full voltage difference appears across the resistor, so the current is highest.
What is the RC time constant?
The time constant is resistance multiplied by capacitance. It shows how fast capacitor voltage and current change in an RC circuit.
Can this calculator handle discharging?
Yes. Select discharging mode. Enter capacitance, series resistance, initial voltage, and time. The current is shown with negative sign convention.
When should I use ramp mode?
Use ramp mode when capacitor voltage changes linearly over a known duration. The calculator uses current equals capacitance times voltage slope.
What does leakage resistance do?
Leakage resistance estimates small DC current through the capacitor dielectric. It is optional and is added as a separate current estimate.
Is equivalent series resistance included?
The series resistance input represents the limiting resistance in the current path. For simple estimates, it may include external resistance and ESR.
Is this suitable for high frequency pulses?
It is best for DC transients and linear ramps. High frequency pulses may need ESR, ESL, layout, and waveform simulation.