To calculate capacitance for a constant-current load hold-up or decoupling scenario, use the formula C = (I × Δt) / ΔV. If you are calculating the fundamental charge storage of an ideal capacitor, use C = Q / V. The correct formula depends entirely on whether you are sizing a physical component for a time-based current deficit (like a microcontroller WiFi burst) or analyzing static charge. Below is the exact math, unit tracking, and decision framework to pick the right physical part.

The Core Formulas to Calculate Capacitance

When designing power delivery networks (PDNs) or backup circuits, the fundamental electrostatic formula is rarely what you reach for. Instead, the constant-current derivative is the workhorse for embedded systems and power electronics.

1. The Practical Hold-Up Formula (Constant Current)

Use this when a load draws a known current for a specific time, and you need to limit the voltage sag.

C = (I × Δt) / ΔV

2. The Fundamental Electrostatic Formula

Use this for basic circuit theory, static charge analysis, or calculating the total charge stored at a fixed DC voltage.

C = Q / V

Symbol Definition and Units
Symbol Parameter Standard Unit Unit Abbreviation
C Capacitance Farads F
Q Electric Charge Coulombs C
V Voltage (Potential Difference) Volts V
I Current (Constant) Amperes A
Δt Time Interval Seconds s
ΔV Allowable Voltage Change/Drop Volts V

Rearranged Forms and Critical Assumptions

Depending on what you are solving for, you will need to rearrange the algebra. Here are the practical forms derived from the constant-current equation:

  • Solve for Current: I = (C × ΔV) / Δt (How much current can this cap supply for a given time and voltage drop?)
  • Solve for Time: Δt = (C × ΔV) / I (How long will this cap hold up the load before brownout?)
  • Solve for Voltage Drop: ΔV = (I × Δt) / C (How much will the rail sag during this transient event?)
  • Solve for Charge (Fundamental): Q = C × V
  • Solve for Voltage (Fundamental): V = Q / C
⚠️ Critical Assumption: Constant Current vs. Resistive Load
The formula C = (I × Δt) / ΔV assumes the load acts as a constant current sink (like a microcontroller core or an active LDO). This results in a linear voltage drop. If your load is purely resistive (like a heating element or a raw LED string without a driver), the discharge follows an exponential RC decay curve: V(t) = V₀ × e^(-t/RC). Applying the linear formula to a resistive load will overestimate the required capacitance by roughly 30-50%.

Unit Traps and Realistic Magnitudes

The most common reason bench prototypes fail after passing the math phase is a unit conversion error. The Farad is a massive unit; most real-world components are fractions of a Farad.

The 'Micro' Trap

Capacitors are usually labeled in microfarads (µF), nanofarads (nF), or picofarads (pF). The formula requires base Farads.
Wrong: C = (0.5A × 0.002s) / 0.3V = 0.0033 µF.
Right: C = 0.0033 F = 3,300 µF. Forgetting the 10⁻⁶ multiplier will leave you ordering a capacitor a million times too small.

Realistic Magnitude Reference

Magnitude Typical Range Common Application
Picofarads (pF) 1 pF – 999 pF RF filtering, crystal oscillator load matching, high-frequency snubbers.
Nanofarads (nF) 1 nF – 999 nF High-speed digital decoupling (e.g., 100nF on every IC VCC pin), EMI suppression.
Microfarads (µF) 1 µF – 99,999 µF Bulk power decoupling, LDO hold-up, audio coupling, motor start/run.
Millifarads (mF) / Farads (F) 0.001 F – 5,000+ F Supercapacitors (EDLCs) for memory backup, RTC hold-up, regenerative braking.

Worked Example 1: ESP32 WiFi Transmit Burst Hold-Up

Scenario: You are powering an ESP32-WROOM-32 from a 3.3V LDO rated for 150mA continuous. During a WiFi transmission burst, the ESP32 draws a peak current of 500mA for approximately 2 milliseconds. The ESP32 brownout detector (BOD) triggers at 2.43V, but for stable RF operation, the Espressif Hardware Design Guidelines recommend keeping the rail above 3.0V. We need to calculate the bulk capacitance required to supply the current deficit without dropping below 3.0V.

Step 1: Identify the variables and convert to base units.

  • Peak Load Current = 500 mA (0.5 A)
  • LDO Supply Current = 150 mA (0.15 A)
  • Current Deficit (I) = 0.5 A - 0.15 A = 0.35 A (The capacitor must supply this difference)
  • Time Interval (Δt) = 2 ms = 0.002 s
  • Starting Voltage = 3.3 V
  • Minimum Allowable Voltage = 3.0 V
  • Allowable Voltage Drop (ΔV) = 3.3 V - 3.0 V = 0.3 V

