Boost, buck-boost and inverting converters

How a boost converter raises a voltage, a buck-boost keeps it steady from a battery, and an inverting converter or a charge pump makes a negative one.

Power supply
A small boost module, a module with two coils, a lithium-ion cell, an eight-pin chip, a piece of LED strip, a LiPo battery and two capacitors

A buck converter can only lower a voltage. Sometimes you need something else:

  • a higher voltage than you have: 5 V from one 3.7 V lithium-ion cell, or 16 V from 12 V,
  • a steady voltage from a battery whose voltage falls: 3.3 V from a cell that discharges from 4.2 V to 3.0 V, so it starts above the output and ends below it,
  • a negative voltage: −5 V for an operational amplifier.

For each of these jobs there is a converter made of the same parts as a buck converter: a switch, a diode, an inductor and a capacitor. They differ only in how those parts are connected. This page assumes you know how a buck converter works (the inductor, the duty cycle D, ripple), so it doesn’t explain that again.

The boost converter

Two schematics of a boost converter with a 3.7 V source U1, inductor L1, switch S1 to GND, diode D1, capacitor C1 and a load R1 with 5 V across it (U3). On the left the switch is on and the current flows from the source through L1 and S1 back to the source (orange). On the right the switch is off and the current flows from the source through L1 and D1 into the load (blue)

A boost converter (a step-up converter) has the same parts as a buck converter, only arranged differently. Inductor L1 is connected to the input, switch S1 goes from its other end to GND, and diode D1 leads to the output.

The switch is on (left schematic): the inductor is connected straight across the source. The current through it rises, and the inductor stores energy. The diode doesn’t conduct, and meanwhile the load gets its current only from capacitor C1.

The switch is off (right schematic): the inductor won’t let the current stop suddenly. The voltage at its right end rises until the diode conducts, and the current flows from the source through L1 and D1 into the load and the capacitor. The inductor adds its voltage to the source’s, so the output voltage can be higher than the input.

The longer the switch is on, the more energy the inductor stores, and the higher the output voltage:

\[ U_3 \approx \frac{U_1}{1 - D} \]
For 5 V from 3.7 V that is D = 1 − 3.7 V / 5 V ≈ 26 %, and for 16 V from 12 V, 25 %. A real converter again has to make up for the voltage lost in the diode and the inductor, so the model on this page gives 33 % for 5 V from 3.7 V at 0.5 A.

Current in and current out

Three graphs over 2.5 microseconds for a boost converter from 3.7 V to 5 V at 0.5 A. Top: the voltage U2 jumps between 0 and 5.4 V. Middle: the inductor current IL stays at about 0.75 A, while the diode current ID jumps between 0 and 0.77 A; a dashed line is at 0.5 A. Bottom: the output voltage U3 ripples between 4.99 and 5.01 V

The graphs are calculated for a converter like the modules with an MT3608 chip: 1.2 MHz, a 22 µH inductor and a 22 µF ceramic capacitor. They show three periods of 0.83 µs:

  • U2 (top) is the voltage where the inductor, the switch and the diode meet: almost 0 V while the switch is on, and 5.4 V while it is off (the output plus the voltage lost in the diode).
  • IL (middle, orange) is the inductor’s current, which is also the current from the source. It flows all the time and ripples only a little, between 0.73 and 0.77 A.
  • ID (middle, blue) is the current through the diode to the output. It flows only while the switch is off, in pulses of up to 0.77 A. Its average is 0.5 A, what the load takes.
  • U3 (bottom) is the output voltage, greatly magnified. It ripples by about 14 mV from peak to peak.

That is the other way round from a buck converter. In a buck converter the source gives its current in pulses, and the output gets the inductor’s steady current. In a boost converter the source gives a steady current, and the output capacitor gets pulses: while the switch is on, the load takes its current only from the capacitor. So a boost converter needs a good output capacitor with a small ESR, which is why MT3608 modules have ceramic capacitors.

Boost converters and batteries

Graph of the current a boost converter takes from a lithium-ion cell against the cell's voltage from 3.0 to 4.2 V. For 5 V at 0.5 A the current rises from 0.67 A at 4.2 V to 0.98 A at 3.0 V, and for 5 V at 1 A from 1.38 A to 2.11 A

