Buck converter calculator

Enter the input and output voltage, the load current, the switching frequency, the inductor ripple you allow, the expected efficiency and the output capacitance. The calculator gives the duty cycle, the inductance you need, the ripple and peak current of the inductor, the output voltage ripple from the capacitor, the switch on-time and the input power, input current and losses.

V
V
A
kHz
%
%
µF
Inductance9.722 µH
Duty cycle46.3 %
Inductor ripple current ΔI
0.6 A
Peak inductor current
2.3 A
Output voltage ripple (capacitance only)
6.818 mV
Switch on-time
0.9259 µs
Input power
11.111 W
Average input current
0.9259 A
Power lost
1.111 W

Runs in your browser: nothing you enter is sent anywhere.

How to use it

  1. Enter Vin (use the highest input voltage for the inductor), Vout and the load current.
  2. Enter the switching frequency in kHz from your controller’s datasheet.
  3. Choose the ripple current as a percentage of Iout (30 % is a typical choice).
  4. Enter the expected efficiency and the output capacitance.

Formulas

For continuous conduction:

  • Duty cycle D = Vout ÷ (Vin × η)
  • Ripple current ΔI = ripple % × Iout
  • Inductance L = Vout × (Vin − Vout) ÷ (ΔI × f × Vin)
  • Peak current I_peak = Iout + ΔI ÷ 2
  • Output ripple ΔV = ΔI ÷ (8 × f × C)
  • On-time t_on = D ÷ f
  • Input power P_in = Vout × Iout ÷ η, input current P_in ÷ Vin, loss P_in − Vout × Iout

The duty cycle with η follows a common application-note approach; the inductor formula uses the ideal ratio.

Worked example

12 V to 5 V at 2 A, 500 kHz, 30 % ripple, 90 % efficiency, 22 µF:

  • D = 5 ÷ (12 × 0.9) = 46.3 %
  • ΔI = 0.3 × 2 = 0.6 A, peak 2.3 A
  • L = 5 × 7 ÷ (0.6 × 500,000 × 12) = 9.722 µH — choose 10 µH
  • ΔV = 0.6 ÷ (8 × 500,000 × 22 µF) = 6.818 mV
  • t_on = 0.9259 µs; P_in = 11.111 W, input current 0.9259 A, 1.111 W lost as heat

Tips

  • Check the inductor’s saturation current against the peak current, with margin.
  • Light loads leave continuous mode when Iout falls below ΔI ÷ 2; the formulas above then no longer hold.
  • Losses become heat. Use the loss figure with the heatsink calculator to check the switch temperature.

Frequently asked questions

How is the duty cycle of a buck converter calculated?

Ideally D = Vout ÷ Vin. Losses make the controller run a little longer, so D = Vout ÷ (Vin × η). For 12 V to 5 V at 90 % efficiency D = 5 ÷ 10.8 = 46.3 %.

How do I choose the inductor?

L = Vout × (Vin − Vout) ÷ (ΔI × f × Vin). A ripple of 20–40 % of the output current is a common starting point. Pick the next standard value up and make sure its saturation current is above the peak current.

What sets the output ripple?

The capacitance gives ΔV = ΔI ÷ (8 × f × C). The capacitor's ESR adds ΔI × ESR on top, which often dominates with electrolytic capacitors.

Why use the maximum input voltage?

The inductor ripple is largest at the highest input voltage, so designs are usually checked at Vin max. Enter it to size the inductor for the worst case.

More in Unit converters

All tools in this category: Unit converters ·Updated November 4, 2026

Privacy choices

Google Analytics shows us which tools are used and whether they work. It may set cookies. Your choice is kept in this browser.