Skip to content
Tutorials Center
My learning

Topics

Lesson 19 of 45 ยท DC-DC Converters

The Buck-Boost Converter: Up, Down and Inverted

Learn the inverting buck-boost converter: gain D/(1-D) with inverted polarity, inductor current and stresses, a runnable simulation, and Cuk, SEPIC and flyback relatives.

What if your input voltage sometimes sits above and sometimes below the output you need? A lithium-ion cell runs from 4.2 V (full) down to 3.0 V (empty), yet a microcontroller wants a steady 3.3 V. A buck cannot make more than the input, a boost cannot make less. The buck-boost converter can do both, because its gain D/(1 โˆ’ D) passes through one at D = 0.5. The price is that the basic circuit inverts the polarity: the output is negative with respect to the input ground.

The inverting buck-boost schematic and cards for the switch on and switch off states
Caption: in the buck-boost, the inductor is never connected to the input and output at the same time. It first stores energy, then delivers it, which is why the output polarity flips.

What you will learn

  • How the inverting buck-boost works and why Vout = โˆ’Vin D/(1 โˆ’ D).
  • Why the energy always flows through the inductor in two separate steps.
  • The currents and voltage stresses on the switch and diode.
  • Related topologies: ฤ†uk, SEPIC, Zeta, the four-switch buck-boost and the flyback.

Key terms

  • Inverting buck-boost: a converter with a switch, inductor to ground and a diode to a negative output.
  • Energy transfer by the inductor: the inductor stores energy from the input, then discharges it into the output.
  • Switch voltage stress: the maximum voltage the switch must block, here Vin + |Vout|.
  • SEPIC and ฤ†uk: buck-boost relatives that keep the output polarity (SEPIC) or invert it with smooth currents (ฤ†uk).
  • Flyback: a buck-boost with the inductor split into a transformer, adding isolation.

The two states

The switch Q connects the input to the inductor's top terminal; the inductor's bottom terminal goes to the common ground. The diode runs from the inductor's top terminal to the output node, with the cathode at the inductor.

  • Q on (time D T): the full Vin is across L, current rises with slope Vin/L. The diode is reverse-biased, since the output node is negative. The capacitor alone feeds the load.
  • Q off (time (1 โˆ’ D) T): the inductor current keeps flowing in the same direction, which pulls the inductor's top terminal below ground until the diode conducts. The inductor now delivers its current into the output capacitor and load, with voltage โˆ’|Vout| across it, so the current falls.

Volt-second balance gives Vin D T = |Vout| (1 โˆ’ D) T, so

Vout = โˆ’Vin ร— D / (1 โˆ’ D)

D Gain magnitude Behavior
0.25 0.33 steps down
0.5 1 same magnitude as the input
0.75 3 steps up

Currents. In steady state, the average diode current equals the output current, and the diode carries the inductor current only during the off time: Iout = IL (1 โˆ’ D), so IL = Iout / (1 โˆ’ D). Since Pin = Pout, the input current is Iin = IL D = Iout D / (1 โˆ’ D). The ripple is the same as in the boost: ฮ”IL = Vin D / (L fsw), and the output ripple is ฮ”Vout โ‰ˆ Iout D / (fsw C).

Stress. Both the switch and the diode must block Vin + |Vout|, which is more than in the buck or the boost. A 12 V to โˆ’12 V converter needs devices rated well above 24 V.

Design example

Make โˆ’12 V at 1 A from Vin = 12 V at fsw = 100 kHz.

  1. D = |Vout| / (Vin + |Vout|) = 12 / 24 = 0.5.
  2. IL = Iout / (1 โˆ’ D) = 2 A. The average input current is Iin = IL ร— D = 1 A, drawn as pulses of about 2 A while the switch is on.
  3. Ripple of 30%: ฮ”IL = 0.6 A, L = Vin D / (fsw ฮ”IL) = 12 ร— 0.5 / (100 kHz ร— 0.6 A) = 100 ยตH.
  4. Peak current: 2 + 0.3 = 2.3 A: choose an inductor for 3 A saturation.
  5. Output ripple 50 mV: C = Iout D / (fsw ฮ”V) = 1 ร— 0.5 / (100 kHz ร— 0.05) = 100 ยตF.
  6. Device voltage: 24 V plus a margin, so 40 V parts.

The relatives

  • Four-switch (non-inverting) buck-boost: a buck stage and a boost stage sharing one inductor. The output keeps the input's polarity. It buck-operates when Vin > Vout and boost-operates when Vin < Vout. Common in battery-powered products and USB-C power delivery.
  • SEPIC (single-ended primary-inductor converter): two inductors and a coupling capacitor. Non-inverting, can step up or down, and the input current is smooth.
  • ฤ†uk converter: also uses two inductors and a coupling capacitor, but inverts. Both input and output currents are smooth, so it is quiet, at the cost of more parts.
  • Zeta converter: non-inverting, with smooth output current.
  • Flyback: replace the inductor by a transformer with two windings. Energy is stored in the core during the on time and released through the secondary during the off time. It gives galvanic isolation, and its gain is scaled by the turns ratio: Vout = Vin ร— (N2/N1) ร— D/(1 โˆ’ D). The flyback is the most common isolated converter below about 100 W, found in phone chargers.

Common misconceptions

  • "The buck-boost output is simply a flipped boost." The topologies differ: in the buck-boost, the inductor never connects the input and the output at the same time, so the input current is pulsed (unlike the boost) and the switch sees Vin + |Vout|.
  • "A negative output is a defect." It is often exactly what you need, for example a โˆ’5 V or โˆ’12 V rail for analog circuits. Where it is not wanted, use a non-inverting relative.

Try it

The simulation below integrates the inverting buck-boost with an ideal switch and diode (the output voltage is plotted as a magnitude), and compares the numbers with the formulas from this lesson. This is a model of the ideal circuit without losses.

Python Inverting buck-boost simulation (ideal)

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The second tool helps you choose a topology from an input range and a target output. It is a rule-based helper to practice the ideas, not a design tool.

JS Which topology fits?

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Check your understanding

Quick check ยท 5 questions

of 5 answered You scored / 5 ยท perfect!

  1. 1. An inverting buck-boost with Vin = 10 V runs at D = 0.6. What is Vout?

    |Vout| = Vin D/(1 โˆ’ D) = 10 ร— 0.6/0.4 = 15 V, inverted.
  2. 2. What voltage must the switch of an inverting buck-boost block?

    When the switch is off, the input voltage adds to the negative output.
  3. 3. For Vout = โˆ’12 V from Vin = 12 V at 1 A out, what is the average inductor current?

    IL = Iout / (1 โˆ’ D) = 1 / 0.5 = 2 A.
  4. 4. Which converter keeps the output polarity and can step up or down?

    A SEPIC (or four-switch buck-boost) is non-inverting and can step up or down.
  5. 5. What does a flyback converter add to the buck-boost idea?

    The flyback replaces the inductor with a coupled-inductor transformer.

Summary

  • Buck-boost gain is โˆ’D/(1 โˆ’ D): below one for D < 0.5, above one for D > 0.5, with inverted polarity.
  • Energy goes input to inductor, then inductor to output; input and output are never connected directly.
  • IL = Iout/(1 โˆ’ D); the switch and diode block Vin + |Vout|.
  • SEPIC, ฤ†uk, Zeta and the four-switch buck-boost give variations; the flyback adds isolation.

Next: Chapter 4 Review: DC-DC Converters