A boost converter takes a larger current from its input than it gives at its output, because the input voltage is lower:

\[ I_1 = \frac{U_3 \cdot I_3}{\eta \cdot U_1} \]
For 5 V at 1 A from a 3.7 V cell with an efficiency of 84 % that is about 1.6 A. As the cell discharges, its voltage falls and the current the converter takes rises: at the end, at 3.0 V, it is already 2.1 A. The larger the current, the faster the cell empties and the hotter it gets. That is why a power bank stops working when its cell falls to a set voltage, and a cell must never be discharged below the voltage given on the Batteries page.

The limits of a boost converter

The formula says that as D approaches 1 the output voltage grows without limit. In reality the switch then conducts almost all the time, the inductor’s current is large, and the losses grow faster than the output voltage. In practice a boost converter raises a voltage up to about 5 to 10 times.

Common boost chips are the MT3608 (small modules, 1.2 MHz), and the XL6009 and XL6019 (larger currents). The lab power supply has a module with an XL6019 chip that makes 16 V from 12 V. Boost converters also power white LEDs in series: several LEDs in series need more voltage than a battery gives.

Example: 5 V from a lithium-ion cell

Schematic: a lithium-ion cell B1 of 3.0 to 4.2 V, a DW01 protection board with contacts B+, B−, P+ and P−, a 2 A fuse F1, a 22 µF capacitor C1, a 22 µH inductor L1 and an MT3608 chip with its SW pin on the inductor and IN and EN on the input. Diode D1 SS34 leads to the output, resistors R2 of 24 kΩ and R1 of 3.3 kΩ to the FB pin, and a 22 µF capacitor C2 and an Arduino Uno on its 5V pin to the 5 V output

A typical job for a boost converter: an Arduino or another 5 V circuit running from one lithium-ion cell, as in a power bank:

  • DW01 is the cell’s protection board (cells are often sold with one). It disconnects the cell when it is empty, overcharged or when too much current flows. Here that also matters because a boost converter can’t be switched off: when the cell is empty, it is really the DW01 that switches the Arduino off.
  • F1 (2 A) sits before the converter, because a boost converter has no protection against a short at its output.
  • The MT3608 has five pins: IN (5) and EN (4) are connected to the input, so the chip runs as soon as it gets power, SW (1) is the switch to GND, then GND (2) and FB (3).
  • L1 (22 µH), D1 (an SS34 Schottky diode, 3 A) and the ceramic capacitors C1 and C2 (22 µF) are the same as in the model on this page.
  • R2 and R1 set the output voltage. The MT3608 holds 0.6 V on its FB pin, so U3 = 0.6 V · (1 + 24 kΩ / 3.3 kΩ) ≈ 4.96 V. R2 is the E24 value of 24 kΩ, because no pair of E12 values gives close to 5 V (2.2 kΩ and 15 kΩ give only 4.69 V).

With 0.5 A at the output the converter takes from 0.67 A (a full cell, 4.2 V) to 0.98 A (3.0 V) from the cell, as in the graph above. The Arduino is on its 5V pin here, so while it runs like this don’t connect it to a computer by USB (see the Buck converter page).

The buck-boost converter

A buck-boost converter gives an output voltage that can be higher or lower than the input. It comes in three versions.

The inverting buck-boost

Two schematics of an inverting buck-boost converter with a 12 V source U1, switch S1, inductor L1 to GND, diode D1 pointing towards the node, capacitor C1 and a load R1 with -5 V across it (U3). On the left the switch is on and the current flows from the source through S1 and L1 to GND (orange). On the right the switch is off and the current flows from L1 through GND, R1 and D1 back into L1 (blue)

The simplest buck-boost has only four parts, but its output voltage is negative. Switch S1 connects the source to inductor L1, whose other end is on GND.

The switch is on (left schematic): the inductor is connected to the source, the current through it rises and the inductor stores energy. The load gets its current only from the capacitor.

The switch is off (right schematic): the inductor pushes the current on in the same direction, towards GND. The circuit closes through the load and diode D1, so the current through R1 flows from GND towards the output. That is why the output is negative with respect to GND.

\[ U_3 \approx -U_1 \cdot \frac{D}{1 - D} \]
For −5 V from 12 V that is D / (1 − D) = 5 / 12, so D ≈ 29 %. With D below 50 % the output voltage is lower than the input, with D above 50 % higher.

