---
title: Switching and linear regulators compared
heading: Why a linear regulator burns the voltage it drops as heat, how a switching converter changes voltage almost losslessly by chopping and filtering, the input current each draws, the temperature a linear regulator reaches, and when each is the right choice
eyebrow: D2 · Lesson 1 · Switching and linear regulators compared
xp: 40
---

::: hook
A phone charger takes 120 V from the wall and a laptop's processor wants about 1 V at tens of amperes. A linear regulator would get there by acting as a variable resistor that soaks up the difference, and at those ratios it would waste nearly all the power as heat. A switching converter instead turns a transistor fully on and fully off hundreds of thousands of times a second and smooths the result with an inductor and a capacitor. Fully on and fully off are the two states in which a transistor dissipates almost nothing, so efficiencies above 90% are routine.
:::

::: play
- Efficiency against output voltage for a regulator fed from $V_\text{in}$ and delivering current I: a linear regulator's is $V_\text{out}/V_\text{in}$; a switching converter's is modeled as $P_\text{out}/(P_\text{out} + P_0 + I^2R)$, with 0.15 W of fixed switching and control loss and 50 mΩ of conduction resistance.
- The linear regulator does well only when the output is close to the input.
- The switcher's efficiency barely depends on the voltage ratio but falls at light load, where its fixed losses dominate.
:::

```sim plot
view: graph
x: v = 0.5..24
y: e = 0..1
slider: V = 5..24 step 0.5 = 12
slider: I = 0.05..5 = 1 log
plot: v/V*step(V - v) | samples: 400 | color: ch3 | label: linear regulator
plot: v*I/(v*I + 0.15 + I^2*0.05) | samples: 400 | label: switching converter
readout: linear dissipation at 3.3 V out, W = (V - 3.3)*I | digits: 3
readout: switcher loss at 3.3 V out, W = 0.15 + I^2*0.05 | digits: 3
```

::: predict
## A linear regulator makes 3.3 V at 1 A from a 12 V supply. How much power does it turn into heat?

- [ ] 3.3 W
- [x] 8.7 W
- [ ] 12 W
- [ ] Almost none

::: reveal
The input current equals the output current, 1 A, so the regulator drops 12 − 3.3 = 8.7 V at 1 A: 8.7 W of heat to deliver 3.3 W, an efficiency of 27.5%. With 60 °C/W from junction to air, it would try to reach hundreds of degrees. A buck converter doing the same job at 90% draws only 0.31 A from the 12 V supply and loses 0.37 W.
:::
:::

::: nameit
## Linear regulators

A pass transistor in series with the load drops $V_\text{in} - V_\text{out}$ while carrying the load current, so

$$\eta = \frac{V_\text{out}}{V_\text{in}}, \qquad P_\text{diss} = (V_\text{in} - V_\text{out})I$$

ignoring its small quiescent current. Its output is quiet and fast, it needs no inductor, and a **low-dropout (LDO)** regulator works down to a few hundred millivolts of headroom. It can only step down.

## Switching converters

A transistor switches fully on (low voltage across it) or fully off (no current through it), so it dissipates little in either state. An inductor and capacitor average the chopped waveform into a steady output. Power is conserved apart from losses:

$$V_\text{in}I_\text{in}\eta = V_\text{out}I_\text{out}$$

so a converter that steps voltage down steps current up. Switchers can step down (buck), step up (boost) or invert, but their output carries ripple at the switching frequency and their fast edges make electromagnetic interference.

## Heat

A part dissipating P with thermal resistance $\theta_{JA}$ from junction to ambient runs at $T_J = T_A + P\theta_{JA}$. Silicon is usually limited to 125 to 150 °C.
:::

::: example
## A linear regulator in a package with $\theta_{JA}$ = 60 °C/W drops 5 V to 3.3 V at 0.5 A in a 25 °C room. How hot does it get, and is it efficient?

::: solution
1. **Power dissipated.**
   $$\begin{aligned} P &= (5 - 3.3) \times 0.5 \\ &= 0.85\ \text{W} \end{aligned}$$
2. **Junction temperature.**
   $$\begin{aligned} T_J &= 25 + 0.85 \times 60 \\ &= 76\ \text{°C} \end{aligned}$$
   comfortably safe.
3. **Efficiency.**
   $$3.3/5 = 66\%$$
   The linear regulator is a fine choice when the drop and the current are both small.

**Answer:** the junction reaches 76 °C, which is safe, and the regulator is 66% efficient.
:::
:::

::: example
## A switching converter makes 3.3 V at 1 A from 12 V at 90% efficiency. What current does it draw?

::: solution
1. **Input current.**
   $$\begin{aligned} I_\text{in} &= \frac{V_\text{out}I_\text{out}}{\eta V_\text{in}} \\ &= \frac{3.3}{0.9 \times 12} \\ &= 0.306\ \text{A} \end{aligned}$$
2. **Compare.** That's less than a third of the output current.

**Answer:** the converter draws 0.306 A from the 12 V supply.
:::
:::

::: example
## Could the same linear regulator ($\theta_{JA}$ = 60 °C/W) make 3.3 V at 0.5 A from 12 V instead of 5 V?

::: solution
1. **Power dissipated.**
   $$\begin{aligned} P &= (12 - 3.3) \times 0.5 \\ &= 4.35\ \text{W} \end{aligned}$$
2. **Junction temperature.**
   $$\begin{aligned} T_J &= 25 + 4.35 \times 60 \\ &= 286\ \text{°C} \end{aligned}$$
   far beyond any rating.
