---
title: Inductor and capacitor ripple
heading: Computing switching ripple from the inductor's voltage in each switch state, sizing the inductor for a ripple fraction, the buck's output ripple from charge, the boost's capacitor supplying the load alone, peak currents and the ripple added by ESR
eyebrow: S11 · Lesson 3 · Inductor and capacitor ripple
xp: 50
---

::: hook
Lesson 2 ignored ripple to find the DC operating point. Now it's time to size the parts that keep the ripple small. The same piecewise-linear waveforms do the work: during each switch state the inductor sees a nearly constant voltage, so its current ramps at a known slope, and the change over the interval is the ripple. That ripple sets the inductor's peak current and saturation rating, and how much the output capacitor has to absorb.
:::

::: play
- The inductor current of a buck converter from 12 V to 3.3 V at 2 A, switching at 500 kHz: a triangle around the load current, rising during the on-time and falling during the off-time.
- Peak-to-peak ripple is $V(1 - D)/(Lf_s)$: halve L or the frequency and it doubles.
- The readouts give the ripple, the peak current the inductor must carry without saturating, and the output voltage ripple with 22 µF.
:::

```sim plot
view: graph
x: t = 0..6e-6 s
y: i = 0..3.5 A
slider: L = 2..47 = 10 µH log
slider: f = 100..1000 = 500 kHz log
plot: 2 + 3.3*(1 - 0.275)/(L*1e-6*f*1e3)*(step(0.275 - (t*f*1e3 - floor(t*f*1e3)))*((t*f*1e3 - floor(t*f*1e3))/0.275 - 0.5) + (1 - step(0.275 - (t*f*1e3 - floor(t*f*1e3))))*(0.5 - ((t*f*1e3 - floor(t*f*1e3)) - 0.275)/0.725)) | samples: 1200 | label: inductor current
plot: 2 + 0*t | dashed | color: ch3 | label: load current
readout: peak-to-peak ripple, A = 3.3*0.725/(L*1e-6*f*1e3) | digits: 3
readout: peak current, A = 2 + 3.3*0.725/(L*1e-6*f*1e3)/2 | digits: 3
readout: output ripple with 22 µF, mV = 3.3*0.725/(L*1e-6*f*1e3)/(8*f*1e3*22e-6)*1000 | digits: 3
```

::: predict
## A boost converter's output capacitor is the only thing feeding the load while the switch is on. With 2 A out, D = 0.75, 200 kHz and 10 µF, how big is the output ripple?

- [ ] About 5 mV
- [ ] About 75 mV
- [x] About 0.75 V
- [ ] About 7.5 V

::: reveal
During the on-time, $DT_s$ = 3.75 µs, the capacitor alone supplies 2 A, so its voltage falls by $I\,DT_s/C$ = 2 × 3.75 µs/10 µF = 0.75 V. A boost's output ripple is far worse than a buck's, because the output current arrives in pulses rather than through an inductor.
:::
:::

::: nameit
## Inductor ripple

In each switch state the inductor sees a nearly constant voltage, so $\Delta i = v_L\,\Delta t/L$. For the buck during the off-time, $v_L = -V$ for $(1 - D)T_s$:

$$\Delta I_{pp} = \frac{V(1 - D)}{Lf_s} \text{ (buck)}, \qquad \Delta I_{pp} = \frac{V_gD}{Lf_s} \text{ (boost)}$$

Choosing a ripple of a fraction r of the DC current (often 20 to 40%) gives the inductance: $L = V(1 - D)/(rI_Lf_s)$ for a buck. The inductor must carry the peak $I_L + \Delta I_{pp}/2$ without saturating.

## Output capacitor ripple

- **Buck:** the inductor's ripple current flows into the capacitor; the charge in one half-triangle gives $\Delta V_{pp} = \dfrac{\Delta I_{pp}}{8f_sC}$.
- **Boost:** the capacitor carries the whole load during $DT_s$: $\Delta V_{pp} = \dfrac{I\,D}{f_sC}$.

## ESR

A real capacitor's equivalent series resistance adds $\Delta I \cdot R_\text{ESR}$, in phase with the current. With electrolytics ESR often dominates; ceramics have so little that the capacitive term does.
:::

::: example
## Size the buck's inductor and output capacitor: 12 V to 3.3 V, 2 A, 500 kHz.

::: solution
1. **Duty cycle.**
   $$\begin{aligned} D &= \frac{3.3}{12} \\ &= 0.275 \end{aligned}$$
2. **Inductor ripple with 10 µH.**
   $$\begin{aligned} \Delta I_{pp} &= \frac{3.3 \times 0.725}{10\ \mu\text{H} \times 500\text{ kHz}} \\ &= 0.48\ \text{A} \end{aligned}$$
   That's 24% of the load, and the peak current is 2.24 A.