Example: −5 V from 12 V

Schematic: a 12 V input, a 1 A fuse F1 and a 680 µF capacitor C1 to GND. The LM2596-ADJ chip has its GND and ON/OFF pins on the -5 V line. After its OUT pin come a 33 µH inductor L1 to GND and diode D1 1N5824 from the -5 V line. Resistor R2 of 6.8 kΩ connects the FB pin to GND, and R1 of 2.2 kΩ to the -5 V line. Between GND and the -5 V line are a 220 µF capacitor C3 and a 10 Ω load R3, and on the right the output terminals GND and -5 V

The same LM2596-ADJ chip that worked as a buck converter on the Buck converter page can also work as an inverting buck-boost. The parts are almost the same, only connected differently:

  • The chip’s GND and ON/OFF pins aren’t on GND but on the −5 V line. So between VIN and its own GND pin the chip sees 12 V + 5 V = 17 V, and it can take up to 40 V.
  • L1 goes from the switch to GND, and D1 leads from the −5 V line to the switch.
  • R2 and R1 measure the output against the chip’s GND pin, so the voltage is again 1.23 V · (1 + 6.8 kΩ / 2.2 kΩ) ≈ 5.03 V, only below GND.
  • C3 is turned round: its plus is on GND, because that is the higher voltage.

With a 10 Ω load (0.5 A) the duty cycle is 5 V / (12 V + 5 V) ≈ 29 %, and the inductor’s average current 0.5 A / (1 − 0.29) ≈ 0.71 A. At an efficiency of about 80 % the converter takes about 0.26 A from 12 V. You need a supply like this when −5 V has to give more current than a charge pump can, for example for several operational amplifiers and an analog circuit.

The four-switch buck-boost

When the output has to be positive, a buck-boost with four switches and one inductor is used. The two switches on the inductor’s left work as a buck converter, and the two on its right as a boost converter. While the input voltage is higher than the output, the chip works as a buck converter; when it falls below the output, it changes to boost. A typical example is the TPS63020 chip, which makes a steady 3.3 V from a lithium-ion cell (4.2 V down to 3.0 V). According to its datasheet it uses up to about 95 % of the energy, because it has switches instead of diodes.

Schematic of a four-switch buck-boost converter: a source U1 of 3.0 to 4.2 V, switch S1 in the top wire, switch S2 to GND, inductor L1, switch S3 to GND, switch S4 in the top wire, capacitor C1 and a load R1 with 3.3 V across it (U3)

While the input voltage is higher than the output, S4 is on all the time and S3 off. S1 and S2 then take turns and work as the switch and the diode of a buck converter. When the input voltage falls below the output, S1 is on all the time and S2 off, and S3 and S4 take turns, as the switch and the diode of a boost converter.

Example: 3.3 V for an ESP32 from one cell

Schematic: a lithium-ion cell B1 of 3.0 to 4.2 V, a 10 µF capacitor C1 and a TPS63021 chip with its VIN, VINA and EN pins on the input, PS/SYNC on GND, a 1.5 µH inductor L1 between pins L1 and L2, the FB pin connected to VOUT, a 2 × 22 µF capacitor C2 at the 3.3 V output and an ESP32 module on its 3V3 pin

An ESP32 needs 3.3 V, and a lithium-ion cell gives 4.2 V down to 3.0 V. The TPS63021 is the version of the TPS63020 chip with a fixed 3.3 V output, so it needs no resistors: its FB pin is connected straight to VOUT.

  • VIN, VINA (the supply for the chip’s control part) and EN are connected to the cell, so the chip runs as soon as it gets power.
  • PS/SYNC on GND turns on the power-save mode: while the ESP32 sleeps and takes little current, the chip switches only now and then and uses very little itself.
  • L1 (1.5 µH) goes between pins L1 and L2. The four switches are inside the chip, on both sides of the inductor.
  • C1 (10 µF) and C2 (two of 22 µF) are ceramic capacitors.

When an ESP32 sends over Wi-Fi it briefly takes more than 0.3 A, and the chip gives that over the cell’s whole voltage range. The chip is tiny and has no pins you can solder by hand, so you buy it soldered onto a module. Here, too, the cell needs its own protection board, as in the boost example; it isn’t drawn.

