DC-DC Converter Calculator: Buck, Boost, Buck-Boost and SEPIC
Introduction
A switching converter is designed in two stages. The first is the textbook table: duty cycle, inductance for the ripple you want, capacitor for the output ripple. The second is what you find out on the bench: the real duty cycle is higher than the ideal one because every series resistance eats a little voltage, at light load the converter drops into discontinuous conduction and changes behaviour, and at switch-on the inductor current climbs well above its steady-state value.
This page does both. The first card is the classic sizing, in continuous conduction and without losses, over the whole input-voltage range. From the second card on the circuit is actually simulated: the engine integrates the nodal equations with the backward Euler method, finds the periodic steady state, and adjusts the duty cycle until it gets exactly the Vout you asked for, with the resistances of MOSFET, diode, inductor and capacitor in place and the junction temperature modifying them.
Four topologies — buck, boost, inverting buck-boost, SEPIC — with a Schottky diode or with a synchronous rectifier. The MOSFETs are those of the MOSFET calculator, with the same datasheet data; the diodes are four Vishay Schottkys, from DO-41 to TO-220. Deliberately left out: the control loop, inductor design, the input filter and isolated converters, which are in the ferrite transformer calculator.
| Topology | Ideal ratio | Current ripple | Stress on Q1 and D |
|---|---|---|---|
| Buck | \( V_{out} = D\,V_{in} \) | \( \Delta I_L = \dfrac{(V_{in}-V_{out})\,D}{L f} \) | \( V_{in} \) |
| Boost | \( V_{out} = \dfrac{V_{in}}{1-D} \) | \( \Delta I_L = \dfrac{V_{in}\,D}{L f} \) | \( V_{out} \) |
| Inverting buck-boost | \( V_{out} = -\dfrac{D}{1-D}\,V_{in} \) | \( \Delta I_L = \dfrac{V_{in}\,D}{L f} \) | \( V_{in} + |V_{out}| \) |
| SEPIC | \( V_{out} = \dfrac{D}{1-D}\,V_{in} \) | \( \Delta I_{L1} = \Delta I_{L2} = \dfrac{V_{in}\,D}{L f} \) | \( V_{in} + V_{out} \) |
Converter and components
The whole tool works on these parameters: change the topology or a part and the cards below recalculate. MOSFETs and diodes are filled in from their datasheets; as soon as you touch a field the selector switches to “manual” and the number becomes yours. The RDS(on) shown is the datasheet value at the drive VGS, and the calculation then corrects it for temperature.
Each part’s Rθ is the junction-to-ambient value of the real mounting: for a TO-220 in free air it is the datasheet RθJA, on a heatsink it is the sum RθJC + RθCS + RθSA given by the thermal calculator. For SOT-23 and SMC parts it depends almost entirely on the board copper.
Card 1 — Sizing
| Vin | Ideal D | ΔIL | Peak IL | Voltage on Q1 and D |
|---|
The starting point is the conversion ratio, which in continuous conduction depends only on the duty cycle. Everything follows from it: the average inductor current, which in the buck is the output current and in the other three topologies is larger, and the ripple, which you choose. The rule of thumb is a ripple between 20 and 40 % of the average current: less means large, slow inductors, more means high peaks and hot capacitors.
The table works it out at the three input voltages, because the worst case is not the same for everything. In the buck the maximum ripple is at maximum Vin; in the boost the peak current is highest at minimum Vin. The suggested inductance is the one that meets the target ripple over the whole range.
The output capacitor has two contributions to the ripple: the charging and discharging of the capacitance, and the drop across the ESR. In the buck the capacitor current is just the inductor ripple and both terms are small; in the boost, the buck-boost and the SEPIC the capacitor receives the pulsed diode current, and it is almost always the ESR that decides.
The values under the table are no longer ideal: they come from the simulation at the nominal point, with all the losses.
Card 2 — Steady-state waveforms
Here the converter is simulated over one period, in steady state. The duty cycle is not the formula’s: it is the one needed to actually get the requested Vout with the drops across RDS(on), the diode, the DCR and the ESR, and it is always a little higher. It is the same number an integrated regulator finds by itself when it closes the loop.
The top graph is the inductor current: a triangle in continuous conduction, a triangle that touches zero and stays there in discontinuous conduction, a triangle that dips below zero with the synchronous rectifier at light load. In the middle is the switch node, with the step that the diode or the dead time leaves below zero; at the bottom the output ripple, where the jump caused by the ESR shows.
How the engine works and what the two boxes check
The circuit is a nodal network: Q1 and Q2 are resistances worth RDS(on) or one megohm, the diode is a voltage VF0 in series with RD when it conducts, inductors and capacitors are integrated with backward Euler, six hundred steps per period. The steady state is not found by repeating periods until the average stops changing — with long time constants that stops too early and gives wrong numbers — but with Newton’s method on the periodicity residual: capacitor charge and inductor flux must come back identical after one period. The duty cycle is adjusted by bisection on the average Vout.
The first box is that residual, the second the energy balance: the power leaving the source must all be found again between the load and the resistances. The residual that remains is the numerical dissipation of the integration, and with six hundred steps per period it stays below a few thousandths.
Card 3 — Losses, efficiency and temperatures
| Item | Power | Share |
|---|
Conduction losses come from the simulation: they are the integral of i²R on each part, with the true RMS currents and not those estimated from the average. Switching losses do not, because in the simulation the switches are ideal: they are worked out separately with the gate-charge model of the MOSFET calculator, using the currents the simulation finds at the turn-on and turn-off instants.
The temperatures close the account. RDS(on) rises with temperature, the Schottky VF falls but its reverse current grows tens of times: the calculation repeats simulation and thermal balance until the two temperatures settle, and if they do not settle it says so.
The efficiency curve runs from 10 to 120 % of the nominal load, at the temperatures of the nominal point. At light load what does not depend on current dominates — gate drive, Coss, diode leakage — and efficiency collapses; at full load the resistances dominate. The red points are in discontinuous conduction.
The synchronous rectifier pays off when the diode drop weighs on the output voltage: at 3.3 V half a volt of Schottky is a sixth of the power. At 24 V the gain is much smaller, and the dead time with the body diode eats part of it.
Card 4 — Continuous and discontinuous conduction
When the average inductor current drops below half the ripple, the triangle touches zero: with a diode the current cannot reverse and the converter enters discontinuous conduction. It is not a fault, but it changes the rules: the conversion ratio no longer depends only on the duty cycle, but also on load, inductance and frequency, and the control loop sees a different circuit.
The map puts the output current on the horizontal axis and the inductance on the vertical one. The curve is the boundary \( L_{crit} = K(D)\,V_{out}/(2 I_{out} f) \), with K(D) equal to 1 − D in the buck, D(1 − D)² in the boost and (1 − D)² in the buck-boost and the SEPIC; below the curve, in pink, is discontinuous conduction.
In the SEPIC the inductance that counts is the parallel L1 ∥ L2, and with two equal inductors discontinuity arrives sooner than you would think.
Card 5 — Start-up
At switch-on the output capacitor is discharged and the converter has to charge it. If the duty cycle started straight at its steady-state value, the inductor current would climb well above nominal and could drive it into saturation: this is why integrated regulators have soft-start, which ramps the duty cycle up.
The simulation starts with everything off, ramps the duty cycle linearly from zero to its steady-state value over the time you choose, then holds it. The graph shows the inductor current envelope, period by period, and the output voltage. Lengthen the soft-start and watch the peak drop below Isat.
Without a control loop, the overshoot you see is that of the LC filter left to itself: a real regulator damps it. The number tells you how much energy is in play, not the exact shape.
Preloaded Schottky diodes and sources
| Model | Package | VRRM | IF(AV) | Max VF at 25 °C | RθJA | TJ max |
|---|
The model name opens the Vishay datasheet in a new window. The MOSFETs are the twelve of the MOSFET calculator, with the same sources; only N-channel parts appear in the selector.