Buck Converter Calculator

Electronics

Inductance10.80 uH
Duty cycle41.67 %
Inductor ripple current0.90 A
Output capacitance for the ripple target7.50 uF
How this was calculated
  1. A buck converter steps voltage down with a switch, an inductor and a capacitor: the duty cycle sets the conversion and the inductor sets the current ripple.
  2. Find the duty cycle: D = Vout / Vin = 5.00 / 12.00 = 41.67 %.
  3. Size the inductor for a ripple current of 0.90 A (30 % of the 3.00 A load): L = (Vin - Vout) x D / (ripple x frequency).
  4. The inductor value is 10.80 uH; the output capacitor that holds ripple to 50 mV is 7.50 uF.

Every modern circuit board is full of buck converters quietly stepping a battery or bus voltage down to the 5 V, 3.3 V or 1.2 V a chip actually wants. Designing one starts with three numbers: the duty cycle that sets the conversion, the inductor that keeps the current flowing smoothly, and the output capacitor that holds the voltage steady between switching pulses. This buck converter calculator works all three out from your input and output voltages, load current, switching frequency and the ripple you are willing to accept.

The duty cycle is the easy part. In an ideal buck converter the output voltage is the input voltage multiplied by the fraction of each cycle the switch is on, so D = Vout / Vin. Converting 12 V to 5 V needs a duty cycle of about 41.7 percent. Real converters need slightly more to cover diode drops and resistive losses, but the ideal figure is the right starting point and the one every datasheet design procedure begins with.

The inductor and capacitor are where judgement enters. The inductor current ramps up while the switch is on and down while it is off, forming a triangle wave whose height, the ripple current, is set by the inductance. Too little inductance and the ripple is huge, stressing every component and possibly dropping the converter out of continuous conduction at light load. Too much and the converter is bulky, expensive and slow to respond to load changes. The industry compromise is a ripple current of 20 to 40 percent of the full load current, and that is the target this calculator designs to.

The output capacitor then has to absorb that triangular ripple current while letting the voltage move by no more than your ripple budget. Its ideal capacitance follows C = deltaIL / (8 x f x deltaV), with the factor of eight coming from the geometry of the triangle wave. In practice the capacitor's equivalent series resistance often dominates the actual ripple, which the page discusses, but the ideal capacitance is the floor below which no capacitor choice will meet the target. Enter your voltages, load, frequency and ripple targets, and the calculator returns the duty cycle, the inductance and the capacitance in one pass.

Worked examples

12 V to 5 V at 300 kHz

(12 V · 5 V · 3 A · 300 kHz · 30 % · 50 mV)

Inductance10.80 uH
Duty cycle41.67 %
Inductor ripple current0.90 A
Output capacitance for the ripple target7.50 uF

24 V to 3.3 V at 500 kHz

(24 V · 3.3 V · 5 A · 500 kHz · 40 % · 30 mV)

Inductance2.85 uH
Duty cycle13.75 %
Inductor ripple current2.00 A
Output capacitance for the ripple target16.67 uF

5 V to 1.2 V at 1 MHz

(5 V · 1.2 V · 10 A · 1000 kHz · 30 % · 20 mV)

Inductance0.30 uH
Duty cycle24.00 %
Inductor ripple current3.00 A
Output capacitance for the ripple target18.75 uF

How a buck converter works

A buck converter chops the input voltage with a switch, usually a MOSFET, and averages the chopped waveform with an LC filter. While the switch is on, the input feeds both the load and the inductor, whose current ramps up as it stores energy. When the switch turns off, the inductor keeps its current flowing through a diode or a second, synchronous MOSFET, and the current ramps down. The output capacitor smooths what remains into a nearly steady DC voltage.

Because the inductor current never stops in normal operation, the average voltage at the switch node is D x Vin, and the filter passes that average to the output. That single fact produces the duty cycle formula and also the inductor ripple formula: during the on-time the inductor sees (Vin - Vout) volts, so its current rises at (Vin - Vout) / L amps per second for D / f seconds.

Sizing the inductor

Rearranging the ripple relationship gives L = (Vin - Vout) x D / (deltaIL x f). Choose the ripple current first, as a percentage of load: 30 percent is a sound default, 20 percent suits noise-sensitive or high-current designs, and 40 percent suits compact, cost-driven ones. For the worked example, 12 V in, 5 V out at 3 A and 300 kHz with 30 percent ripple, the duty cycle is 41.67 percent, the ripple current 0.90 A, and the inductance 10.80 uH, so a standard 10 uH or 12 uH part with a saturation rating comfortably above 3.45 A is the natural pick.

Two ratings matter as much as the value. The inductor must not saturate at the peak current, which is the load current plus half the ripple, and its winding resistance adds loss and heat. At high step-down ratios the duty cycle shrinks and the same ripple target needs a much smaller inductor: converting 24 V to 3.3 V at 5 A and 500 kHz with 40 percent ripple needs only 2.85 uH, because the inductor spends most of each cycle discharging.

ConversionDuty cycleRipple currentInductorCapacitor
12 V to 5 V, 3 A, 300 kHz41.67 %0.90 A10.80 uH7.50 uF
24 V to 3.3 V, 5 A, 500 kHz13.75 %2.00 A2.85 uH16.67 uF
5 V to 1.2 V, 10 A, 1 MHz24.00 %3.00 A0.30 uH18.75 uF

Sizing the output capacitor

The output capacitor supplies the difference between the triangular inductor current and the steady load current. Integrating that triangle over a cycle gives the charge the capacitor must absorb, and dividing by the allowed voltage swing gives C = deltaIL / (8 x f x deltaV). For the 12 V to 5 V example, holding ripple to 50 mV needs 7.50 uF of ideal capacitance; the 5 V to 1.2 V processor rail, with 3 A of ripple at 1 MHz and a tight 20 mV budget, needs 18.75 uF.