SEPIC

Schematic of a SEPIC converter: a 3.7 V source U1, inductor L1, switch S1 to GND, capacitor C1 in the top wire, inductor L2 to GND, diode D1 to the output, capacitor C2 and a load R1 with 5 V across it (U3)

A SEPIC (single-ended primary-inductor converter) gives a positive output voltage, higher or lower than the input, with just one switch. For that it needs two inductors, L1 and L2, and a capacitor C1 between them that carries the energy from the left side to the right. The left side (L1 and S1) works as a boost converter, and the right side (L2 and D1) as an inverting buck-boost that, through C1, turns the voltage positive again. Many cheap modules sold as automatic buck-boost converters (for example with an XL6009 chip) are built as a SEPIC.

Example: a 12 V LED strip from a LiPo battery

Schematic: a LiPo battery B1 of 9.0 to 12.6 V, a 3 A fuse F1 and an XL6009 SEPIC module with contacts IN+, IN−, OUT+ and OUT−. Segments of an LED strip are connected to the 12 V output: each segment has a resistor and three LEDs in series, and the segments are connected in parallel

A 12 V LED strip is evenly bright only on a steady 12 V. A three-cell (3S) LiPo battery has 12.6 V when full and about 9 V when empty, so its voltage starts above 12 V and ends below it. A SEPIC module gives 12 V all the time:

  • Each segment of the strip has three LEDs and a resistor in series, connected straight to 12 V. That is why a strip may only be cut between segments.
  • A SEPIC’s duty cycle is D = U3 / (U1 + U3): with a full battery 12 V / 24.6 V ≈ 49 %, with an empty one 12 V / 21 V ≈ 57 %.
  • For 1 A at the output and an efficiency of 85 % the module takes from 1.12 A (12.6 V) to 1.57 A (9.0 V) from the battery. F1 (3 A) protects the battery and the wires.
  • A LiPo battery must not fall below its cells’ lowest voltage, so it needs a protection board or a voltage measurement that switches the strip off (see Batteries).

Buck-boost converters are less efficient than a buck or a boost converter alone, because the current flows through more parts.

Negative voltages

Operational amplifiers that have to work around 0 V need a negative voltage, because they need a supply both above and below zero. The lab power supply takes its −12 V from the ATX power supply. When there is no negative voltage, it can be made in two ways:

  • with an inverting buck-boost converter, when a larger current is needed,
  • with a charge pump, when a few milliamps are enough.

The charge pump

Two schematics of a charge pump with a 5 V source U1, capacitors C1 and C2, a load R1 with -5 V across it (U3) and four switches. On the left S1 and S2 are on and the current from the source charges C1 (orange). On the right S3 and S4 are on: the plus side of C1 is connected to GND and the minus side to the output, so the current flows from C1 through S3, GND, R1 and S4 back into C1 (blue)

A charge pump has no inductor, only capacitors and switches:

  1. Switches S1 and S2 are on (left schematic). Capacitor C1 is connected to the source and charges to 5 V.
  2. S1 and S2 turn off, and S3 and S4 turn on (right schematic). C1’s plus side is now on GND, and its minus side on the output. The capacitor is turned over, so the output is 5 V below GND: −5 V. C1 meanwhile charges capacitor C2, which holds the voltage while C1 charges again.

This repeats thousands of times a second. The ICL7660 chip has all four switches inside, and needs only two capacitors outside. The same idea can double a voltage: when the charged capacitor is connected on top of the source instead of to GND, you get 10 V from 5 V. The MAX232 chip, which connects an Arduino to the RS-232 port of older computers (see How devices talk), uses charge pumps to make about +10 V and −10 V from 5 V.

Graph of the output voltage of an ICL7660 charge pump from 5 V against the load current from 0 to 20 mA: the voltage rises from -5 V with no load to -3.9 V at 20 mA

A charge pump has an internal resistance: about 55 Ω for the ICL7660. That is why its output voltage weakens as the current grows. With no load it is −5 V, at 10 mA about −4.45 V, and at 20 mA only −3.9 V. That is enough for an operational amplifier that needs a few milliamps, but larger currents need an inverting converter with an inductor.

Example: −5 V for an operational amplifier

