Inverting Buck-Boost Converter Calculator

Calculate the duty cycle, inverted output voltage, and inductor current of a buck-boost converter from input voltage, desired output voltage, switching frequency, and load current.

Quick Facts

Voltage conversion ratio
|Vout| / Vin = D / (1 - D)
Comes from inductor volt-second balance; D is the switch duty cycle, from 0 to 1.
Duty cycle
D = |Vout| / (Vin + |Vout|)
Solves the ratio above for the duty cycle needed to hit a target output.
Output polarity
Vout is negative
The diode and inductor orientation invert the output relative to input ground.
CCM boundary inductance
L_min = Vin·D·(1-D) / (2·f·Iout)
Inductance above this value keeps the converter in continuous conduction mode.

Your Results

Calculated
Duty Cycle
-
D = |Vout| / (Vin + |Vout|)
Output Voltage
-
Negative relative to input ground
Peak Inductor Current
-
Average + half the ripple current (CCM)
Conduction Mode
-
CCM if inductance exceeds L_min

Ready

Enter the converter's voltages, frequency, load current, and inductance, then press Calculate.

Formula and Method for the Inverting Buck-Boost Converter

An inverting buck-boost converter is a non-isolated switch-mode DC-DC converter built from one switch, one diode, one inductor, and one output capacitor. It stores energy in the inductor while the switch is closed, then releases that energy to the load while the switch is open — through a diode oriented so the output voltage appears with the opposite polarity from the input, referenced to the same ground. Because the inductor can be charged for any fraction of the switching period, the output magnitude can land above or below the input voltage, which is what separates a buck-boost converter from a plain buck (step-down only) or boost (step-up only) converter.

Deriving the duty cycle and output voltage

In continuous conduction mode (CCM), the inductor's average voltage over one full switching cycle must be zero — this is volt-second balance. While the switch is on, for a fraction D of the period, the inductor sees +Vin across it; while it is off, for the remaining (1-D) of the period, it sees the output voltage. Setting Vin·D = |Vout|·(1-D) and rearranging gives the converter's defining relationship: |Vout| / Vin = D / (1 - D), or solved for duty cycle, D = |Vout| / (Vin + |Vout|). This calculator uses that formula to find the duty cycle needed to reach your target output, then reports Vout as a negative number to reflect the inverted polarity.

Inductor current, ripple, and the CCM/DCM boundary

By charge balance, the average inductor current equals the output current divided by (1-D): IL = Iout / (1-D). While the switch is on, current ramps up by ΔIL = Vin·D / (L·f); the peak current is the average plus half that ripple. This ripple-current model, and the simple D/(1-D) voltage formula above, only hold in continuous conduction mode, where the inductor current never reaches zero. The boundary inductance is L_min = Vin·D·(1-D) / (2·f·Iout); choose an inductor above this value for your expected minimum load, or the converter drops into discontinuous conduction mode (DCM), where the output voltage depends on inductance and load as well as duty cycle.

Practical design notes

  • Component ratings matter: the diode must block Vin + |Vout| in reverse, and both the switch and diode see the peak inductor current, not just its average.
  • Higher switching frequency shrinks the inductor — L_min scales as 1/f — but it also increases switching losses in the diode and switch, so real designs balance the two.
  • This model is ideal: it ignores switch and diode voltage drops and conduction losses, so a real converter's efficiency will be below 100%, and the true duty cycle needed will run slightly higher than the ideal value calculated here.
  • Light loads push toward DCM even with a well-sized inductor, since L_min grows as load current Iout falls — check the CCM condition at your minimum expected load, not just the nominal one.

Frequently Asked Questions

What is an inverting buck-boost converter?
An inverting buck-boost converter is a single-switch, single-inductor DC-DC converter whose output voltage is negative with respect to the input's ground reference, and whose magnitude can be smaller or larger than the input voltage depending on the switch duty cycle. It stores energy in the inductor while the switch is on, then releases it to the output through a diode, with reversed polarity, while the switch is off.
How do you calculate the duty cycle for a target output voltage?
For continuous conduction mode (CCM), duty cycle D solves |Vout| / Vin = D / (1 - D), rearranged to D = |Vout| / (Vin + |Vout|). Converting a 12 V input to -5 V, for example, requires D = 5 / (12 + 5) ≈ 0.294, or about 29.4%.
What is the difference between continuous and discontinuous conduction mode?
In continuous conduction mode (CCM) the inductor current never falls to zero between switching cycles, and the simple D/(1-D) voltage formula holds. In discontinuous conduction mode (DCM) the inductor current reaches zero before the next cycle starts, so the output voltage becomes dependent on inductance, frequency, and load as well as duty cycle. Choosing an inductance above L_min = Vin·D·(1-D) / (2·f·Iout) keeps the converter in CCM at a given load.
Why is the output voltage negative?
The polarity comes from the topology: the diode and inductor are oriented so that, during the switch's off-time, the inductor's flyback voltage appears across the load with the opposite polarity to the input, referenced to the same ground rail. It is not a sign of reversed power flow — power still flows from input to output — it is simply how this circuit topology produces its output.