December 5, 2026

How a Boost Converter Works: The Equations, a SPICE Simulation and the 9-Volt Surprise at Startup

A small boost converter module wired to a lithium cell on a workbench

A boost converter takes 3.7 volts from a lithium cell and hands a USB device 5. It does that with one inductor, one switch, one diode and one capacitor, switching hundreds of thousands of times a second. The circuit is simple enough to simulate in a few lines of SPICE, and running it without a feedback loop shows both why the design equations work and why no real boost converter is built without feedback: at startup, the simulated 5-volt supply shot to 9.2 volts before settling, and with a light load it settled at 8.5.

Video: Simply Electronics on YouTube

The idea in four parts

Storing energy, then releasing it

When the switch closes, current from the input flows through the inductor to ground, and the inductor stores energy in its magnetic field. When the switch opens, the inductor resists the change in current, and its voltage adds to the input voltage. That combined voltage pushes current through the diode into the output capacitor. The diode stops the capacitor from draining back when the switch closes again.

The duty cycle sets the ratio

The fraction of each cycle the switch spends closed is the duty cycle, D. In an ideal, lossless converter running continuously, the output is the input divided by (1 − D). A duty cycle of 0.26 turns 3.7 volts into 5. Real parts lose some energy, so the switch has to stay on a little longer.

Macro photography of black circuit board

The design equations

From Texas Instruments

TI’s application report Basic Calculation of a Boost Converter’s Power Stage (SLVA372D, revised November 2022) gives the working set:

Quantity Equation
Duty cycle D = 1 − (V_IN(min) × η) / V_OUT
Inductor ripple current ΔI_L = (V_IN(min) × D) / (f_S × L)
Peak switch current I_SW(max) = I_OUT(max) / (1 − D) + ΔI_L / 2
Ripple estimate for choosing L ΔI_L = (0.2 to 0.4) × I_OUT(max) × (V_OUT / V_IN)
Minimum output capacitance C_OUT(min) = (I_OUT(max) × D) / (f_S × ΔV_OUT)

Here η is the efficiency estimate, f_S the switching frequency and L the inductance.

Worked example

For 3.7 V in, 5 V out at 0.5 A, an assumed efficiency of 85 percent, a 500 kHz switching frequency and a 4.7 µH inductor:

Result Value
Duty cycle 0.371
Inductor ripple current 0.584 A peak to peak
Peak switch current 1.09 A
Ripple range the TI rule suggests 0.135 to 0.27 A
Output capacitance for 50 mV ripple 7.4 µF minimum

The 4.7 µH inductor gives more ripple than TI’s 20 to 40 percent guideline, which would point to a larger inductor, around 10 to 20 µH at this frequency. It still works, at the cost of higher peak currents in the switch and diode.

The simulation

The circuit in SPICE

The open-source circuit simulator ngspice ran the example above with an idealized switch (0.05 Ω on), a Schottky-style diode model, a 22 µF output capacitor and a 10 Ω load, which draws about 0.5 A at 5 V:

Vin in 0 3.7
L1 in sw 4.7u
S1 sw 0 g 0 SW1
.model SW1 SW(Ron=0.05 Roff=1e6 Vt=0.5 Vh=0.1)
Vg g 0 PULSE(0 1 0 5n 5n {0.371*2u-10n} 2u)
D1 sw out DS
.model DS D(Is=2e-5 N=1.05 Rs=0.05 Cjo=100p)
C1 out 0 22u
Rl out 0 10
.tran 10n 2m 0 10n uic

The switch is driven at a fixed duty cycle of 0.371 with no feedback, the way the equations assume.

Steady state

Measured over the last 0.2 ms of a 2 ms run:

Measurement Result
Average output voltage 5.50 V
Output ripple 5.487 to 5.507 V, about 20 mV
Inductor current 0.583 to 1.160 A, a ripple of 0.577 A
Average input current 0.871 A
Efficiency about 94 percent

The inductor ripple, 0.577 A, matches the equation’s 0.584 A. The output came out at 5.5 V instead of 5 because the simulated parts lose less than the 15 percent the duty-cycle equation assumed. Dropping the duty cycle to 0.30 brought the output to 4.93 V at about 94 percent efficiency, with the inductor current running from 0.47 to 0.94 A.

