Buck and boost converter calculator

Design the power stage of a buck, boost or inverting buck-boost converter: duty cycle, inductance for your ripple, critical inductance (where it drops into DCM), output capacitance, peak currents and switch stresses, with the inductor current drawn over two periods. Free, no sign-up, runs in your browser.

Ideal power stage · CCM and DCM · formulas checked against a circuit simulation · Updated 16 Nov 2026

Ideal components. For a buck converter use the highest input voltage (largest ripple); for a boost, check the lowest input too (highest current).

Duty cycle D0.250CCM, ideal
Inductance needed30.0 µHfor 30% ripple
051005101520time (µs)inductor current (A)CCM · shaded: switch on (D = 0.250)

    How do you design a buck converter?

    Start from the duty cycle, D = Vo/Vin. Choose the inductor ripple (20% to 40% of the load current is the usual compromise), which fixes the inductance. Then choose the output capacitor for the voltage ripple you can accept, and check the peak current, the critical inductance and the switch ratings. Five formulas, all for continuous conduction:

    Here r is the ripple ratio ΔIL/Io. A bigger inductor means less ripple and a smaller capacitor, but a larger, slower, costlier part; a smaller one responds faster to load steps but raises the peak current and the losses. The peak inductor current, Io + ΔIL/2, sets the inductor's saturation rating and the switch current.

    Worked example 1: a 48 V to 12 V, 10 A buck converter

    The kind of DC-DC converter that feeds 12 V loads from a 48 V battery, as in 48 V mild-hybrid vehicles. Switching at 100 kHz, 30% inductor ripple, 50 mV output ripple allowed:

    So a 30.0 µH inductor rated above the 11.5 A peak (with margin), and at least 75.0 µF of low-ESR capacitance. ESR adds ESR × ΔIL on top: just 10 mΩ adds 30 mV to the 50 mV, which is why buck outputs use low-ESR ceramic or polymer capacitors. The switch and diode must block 48 V; the diode carries 7.5 A on average and the switch 2.5 A.

    051005101520time (µs)inductor current (A)CCM · shaded: switch on (D = 0.250)
    Inductor current with L = 30.0 µH: a triangle from 8.5 A to 11.5 A around the 10 A load. Shaded: switch on, 25% of each 10 µs period.

    We simulated this circuit with ideal parts: output 12.000 V, inductor ripple 3.002 A, output ripple 50.0 mV, against 3.000 A and 50 mV by formula.

    What is the critical inductance of a buck converter?

    The critical inductance is the smallest L that keeps the inductor current above zero for the whole period. At that point the ripple is exactly twice the load current, so the valley touches zero. Below it the converter enters discontinuous conduction (DCM), and the output voltage no longer depends on D alone.

    Read it the other way round: with the 30.0 µH inductor, the example stays in CCM down to a load of ΔIL/2 = 1.5 A. At lighter loads it goes into DCM, which is normal and harmless if the controller handles it; many controllers deliberately skip pulses at light load. In the simulation, L = 1.1 × Lcrit never let the current reach zero, and 0.9 × Lcrit did, for all three topologies.

    010203005101520time (µs)inductor current (A)DCM · shaded: switch on (D = 0.177)
    Same converter with L = 2.25 µH (half of Lcrit): the current falls to zero each period, and the controller needs D = 0.177 instead of 0.250 to hold 12 V. Simulated output with that D: 12.01 V.

    In DCM the duty cycle a regulated converter needs depends on the load through K (M = Vo/Vin):

    How do you design a boost converter?

    A boost converter steps the voltage up: the switch stores energy in the inductor, then the inductor's voltage adds to the input to charge the output. Its input current is the inductor current, larger than the load current by 1/(1 − D), and the output gets current only while the switch is off. That makes the capacitor work harder than in a buck.

    Worked example 2: 12 V to 48 V at 2 A

    100 kHz, 30% ripple on the inductor current, 500 mV output ripple:

    The inductor carries 8.0 A, four times the load current, and peaks at 9.20 A. The switch and diode see 48 V. With 10 mΩ ESR the output ripple grows by 92 mV (ESR × the 9.20 A diode current step). Simulated: 47.99 V out, 2.400 A inductor ripple, 500 mV output ripple. Lcrit = 5.63 µH.

    Buck, boost and buck-boost formulas compared

    All three in continuous conduction, ideal components, R = Vo/Io. For the inverting buck-boost, Vo is the size of the (negative) output voltage. Worked check: 12 V to −15 V at 1 A and 200 kHz needs D = 0.556, L = 49.4 µH and C = 27.8 µF; the simulation gives 15.00 V.

    BuckBoostBuck-boost
    Duty cycle DVo / Vin1 − Vin / VoVo / (Vin + Vo)
    Average inductor currentIoIo / (1 − D)Io / (1 − D)
    Inductor ripple ΔIL(Vin − Vo) D / (fs L)Vin D / (fs L)Vin D / (fs L)
    Critical inductance(1 − D) R / (2 fs)D (1 − D)² R / (2 fs)(1 − D)² R / (2 fs)
    Output capacitor CΔIL / (8 fs ΔVo)Io D / (fs ΔVo)Io D / (fs ΔVo)
    Switch and diode voltageVinVoVin + Vo
    Average diode current(1 − D) IoIoIo

    Which to use: a buck when the output is always below the input, a boost when it is always above, and a buck-boost (or a SEPIC, or a Ćuk converter, which also inverts but has continuous input and output currents) when the input can swing either side of the output, such as a battery that runs from full to empty.

    What this calculator does not cover

    • Losses. Switch, diode, inductor and capacitor losses mean a real converter needs a slightly larger D (for a buck, roughly Vo/(Vin × efficiency)) and runs hotter at high current.
    • Inductor saturation and core loss. Choose an inductor whose saturation current is above the peak current with margin, and check its loss at your frequency and ripple.
    • Capacitor derating. Ceramic capacitors can lose more than half their capacitance at their rated DC voltage; electrolytics have high ESR. Check the datasheet curves.
    • Control. Loop compensation, load-step response and stability need a model of the controller (voltage or current mode).
    • Layout and EMI. The fast current loop of the switch and diode decides much of the noise. Keep it small.

    Use the results to size parts and learn how the trade-offs move, then confirm with the controller IC's datasheet and a bench test.

    Design power converters

    Skill-Lync's power electronics courses take you from these formulas to simulated and laid-out converters, the work EV and electronics teams hire for.

    Frequently asked questions

    How do you calculate the inductor for a buck converter?

    Pick the inductor ripple, usually 20% to 40% of the output current, then L = (Vin − Vo) × D / (fs × ΔIL) with D = Vo/Vin. For 48 V to 12 V at 10 A and 100 kHz with 30% ripple, D = 0.25, ΔIL = 3 A and L = 30.0 µH. Size it with the highest input voltage, where the ripple is largest.

    What is the critical inductance of a buck converter?

    It is the smallest inductance that keeps the inductor current from falling to zero, the boundary between continuous (CCM) and discontinuous (DCM) conduction: Lcrit = (1 − D) R / (2 fs), with R = Vo/Io. At the boundary the ripple equals twice the load current. In the 48 V to 12 V, 10 A example, Lcrit = 4.50 µH.

    How do you calculate the output capacitor of a buck converter?

    In CCM the capacitor absorbs the triangular inductor ripple, so the capacitive ripple is ΔVo = ΔIL / (8 fs C) and C = ΔIL / (8 fs ΔVo). Add the ESR ripple, ESR × ΔIL, which often dominates with electrolytic capacitors. Ceramic capacitors lose much of their capacitance under DC bias, so check the derated value.

    What is the duty cycle of a boost converter?

    For an ideal boost converter in continuous conduction, D = 1 − Vin/Vo. Stepping 12 V up to 48 V needs D = 0.75. Real converters need a slightly higher duty cycle to cover switch, diode and inductor losses, and gains above about 5 to 6 become impractical because the losses grow quickly as D approaches 1.

    What is the difference between CCM and DCM?

    In continuous conduction mode (CCM) the inductor current never reaches zero during a switching period; in discontinuous mode (DCM) it falls to zero and stays there until the switch turns on again. CCM keeps the output voltage set by the duty cycle alone; in DCM it also depends on the load, inductance and frequency.

    Why does the boost converter need a bigger output capacitor than the buck?

    In a buck converter the inductor feeds the output continuously, so the capacitor only smooths the ripple. In a boost converter the output gets current only while the switch is off; during the on-time the capacitor alone supplies the load, so it must hold Io × D / fs of charge, and the ESR sees the full diode current step.

    Is this calculator accurate?

    For an ideal power stage, yes: Skill-Lync checked every formula against a time-domain simulation of the switched circuit on 3 worked examples and 90 random designs (inductor ripple within 0.9%, output ripple within 1.8%). Real converters add losses, ESR, inductor saturation and control-loop effects, which the page lists.

    Related on Skill-Lync

    Sources

    • N. Mohan, T. M. Undeland and W. P. Robbins, Power Electronics: Converters, Applications and Design, chapter 7, dc-dc switch-mode converters (CCM relations, the CCM/DCM boundary and DCM gain).
    • R. W. Erickson and D. Maksimović, Fundamentals of Power Electronics, chapters 2 and 5 (inductor volt-second balance, ripple, the discontinuous conduction mode and K = 2L/(RT)).
    • Texas Instruments application reports SLVA477, Basic Calculation of a Buck Converter's Power Stage, and SLVA372, Basic Calculation of a Boost Converter's Power Stage (design procedure, output capacitor and ESR ripple).
    • Worked examples and all their numbers: Skill-Lync, checked by scripts/verify/dcdc.py, which simulates the switched circuit (ideal switch and diode, RK4, 400 steps per period, periodic steady state by shooting) for the 3 examples and 90 random designs, plus the CCM/DCM boundary and the DCM duty cycle, and is cross-checked against this page's calculator code at build time.
    Free counselling

    Go from formulas to working converters.

    Power electronics for EVs, chargers and electronics products is a hiring area for electrical engineers. A Skill-Lync counsellor can map the course that fits the role you want.

    Talk to a power electronics course counsellor

    Free. We call you back, usually the same day.

    By submitting you agree to our Terms and Privacy Policy.

    Talk to a career counsellor

    Talk to a career counsellor

    Free 20-minute call. We'll map the right course to where you want to work.

    By submitting you agree to our Terms and Privacy Policy.