Linear Voltage Regulators Explained: 7805, LDOs, Dropout Voltage, and Thermal Design
Before reaching for a switching buck converter, a huge number of small maker-project power problems are solved more simply and more cheaply with a linear regulator — a 7805, an AMS1117, or a low-dropout (LDO) part like an LM1117 or MCP1700. Linear regulators are simpler to wire, produce no switching noise, and are the right tool whenever the input-to-output voltage difference is small and the current draw is modest. Used outside that range, though, they waste power as heat and can overheat or shut down unexpectedly — which is the single most common linear regulator mistake in maker electronics. This guide covers how linear regulators actually work, when to choose one over a switching converter, and how to size the heatsinking so a regulator doesn't quietly cook itself.
How a Linear Regulator Works
A linear regulator is, functionally, a variable resistor in series with the load, continuously adjusted to drop exactly the excess voltage needed to hold the output at its rated value. Every bit of that dropped voltage, multiplied by the load current, is dissipated as heat in the regulator itself rather than being converted efficiently the way a switching converter's inductor-based topology does. That's the fundamental tradeoff: linear regulators are simple, cheap, and quiet electrically, but inefficient whenever there's a large voltage drop to shed.
Common Linear Regulator Types
PartOutputDropout voltageTypical use 7805 / 7805 family (78xx)Fixed 5V (78xx series covers other fixed voltages too)~2VClassic fixed 5V regulation from a 9-12V supply; simple, robust, widely available, but needs real dropout headroom AMS1117-3.3 / AMS1117-5.0Fixed 3.3V or 5V~1-1.3VExtremely common on ESP32, Arduino, and breakout boards for exactly this reason — low cost, low dropout, small SOT-223 package LM1117 / LD1117Fixed or adjustable~1VSimilar niche to the AMS1117 with tighter tolerance specs; common on higher-quality dev boards MCP1700 / MCP1703Fixed, low-power variants~0.2-0.6VVery low quiescent current, well suited to battery-powered ESP32/sensor projects where standby drain matters LM317 (adjustable)1.25V-37V, set by resistor divider~1.5-2VAdjustable output for bench supplies and one-off voltage needs; this site's variable bench power supply project uses one directlyDropout Voltage: The Number That Actually Matters
Dropout voltage is the minimum difference between input and output voltage the regulator needs to maintain regulation — below that margin, the output sags below its rated value regardless of what the datasheet promises at the nominal output. A 7805 needs roughly 2V of headroom, so a "12V in, 5V out" design has plenty of margin, but running it from a nearly-depleted 6V battery pack will not produce a clean 5V rail. This is exactly why low-dropout parts exist: an LDO regulating 3.3V from a single-cell Li-ion battery that sags to 3.6V toward the end of a discharge cycle needs a genuinely low dropout spec to keep working right up until the battery is nearly empty — a standard 78xx-family part would drop out of regulation long before a low-dropout part does.
Sizing the Heatsink
Power dissipated as heat in a linear regulator is straightforward to calculate: (Input Voltage − Output Voltage) × Load Current. A 7805 dropping 12V to 5V at 500mA dissipates (12−5) × 0.5 = 3.5W — enough to overheat a bare TO-220 package quickly and trigger thermal shutdown (most regulators include this as a protection feature, but repeated thermal cycling from hitting it regularly shortens component life).
- Calculate worst-case dissipation using the highest expected input voltage and highest expected load current, not typical values — thermal problems show up under worst-case conditions, not average ones.
- Check the regulator's datasheet for junction-to-ambient thermal resistance without a heatsink, and junction-to-case resistance with one, to estimate actual operating temperature at your calculated wattage.
- Add a heatsink (even a small clip-on TO-220 heatsink) whenever calculated dissipation exceeds roughly 0.5-1W in a typical enclosed project box — free convective airflow in a closed enclosure is far worse than an open bench, and enclosure heat buildup is a common reason a design that tested fine on the bench overheats once boxed up.
- For dissipation beyond a few watts, reconsider whether a linear regulator is the right topology at all — this is exactly the point where a switching buck converter starts winning decisively on efficiency and heat.
Linear vs. Switching: When to Choose Which
FactorFavors linearFavors switching (buck/boost) Input-output voltage differenceSmall (a volt or two)Large (many volts to shed) Load currentLow (under a few hundred mA)Higher currents where linear losses become real heat Noise sensitivityAnalog sensor front-ends, RF/radio circuits, audioNoise-tolerant digital loads (usually fine with a decent output filter) Battery efficiencyRarely — only in very low-drop, low-current casesAlmost always — this site's buck/boost converter guide covers the efficiency case in depth Design simplicityTwo capacitors and a three-pin part, doneMore components (inductor, diode or sync FET, feedback network) and more layout careA very common and sensible pattern in maker projects is a hybrid: a switching converter for the big, inefficient voltage drop (say, 12V down to 5V), followed by a linear regulator or LDO for a final, clean, low-noise 3.3V rail feeding sensitive analog sensors or an ADC reference — getting the efficiency benefit where it matters and the clean output where that matters more than efficiency.
Practical Wiring Notes
- Always follow the datasheet's recommended input and output capacitor values — omitting them, or substituting the wrong type, is a common cause of oscillation or instability that looks like a bad regulator but is actually a missing decoupling capacitor.
- Keep input and output capacitor leads or traces short — linear regulators are generally more tolerant of layout than switching converters, but excessive lead length on the input capacitor can still allow ringing on a noisy supply.
- Double-check pinout before wiring — 78xx-family TO-220 parts and many LDOs use different pin orders between manufacturers and packages, and reversing input/ground/output on a linear regulator is one of the most common ways to destroy one during prototyping.
Safety
A linear regulator running near its thermal limit can reach temperatures well above what's safe to touch even though nothing looks visibly wrong — let any regulator that's been under load cool before handling it, and treat unexpected thermal shutdown as a sign to recheck the dissipation math rather than just letting it cycle repeatedly.
Linear regulators aren't obsolete — they're simply matched to a narrower job than switching converters. For clean, low-noise, low-current rails with modest voltage drop, a 7805 or a low-dropout part remains the simplest, cheapest, and most reliable choice in the toolbox; the skill is recognizing early when a design has drifted outside that comfort zone and a switching topology is the more honest answer.
Related Guides
- How to Program Addressable LED Strips: WS2812B Patterns, Effects, and Power Design
- I2C vs SPI vs UART: How to Choose and Use Serial Communication Protocols
- How to Use Sensors with Arduino and ESP32: Temperature, Distance, Load, Current, and Hall Effect
- How to Control Motors with Arduino and ESP32: Stepper, DC, and Servo Drivers
- ESP32: Setting Up for Arduino IDE
- Arduino vs ESP32: Which Should You Use? A Practical Comparison
- Getting Started with ESP32: GPIO, WiFi, and Your First Project
- I2C Wiring and Protocol Guide for Arduino, ESP32, and Raspberry Pi