Home > Blog > The Posts

AMS1117 vs LM2596 vs LM317: Linear vs Switching Regulator — Which Should You Buy?

2026/6/25 11:36:57
AMS1117 vs LM2596 vs LM317: Linear vs Switching Regulator - Which Should You Buy? | ICMASS

AMS1117 vs LM2596 vs LM317: Linear vs Switching Regulator - Which Should You Buy?

These three parts cover 90% of voltage regulation needs: AMS1117 (1A LDO), LM2596 (3A buck converter), and LM317T (1.5A adjustable linear regulator). But they work completely differently - a linear regulator burns excess voltage as heat, while a switching regulator chops and filters it at high efficiency.

This direct comparison covers efficiency, thermal performance, BOM cost, noise, and application fit so you can pick the right part on the first design spin.

Quick Answer - Which Part Should You Buy?

If You Need… Buy This Because…
3.3V from 5V USB at <1A AMS1117-3.3 Low dropout (1.1V), tiny SOT-223, $0.10
5.0V from 7-12V at <1A AMS1117-5.0 Clean output, simple circuit, same low cost
5.0V from 12V at 1-3A LM2596-5.0V 82% efficiency vs 40% for linear - no heatsink needed
Adjustable 1.25-37V at <1.5A LM317T Classic adjustable linear, known by every engineer
Adjustable 1.23-37V at up to 3A LM2596S-ADJ Switching = 75-85% efficiency at high differential
12V→3.3V at >500mA LM2596S-ADJ Linear would dissipate 8.7W+ (needs huge heatsink)
Cleanest possible output AMS1117 or LM317T Linear has 0.01%/V line reg vs 1-2% for switching

Side-by-Side Spec Comparison

Parameter AMS1117-3.3/5.0 LM317T LM2596S-ADJ/-5.0V
Type Linear LDO Linear Adjustable Switching Buck
Output Voltage Fixed 3.3V or 5.0V Adj 1.25V–37V Adj 1.23V–37V or Fixed 5V
Max Output Current 1A 1.5A 3A
Dropout / Headroom 1.1V 2.0V Depends on Vin/Vout ratio
Efficiency at 12V→5V 42% 42% 82%
Output Noise <100 µVrms <100 µVrms 10-50 mVpp
External Components 2 caps 2 caps + 2 resistors Caps + inductor + diode + resistors
Package SOT-223 (tiny) TO-220 (through-hole) TO-263 / TO-220
Price (qty 1000+) $0.08–$0.15 $0.25–$0.40 $0.50–$0.85
Total BOM Cost ~$0.20 ~$0.45 ~$1.20–1.80

Efficiency Face-Off - When Linear Loses Hard

Efficiency at Various Input/Output Combinations

Vin Vout Iout AMS1117 LM317T LM2596
5V 3.3V 500mA 66% - -
7V 5.0V 500mA 71% 71% 80%
12V 5.0V 1A 42% 42% 82%
12V 3.3V 1A 28% 28% 78%
24V 5.0V 500mA 21% 21% 80%

Key insight: When Vin − Vout > 4V, linear regulators waste more than half the input power as heat.

Power Dissipation - Heat You Must Deal With

Scenario AMS1117 Dissipation LM2596 Dissipation Winner
5V→3.3V @ 500mA 0.85W - AMS1117 (simple)
12V→5V @ 1A 7.0W ~1.5W LM2596 (5× less heat)
12V→3.3V @ 1A 8.7W ~2.3W LM2596 (4× less heat)
24V→5V @ 500mA 9.5W ~1.9W LM2596 (5× less heat)

Buyer rule: If you need >500mA AND Vin − Vout > 4V, go switching (LM2596).

BOM and Cost Comparison

Option A: AMS1117 - Simplest + Cheapest (~$0.12/rail)

Component Cost (qty 1000)
AMS1117-3.3 regulator $0.10
Input cap + output cap $0.02
Total ~$0.12

Best for: Low-power designs, tight budgets, clean output needed.

Option B: LM317T - Classic Adjustable (~$0.44/rail)

Component Cost (qty 1000)
LM317T regulator $0.30
Resistors + caps + heatsink $0.14
Total ~$0.44

Best for: Through-hole designs, adjustable output, general lab use.

Option C: LM2596 - Switching (~$0.95/rail)

Component Cost (qty 1000)
LM2596S-ADJ regulator $0.55
Inductor + Schottky + caps + resistors $0.40
Total ~$0.95

Best for: 1-3A loads, high Vin−Vout differential, battery-powered devices.

Application Fit

