Skip to content
Tool · Electronics

Buck converter calculator

Type the input and output voltages, the load current and the switching frequency. The calculator gives the duty cycle, picks an inductor for the ripple you choose (or checks yours), works out the peak current, and sizes the output capacitor including its ESR.

V
V
A
kHz
%
% of I
mV
mΩ
A
Inductor10 µH
Duty cycle
Peak current
Output capacitor
Working

Equations from TI SLVA477C, Basic Calculation of a Buck Converter's Power Stage: D = Vout/(Vin·η), L = Vout(Vin − Vout)/(ΔI·f·Vin) with ΔI 20 to 40 % of Iout, C ≥ ΔI/(8·f·ΔV) plus the ESR × ΔI term. LM2596 presets use its datasheet (SNVS124G): 150 kHz, 3.6 A minimum current limit, 80 % efficiency at 12 V in, 33 µH, 0.1 Ω capacitor ESR. Other presets assume 500 kHz, 90 % efficiency and ceramic capacitors with ESR neglected; type your own parts' values.

The duty cycle sets the voltage

The switch is on for a fraction D of each cycle. Losses mean it has to stay on a little longer than the ideal ratio.

D = Vout/(Vin η)

The inductor sets the ripple

Pick a ripple of 20 to 40 % of the load current and solve for the inductance.

L = Vout(Vin − Vout)/(ΔI f Vin)

The capacitor and its ESR set the output ripple

The ripple current charges the capacitor and also flows through its series resistance.

ΔV = ΔI/(8f C) + ESR·ΔI

How do you calculate a buck converter?

Start with the duty cycle D = Vout ÷ (Vin × η), pick the inductor ripple (TI suggests 20 to 40 % of the load current), and the inductor is L = Vout(Vin − Vout) ÷ (ΔI × f × Vin). For 12 V to 5 V at 2 A and 500 kHz with 30 % ripple that is 9.72 µH, so a 10 µH part, with a peak current of 2.32 A.

For how the circuit works, read how a buck converter works. For choosing the inductor in detail, read how to choose the inductor for a buck converter.

The equations (TI SLVA477C)

  • Duty cycle: D = Vout ÷ (Vin(max) × η), with η "e.g., estimated 90%".
  • Inductor: L = Vout × (Vin − Vout) ÷ (ΔIL × fS × Vin), with ΔIL = 0.2 to 0.4 × Iout(max).
  • Ripple and peak: ΔIL = (Vin − Vout) × D ÷ (fS × L); peak switch current = Iout + ΔIL ÷ 2.
  • Output capacitor: C ≥ ΔIL ÷ (8 × fS × ΔVout), and the ESR adds ESR × ΔIL of ripple.

Seven buck designs

Each loads the schematic and the scope traces for the inductor current and the switch node.

12 V to 5 V at 2 A, 500 kHz

10 µH

D = 5 ÷ (12 × 0.9) = 0.463. With 30 % ripple, L = 5 × 7 ÷ (0.6 × 500 000 × 12) = 9.72 µH; 10 µH gives 648 mA of ripple and a 2.32 A peak.

For 50 mV of ripple the capacitance must be at least 3.24 µF, if the ESR is negligible.

L 10 µH Peak 2.32 A

The same at 20 % ripple

15 µH

Less ripple needs more inductance: 15 µH instead of 10 µH, for 432 mA of ripple and a 2.22 A peak.

Ripple 432 mA

A 100 mΩ capacitor

ESR too high

With 100 mΩ of ESR the ripple current alone makes 65 mV, more than the 50 mV target. No amount of capacitance helps; the ESR must be under 77 mΩ.

ESR limit 77 mΩ

24 V to 12 V at 2 A

22 µH

D = 0.556. L works out at 20 µH, so 22 µH, with 606 mA of ripple and a 2.3 A peak.

D 55.6 %

5 V to 3.3 V at 1 A

6.8 µH

A high duty cycle, 73 %. L = 7.48 µH, nearest 6.8 µH, ripple 367 mA.

D 73 %

LM2596, 12 V to 5 V at 3 A

3.37 A peak

The datasheet picks 33 µH for this case. At 150 kHz and the datasheet's 80 % efficiency, ΔI = 737 mA and the peak is 3.37 A. The 3.6 A minimum current limit leaves 3.23 A for the load, just enough.

The 0.1 Ω capacitor ESR alone makes 74 mV, within a 100 mV (2 %) target.

Max out 3.23 A

LM2596 at 0.3 A

discontinuous

Below half the ripple, 368 mA, the inductor current reaches zero each cycle and the converter goes discontinuous. The LM2596 datasheet puts this point at 0.31 A for its 2.5 A example.

Boundary 368 mA

Inductor for 30 % ripple, 12 V to 5 V at 2 A

FrequencyCalculated LNearest E6Ripple
150 kHz32.4 µH33 µH655 mA
300 kHz16.2 µH15 µH720 mA
500 kHz9.72 µH10 µH648 mA
1 MHz4.86 µH4.7 µH690 mA
2 MHz2.43 µH2.2 µH737 mA

Ripple uses the duty cycle with 90 % efficiency, as in TI SLVA477C.

How the calculator works

Design mode solves SLVA477C equation 5 for L at your ripple ratio and rounds to the nearest E6 value. Check mode takes your inductor.

Ripple uses equation 2 with the duty cycle from equation 1; peak current is the load plus half the ripple. With a switch current limit, the most the converter can deliver is the limit minus half the ripple.

The capacitor solves ΔV = ΔI ÷ (8 f C) + ESR × ΔI for C. If the ESR term alone exceeds the target, no capacitance is enough.

What the model leaves out

  • Discontinuous mode. Below half the ripple current the formulas change; the calculator flags it.
  • Inductor saturation and losses. Check the inductor datasheet for saturation current and winding resistance.
  • Loop compensation and load steps. Internally compensated parts such as the LM2596 want the inductor and capacitor ranges in their datasheet.

Common misconceptions

"A bigger inductor is always better." It lowers ripple but is larger, costs more and slows the response to load steps.

"Capacitance sets the ripple." With electrolytic capacitors the ESR term usually dominates.

"Peak current equals load current." The inductor and switch see the load plus half the ripple.

Frequently asked questions

What is the duty cycle of a buck converter?

D = Vout ÷ (Vin × η). TI includes the efficiency η because the converter must also supply its own losses; 90 % is a common estimate.

How do I choose the inductor value for a buck converter?

L = Vout(Vin − Vout) ÷ (ΔI × f × Vin), with ΔI 20 to 40 % of the load current. For 12 V to 5 V at 2 A and 150 kHz with 30 % ripple that is 32.4 µH, close to the 33 µH the LM2596 datasheet uses.

What is the peak inductor current?

The load current plus half the peak-to-peak ripple. The inductor must be rated above it without saturating.

How do I size the output capacitor?

C ≥ ΔI ÷ (8 × f × ΔV) for the capacitance, but the ESR adds ESR × ΔI. With electrolytics the ESR term is usually the larger.

What happens at light load?

When the load falls below half the ripple current, the inductor current reaches zero each cycle and the converter runs discontinuous. For the LM2596 at 33 µH that is about 368 mA.

Keep learning

More simulations

More electronics and batteries tools

See all science tools