Buck Converter Design Calculator (Duty Cycle, Inductor, Output & Input Capacitors, Peak Current)
Size the power stage of a step-down (buck) DC-DC converter: duty cycle from input and output voltage, inductor value for a chosen ripple current, peak and RMS currents, output capacitance and ESR for a target ripple voltage, input capacitor and RMS current, and the switching-frequency trade-offs.
How it works
D = Vout ÷ (Vin × η) · L = (Vin − Vout) × D ÷ (f_sw × ΔI_L), ΔI_L = ripple % × I_out · I_peak = I_out + ΔI_L ÷ 2 · C_out ≥ ΔI_L ÷ (8 × f_sw × ΔV_out); ESR ≤ ΔV_out ÷ ΔI_L · C_in ≥ I_out × D(1 − D) ÷ (f_sw × ΔV_in); I_in,RMS = I_out × √(D(1 − D))
A buck converter chops the input at a duty cycle equal to the voltage ratio and lets an inductor and capacitor average it. The inductor value follows from how much ripple current you accept: more ripple means a smaller inductor but higher peak current and more capacitor work. The output capacitor must both hold the ripple charge and, through its ESR, not turn the ripple current into ripple voltage — with electrolytics the ESR term dominates, with ceramics the capacitance term. The input capacitor sees the chopped current and is chosen for RMS current as much as for ripple. Everything is sized at the maximum input voltage, where ripple is worst.
Worked example
12 V (14 V max) to 5 V at 2 A, 500 kHz, 30% ripple, 90% efficiency: duty cycle 46% (40% at 14 V). The inductor works out to 11.9 µH → 12 µH standard, giving 0.60 A of ripple and a 2.3 A peak (saturation rating ≥ 2.8 A). For 50 mV of output ripple you need ≥ 3 µF of capacitance and ESR under 84 mΩ — a couple of 10 µF ceramics — and about 5 µF at the input carrying 1.0 A RMS.
Frequently asked questions
How much ripple current should I design for?
Around 30% of the output current is the classic compromise. Below 20% the inductor gets large and slow to respond to load steps; above 40% peak currents, core loss and output ripple climb and the converter enters discontinuous mode at higher loads.
Why does the real output ripple exceed the calculation?
ESR and ESL of the output capacitor. Electrolytic ESR of 100–300 mΩ times a 0.6 A ripple current gives 60–180 mV regardless of capacitance; use low-ESR polymer or several ceramics in parallel, and keep the layout loop tight — ringing at the switch node adds spikes that no capacitor formula predicts.
Higher switching frequency is always better?
It shrinks the inductor and capacitors in proportion but raises switching and gate-drive losses, EMI and controller cost. 300 kHz–1 MHz is typical for hobby and general designs; go higher only with fast FETs and careful layout.
Related calculators
Electronics estimates use simplified models and typical component values. Check the datasheet limits (voltage, current, temperature, gate charge, ESR), prototype, and measure — especially for anything connected to mains, batteries or motors.