---
title: "Inductors at work: the boost converter"
heading: Raising a voltage by storing and releasing energy in an inductor
eyebrow: C2 · Lesson 21 · The boost converter
xp: 40
---

::: hook
A single lithium cell gives about 3.7 V, yet the LEDs behind a phone screen need tens of volts. No transformer is involved: a switch, an inductor, a diode and a capacitor do it, by the inductive kick of lesson 8 put to work. The switch lets current build up in the inductor, then opens, and the inductor pushes its current on into the output at whatever voltage it takes. Repeated half a million times a second, that raises a voltage efficiently. This is the first of the switching converters at the heart of power electronics (S11).
:::

::: play
- The inductor current in a boost converter running steadily: it ramps up while the switch is on (for a fraction $D$ of each period) and down while it's off.
- Raise the duty cycle $D$: the output voltage $V_\text{in}/(1 - D)$ climbs steeply as $D$ approaches 1.
- A larger inductor or a higher frequency shrinks the ripple. Keep the peak current below the inductor's saturation rating (lesson 5).
:::
:::

```sim plot
view: graph
x: t = 0..6 µs
y: i = 0..4 A
slider: Vin = 2..12 step 0.5 = 5 V
slider: D = 0.1..0.9 step 0.01 = 0.58
slider: L = 1..100 = 10 µH log
slider: f = 100..2000 step 50 = 500 kHz
slider: Io = 0.1..1 step 0.05 = 0.5 A
plot: Io/(1 - D) - Vin*D/(f*1000*L*1e-6)/2 + Vin*D/(f*1000*L*1e-6)*((t*f/1000 - floor(t*f/1000))/D*step(D - (t*f/1000 - floor(t*f/1000))) + (1 - (t*f/1000 - floor(t*f/1000) - D)/(1 - D))*step((t*f/1000 - floor(t*f/1000)) - D)) | label: inductor current | samples: 1200
readout: output voltage, V = Vin/(1 - D) | digits: 4
readout: ripple, A = Vin*D/(f*1000*L*1e-6) | digits: 3
readout: peak current, A = Io/(1 - D) + Vin*D/(f*1000*L*1e-6)/2 | digits: 3
```

::: predict
## A boost converter runs from 5 V at 50% duty cycle. What output voltage does it make, ideally?

- [ ] 2.5 V
- [ ] 5 V
- [x] 10 V
- [ ] 7.5 V

::: reveal
10 V. In steady state the inductor's current must return to where it started each period, so the volt-seconds across it balance: $V_\text{in}D = (V_\text{out} - V_\text{in})(1 - D)$, giving $V_\text{out} = \frac{V_\text{in}}{1 - D} = 2V_\text{in}$ at half duty.
:::
:::

::: nameit
## How it works

An inductor from $V_\text{in}$ goes to a switch to ground and, through a diode, to the output capacitor and load.

- **Switch on** (time $DT$): the inductor has $V_\text{in}$ across it, so its current rises at $V_\text{in}/L$, storing energy.
- **Switch off** (time $(1 - D)T$): the current can't stop (lesson 8), so it forces the diode on and flows into the output. Now the inductor has $V_\text{in} - V_\text{out}$ across it, negative, and its current falls.

## Volt-second balance

In steady state the current ends each period where it began, so the average voltage across the inductor is zero:

$$V_\text{in}DT = (V_\text{out} - V_\text{in})(1 - D)T \quad\Rightarrow\quad V_\text{out} = \frac{V_\text{in}}{1 - D}$$

The current ripple is $\Delta I = \frac{V_\text{in}D}{fL}$. With no losses, power in equals power out, so the average inductor (input) current is $I_L = \frac{I_\text{out}}{1 - D}$, and the peak current is $I_L + \frac{\Delta I}{2}$.

## The buck converter

Rearranged, with the switch in series from the input and the diode to ground, the same parts lower a voltage: balance gives $V_\text{out} = DV_\text{in}$. Unlike a resistor divider, an ideal switching converter wastes nothing; real ones reach 85 to 98%.

## Limits

As $D \to 1$ the ideal boost ratio grows without bound, but the switch, diode and inductor resistance limit real converters to a few times the input. The peak current must stay below the inductor's saturation current, or the ripple grows suddenly (lesson 5).
:::

::: example
## A boost converter makes 12 V at 0.5 A from 5 V at 500 kHz with a 10 µH inductor. Find D, the ripple and the peak current.

