Component guide · Beginner · 4 min read
Buck and Boost Converters
LM2596, MT3608 and XL6009 Explained
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A DC-DC converter changes one DC voltage to another efficiently by switching current through an inductor. A buck converter (such as the LM2596) steps voltage down, a boost converter (MT3608, XL6009) steps it up, and a buck-boost does both. They waste far less power as heat than a linear regulator, so they suit battery projects and higher currents.
Key specs at a glance
- LM2596 buck
- Input about 4.5 to 40 V, output 1.25 to 37 V, up to 3 A (about 2 A without a heatsink)
- MT3608 boost
- Input 2 to 24 V, output up to 28 V, about 1 A output at low boost ratios
- XL6009 boost
- Input 3 to 32 V, output 5 to 35 V, 4 A switch current
- Efficiency
- Typically 80 to 92%
- Adjustment
- Multi-turn trimmer potentiometer
- Headroom
- Buck input should be at least 1.5 to 2 V above output
Buck vs boost vs buck-boost
| Type | Does what | Example use | Example module |
|---|---|---|---|
| Buck (step-down) | Output lower than input | 12 V battery to 5 V for an ESP32 and servos | LM2596, MP1584, XL4015 |
| Boost (step-up) | Output higher than input | 3.7 V Li-ion to 5 V or 12 V | MT3608, XL6009 |
| Buck-boost | Output above or below input | 3 to 4.2 V Li-ion to a steady 3.3 V | XL6009 in SEPIC mode, TPS63020 boards |
| Linear regulator | Output lower, burns the difference as heat | Small, quiet 3.3 V rails | AMS1117, 7805 |
- Buck (step-down)
- Does what:
- Output lower than input
- Example use:
- 12 V battery to 5 V for an ESP32 and servos
- Example module:
- LM2596, MP1584, XL4015
- Boost (step-up)
- Does what:
- Output higher than input
- Example use:
- 3.7 V Li-ion to 5 V or 12 V
- Example module:
- MT3608, XL6009
- Buck-boost
- Does what:
- Output above or below input
- Example use:
- 3 to 4.2 V Li-ion to a steady 3.3 V
- Example module:
- XL6009 in SEPIC mode, TPS63020 boards
- Linear regulator
- Does what:
- Output lower, burns the difference as heat
- Example use:
- Small, quiet 3.3 V rails
- Example module:
- AMS1117, 7805
Why switching converters beat linear regulators for power
A linear regulator such as the 7805 drops the extra voltage across itself. From 12 V to 5 V at 1 A it turns 7 W into heat, which needs a large heatsink. A buck converter doing the same job at 85% efficiency loses under 1 W and barely warms up. The trade-off is a small amount of switching ripple, which you can filter with extra capacitors for noise-sensitive circuits such as audio or analog sensors. See voltage regulators for when linear is the better choice.
Set the output voltage before connecting your circuit
Converters often ship at their maximum output. Always adjust first:
- 1Connect the input supply to IN+ and IN-. Connect nothing to the output yet.
- 2Measure OUT+ and OUT- with a multimeter.
- 3Turn the brass trimmer screw. It is multi-turn: it may need 10 or more turns before the voltage starts moving. On most LM2596 boards, anticlockwise lowers the voltage.
- 4Set the voltage slightly above your target if your wires are long, then connect the load and re-check under load.
How to size a converter
pick a converter rated for at least 1.5x your peak load. Motors and servos peak far above their average.
A 3.7 V to 5 V boost delivering 1 A draws about 1.5 A from the battery (5 W / 3.7 V / 0.9 efficiency). Small boards like the MT3608 overheat when pushed.
include a fully charged battery (4.2 V per Li-ion cell) and any spikes.
above about 2 A, add a heatsink or choose a higher-rated module such as the XL4015 (5 A).
Reducing ripple and noise
Add a 100 to 470 µF low-ESR electrolytic and a 100 nF ceramic capacitor across the output, keep input and output wires short, and connect grounds at one point. For audio amplifiers and precision ADCs, follow the converter with a low-dropout linear regulator.
Try it: Power supply sizing calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Connecting the load before setting the output voltage, and frying it with the factory maximum.
- Reversing input polarity; most cheap modules have no reverse protection.
- Expecting full rated current from a tiny module without a heatsink.
- Underestimating boost input current from a small battery.
- Using a buck converter with too little headroom; the LM2596 needs the input about 1.5 to 2 V above the output.
Frequently asked questions
What is the difference between a buck and a boost converter?
A buck converter lowers voltage, for example 12 V to 5 V. A boost converter raises it, for example 3.7 V to 5 V. Both use an inductor and fast switching to do this efficiently.
Can an LM2596 give 5 V from 5 V?
No. It needs about 1.5 to 2 V more on the input than the output. For 5 V out, supply at least 7 V.
How much current can an MT3608 supply?
It has a 2 A switch limit, which in practice means about 1 A at 5 V from a Li-ion cell, less at higher output voltages. Use an XL6009 for more.
Can I power an Arduino or ESP32 from a buck converter?
Yes. Set it to 5 V and feed the 5V or VIN pin as appropriate, or set 3.3 V and feed the 3V3 pin of an ESP32. Confirm the voltage before connecting.
Why is my buck converter output voltage not changing?
The trimmer is multi-turn and may need many turns before the output moves. Also check that the input is high enough above the target output.
Parts for this guide
Calculators
Terms in this guide
Keep learning
Sources
- LM2596 SIMPLE SWITCHER datasheet (Texas Instruments)
- MT3608 datasheet (Aerosemi)
- XL6009 datasheet (XLSEMI)
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




