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)
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
- Duty cycle
D = Vout ÷ Vin = 5 ÷ 12 = 41.7 %Ideal case, ignoring switch and diode drops. - On time each cycle
Ton = D ÷ f = 0.417 ÷ 500 kHz = 833 ns - Inductor ripple current
ΔI = (Vin − Vout) × D ÷ (L × f) = 7 × 0.417 ÷ (2.2 × 10⁻⁵ × 500,000) = 265 mA - Peak inductor current
Ipeak = Iout + ΔI ÷ 2 = 1 + 133 mA = 1.13 A
See it
Inductor current over three cycles
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.