::: solution
1. **Duty cycle.**
   $$\begin{aligned} D &= 1 - \frac{5}{12} \\ &= 0.583 \end{aligned}$$
2. **Ripple.**
   $$\begin{aligned} \Delta I &= \frac{5 \times 0.583}{5 \times 10^5 \times 10^{-5}}\ \text{A} \\ &= 0.58\ \text{A} \end{aligned}$$
3. **Average inductor current.**
   $$\begin{aligned} I_L &= \frac{0.5}{0.417}\ \text{A} \\ &= 1.2\ \text{A} \end{aligned}$$
4. **Check the power.** Input and output power match:
   $$\begin{aligned} 5\ \text{V} \times 1.2\ \text{A} &= 6\ \text{W} \\ 12\ \text{V} \times 0.5\ \text{A} &= 6\ \text{W} \end{aligned}$$
5. **Peak current.** Add half the ripple to the average:
   $$\begin{aligned} I_\text{peak} &= (1.2 + 0.29)\ \text{A} \\ &= 1.49\ \text{A} \end{aligned}$$

**Answer:** D = 0.583, the ripple is 0.58 A, and the inductor current peaks at 1.49 A.
:::
:::

::: example
## A buck converter makes 3.3 V from 12 V. What duty cycle does it need?

::: solution
1. **The buck's ratio.** The output is the input times the duty cycle:
   $$V_\text{out} = DV_\text{in}$$
2. **Solve for D.**
   $$\begin{aligned} D &= \frac{V_\text{out}}{V_\text{in}} \\ &= \frac{3.3}{12} \\ &= 0.275 \end{aligned}$$

**Answer:** it needs a duty cycle of 0.275.
:::
:::

::: example
## A buck converter makes 3.3 V from 12 V at 1 MHz with a 4.7 µH inductor. What's its duty cycle and inductor ripple current?

::: solution
1. **Duty cycle.** In steady state the inductor's average voltage is zero, so
   $$\begin{aligned} D &= \frac{V_{out}}{V_{in}} \\ &= 0.275 \end{aligned}$$
2. **During the on-time.** The inductor sees 12 − 3.3 = 8.7 V for D/f = 275 ns.
3. **Ripple current.**
   $$\begin{aligned} \Delta I &= \frac{(V_{in} - V_{out})D}{Lf} \\ &= \frac{8.7 \times 0.275}{4.7 \times 10^{-6} \times 10^6}\ \text{A} \\ &= 0.51\ \text{A} \end{aligned}$$
4. **What loads it suits.** Designers usually aim for ripple of 20 to 40% of the load current, so this inductor suits loads of roughly 1.3 to 2.5 A.

**Answer:** the duty cycle is 0.275, and the inductor ripple current is 0.51 A.
:::
:::

::: check
given: Vin = 3.7 | 5 | 12; D = 0.25 | 0.4 | 0.75
answer: Vin/(1 - D)
unit: V
tolerance: 0.5%

## A boost converter runs from {Vin} V at a duty cycle of {D}. What does it output, ideally?

::: right
Right. $V_\text{in}/(1 - D)$ = {answer}.
:::

::: misses
- [Vin/D] The output rises as the *off* fraction $1 - D$ shrinks.
- [Vin*D] That's a buck converter.
- [any] Not yet. Balance the inductor's volt-seconds.
:::
:::

::: check
given: Vin = 3.3 | 5; Vout = 12 | 24 | 48
answer: 1 - Vin/Vout
tolerance: 0.5%

## What duty cycle makes a boost converter turn {Vin} V into {Vout} V?

::: right
Right. $D = 1 - V_\text{in}/V_\text{out}$ = {answer}.
:::

::: misses
- [Vin/Vout] That's the off fraction $1 - D$.
- [any] Not yet. Solve $V_\text{out} = V_\text{in}/(1 - D)$ for D.
:::
:::

::: check
given: Vin = 5 | 12; D = 0.3 | 0.6; f = 100 | 1000; L = 4.7 | 22
answer: Vin*D/(f*1000*L*1e-6)
unit: A
tolerance: 0.5%

## A boost converter from {Vin} V runs at D = {D} and {f} kHz with a {L} µH inductor. What is the inductor's current ripple?

::: right
Right. $\frac{V_\text{in}D}{fL}$ = {answer}.
:::