3. **Capacitive ripple with 22 µF.**
   $$\begin{aligned} \Delta v_C &= \frac{0.48\ \text{A}}{8 \times 500\text{ kHz} \times 22\ \mu\text{F}} \\ &= 5.4\ \text{mV} \end{aligned}$$
4. **ESR ripple.** 5 mΩ of ESR adds
   $$\begin{aligned} \Delta v_\text{ESR} &= 0.48\ \text{A} \times 5\ \text{m}\Omega \\ &= 2.4\ \text{mV} \end{aligned}$$
5. **For a 30% ripple target instead.** The ripple would be 0.6 A, so
   $$\begin{aligned} L &= \frac{3.3 \times 0.725}{0.6\ \text{A} \times 500\text{ kHz}} \\ &= 8.0\ \mu\text{H} \end{aligned}$$

**Answer:** 10 µH gives 0.48 A of ripple (2.24 A peak), and 22 µF gives 5.4 mV of capacitive ripple plus 2.4 mV from the ESR. A 30% ripple target would need 8.0 µH.
:::
:::

::: example
## The boost of lesson 2 (12 V to 48 V, 2 A) runs at 200 kHz with a 47 µH inductor. Find its inductor ripple and output ripple with 10 µF.

::: solution
1. **Inductor ripple.**
   $$\begin{aligned} \Delta I_{pp} &= \frac{12 \times 0.75}{47\ \mu\text{H} \times 200\text{ kHz}} \\ &= 0.96\ \text{A} \end{aligned}$$
   on an 8 A average.
2. **Output ripple.**
   $$\begin{aligned} \Delta v &= \frac{2 \times 0.75}{200\text{ kHz} \times 10\ \mu\text{F}} \\ &= 0.75\ \text{V} \end{aligned}$$
   1.6% of 48 V.
3. **Halving it.** Halving the output ripple needs 20 µF, or a higher switching frequency.

**Answer:** the inductor ripples by 0.96 A peak to peak on 8 A, and the output by 0.75 V (1.6%).
:::
:::

::: example
## A boost converts 12 V to 48 V at 2 A and 200 kHz. Choose L for 30% inductor ripple, and find the peak current it must carry.

::: solution
1. **Inductor current.** The inductor carries the input current:
   $$\begin{aligned} I_L &= \frac{48 \times 2}{12} \\ &= 8\ \text{A} \end{aligned}$$
   so 30% ripple is 2.4 A peak to peak.
2. **Inductance.** With D = 0.75:
   $$\begin{aligned} L &= \frac{V_gD}{\Delta I f_s} \\ &= \frac{12 \times 0.75}{2.4 \times 200 \times 10^3} \\ &= 18.75\ \mu\text{H} \end{aligned}$$
3. **Peak current.**
   $$\begin{aligned} I_\text{pk} &= 8 + 1.2 \\ &= 9.2\ \text{A} \end{aligned}$$
   the figure the core must handle without saturating and the transistor must switch.

**Answer:** L = 18.75 µH, and the inductor must carry a 9.2 A peak.
:::
:::

::: check
given: V = 1.8 | 3.3 | 5; g = 12 | 24; L = 4.7 | 10 | 22; f = 200 | 500
answer: V*(1 - V/g)/(L*1e-6*f*1e3)
unit: A
tolerance: 0.5%

## A buck from {g} V to {V} V uses {L} µH at {f} kHz. What's its peak-to-peak inductor ripple?

::: right
Right. $V(1 - D)/(Lf_s)$ = {answer} A.
:::

::: misses
- [V*(1 - V/g)/(2*L*1e-6*f*1e3)] That's half the peak-to-peak value.
- [(g - V)/(L*1e-6*f*1e3)] Multiply by the time the voltage is applied: $(V_g - V)DT_s$.
- [any] Not yet. $\Delta i = v_L\Delta t/L$ over either interval.
:::
:::

::: check
given: d = 0.2 | 0.5 | 1; f = 200 | 500 | 1000; C = 10 | 47
answer: d/(8*f*1e3*C*1e-6)*1000
unit: mV
tolerance: 0.5%

## A buck's inductor ripple is {d} A peak to peak, at {f} kHz with {C} µF of output capacitance (no ESR). What's the output ripple?

::: right
Right. $\Delta I_{pp}/(8f_sC)$ = {answer} mV.
:::

::: misses
- [d/(f*1e3*C*1e-6)*1000] The capacitor charges from a half-triangle: the factor is 1/8.
- [any] Not yet. The charge in the triangle above the average.
:::
:::

::: check
given: I = 0.5 | 2 | 5; D = 0.4 | 0.75; f = 100 | 300; C = 10 | 47
answer: I*D/(f*1e3*C*1e-6)
unit: V
tolerance: 0.5%

## A boost delivering {I} A at D = {D}, {f} kHz has {C} µF at its output. What's the output ripple?

::: right
Right. $ID/(f_sC)$ = {answer} V.
:::

