If you have ever welded a MOSFET shut the millisecond you connected a battery pack, or watched a microcontroller brownout every time a relay clicked, you have met the practical reality of capacitor charging. The math behind these failures is governed by a single, deceptively simple derivative. Understanding the current through a capacitor formula is the difference between a robust power design and a board that smokes on the first power-up.
The Core Equation and Its Assumptions
The fundamental relationship defining the instantaneous current flowing into or out of a capacitor is:
i = C × (dv / dt)
| Symbol | Parameter | SI Unit | Practical Bench Unit |
|---|---|---|---|
| i | Instantaneous current | Amperes (A) | mA, A, kA |
| C | Capacitance | Farads (F) | pF, nF, μF, mF |
| dv | Change in voltage across the capacitor | Volts (V) | V, mV |
| dt | Change in time over which the voltage shifts | Seconds (s) | ns, μs, ms |
When the Formula Applies (and When It Doesn't)
This formula applies strictly to time-varying voltages. It calculates the displacement current required to change the electric field between the capacitor's plates.
- DC Steady State: Once a capacitor is fully charged to a DC voltage, dv becomes 0. Therefore, i = 0. The capacitor acts as an open circuit.
- AC or Transients: Whenever voltage ramps up, ramps down, or oscillates, dv/dt is non-zero, and current flows.
Assumptions: The formula assumes an ideal capacitor. It ignores Equivalent Series Resistance (ESR), Equivalent Series Inductance (ESL), and dielectric absorption. In high-speed or high-current bench scenarios, ESR and ESL will limit the absolute peak current, but the ideal formula still dictates the baseline energy demand.
Rearranged Forms and Unit Trapdoors
Depending on what you are designing, you rarely solve for i directly. Here is the rearranged forms list solving for each variable:
- Solve for Capacitance: C = i / (dv / dt) — Used when sizing a bulk capacitor to limit voltage droop during a known current draw.
- Solve for Voltage Change: dv = (i × dt) / C — Used to calculate ripple voltage on a power rail.
- Solve for Time: dt = (C × dv) / i — Used to calculate soft-start or precharge timing.
The Unit Trapdoors That Break Your Math
The most common reason this formula yields catastrophic design errors on the bench is unit mismatch. The formula demands strict SI base units (Farads, Volts, Seconds).
- The Microfarad Killer: Plugging '2200' into C instead of '0.0022' (2200 μF). This inflates your calculated current by a factor of one million.
- The Millisecond Slip: Using '5' for dt instead of '0.005' (5 ms). This artificially shrinks your calculated current by a factor of 1000, leading you to undersize your fuses and traces.
What a Realistic Answer Magnitude Looks Like
If your math yields an answer outside these typical bounds, check your decimal places:
Worked Problems: From Signal Traces to Power Rails
Let us walk through two solved problems with strict unit tracking to demonstrate how the formula scales from logic signals to power delivery.
Problem 1: I2C Bus Parasitic Capacitance
Scenario: You are debugging an I2C bus. The trace and attached IC pins introduce a parasitic capacitance of 100 pF. The microcontroller pulls the line from 3.3V down to 0V in 10 ns. What is the peak current the GPIO pin must sink?
- Identify and convert to SI units:
C = 100 pF = 100 × 10-12 F
dv = 3.3 V - 0 V = 3.3 V
dt = 10 ns = 10 × 10-9 s - Calculate the voltage slew rate (dv/dt):
dv/dt = 3.3 V / (10 × 10-9 s) = 330,000,000 V/s (or 3.3 × 108 V/s) - Multiply by capacitance:
i = (100 × 10-12 F) × (3.3 × 108 V/s)
i = 330 × 10-4 A - Convert to practical units:
i = 0.033 A = 33 mA
Bench Takeaway: A standard ATmega328P GPIO can sink up to 40 mA. This 33 mA transient is dangerously close to the absolute maximum rating, explaining why adding too many devices to an I2C bus causes signal degradation and potential pin damage over time.
Problem 2: Audio Amplifier Bulk Capacitor
Scenario: A Class-D audio amplifier draws a transient current of 15 A from a 12V rail for a duration of 4 ms during a heavy bass transient. You need to calculate the voltage droop (dv) across a 2200 μF bulk capacitor to ensure the amp doesn't hit its undervoltage lockout.
- Identify and convert to SI units:
i = 15 A
C = 2200 μF = 2200 × 10-6 F = 0.0022 F
dt = 4 ms = 4 × 10-3 s = 0.004 s - Rearrange formula to solve for dv:
dv = (i × dt) / C - Substitute and calculate:
dv = (15 A × 0.004 s) / 0.0022 F
dv = 0.06 / 0.0022
dv ≈ 27.27 V
Bench Takeaway: Wait, a 27V droop on a 12V rail? The math reveals a fatal flaw in the design. The capacitor will completely drain and the voltage will hit zero long before the 4 ms is up. The amplifier will brownout. You must either increase C drastically (to at least 10,000 μF) or rely on the power supply's transient response rather than just the bulk capacitor. (For a deeper dive into capacitor charge dynamics, refer to the Electronics Tutorials guide on capacitance and charge).
Bench War Story: The Inrush Current Reality Check
Theory is clean; the workbench is not. Here is a real-world scenario where ignoring the dt variable in the current through a capacitor formula resulted in destroyed silicon.
The Setup
I was designing a motor controller for a 48V e-bike battery. The DC bus required massive filtering to handle the regenerative braking spikes, so I placed a bank of 10,000 μF (0.01 F) electrolytic capacitors right at the input of the main switching MOSFETs. To turn the system on, a logic-level signal triggered a high-side P-channel MOSFET to connect the battery to the capacitor bank.
The Numbers
When the MOSFET gate was pulled low, the device turned on incredibly fast. According to the datasheet, the turn-on time (dt) was roughly 5 μs (5 × 10-6 s). The voltage step (dv) was the full 48V battery potential.
Let us run the formula:
- i = C × (dv / dt)
- i = 0.01 F × (48 V / 0.000005 s)
- i = 0.01 × 9,600,000
- i = 96,000 Amperes
The Outcome
The moment the enable pin went high, there was a sharp crack. The 40A main fuse blew instantly, but not before the massive current surge vaporized the internal bond wires of the $3.00 P-channel MOSFET, permanently welding it into a short circuit and scorching the 2oz copper traces on the PCB.
What Went Wrong (and The Fix)
The formula assumed an ideal, zero-impedance path. In reality, the battery's internal resistance, the trace inductance, and the capacitor's ESR limited the absolute peak current to somewhere around 3,000A to 4,000A. However, 4,000A is still orders of magnitude beyond what a standard TO-220 package can survive, even for a microsecond.
The failure was treating dt as a fixed property of the switch rather than a design parameter I could control. The fix was implementing a precharge circuit. By adding a 100Ω power resistor in parallel with the main MOSFET, controlled by a timer, the initial dt was stretched from 5 μs to roughly 1.5 seconds.
Recalculating with the precharge resistor limiting the current: i = 48V / 100Ω = 0.48A. The capacitors charged gently. Once the voltage across the caps reached 46V (a dv of only 2V remaining), the main MOSFET closed, and the remaining inrush was negligible. For more on managing these destructive transients, All About Circuits provides an excellent breakdown of inrush current reduction techniques.
Practical Takeaways for Circuit Design
When applying the current through a capacitor formula on the bench, keep these rules of thumb in mind:
- Always define dt: A capacitor does not care about your power supply's current limit; it cares about the impedance of the switch connecting it to the voltage source. If dt is in the microsecond range, expect kiloamp inrush.
- Respect ESR at high frequencies: For fast dv/dt events (like logic edges or switching regulator ripples), the capacitor's ESR dominates the voltage drop. The ideal formula calculates the displacement current, but i × ESR dictates the actual heat generated inside the component.
- Watch your units: Write out the scientific notation (e.g., 10-6) on your scratchpad before plugging numbers into a calculator. It takes two seconds and saves a $50 PCB spin.
Mastering this single derivative equips you to size bulk filters, predict logic gate stress, and design safe high-power switching networks without relying on guesswork.






