# How to choose the output capacitor of a buck converter

Size a buck's output capacitor for three things and keep the largest result: the steady-state ripple ($C \ge \Delta I / (8 f_{sw} \Delta V)$ for ceramics, $ESR \le \Delta V / \Delta I$ for electrolytics), the undershoot on a load step ($C \ge \Delta I_{step} / (2\pi f_c \Delta V)$), and the overshoot when the load is released. In most designs the load step, not the ripple, decides. For 5 V at 3 A, 400 kHz with 12 µH, ripple needs only 11 µF, but a 1.5 A step held to 150 mV with a 40 kHz loop needs about 40 µF of effective capacitance.

## The idea: a tank between two pipes

Picture the output capacitor as a water tank. The inductor fills it with a current that rises and falls in a triangle; the load drains it at a steady rate. When the inductor delivers more than the load takes, the level (the output voltage) rises a little; when it delivers less, the level falls. That small rise and fall is the output ripple.

A load step is a sudden bigger drain. The inductor current cannot jump, so for a few microseconds the tank alone supplies the difference, and the level drops until the control loop opens the tap wider. A bigger tank drops less; a faster loop shortens the time the tank is on its own.

![The buck of this article in Voltecx, with the 12 µH inductor and the output capacitor C1 (40 µF here) feeding a 1.67 Ω load: 5 V at 3 A.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/buck-output-capacitor-selection/buck.svg)

So the capacitor has two jobs, and they need different things: small ripple needs enough capacitance (and low ESR) at the switching frequency, while a load step needs enough stored charge for the time the loop takes to react.

## How much capacitance does the ripple need?

The inductor's triangular ripple current $\Delta I$ flows into the capacitor. With a ceramic capacitor, whose ESR is small, the ripple voltage comes from the charge:

$$\Delta V_C = \frac{\Delta I}{8\, f_{sw}\, C}$$

With an electrolytic or polymer capacitor, the ESR term usually dominates:

$$\Delta V_{ESR} = \Delta I \cdot ESR$$

and at high frequency the ESL adds a step at each switching edge. The two terms are roughly in quadrature for a triangle current, so a quick check is to keep each below the target.

![The output ripple of the 36 V, 5 V, 3 A buck simulated in Voltecx, mean removed. 11.2 µF of ceramic (no ESR) gives the 25 mV target with a smooth, rounded wave; 40 µF gives 7 mV. 220 µF with 28 mΩ of ESR gives about 25 mV again, but now it is a sawtooth that follows the inductor current through the ESR.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/buck-output-capacitor-selection/ripple-ceramic-vs-esr.svg)

The shape tells you which term dominates: a rounded wave comes from the capacitance, a sharp sawtooth in step with the inductor current comes from the ESR.

## How much capacitance does a load step need?

When the load jumps by $\Delta I_{step}$, the capacitor supplies the difference until the loop and the inductor catch up. With a loop crossover at $f_c$, a widely used estimate of the undershoot is

$$\Delta V \approx \frac{\Delta I_{step}}{2\pi f_c\, C}$$

so a faster loop needs less capacitance. When the load is released, the inductor's stored energy dumps into the capacitor, and the inductor current can only fall at $V_{out}/L$:

$$\Delta V_{release} \approx \frac{L\, \Delta I_{step}^2}{2\, C\, V_{out}}$$

This is the best case: it assumes the loop cuts the duty cycle to zero the moment the load goes away. A loop that reacts more gently overshoots more, so treat it as a floor, not an estimate. Even the floor can set the capacitance by itself with a large inductor at a low output voltage.

## Worked example: 5 V, 3 A, 400 kHz

