Tools / Ideal Buck Converter

How to work out a buck converter's duty cycle and ripple

A buck converter chops the input and smooths it with an inductor. The duty cycle sets the output; the inductor sets the ripple.

D = Vout/Vin; ΔIL = (Vin−Vout)·D / (L·f)

Inputs

V
V
A
kHz
µH

Results update as you type. Prefixes work: 4.7k, 100u, 10n.

Result
Duty cycle
41.67 %
Inductor ripple
265.2 mA
Inductor peak
1.133 A
Ripple of load
26.52 %
Inductance for 30 percent ripple
19.44 µH
What this leaves out
  • Ideal continuous-conduction estimate; losses, saturation current and controller limits are not checked.
Step by step

The working with your numbers

  1. Duty cycleD = Vout ÷ Vin = 5 ÷ 12 = 41.7 %Ideal case, ignoring switch and diode drops.
  2. On time each cycleTon = D ÷ f = 0.417 ÷ 500 kHz = 833 ns
  3. Inductor ripple currentΔI = (Vin − Vout) × D ÷ (L × f) = 7 × 0.417 ÷ (2.2 × 10⁻⁵ × 500,000) = 265 mA
  4. Peak inductor currentIpeak = Iout + ΔI ÷ 2 = 1 + 133 mA = 1.13 A
See it

Inductor current over three cycles

0 A500 mA1 A0 s2 µs4 µs6 µsTime
Inductor current against time. It ramps up while the switch is on and down while it is off, swinging 265 mA around 1 A.

Does the answer make sense?

  • OK: Ripple is 26.5 % of the load current, inside the usual 20 to 40 % target or below it.
  • OK: Choose an inductor whose saturation current is above 1.13 A, with some margin.

Common mistakes

  • Choosing an inductor by inductance only. Its saturation current must exceed the peak current.
  • Expecting D to stay exactly Vout ÷ Vin at light load, where many converters skip pulses.
  • Long, looping traces around the switch node, which radiate noise. Keep the input capacitor and switch loop tight.

Learn it, try it, build it

Calculated, not measured. Check the exact part datasheet and your real circuit before powering anything.

Just need the number? Use the ideal buck converter calculator on Geekobot.

Common questions

How do you calculate a buck converter's duty cycle?

Ideally D = Vout ÷ Vin. Stepping 12 V down to 5 V needs about 42 % duty.

How do you choose the inductor for a buck converter?

Pick L so the ripple ΔI = (Vin − Vout) × D ÷ (L × f) is 20 to 40 % of the load current, then make sure the inductor's saturation current is above Iout + ΔI ÷ 2.