::: misses
- [Vin*(1 - D)/(f*1000*L*1e-6)] The ramp up lasts $DT$ with $V_\text{in}$ across the inductor.
- [any] Not yet. $\Delta I = V_\text{in}DT/L$.
:::
:::

::: check
given: Io = 0.2 | 1 | 2; D = 0.4 | 0.7
answer: Io/(1 - D)
unit: A
tolerance: 0.5%

## An ideal boost converter at D = {D} delivers {Io} A. What is its average input current?

::: right
Right. $I_\text{out}/(1 - D)$ = {answer}: power in equals power out.
:::

::: misses
- [Io*(1 - D)] The input current is *larger* than the output current, since the voltage is lower.
- [any] Not yet. $V_\text{in}I_\text{in} = V_\text{out}I_\text{out}$.
:::
:::

::: check
given: Vin = 5 | 12 | 24; D = 0.2 | 0.42 | 0.66
answer: D*Vin
unit: V
tolerance: 0.5%

## A buck converter runs from {Vin} V at D = {D}. What does it output?

::: right
Right. $DV_\text{in}$ = {answer}.
:::

::: misses
- [Vin/(1 - D)] That's a boost converter.
- [any] Not yet. Balance the volt-seconds: $(V_\text{in} - V_\text{out})D = V_\text{out}(1 - D)$.
:::
:::

::: check
given: Io = 0.5 | 1; D = 0.5 | 0.6; dI = 0.4 | 1
answer: Io/(1 - D) + dI/2
unit: A
tolerance: 0.5%

## A boost converter at D = {D} delivers {Io} A with {dI} A of inductor ripple. What is the inductor's peak current?

::: right
Right. $I_L + \Delta I/2$ = {answer}.
:::

::: misses
- [Io/(1 - D) + dI] The peak is half the ripple above the average.
- [any] Not yet. Average inductor current plus half the ripple.
:::
:::

::: check
kind: parts
given: v = 5 | 12 | 24; o = 1.8 | 3.3; L = 2.2 | 10; f = 0.5 | 2

## A buck converter makes {o} V from {v} V at {f} MHz with {L} µH.

::: part
answer: o/v
tolerance: 0.5%

### What duty cycle does it need?

::: misses
- [any] $D = \frac{V_{out}}{V_{in}}$.
:::
:::

::: part
answer: (v - o)*(o/v)/(L*f)
unit: A
tolerance: 0.5%

### What's its peak-to-peak inductor ripple?

::: misses
- [any] $\frac{(V_{in} - V_{out})D}{Lf}$.
:::
:::
:::

::: check
kind: derivation
vars: a = 5..48, b = 1..4, L = 0.000001..0.0001, f = 100000..5000000

## A buck converter takes a (V) down to b, with inductor L at frequency f.

::: step
answer: b/a

### What's its duty cycle?
:::

::: step
answer: (a - b)*b/(a*L*f)

### What's its ripple current?
:::

::: right
Right. The ripple is largest when the output is half the input.
:::
:::

::: explain
## How can a circuit with no transformer make an output voltage higher than its input?

::: model
While the switch is on, the inductor sits across the input and its current builds up, storing energy in its magnetic field. When the switch opens, that current can't stop instantly, so the inductor's voltage reverses and rises until the current finds a path, through the diode into the output capacitor. The inductor's voltage then adds to the input, delivering current at a voltage above the input. In steady state the output settles where the energy stored each cycle balances what the load takes, at $V_\text{in}/(1 - D)$.
:::
:::

::: practice

::: check
given: Vin = 5 | 12; Vout = 1.8 | 3.3
answer: Vout/Vin
tolerance: 0.5%

## What duty cycle does a buck converter need to make {Vout} V from {Vin} V?

::: misses
- [any] $D = V_\text{out}/V_\text{in}$.
:::
:::

::: check
given: f = 100 | 500 | 2000
answer: 1000/f
unit: µs
tolerance: 0.5%

## What is the switching period at {f} kHz?

::: misses
- [any] $1/f$.
:::
:::

::: check
given: Vout = 12 | 24; Io = 0.5 | 2; Vin = 5 | 9
answer: Vout*Io/Vin
unit: A
tolerance: 0.5%

## An ideal converter delivers {Io} A at {Vout} V from {Vin} V. What does it draw from the input?

::: misses
- [any] Power in equals power out.
:::
:::
:::
