DC-DC Duty Cycle Calculator

Ideal (CCM) duty cycle and switch on-time for Buck, Boost, and Buck-Boost converters.
Buck
Boost
Buck-Boost

Buck Converter Duty Cycle

D = Vout / Vin  •  Ton = D / f
12V→5V, 500kHz
24V→12V, 100kHz
5V→3.3V, 1MHz
V
V
Hz
Enter values and press Calculate.

Boost Converter Duty Cycle

D = 1 − Vin/Vout  •  Ton = D / f
5V→12V, 500kHz
Li-ion 3.7V→5V, 1MHz
12V→24V, 150kHz
V
V
Hz
Enter values and press Calculate.

Buck-Boost (Inverting) Duty Cycle

D = |Vout| / (Vin+|Vout|)  •  Ton = D / f
12V→-5V, 500kHz
9V→-9V, 300kHz
24V→-12V, 200kHz
V
V
Hz
Enter values and press Calculate.

Duty Cycle in DC-DC Converters

The duty cycle D is the fraction of each switching period that the main switch is ON, and it directly sets the ideal (lossless, continuous-conduction-mode) voltage conversion ratio of a switch-mode converter. Each topology has its own D-to-ratio relationship because of how the inductor charges and discharges relative to the switch state.

TopologyDuty Cycle FormulaVoltage Range
Buck (step-down)D = Vout/VinVout < Vin
Boost (step-up)D = 1−Vin/VoutVout > Vin
Buck-Boost (inverting)D = |Vout|/(Vin+|Vout|)Any ratio, output inverted
Switch on-timeTon = D/f = D×Tsw

These are ideal formulas assuming continuous conduction mode (CCM), zero component losses, and 100% efficiency. Real converters need a slightly higher duty cycle than ideal to compensate for switch/diode voltage drops and conduction losses — the ideal value from this calculator is the starting point for compensator and PWM controller design.

Real-World Applications & Examples

Worked examples

1. Buck: 12V→5V at 500kHz. D=5/12=41.7%, Ton=0.417/500,000=833 ns.
2. Buck: 24V→12V at 100kHz. D=12/24=50%, Ton=0.5/100,000=5 µs.
3. Boost: 5V→12V at 500kHz. D=1−5/12=58.3%, Ton=0.583/500,000=1.167 µs.
4. Boost: Li-ion 3.7V→5V USB at 1MHz. D=1−3.7/5=26%, Ton=0.26/1,000,000=260 ns.
5. Buck-Boost: 12V→−5V at 500kHz. D=5/(12+5)=29.4%, Ton=0.294/500,000=588 ns.
6. Buck-Boost: 9V→−9V (unity inverting) at 300kHz. D=9/(9+9)=50%, confirming that equal-magnitude inverting conversion always occurs at exactly D=0.5 regardless of the actual voltage.

Frequently Asked Questions

What is duty cycle in a DC-DC converter?

The fraction of each switching period that the main power switch (MOSFET) is turned on, expressed as D=Ton/Tsw, ranging from 0 to 1 (0% to 100%).

Why is the buck duty cycle formula different from boost?

Each topology stores and releases inductor energy differently relative to the switch state (buck connects the inductor to Vin only when the switch is on; boost stores energy in the inductor while the switch is on and releases it to the output when off), leading to different volt-second balance equations and thus different D-to-ratio relationships.

What does "CCM" (continuous conduction mode) mean for these formulas?

CCM means the inductor current never falls to zero during the switching cycle. These duty cycle formulas assume CCM and zero losses; in discontinuous conduction mode (DCM, typically at light load) the actual duty cycle needed differs from the ideal formula.

Why does a real converter need slightly more duty cycle than the ideal formula gives?

Real switches and diodes have voltage drops, and inductors/traces have resistance; these losses reduce the effective voltage delivered to the output, so the actual duty cycle must be somewhat higher than ideal to reach the target output voltage.

What is the maximum theoretical duty cycle?

Approaching D=1 (100%) is not practical in any real converter — PWM controllers reserve a minimum off-time for control/gate-drive circuitry, so practical maximum duty cycle is typically capped around 90–95%.

Why is the buck-boost formula based on |Vout| and Vin+|Vout|?

The inverting buck-boost topology produces a negative output whose magnitude is set independently of polarity; using the magnitude in the ratio D=|Vout|/(Vin+|Vout|) correctly gives D=0.5 when |Vout|=Vin (unity magnitude inversion).

How does switching frequency affect on-time for the same duty cycle?

On-time is inversely proportional to frequency for a fixed duty cycle (Ton=D/f); doubling the switching frequency halves the on-time needed for the same D.

Can duty cycle exceed 50% in a buck converter?

Yes, whenever Vout exceeds half of Vin (e.g. 12V→7V gives D=58%); there is no inherent 50% limit for a buck converter, unlike some resonant or half-bridge topologies.

Does this calculator apply to synchronous converters?

Yes, the ideal CCM duty cycle formulas are the same for synchronous (using a low-side FET instead of a diode) and non-synchronous (diode) converters — synchronous rectification mainly improves efficiency, not the ideal duty ratio.

Why do PWM controllers need the duty cycle before designing the compensator?

The converter's small-signal transfer function (and thus loop stability/bandwidth) depends on the operating duty cycle, especially for boost and buck-boost topologies where D directly affects the location of the right-half-plane zero.

How is duty cycle related to voltage conversion ratio M?

For buck, M=D; for boost, M=1/(1−D); for buck-boost, M=−D/(1−D) (negative denoting inversion) — each is simply the inverse rearrangement of the duty cycle formula.

What happens to duty cycle as input voltage drops (e.g. battery discharging)?

For a buck converter, D increases as Vin falls (to hold Vout constant); for boost, D also increases as Vin falls further below the fixed Vout — both need headroom in the PWM controller's duty cycle range to handle the full battery discharge curve.

Related Calculators

Buck Converter CalculatorBoost Converter CalculatorInductor Ripple CurrentAll Calculators