Ideal capacitance is only half the story. A real capacitor's equivalent series resistance produces its own ripple voltage, deltaIL x ESR, which adds directly to the capacitive ripple and often exceeds it in electrolytic parts. That is why practical designs parallel several ceramic capacitors, whose ESR is milliohms, and why datasheets specify ripple in terms of capacitor RMS current and ESR as well as microfarads. Treat the calculator's value as the minimum ideal capacitance, then choose parts whose ESR keeps the resistive share inside the same budget.

Continuous and discontinuous conduction

The formulas on this page assume continuous conduction mode, where the inductor current never reaches zero. That holds while the load current is greater than half the ripple current. Below that boundary the converter enters discontinuous conduction, the conversion ratio changes, and the design equations no longer apply directly. With a 30 percent ripple target, continuous conduction holds down to 15 percent of full load, which covers most operating ranges.

If your load spends its life at a few percent of full output, as in a sleeping microcontroller rail, either design for a smaller ripple percentage so the boundary sits below the sleep current, or choose a controller with a pulse-skipping or forced-continuous mode and accept its trade-offs. The ripple percentage field is where that decision is made: lower it and both L and C grow, but the continuous range extends downward in proportion.

Peak inductor current = load current + ripple / 2. Rate saturation current above that peak with margin, or the inductance collapses exactly when the load steps up.

What frequency to choose

Switching frequency scales everything. Doubling the frequency halves both the required inductance and capacitance, shrinking the converter, but doubles the switching losses in the MOSFETs and increases gate-drive and core losses. The examples span the usual range: 300 kHz for a general-purpose 3 A converter, 500 kHz for a compact 5 A design, and 1 MHz for a 10 A processor rail where space is precious and the input voltage is low enough to keep switching losses manageable.

Frequency also interacts with the control loop and with EMI. Higher frequencies push the switching noise above the AM band and ease filtering, but demand faster, more careful layout. The calculator is frequency-agnostic: enter the frequency your controller and loss budget dictate, and it sizes the magnetics and capacitance to match.

How to use this calculator

Enter the input and output voltages, the full load current and the switching frequency. Set the inductor ripple as a percentage of load, 30 percent if you have no reason to choose otherwise, and the output voltage ripple you can tolerate in millivolts. The primary result is the inductance; the duty cycle, ripple current and output capacitance appear below it. Round the inductance up to the nearest standard value you can buy, then re-check the peak current against that part's saturation rating.

  • Start with 30 % ripple current unless noise or light-load operation argues otherwise
  • Round L up to a standard value; round C up generously, ceramics lose capacitance under DC bias
  • Check saturation current against load + ripple/2, and capacitor ESR against the ripple budget
  • At high step-down ratios watch the minimum on-time of your controller at the chosen frequency

Losses and the limits of the ideal formulas

The ideal duty cycle ignores the voltage drops in the switch, the rectifier and the inductor's winding resistance, which is why a real 12 V to 5 V converter runs a duty cycle a percent or two above the ideal 41.67 percent. Controllers close the loop and find that duty cycle themselves, so the ideal figure is a design estimate, not a setting. Efficiency is likewise outside these formulas: it depends on conduction and switching losses that need the actual component data.

What the ideal calculation does guarantee is the reactive design: the ripple current, the inductance that produces it, and the capacitance that absorbs it are set by physics the controller cannot negotiate with. Get those right and the remaining work, compensation, layout and thermal design, starts from a sound power stage.

FAQs

What inductor do I need for a 12 V to 5 V buck at 300 kHz?

With a 3 A load and 30 % ripple current, the duty cycle is 41.67 % and the inductance works out to 10.80 uH; a standard 10 or 12 uH part rated above about 3.5 A saturation is the natural choice.

How much output capacitance keeps ripple under 50 mV?

For the 12 V to 5 V example, 7.50 uF of ideal capacitance. In practice, choose more and mind the ESR: the resistive ripple, ripple current times ESR, adds to the capacitive ripple.

Why set the ripple current to 30 or 40 percent of load?

It is the standard compromise between magnetics size and stress: lower ripple needs a bigger inductor, higher ripple raises peak currents, capacitor RMS current and output noise. The range 20 to 40 percent covers nearly all published designs.

What duty cycle runs a 24 V to 3.3 V converter?

13.75 % ideally. The inductor for 5 A at 500 kHz with 40 % ripple is 2.85 uH, and the output capacitor for a 30 mV target is 16.67 uF.

Can I fit a bigger inductor than the calculator gives?

Yes. A larger inductor reduces the ripple current below the 0.90 A design value of the first example, which lowers capacitor stress and extends continuous conduction to lighter loads, at the cost of size, price and slower load transient response.

What capacitor does a 5 V to 1.2 V rail need?

At 1 MHz with a 20 mV ripple target, 18.75 uF of ideal capacitance, with 3.00 A of ripple current at a 24.00 % duty cycle. Processor rails add bulk capacitance on top for load transients.

Sources

Related calculators

Voltage Divider Calculator
Output voltage of a two-resistor voltage divider, the current through it, power in each resistor, and the output impedance your load will see.
RC Time Constant Calculator
τ = R × C for a resistor–capacitor circuit — plus the voltage after one τ, the time to 99% charge and the stored energy.
555 Timer Calculator (Astable)
Frequency, period, high and low times and duty cycle for the classic 555 astable oscillator — f = 1.44 / ((R1 + 2R2) C).