::: misses
- [I*(1 - D)/(f*1e3*C*1e-6)] The capacitor supplies the load alone during the on-time, $DT_s$.
- [any] Not yet. $\Delta V = I\Delta t/C$ with Δt = $DT_s$.
:::
:::

::: check
given: V = 1.2 | 3.3 | 5; g = 12 | 19; I = 1 | 5 | 10; r = 0.2 | 0.4; f = 300 | 600
answer: V*(1 - V/g)/(r*I*f*1e3)*1e6
unit: µH
tolerance: 0.5%

## A {g} V to {V} V buck at {I} A and {f} kHz should have ripple of {r} of its load current. What inductance?

::: right
Right. $V(1 - D)/(rIf_s)$ = {answer} µH.
:::

::: misses
- [any] Not yet. Solve the ripple formula for L.
:::
:::

::: check
given: I = 1 | 3 | 8; d = 0.3 | 0.8 | 2
answer: I + d/2
unit: A
tolerance: 0.5%

## An inductor carries {I} A average with {d} A peak-to-peak ripple. What peak current must it carry without saturating?

::: right
Right. $I + \Delta I_{pp}/2$ = {answer} A.
:::

::: misses
- [I + d] Half the peak-to-peak ripple sits above the average.
- [any] Not yet. Average plus half the ripple.
:::
:::

::: check
given: d = 0.3 | 1 | 2.5; R = 2 | 10 | 50
answer: d*R
unit: mV
tolerance: 0.5%

## A capacitor with {R} mΩ of ESR carries {d} A of peak-to-peak ripple current. How much ripple voltage does the ESR add?

::: right
Right. $\Delta I \cdot R_\text{ESR}$ = {answer} mV.
:::

::: misses
- [any] Not yet. Ohm's law on the ESR.
:::
:::

::: check
kind: parts
given: g = 5 | 12 | 24; k = 2 | 4; I = 1 | 3; r = 0.2 | 0.4; f = 100 | 500

## A boost raises {g} V to {k} times that at {I} A out, switching at {f} kHz with ripple {r} of its inductor current.

::: part
answer: k*I
unit: A
tolerance: 0.5%

### What is the average inductor current?

::: misses
- [I] The inductor carries the input current.
- [any] $I/(1 - D) = kI$.
:::
:::

::: part
answer: g*(1 - 1/k)/(r*k*I*f*1e3)*1e6
unit: µH
tolerance: 0.5%

### What inductance is needed?

::: misses
- [any] $L = V_gD/(\Delta I f_s)$.
:::
:::

::: part
answer: k*I*(1 + r/2)
unit: A
tolerance: 0.5%

### What peak current must it carry?

::: misses
- [any] Average plus half the ripple.
:::
:::
:::

::: check
kind: derivation
vars: V = 0.5..50, D = 0.05..0.95, L = 0.000001..0.001, f = 10000..2000000, C = 0.000001..0.001

## A buck makes V at duty D with inductance L, switching frequency f and output capacitance C.

::: step
answer: V*(1 - D)/(L*f)

### What is its inductor ripple?
:::

::: step
answer: V*(1 - D)/(L*f)/(8*f*C)

### What output ripple does the capacitor alone allow?
:::

::: right
Right. The output ripple falls as $1/f^2$: doubling the switching frequency quarters it with the same parts.
:::
:::

::: explain
## Why is a boost converter's output ripple so much larger than a buck's for the same capacitor?

::: model
In a buck converter the output capacitor sits after the inductor, which delivers a continuous current with only a small triangular ripple, so the capacitor only has to absorb the difference between that ripple and the steady load current, a small amount of charge each period. In a boost converter the inductor feeds the output only while the switch is off. During the on-time the output is cut off from the inductor entirely, and the capacitor alone must supply the full load current. The charge it gives up each cycle is the load current times the on-time, far more than a buck's capacitor ever handles, so the voltage ripple is correspondingly larger.
:::
:::

::: practice

::: check
given: V = 2.5 | 12; g = 15 | 36; L = 6.8 | 33; f = 150 | 400
answer: V*(1 - V/g)/(L*1e-6*f*1e3)
unit: A
tolerance: 0.5%

## Buck ripple: {g} → {V} V, {L} µH, {f} kHz?

::: misses
- [any] $V(1 - D)/(Lf_s)$.
:::
:::

::: check
given: I = 1 | 4; D = 0.3 | 0.7; f = 150 | 500; C = 22 | 100
answer: I*D/(f*1e3*C*1e-6)
unit: V
tolerance: 0.5%

## Boost output ripple: {I} A, D = {D}, {f} kHz, {C} µF?

::: misses
- [any] $ID/(f_sC)$.
:::
:::

::: check
given: d = 0.4 | 1.5; f = 250 | 800; C = 4.7 | 22
answer: d/(8*f*1e3*C*1e-6)*1000
unit: mV
tolerance: 0.5%

## Buck output ripple: {d} A p-p, {f} kHz, {C} µF?

::: misses
- [any] $\Delta I/(8f_sC)$.
:::
:::
:::
