Buck/Boost Converter Duty Cycle Calculator
Ideal duty cycle from Vin and Vout for buck or boost converters.
Ideal duty cycle: buck vs. boost
In continuous conduction mode (CCM) the inductor current never falls to zero, so the volt-second balance across the inductor over one switching period is simple: the on-time and off-time voltages must average to zero. For a buck (step-down) converter that gives D = Vout / Vin — duty cycle is just the output/input voltage ratio, always < 1 since Vout < Vin. For a boost (step-up) converter, the switch on-time stores energy in the inductor and the off-time dumps it (plus Vin) into the output, giving D = 1 − Vin / Vout.
Both formulas assume an ideal (lossless) converter — no switch or diode voltage drop, no inductor DCR, 100% efficiency. Real converters need a slightly higher duty cycle than the ideal value to make up for those losses, more so as output current increases. If a switching frequency is given, the tool also shows the on-time (ton = D / fsw) and off-time — useful for sanity-checking against a controller IC's minimum on-time spec.