Schematic: a 5 V input connected to pin 8 (V+) of an ICL7660 chip, pin 3 (GND) to GND, a 10 µF capacitor C1 between pins 2 (CAP+) and 4 (CAP−), and pin 5 (VOUT) giving -5 V. Capacitor C2 of 10 µF has its plus on GND and its minus on the output. The -5 V output goes to pin 4 (V−) of operational amplifier U2, an LM358, and +5 V to its pin 8 (V+). Pins 1 (NC), 6 (LV) and 7 (OSC) are not connected

An LM358 operational amplifier with its pin 4 (V−) on GND can’t give an output below about 0 V. With −5 V on that pin it can also amplify signals that go below zero, for example sound from a microphone. The ICL7660 does that with just two capacitors:

  • V+ (8) and GND (3) are the chip’s supply, CAP+ (2) and CAP− (4) the capacitor C1 that is turned over, and VOUT (5) the −5 V output.
  • LV (6) is connected to GND only when the supply is below 3.5 V, and OSC (7) changes the frequency. Here both stay unconnected.
  • C2 is turned round: its plus is on GND and its minus on the output, because the output is lower than GND. An electrolytic capacitor connected the wrong way round can overheat and swell.

The LM358 takes less than 1 mA, so the output stays at about −4.96 V.

Isolated converters

In all the converters so far, the input and the output share a GND. A flyback converter is a buck-boost in which the inductor is replaced by a transformer: the energy passes from one winding to the other through the magnetic field, and the input and output wires aren’t connected. That is how a phone charger keeps the 230 V mains away from its USB socket. And that is why you never open a charger: there is mains voltage inside, and its capacitors can stay charged even after it is unplugged.

There are also small isolated modules for low voltages (for example the B0505S, 5 V to 5 V), used to separate the GNDs of two circuits.

Comparison

Graph of the ratio of output to input voltage U3/U1 against the duty cycle D from 0 to 1: for the buck converter a straight line from 0 to 1, for the boost converter a curve that starts at 1 and rises towards 10 at D = 0.9, and for the buck-boost a curve that starts at 0, is 1 at D = 0.5 and rises towards 9 at D = 0.9

The graph shows what ratio of voltages each converter gives: a buck converter always less than 1, a boost converter always more than 1, and a buck-boost both. As D approaches 1, the boost and buck-boost curves shoot up. A converter works badly there, so that region is avoided.

ConverterOutput compared with inputFormulaExamples
BucklowerU3 ≈ D · U1LM2596, MP1584
BoosthigherU3 ≈ U1 / (1 − D)MT3608, XL6019
Inverting buck-boostnegativeU3 ≈ −U1 · D / (1 − D)LM2576 or LM2596 in the inverting circuit
Four-switch buck-boosthigher or lowerdepends on the modeTPS63020
SEPIChigher or lowerU3 ≈ U1 · D / (1 − D)XL6009 modules
Charge pump−U1 or 2 · U1a fixed ratioICL7660, MAX232
ConverterInput currentOutput currentCan it be switched fully off?Short circuit at the output
Buckpulsedsteadyyesthe chip limits the current
Booststeadypulsednonothing limits it
Inverting buck-boostpulsedpulsedyesthe chip limits the current
Four-switch buck-boostdepends on the modedepends on the modeyesthe chip limits the current
SEPICsteadypulsedyesthe chip limits the current
Charge pumppulsedpulsedyesthe voltage drops

Boost, pros: raises the voltage; the source gives a steady current without pulses, which suits a battery; simple and cheap.
Boost, cons: can’t be switched fully off and has no protection against a short circuit at the output; the output capacitor gets current pulses; it takes a larger current than it gives from the battery, and that current rises as the battery empties.
Buck-boost, pros: one converter covers a battery’s whole voltage range; the inverting one gives a negative voltage.
Buck-boost, cons: lower efficiency and more parts; the inverting one has a negative output, and a SEPIC needs two inductors.
Charge pump, pros: no inductor, small, simple and quiet.
Charge pump, cons: only small currents, and the output voltage weakens with the load.

What to watch out for with boost modules