Project Vin Vout Iout Best Regulator
ESP32 breakout board (USB) 5V 3.3V 300mA AMS1117-3.3
Bench variable power supply 12V 1.25-12V 1A LM317T
3D printer controller 24V 5V 2A LM2596-5.0V
Audio DAC board 9V 5V 300mA AMS1117-5.0 or LM317T
Multi-rail FPGA board 12V 3.3+1.8+1.2V 3A total LM2596S-ADJ (×3)
USB-C PD sink (20V→5V) 20V 5V 3A LM2596-5.0V

Decision Tree

What is your output current requirement? │ ├── <500mA ──→ Can you use linear? │ ├── Vin−Vout <4V? ──→ AMS1117 (fixed) or LM317T (adj) │ └── Vin−Vout >4V? ──→ LM2596 or LM317T with heatsink │ ├── 500mA–3A ──→ LM2596 │ ├── 5V fixed? ──→ LM2596-5.0V │ └── Adjustable? ──→ LM2596S-ADJ │ └── >3A ──→ LM350 (3A) or LT1083 (5-7.5A)

Common Mistakes

Mistake 1: Using linear at high differential - 12V→5V at 1A through AMS1117 = 7W heat. Use LM2596 instead.
Mistake 2: Using switching when noise matters - LM2596 has 10-50 mVpp ripple. For audio/ADC, use linear or post-regulate.
Mistake 3: Ignoring LM2596 inductor selection - Wrong inductor = oscillation. Check datasheet nomograph.
Mistake 4: No heatsink on LM317T at >500mA - Always heatsink when Iout × (Vin−Vout) > 2W.
Mistake 5: Using LM2596 for <100mA loads - Efficiency drops below 60%. Use AMS1117 instead.

FAQ

Q1: Which is more efficient - linear or switching regulator?

Switching (LM2596) wins when Vin−Vout > 3V. At 12V→5V, LM2596 achieves 82% vs 42% for linear.

Q2: Can I use AMS1117 instead of LM2596?

Only if Iout < 1A AND Vin−Vout < 4V. Otherwise, the heat dissipation is unmanageable.

Q3: Can I use LM2596 instead of LM317T for bench supply?

Yes - but output has 10-50 mVpp ripple. Add LC filter or LDO post-regulator for clean output.

Q4: Which regulator is best for battery-powered devices?

LM2596 for loads >100mA (efficiency). AMS1117 for always-on rail (quiescent current).

Q5: What is the noise difference?

AMS1117/LM317T: <100 µVrms. LM2596: 10-50 mVpp. Digital loads don't care. Analog does.

Q6: Which has the lowest BOM cost?

AMS1117 at ~$0.12/rail. LM317T at ~$0.44. LM2596 at ~$0.95.

Q7: Where to buy all three at competitive prices?

ICMASS stocks all five parts with traceable batch numbers and volume pricing.

Final Verdict

Use Case Regulator Reason
3.3V rail from 5V USB, <500mA AMS1117-3.3 Cheapest, simplest, cleanest
5V analog/audio rail AMS1117-5.0 or LM317T Clean output, low noise
Variable output bench supply LM317T Classic, proven, every engineer knows it
12V→5V at 1-3A, digital logic LM2596-5.0V 82% efficiency, no heatsink
High differential (>10V), any current LM2596 Linear would burn more power than the load

TL;DR: <500mA with <4V differential → AMS1117. Adjustable output at low current → LM317T. Anything over 500mA or high differential → LM2596.

Internal Links


Comparison guide by ICMASS - your sourcing partner for power management ICs.

Related information

Subscribe to IC-MAX!
Contact Name
*Email
Featured PartsMore
LNK304DN-TL
LNK304DN-TL Power Integrations
LNK304GN-TL
LNK304GN-TL Power Integrations
LNK304DG-TL
LNK304DG-TL Power Integrations
TNY277PN
TNY277PN Power Integrations
TNY276PN
TNY276PN Power Integrations
TNY278PN
TNY278PN Power Integrations
TNY278GN-TL
TNY278GN-TL Power Integrations
TNY280GN-TL
TNY280GN-TL Power Integrations
TOP266KG-TL
TOP266KG-TL Power Integrations
TOP258PN
TOP258PN Power Integrations
TOP253PN
TOP253PN Power Integrations
TOP253PNAU
TOP253PNAU Power Integrations
index: 1 2 3 4 5 6 7 8 9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
ICMASS.COM

HOME

ICMASS.COM

PRODUCT

ICMASS.COM

PHONE

ICMASS.COM

USER