Comparison · Beginner · 4 min read
Voltage Regulators
7805 vs AMS1117 vs LDO vs Buck Converter
By Geekobot Learning Team · Updated 24 Oct 2026
On this page
A voltage regulator holds its output steady, such as 5 V or 3.3 V, while the input varies. Linear regulators like the 7805 and AMS1117 are simple and quiet but turn the extra voltage into heat: power lost = (Vin - Vout) x current. Use a low-dropout (LDO) regulator when input and output are close, and a buck converter when the difference or current is large.
Key specs at a glance
- 7805
- 5 V out, 7 to 35 V in, 1 A, about 2 V dropout, TO-220
- AMS1117
- 3.3 V or 5 V out, up to 15 V in, 1 A, about 1.1 V dropout, needs 22 µF output capacitor
- LM317
- Adjustable 1.25 to 37 V, 1.5 A, about 2 V dropout
- HT7333
- 3.3 V, 250 mA, about 0.1 V dropout at light load, 4 µA quiescent
- MCP1700
- Fixed 1.2 to 5 V, 250 mA, 178 mV dropout, 1.6 µA quiescent, 6 V max in
- Heat
- P = (Vin - Vout) x I
How a linear regulator works
A linear regulator is a transistor controlled by a feedback loop. It continuously adjusts how much voltage it drops so the output stays fixed. Everything it drops becomes heat, so efficiency is simply Vout / Vin: a 7805 fed with 12 V is only about 42% efficient.
Regulator comparison
| Regulator | Output | Min input for output | Max current | Choose it for |
|---|---|---|---|---|
| 7805 / LM7805 | 5 V | About 7 V | 1 A (with heatsink) | Classic 9 to 12 V to 5 V circuits |
| AMS1117-3.3 | 3.3 V | About 4.4 V | 1 A | 5 V USB to 3.3 V on dev boards |
| LM317 | 1.25 to 37 V (adjustable) | Vout + about 2 V | 1.5 A | Bench supplies, odd voltages |
| HT7333 / ME6211 / MCP1700 | 3.3 V | About 3.4 to 3.5 V | 250 to 500 mA | Li-ion powered ESP32 and sensors |
| Buck converter (LM2596) | Adjustable | Vout + about 1.5 V | 2 to 3 A | Large voltage drops or high current |
- 7805 / LM7805
- Output:
- 5 V
- Min input for output:
- About 7 V
- Max current:
- 1 A (with heatsink)
- Choose it for:
- Classic 9 to 12 V to 5 V circuits
- AMS1117-3.3
- Output:
- 3.3 V
- Min input for output:
- About 4.4 V
- Max current:
- 1 A
- Choose it for:
- 5 V USB to 3.3 V on dev boards
- LM317
- Output:
- 1.25 to 37 V (adjustable)
- Min input for output:
- Vout + about 2 V
- Max current:
- 1.5 A
- Choose it for:
- Bench supplies, odd voltages
- HT7333 / ME6211 / MCP1700
- Output:
- 3.3 V
- Min input for output:
- About 3.4 to 3.5 V
- Max current:
- 250 to 500 mA
- Choose it for:
- Li-ion powered ESP32 and sensors
- Buck converter (LM2596)
- Output:
- Adjustable
- Min input for output:
- Vout + about 1.5 V
- Max current:
- 2 to 3 A
- Choose it for:
- Large voltage drops or high current
Will my regulator overheat? Quick calculation
Power dissipated = (Vin - Vout) x I.
- 12 V to 5 V at 0.5 A with a 7805: (12 - 5) x 0.5 = 3.5 W. A bare TO-220 package can shed only about 1 to 1.5 W, so it needs a heatsink or a buck converter.
- 5 V to 3.3 V at 0.3 A with an AMS1117: 1.7 x 0.3 = 0.5 W. Fine on a small PCB area.
If the result is above about 1 W, choose a buck converter instead.
Pinouts and capacitors
1 = input, 2 = ground (tab), 3 = output. Add 0.33 µF on the input and 0.1 µF on the output.
1 = ground/adjust, 2 = output (tab), 3 = input. It needs at least 22 µF on the output for stability (tantalum or low-ESR electrolytic), plus 10 µF on the input.
1 = adjust, 2 = output, 3 = input. Vout = 1.25 x (1 + R2 / R1), with R1 = 240 Ω typical.
Always check the datasheet: pin orders differ between regulator families.
What "low dropout" means and why it matters for batteries
Dropout is the minimum gap between input and output for the regulator to keep working. A 7805 needs about 2 V; an AMS1117 about 1.1 V; a modern LDO such as the MCP1700 under 0.2 V. A Li-ion cell runs from 4.2 V down to about 3.3 V, so only a true LDO can deliver 3.3 V for most of the cell's charge. Also check quiescent current, the regulator's own consumption: the HT7333 and MCP1700 use a few microamps, the AMS1117 about 5 mA, which matters in deep-sleep projects.
Try it: Linear regulator heat calculator
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Using a 7805 to drop 12 V to 5 V at hundreds of milliamps without a heatsink.
- Expecting an AMS1117 to give 3.3 V from a single Li-ion cell; it drops out below about 4.4 V.
- Leaving out input and output capacitors, which can make the regulator oscillate.
- Reading pinouts from another family; 7805 and AMS1117 pin orders differ.
- Exceeding the MCP1700's 6 V maximum input.
Frequently asked questions
What is the minimum input voltage for a 7805?
About 7 V, since it needs roughly 2 V of headroom to hold 5 V at full current. Low-dropout 5 V regulators such as the LM2940 need less.
Can I use an AMS1117 for an ESP32?
Yes from a 5 V supply; it is on most ESP32 dev boards. It is a poor choice from a single Li-ion cell, where an LDO with lower dropout works better.
Why is my voltage regulator getting hot?
It is dropping too much voltage at too much current. Multiply (Vin - Vout) by the current: anything above about 1 W needs a heatsink or a switching converter.
LDO vs buck converter: which should I use?
Use an LDO for small voltage drops, low currents and noise-sensitive circuits. Use a buck converter when the drop or current is large, or when battery efficiency matters.
How do I set the output of an LM317?
Vout = 1.25 x (1 + R2 / R1). With R1 = 240 Ω, R2 = 720 Ω gives 5 V, and R2 = 390 Ω gives about 3.3 V.
Parts for this guide
Calculators
Terms in this guide
Projects that use it
Put this into practice: 2 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- LM7805 / µA7800 series datasheet (Texas Instruments)
- AMS1117 datasheet (Advanced Monolithic Systems)
- LM317 datasheet (Texas Instruments)
- MCP1700 datasheet (Microchip)
- HT73xx datasheet (Holtek)
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.




