Switching Supply Duty Cycle Calculator – Buck Boost Timing

Switching Supply Duty Cycle Calculator

Enter the input voltage, output voltage, and switching frequency for a buck, boost, or buck-boost converter to get the duty cycle, on-time, off-time, and switching period. The topology selector swaps the duty formula, and an efficiency factor shows how the real switch on-time grows above the ideal value.

Choose a Topology

🎯Real Converter Presets

🔌Converter Inputs

Supply voltage feeding the converter input.

Regulated output. For buck-boost use the magnitude.

Frequency of the PWM switch node, value only.

Applies to the frequency value above.

Power efficiency; lowers duty vs the ideal case.

Optional conduction drop added to Vout in buck.

Duty Cycle 0 % switch on fraction of the period
On-Time ton 0 us main switch conducting
Off-Time toff 0 us main switch open
Switching Period T 0 us one full on plus off cycle

🔢Formula Snapshot

BuckD = Vout / Vin
BoostD = 1 - Vin / Vout
T1 / f
tonD × T

📋Buck Converter Duty Cycle Examples

Input VinOutput VoutIdeal Duty D = Vout / VinReads As
12 V5 V41.7%Step down 2.4x
12 V3.3 V27.5%Logic rail
24 V12 V50.0%Half input
24 V5 V20.8%Deep step down
48 V12 V25.0%Telecom rail
19 V5 V26.3%Laptop USB
5 V3.3 V66.0%High duty
12 V1.8 V15.0%Core voltage

📊Boost Converter Duty Cycle Examples

Input VinOutput VoutIdeal Duty D = 1 - Vin / VoutReads As
3.7 V5 V26.0%Li-ion to USB
5 V12 V58.3%USB to 12 V
12 V24 V50.0%Double input
3.3 V5 V34.0%Logic step up
9 V19 V52.6%Laptop boost
1.5 V3.3 V54.5%Single cell
24 V48 V50.0%Solar string
5 V48 V89.6%Very high duty

📏Switching Frequency to Period Chart

FrequencyPeriod T = 1 / fton at 50% DTypical Use
50 kHz20 us10 usLegacy power
100 kHz10 us5 usOffline supply
250 kHz4 us2 us48 V rails
500 kHz2 us1 usPOL buck
1 MHz1 us0.5 usCompact buck
2 MHz0.5 us0.25 usAutomotive AM
4 MHz0.25 us0.125 usTiny inductor

🗃Topology Duty Formula Comparison Grid

TopologyDuty FormulaExample VinExample VoutDuty DVout Range
BuckD = Vout / Vin12 V5 V41.7%Below Vin
BuckD = Vout / Vin24 V12 V50.0%Below Vin
BoostD = 1 - Vin / Vout5 V12 V58.3%Above Vin
BoostD = 1 - Vin / Vout3.7 V5 V26.0%Above Vin
Buck-BoostD = Vo / (Vin + Vo)12 V12 V50.0%Either side
Buck-BoostD = Vo / (Vin + Vo)9 V12 V57.1%Either side
Buck-BoostD = Vo / (Vin + Vo)24 V5 V17.2%Either side
BuckD = Vout / Vin48 V12 V25.0%Below Vin
BoostD = 1 - Vin / Vout12 V24 V50.0%Above Vin
Buck-BoostD = Vo / (Vin + Vo)5 V3.3 V39.8%Either side

Formula Breakdown

Buck D = Vout / VinA step-down converter has an ideal duty equal to the output over input voltage. For 12 V in and 5 V out, D = 5 / 12 = 0.417, or 41.7 percent on-time.
Boost D = 1 - Vin / VoutA step-up converter stores energy while the switch is on, so D = 1 - Vin / Vout. For 5 V in and 12 V out, D = 1 - 5 / 12 = 0.583, or 58.3 percent.
Buck-Boost D = Vo / (Vin + Vo)The inverting buck-boost uses the output magnitude, so D = Vo / (Vin + Vo). For 12 V in and 12 V out, D = 12 / 24 = 0.500, or 50 percent.
Efficiency correctionLosses raise the real duty. In buck, D = Vout / (Vin × eta); in boost, D = 1 - (Vin × eta) / Vout. At 90 percent efficiency the switch stays on a little longer than ideal.
Period T = 1 / fThe switching period is the reciprocal of frequency. At 500 kHz, T = 1 / 500000 = 2 microseconds for one full on plus off cycle.
On-time ton = D × TMultiply duty by period for the switch conduction time. At D = 0.417 and T = 2 us, ton = 0.417 × 2 = 0.833 microseconds.
Off-time toff = (1 - D) × TThe remaining part of the period is off-time. Here toff = 0.583 × 2 = 1.167 microseconds, and ton plus toff equals the full 2 us period.