Abstract grayscale waveform with dark background

The startup surprise

Overshoot

During the first 50 microseconds, before the output capacitor had charged, the simulated output peaked at 9.15 V, more than 80 percent above its eventual value. The inductor and output capacitor form a resonant circuit, and with nothing adjusting the duty cycle, the first surge of energy rings far past the target before damping out.

Light loads

Changing the load from 10 Ω to 100 Ω, about a tenth of the current, while keeping the duty cycle at 0.371, sent the output to 8.45 V. The inductor current dropped to zero during part of each cycle, a mode called discontinuous conduction, and in that mode the output depends on the load as well as the duty cycle. The simple 1/(1 − D) relationship only holds while the inductor current stays above zero.

Why real converters have feedback

Both results are why every practical boost controller measures its output and adjusts the duty cycle continuously, and why most include a soft-start that ramps the duty cycle up gradually. A 9-volt spike into a USB device rated for 5 can damage it. The open-loop simulation isn’t a design to copy. It’s a demonstration of the problem that the controller chip solves.

Changing the parts

A bigger inductor

The same simulation was run again at a duty cycle of 0.30, first with the original 4.7 µH inductor and then with 15 µH, inside the range the TI ripple guideline points to:

Inductor Inductor current range Ripple Peak current Average output
4.7 µH 0.469 to 0.937 A 0.468 A 0.937 A 4.93 V
15 µH 0.629 to 0.775 A 0.147 A 0.775 A 4.93 V

The average output didn’t change, because the duty cycle sets it. What changed was how hard the current swings: the larger inductor cut the ripple by about two-thirds and the peak current through the switch and diode by about 17 percent. Lower peaks mean less heating in the switch and diode and less stress on the input source, which matters when that source is a small battery.

A bigger output capacitor

Raising the output capacitor from 22 µF to 100 µF, with the 4.7 µH inductor, narrowed the output to 4.931 to 4.935 V over the measurement window, a ripple under 4 mV. It did not fix startup. The open-loop output still overshot to 7.6 V in the first 100 microseconds, lower than the 8.3 V peak with 22 µF but still far above the 5-volt target. Larger parts trade size and cost for smoother operation. They don’t replace a control loop.

What the simulation can’t show

The model uses idealized parts. A real inductor has winding resistance and a saturation current above which its inductance collapses; a real switch takes time to turn on and off and loses energy each time; a real capacitor has internal resistance that adds to the ripple. Those losses are why the TI equations ask for an efficiency estimate, and why real converters run a few points below the 94 percent the simulation reported.

Electronic circuit boards near tester

Choosing parts

What the equations tell a builder

  • The switch and diode must handle the peak current, not the average. In the worked example, the load draws 0.5 A while the switch sees about 1.1 A at its peak.
  • The input draws more current than the output delivers. At 94 percent efficiency, 2.75 W out needs about 2.9 W in; at 3.7 V that’s roughly 0.8 A from the cell.
  • Lower input voltage raises everything. As a lithium cell discharges toward 3 V, the duty cycle and input current both rise for the same output.
  • A larger inductor lowers ripple and peak currents, but it’s physically bigger and adds resistance.
  • More output capacitance, or capacitors with lower internal resistance, lowers output ripple.

Off-the-shelf modules

Small boost modules built around controller chips such as the MT3608 handle the feedback, soft-start and switching internally, with a trimmer potentiometer to set the output voltage. The listing below quotes an input of 2 to 24 V and output of 5 to 28 V. Before connecting a load, set the output with a multimeter, since the trimmer’s position from the factory is unknown.

As an Amazon Associate I earn from qualifying purchases. A commission may be earned if you buy through this link, at no extra cost to you.

Sources

  • Texas Instruments, “Basic Calculation of a Boost Converter’s Power Stage,” SLVA372D (revised November 2022): https://www.ti.com/lit/an/slva372d/slva372d.pdf

920 Posts

Peter Kalafatis writes and edits X9M8. He holds a bachelor's degree from LIU Post and a master's in Media Studies from The New School, with academic work in the philosophy of science, human behavior, AI, and memetics.

View All Posts

Leave a Reply

Your email address will not be published. Required fields are marked *