A boost converter can't be switched off

  • There is no real off. Even with the switch off, the input is connected to the output through the inductor and the diode. The output is then the input voltage minus the diode's drop, not 0 V. Not even the chip's enable pin (EN) disconnects the load, unless the chip has a separate switch for that.
  • There is no short-circuit protection. A short at the output shorts the input through the inductor and the diode, and no switch can stop it. With a lithium-ion or LiPo cell at the input this can start a fire. So a boost module gets a fuse at its input, and a cell without a protection circuit is never connected to one.
  • Broken feedback. If the feedback resistor or the potentiometer's wiper loses contact, the chip thinks the output voltage is too low and raises it until something burns out, often the output capacitor itself. So the output capacitors must withstand the highest voltage the module can make.
  • Set the voltage before connecting anything, as with a buck module: connect only the input, measure the output with a multimeter, and only then connect the load.

Common problems with boost modules:

  • The number on the module is the switch’s current, not the output current. The MT3608 is sold as a 2 A module, but that is the highest current through its switch. At 5 V from 3.7 V the output current is much smaller, because the switch also carries the input current, which is larger than the output current.
  • The current from the battery rises as the battery empties. Make sure the cell doesn’t fall below its lowest voltage.
  • High voltage. Some cheap boost modules give 35 V and more, and modules for nixie tubes hundreds of volts. Such modules aren’t for the projects on this site: a voltage above 50 V can be dangerous to people.

Measure it yourself

For this you need a module with an MT3608 chip, a bench power supply with a current limit (not a bare lithium-ion cell), two multimeters and power resistors of 100 Ω and 10 Ω / 5 W:

  1. Set the supply to 3.7 V and limit its current to 1 A. Set the module to 5 V with nothing connected.
  2. Connect the 100 Ω resistor (50 mA), then measure the current and voltage at the input and at the output, as on the Buck converter page.
  3. Repeat with the 10 Ω resistor (0.5 A). Compare the input current with the output current: the input current is larger.
  4. Lower the supply to 3.2 V and measure the input current again. It has gone up, as in the graph.
  5. If you have an oscilloscope, look at the output with AC coupling, as for the buck converter.

If you have an ICL7660 chip, connect it to 5 V with two 10 µF capacitors and measure its output voltage with no load, with a 1 kΩ resistor (about 5 mA) and with a 470 Ω resistor (about 10 mA).

Note

The diagrams, graphs and values on this page are calculated from simplified models or are typical examples. They are here to explain, and may differ from the actual specifications of the parts. Before you build anything, always check the datasheets of the parts you use.

What did we learn?

  • Boost, buck-boost and inverting converters have the same parts as a buck converter: a switch, a diode, an inductor and a capacitor, only connected differently.
  • A boost converter raises the voltage: U3 ≈ U1 / (1 − D). It takes a larger current from the source than it gives.
  • A buck-boost gives a voltage higher or lower than the input: the inverting one a negative voltage, the four-switch one and a SEPIC a positive one.
  • A charge pump turns a charged capacitor over and so makes −U1, but only for small currents.
  • A boost converter can’t be switched fully off and has no protection against a short at its output, so its input gets a fuse.

Quick quiz

1. Which converter do you use for a steady 3.3 V from a lithium-ion cell whose voltage falls from 4.2 V to 3.0 V?
A buck-boost, for example a four-switch one (TPS63020) or a SEPIC. At first the cell’s voltage is above 3.3 V, and at the end below it, so neither a buck nor a boost converter alone would work all the time.
2. A boost converter with an efficiency of 85 % gives 5 V at 1 A from a 3.7 V cell. How much current does it take from the cell?
I1 = 5 V · 1 A / (0.85 · 3.7 V) ≈ 1.6 A. When the cell falls to 3.0 V, it is already about 2 A.
3. Why is a short circuit at a boost converter's output dangerous?
The input is always connected to the output through the inductor and the diode, so a short at the output shorts the source, and no switch can stop it. With a lithium-ion cell this can start a fire. That is why the input gets a fuse.
4. An operational amplifier needs -5 V and 3 mA, and the project has only 5 V. What do you use?
A charge pump, for example the ICL7660. At 3 mA its output is about −(5 V − 0.003 A · 55 Ω) ≈ −4.8 V, and it needs only two capacitors.
5. Roughly what is the duty cycle of a boost converter that makes 16 V from 12 V?
D = 1 − 12 V / 16 V = 25 %. A real converter keeps the switch on a little longer, because of the voltage lost in the diode and the inductor.