3. **Efficiency.**
   $$3.3/12 = 27.5\%$$
4. **The better choice.** A large drop at a large current is where a switching converter is the only sensible choice.

**Answer:** no. It would dissipate 4.35 W and put the junction at 286 °C, at 27.5% efficiency.
:::
:::

::: check
given: a = 5 | 12 | 24; b = 1.8 | 3.3; I = 0.2 | 1 | 2
answer: (a - b)*I
unit: W
tolerance: 0.5%

## A linear regulator drops {a} V to {b} V at {I} A. How much power does it dissipate?

::: right
Right. $(V_\text{in} - V_\text{out})I$ = {answer} W.
:::

::: misses
- [b*I] That's the power delivered to the load.
- [any] Not yet. Voltage across the pass transistor times current.
:::
:::

::: check
given: a = 5 | 12 | 24; b = 1.8 | 3.3
answer: 100*b/a
tolerance: 0.5%

## What's the efficiency, in percent, of a linear regulator dropping {a} V to {b} V?

::: right
Right. $V_\text{out}/V_\text{in}$ = {answer}%.
:::

::: misses
- [100*(a - b)/a] That's the fraction lost.
- [any] Not yet. Output voltage over input voltage.
:::
:::

::: check
given: a = 9 | 12 | 48; b = 1.2 | 3.3 | 5; I = 1 | 3; e = 0.85 | 0.92
answer: b*I/(e*a)
unit: A
tolerance: 0.5%

## A switching converter delivers {b} V at {I} A from a {a} V supply with efficiency {e}. What current does it draw from the supply?

::: right
Right. $V_\text{out}I_\text{out}/(\eta V_\text{in})$ = {answer} A.
:::

::: misses
- [I] That's what a linear regulator draws; a switcher trades voltage for current.
- [b*I/a] Include the efficiency.
- [any] Not yet. Power in = power out over efficiency.
:::
:::

::: check
given: a = 5 | 9; b = 3.3 | 1.8; I = 0.1 | 0.3 | 0.5; t = 40 | 80
answer: 25 + (a - b)*I*t
unit: °C
tolerance: 0.5%

## A linear regulator with $\theta_{JA}$ = {t} °C/W drops {a} V to {b} V at {I} A in a 25 °C room. What's its junction temperature?

::: right
Right. $T_A + P\theta_{JA}$ = {answer} °C.
:::

::: misses
- [(a - b)*I*t] Add the ambient temperature.
- [any] Not yet. Dissipation times thermal resistance, plus ambient.
:::
:::

::: check
kind: parts
given: Vi = 5 | 9 | 12; Vo = 1.8 | 3.3; I = 0.2 | 0.5 | 1; t = 40 | 60

## A linear regulator drops {Vi} V to {Vo} V at {I} A, in a package with {t} °C/W, in a 25 °C room.

::: part
answer: (Vi - Vo)*I
unit: W
tolerance: 0.5%

### What does it dissipate?

::: misses
- [any] $(V_\text{in} - V_\text{out})I$.
:::
:::

::: part
answer: 25 + (Vi - Vo)*I*t
unit: °C
tolerance: 0.5%

### How hot is its junction?

::: misses
- [any] Ambient + power × θ.
:::
:::
:::

::: check
kind: parts
given: Vi = 12 | 24 | 48; Vo = 3.3 | 5; I = 1 | 3; e = 85 | 92

## A switching converter makes {Vo} V at {I} A from {Vi} V at {e}% efficiency.

::: part
answer: Vo*I/(e/100*Vi)
unit: A
tolerance: 0.5%

### What input current does it draw?

::: misses
- [Vo*I/Vi] Account for the efficiency.
- [any] $V_oI_o/(\eta V_i)$.
:::
:::

::: part
answer: Vo*I*(1/(e/100) - 1)
unit: W
tolerance: 0.5%

### What does it lose as heat?

::: misses
- [any] Input power less output power.
:::
:::
:::

::: explain
## Why can a switching converter be far more efficient than a linear regulator?

::: model
A linear regulator controls its output by acting as a variable resistance in series with the load, so the full load current flows through it while it holds off the whole difference between input and output voltage, and that product is dissipated as heat. A switching converter's transistor is only ever fully on, with almost no voltage across it, or fully off, with no current through it, so its dissipation is small in both states. The inductor and capacitor that follow store and release energy to average the chopped waveform rather than burning the excess, so the converter delivers nearly all of its input power to the load at a lower voltage and higher current.
:::
:::

::: practice

::: check
given: a = 3.3 | 48; b = 0.9 | 3; I = 0.01 | 5
answer: (a - b)*I
unit: W
tolerance: 0.5%

## Linear dissipation: {a} V to {b} V at {I} A?

::: misses
- [any] $(V_\text{in} - V_\text{out})I$.
:::
:::

::: check
given: a = 5 | 400; b = 1 | 4.5; I = 0.1 | 50; e = 0.8 | 0.97
answer: b*I/(e*a)
unit: A
tolerance: 0.5%

## Switcher input current: {a} V in, {b} V and {I} A out, η = {e}?

::: misses
- [any] $V_\text{out}I_\text{out}/(\eta V_\text{in})$.
:::
:::

::: check
given: a = 3.3 | 48; b = 0.9 | 3
answer: 100*b/a
tolerance: 0.5%

## Linear efficiency, %: {a} V to {b} V?

::: misses
- [any] $V_\text{out}/V_\text{in}$.
:::
:::
:::