The power stage is the one of [how to size a buck inductor](https://voltecx-web.nguyenvanqui291.workers.dev/blog/buck-inductor-sizing): 12 µH, ripple 0.897 A at the 36 V maximum input.

**Ripple**, target 25 mV peak-to-peak (0.5 %):

$$C \ge \frac{0.897}{8 \times 400\,\text{kHz} \times 25\,\text{mV}} = 11.2\ \mu\text{F}, \qquad ESR \le \frac{25\,\text{mV}}{0.897\,\text{A}} = 28\ \text{m}\Omega$$

**Load step**, 1.5 A (half load), 150 mV allowed (3 %), loop crossover 40 kHz (one tenth of the switching frequency):

$$C \ge \frac{1.5}{2\pi \times 40\,\text{kHz} \times 0.15} = 39.8\ \mu\text{F}$$

**Load release** with 40 µF:

$$\Delta V \approx \frac{12\,\mu\text{H} \times 1.5^2}{2 \times 40\,\mu\text{F} \times 5} = 68\ \text{mV}$$

within the 150 mV allowance. The load step sets the value: about **40 µF effective**. The ripple with 40 µF is then $0.897 / (8 \times 400\,\text{k} \times 40\,\mu) = 7$ mV.

### Checking it in simulation

The estimates are quick, but a simulation shows whether they hold. Here the buck runs closed loop at 24 V with 40 µF and a Type III compensator that `design.voltageLoop` designed for a 40 kHz crossover. (It reports that with this LC filter it can keep 60° of phase margin only up to about 30 kHz, so this design has 45°.) A 1.5 A load is switched on at 20 µs and off again 100 µs later.

![The load step in Voltecx: the output v(out) and the inductor current i(L1) when 1.5 A of load is added and, 100 µs later, removed. The output dips 134 mV and, on release, rises 127 mV; the inductor current climbs from 3 A to 4.5 A within a few switching periods.](https://voltecx-web.nguyenvanqui291.workers.dev/media/blog/buck-output-capacitor-selection/load-step.svg)

- **Undershoot: 134 mV**, below the 150 mV the estimate gives. The estimate is on the safe side.
- **Release overshoot: 127 mV**, almost twice the 68 mV of the energy formula. The linear loop lowers the duty cycle gradually, so the inductor keeps pushing current into the capacitor for longer than the formula assumes. It still fits the 150 mV allowance, but only just.
- **Recovery** takes a few tens of microseconds, with a small overshoot, as you would expect from 45° of phase margin.


## Why "effective" capacitance?

Class II ceramic capacitors (X5R, X7R) lose capacitance with DC bias. A small-case part at a large fraction of its rated voltage can keep half or less of its nominal value. Read the vendor's DC-bias curve at your output voltage and temperature, then count parts. In this example, if a 22 µF part keeps 11 µF at 5 V, you need four of them, not two.

## How much ripple current must the capacitor carry?

The RMS of a triangle of height $\Delta I$ is

$$I_{C,rms} = \frac{\Delta I}{\sqrt{12}} = \frac{0.897}{3.46} = 0.26\ \text{A}$$

shared among the parallel parts. This is easy for ceramics; for electrolytics, check the ripple-current rating at your frequency, because it also sets their temperature rise and lifetime.

## Common mistakes

- **Sizing for ripple only.** The ripple asked for 11 µF here; the load step asked for 40 µF. Always do the load-step check.
- **Counting nominal, not effective, capacitance.** A ceramic capacitor at a large share of its rated voltage can lose half its value. Read the DC-bias curve.
- **Treating the release formula as an estimate.** It is the best case. Simulate, or leave margin: here the real overshoot was almost twice the formula.
- **Assuming any crossover is reachable.** One tenth of the switching frequency is a ceiling, not a promise: the LC resonance, the ESR zero and the PWM delay decide how much phase margin you can keep there.
- **Forgetting the ESL.** At hundreds of kilohertz, a few nanohenries of ESL put spikes on every switching edge. Place small ceramics close to the load.

## How to do it in Voltecx

1. The Design panel's **Converter** task (`design.converter`, `Cmd+Shift+D`) sizes the inductor and the output capacitor for your ripple targets, and after **Apply** simulates to check that the measured output ripple is within 15 % of the target.
2. The **Voltage loop** task (`design.voltageLoop`) designs the compensator for the crossover and phase margin you ask for, then checks it with a 50 % load step, which shows whether the capacitance holds the undershoot.
3. **Simulation › Test Bench** runs the load-step case of your spec with its limits drawn on the scope, so a failing case shows its waveform.
4. Each capacitor takes an ESR and an ESL (`esr`, `esl`); `analysis.impedance` on the output node shows the output impedance of the power stage and capacitor bank against frequency.

In [automatic design](https://voltecx-web.nguyenvanqui291.workers.dev/features/auto-design), the robust loop stage sizes the loop over every corner of the spec, and when one part change fixes a failing load step, such as a larger output capacitor, it makes the change and designs the loop again.

## Frequently asked questions

### Which matters more for a buck output capacitor, ripple or load step?

Usually the load step. The ripple requirement is often met by a few microfarads of ceramic, while holding a fast load step within a few percent needs several times more.

### How do I calculate output ripple with a ceramic capacitor?

$\Delta V = \Delta I / (8 f_{sw} C)$, with $C$ the effective capacitance after DC-bias derating.

### Can I mix ceramic and electrolytic capacitors?

Yes, and it is common: ceramics handle the high-frequency ripple and electrolytics or polymers add bulk capacitance and damping for load steps. Check the combined impedance for a resonance between them.

### Does a faster control loop reduce the output capacitance?

For the undershoot, yes, roughly in proportion to $1/f_c$. On load release the inductor energy sets a floor that no loop can beat; a slow loop overshoots well above it, and a fast one gets closer to it.