💡Converter Design Tips

Mind the duty limits: Most controllers need a minimum on-time near 50 to 100 ns and a maximum duty around 90 percent. A 48 V to 1 V buck at 1 MHz asks for only about 21 ns on-time, so drop the frequency to 300 kHz or use a two-stage design to keep the pulse controllable.
Account for losses: The ideal buck duty for 12 V to 5 V is 41.7 percent, but at 90 percent efficiency the real duty rises to about 46.3 percent because the switch must deliver the lost power too. Add roughly 0.4 V of FET and diode drop and the on-time grows a few percent more.

Switch-mode power supplies are a timing puzzle, get it right, and your circuit succeeds. Get it wrong and it doesn’t work at all. One key parameter is duty cycle: how much time does the main transistor spends closed during each switching interval? This value determine the output voltage. It also determines shape of inductor’s current waveform and the level of stress on each component in the loop. Get it wrong and your output voltage floats away, the inductor gets too hot, or the controller never starts up.

The calculator makes those abstractions real by translating them into specific numbers that tell you exactly how long to keep switch closed for desired output voltage. That’s where the magic happens: Linear regulators lose some power to heat when they drop voltage. Switching converters chop the input, store it inside an inductor, and then filter resulting mess. This chopping creates a duty cycle D (on-time/total-period). If D = 0.4, the switch will be closed for 40% of each cycle. The duty cycle, a number between zero and one, directly controls the output.

Why Duty Cycle Is Important in Power Supplies

Enter your switching frequency and your input and output voltages and tool spits back out the percentage and actual timing in microseconds. People sometimes miss this bit; knowing the percentage means nothing without also knowing if your controller has a physical capability to create pulse that small. The selector makes the difference because each topology have its own formula.

For a buck converter, which steps down voltage, just output divided by input gives you optimal duty cycle. If you want to make 5 V from a 12 V source, it’s around 41.7 percent on time. Boost converters step up by one minus input over output, since they’re charging the inductor based off the source when the switch is closed and dumping that energy plus the input into the load. Buck-boost inverters fall somewhere in between… Above or below target, respectively. And each of those equations are there for a reason, balancing the volt-second product across the inductor.

Best-case formulas under-estimate the effort; real-world parts aren’t perfect. Energy gets stolen during the switch transition and at the trace resistances, and the diode drop voltage as well. To compensate for these losses, the controller would of keep the switch on longer to maintain regulation. By doing this, the tool takes into account efficiency by setting the duty based on an estimate of your system’s efficiency factor divided into the input voltage. When your efficiency factor is 90 percent, that 41.7 percent buck duty increases toward 46 percent. It doesn’t seem like much but that’s margin we’re talking about, and it matters inside a tight thermal envelope.

Percentage becomes time when multiplied by frequency. Frequency’s reciprocal is period: In this case, with 500 kHz, you get two microseconds (μs) to do all that stuff. Multiplying duty by period gives you on-time, and the difference between them are off-time. At higher frequencies, those times gets smaller quickly. With a megahertz switch, there’s only one microsecond per cycle, meaning even small voltage changes create sub-100 nanosecond pulses. The comparator lag and gate driver delays of most switches sets their minimum on-time limit to something like 50 to 100 nanoseconds. So if your calculation result in a shorter pulse, the chip can’t deliver it.

A lot of these scenarios are represented by the preset buttons: a telecom rail stepped down from forty-eight volts to twelve, say; another might be a lithium cell jumped up to five volts. These allow you to double-check results without having to hunt around for typical values. On the page, there’s a reference table illustrating how duty shifts at various frequencies and voltage ratios. That helps to show why something like a 48 V to 1 V converter at high frequency would be hard for most stock parts. Adding another stage or dropping the frequency generaly solves this problem.

If you get the timing right early, you avoid all sorts of downstream disasters… From unstable feedback loops to saturating inductors. Use the presets, tweak them for your particular voltages and guesses at efficiency, and then see if what you’ve got will actualy swing that pulse around. The waveform is the truth; the math is just the map.

Switching Supply Duty Cycle Calculator – Buck Boost Timing