Latest videos

  1. Charcoal vs Microwave: 12 Hot Dogs, Cold Start, 2 Minutes
  2. 20ft Rocket Candy Fuse. 4 Seconds. Can It Be Done?
  3. PCB Death Match 001: 1oz vs 2oz Copper

Capacitor Hold-Up Calculator

The supply just went away, or it can’t keep up for a moment. How long can a capacitor keep your circuit running? Set the capacitor, the voltages and the current your circuit draws. You can also click or drag on the graphs.

How it works

A capacitor is a small tank of electric charge. While the supply is on, it fills up to the supply voltage. When the supply disappears, your circuit keeps running by drawing that charge back out, and the capacitor’s voltage falls as it empties.

t = C × ΔV ÷ I

  • t is how long it lasts, in seconds.
  • C is the capacitance, in farads. 1000 µF is 0.001 F.
  • ΔV (“delta V”) is how far the voltage is allowed to drop: the starting voltage minus the lowest voltage your circuit can still work at.
  • I is the current your circuit draws, in amps. 50 mA is 0.05 A.

Bigger capacitor: it lasts longer. More current: it empties faster. And the more sag your circuit can put up with, the more of the stored charge it gets to use. Flip the formula around and you get the other two modes: C = I × t ÷ ΔV (how big a capacitor you need) and ΔV = I × t ÷ C (how far the voltage drops in a given time).

This assumes the circuit draws the same current the whole time, which is close for most chips and microcontrollers. A plain resistor load draws less as the voltage drops, so it lasts a little longer than this says.

Handy shortcuts

  • Double the capacitance and it lasts twice as long. Double the current and it lasts half as long.
  • 1000 µF at 1 A drops 1 V every millisecond. That’s an easy one to remember and scale.
  • Small capacitors next to chips (decoupling capacitors, often 100 nF) aren’t there to run anything for long. They cover the tiny, fast gulps of current a chip takes when it switches, a few nanoseconds at a time. Use How far it sags to see how little the voltage moves.
  • A motor pulls far more current than a microcontroller, so the same capacitor that rides an Arduino through a short dropout barely covers a motor. Try the presets.

Safety

Large capacitors can hold a dangerous charge after the power is removed. Electrolytic capacitors are polarized (they have a + and a − side and must go in the right way round) and must never go over their voltage rating.