Step 2: Apply the formula.

C = (I × Δt) / ΔV
C = (0.35 A × 0.002 s) / 0.3 V
C = 0.0007 / 0.3
C = 0.002333... Farads

Step 3: Convert to practical units and select.

0.00233 F × 1,000,000 = 2,333 µF.
Since 2,333 µF is not a standard E12 value, we round up to the next standard size: 3,300 µF or 4,700 µF.

Worked Example 2: 12V Solenoid Valve Pull-In Sag

Scenario: A 12V pneumatic solenoid valve requires a 2A stall current for 50ms to physically pull the plunger in, after which it drops to a 0.5A holding current. Your 12V DC power supply is only rated for 1A continuous and has a sensitive over-current protection (OCP) trip at 1.5A. You need a capacitor to supply the pull-in deficit so the PSU doesn't trip. The solenoid will fail to actuate if the voltage drops below 9V.

Step 1: Variables in base units.

  • Pull-in Current = 2 A
  • PSU Max Current = 1 A
  • Current Deficit (I) = 2 A - 1 A = 1 A
  • Time (Δt) = 50 ms = 0.05 s
  • Voltage Drop (ΔV) = 12 V - 9 V = 3 V

Step 2: Calculate.

C = (1 A × 0.05 s) / 3 V
C = 0.05 / 3 = 0.01666... Farads

Step 3: Convert and select.

0.0166 F = 16,666 µF. Round up to a standard 22,000 µF (22mF) or 33,000 µF snap-in electrolytic capacitor rated for at least 16V (25V preferred for derating).

Decision Tree: Selecting the Physical Capacitor

Calculating the math value is only half the job. You must map the calculated Farads to a physical chemistry that can actually deliver the current. Use this decision path to terminate your design with a concrete part number.

Calculated 'C' Range Primary Application Required Chemistry / Dielectric Concrete Part Pick (Example)
0.01 µF to 1 µF High-frequency decoupling, RF bypass MLCC Ceramic (X7R or C0G/NP0) Murata GRM188R71H104KA93 (100nF, 50V, 0603)
10 µF to 1,000 µF Local bulk decoupling, audio filtering Aluminum Polymer or Low-ESR Electrolytic Panasonic EEUFM1V471 (470µF, 35V, FM Series)
1,000 µF to 20,000 µF Microcontroller hold-up, motor transient sag Radial Aluminum Electrolytic (High Ripple) Panasonic EEUEB1V472 (4,700µF, 35V, EB Series)
0.1 F to 10 F Multi-second RTC backup, brownout ride-through EDLC Supercapacitor (with current-limit resistor) Eaton/Vishay MAL223091001E3 (1F, 5.4V)

Real-World Derating: The ESR Instantaneous Drop

The formula C = (I × Δt) / ΔV assumes an ideal capacitor. In reality, every capacitor has Equivalent Series Resistance (ESR). When a transient current step occurs, the ESR causes an instantaneous voltage drop before the capacitive discharge even begins.

V_drop_total = (I × ESR) + (I × Δt / C)

Bench War Story: If you calculate that you need 2,333 µF for the ESP32 example above, and you buy a cheap, generic 3,300 µF capacitor with an ESR of 0.5Ω, the instantaneous voltage drop from the 0.35A current step will be:

V_ESR = 0.35 A × 0.5 Ω = 0.175 V

This instantly drops your 3.3V rail to 3.125V. You now only have 0.125V of margin left for the capacitive discharge, meaning the cap will deplete in less than 1ms instead of 2ms, and your ESP32 will brownout and reset.

The Fix: Always check the datasheet for ESR at 100kHz. For the ESP32 hold-up, specify a low-ESR series (like the Panasonic FR or FM series, which boast ESR values under 0.02Ω) or parallel three 1,000 µF capacitors to divide the ESR by three. For a deep dive into how dielectrics behave under transient loads, refer to the All About Circuits capacitance guide or manufacturer application notes on ripple current limits.

💡 Pro-Tip: Voltage Derating
Never run an aluminum electrolytic capacitor at its exact rated DC voltage. The capacitance value drops significantly near the rated voltage, and lifespan plummets. A standard rule of thumb for reliable industrial or maker designs is to derate by 20-50%. If your rail is 12V, use a 25V rated capacitor. If your rail is 3.3V, use a 6.3V or 10V rated capacitor.

By tracking your units strictly to base Farads, accounting for the constant-current assumption, and terminating your math with an ESR check against a specific manufacturer part number, you eliminate the guesswork that causes 90% of embedded power rail failures.