Parts

7805 regulator: pinout, the 2 V dropout and the heat sink

By

The 7805 in TO-220 is input, ground, output, reading from the left with the printed face toward you and the leads down. The metal tab is ground, so it can be bolted to a heat sink or a grounded chassis without an insulator.

It gives a steady 5 V from anything between about 7.5 V and 25 V, and it turns every volt above 5 V into heat. This page covers the dropout, the two small capacitors and the heat sink, with the numbers from two Texas Instruments datasheets: the uA78xx and the LM340 / LM7805 family.

Datasheet: Texas Instruments uA78xx Fixed Positive Voltage Regulators, SLVS056P (PDF)

Advertisement

Pinout by package

uA7805CKCS TO-220 · Texas Instruments1=IN 2=GND 3=OUT
tab =groundprinted facetoward youIN1 InputGND2 Ground (common)OUT3 Output

Printed face toward you, leads down: input, ground, output from left to right. The tab is ground (TI calls it COMMON).

Source: Texas Instruments uA78xx Fixed Positive Voltage Regulators, SLVS056P, p. 3 (KCS/KCT (TO-220) top view with the tab on COMMON; pin table: INPUT 1, COMMON 2, OUTPUT 3)

LM7805CT TO-220 · Texas Instruments1=IN 2=GND 3=OUT
tab =groundprinted facetoward youIN1 InputGND2 Ground (common)OUT3 Output

Printed face toward you, leads down: input, ground, output from left to right. The tab is ground.

TI changed the pin numbers in revision L (2016) from 2, 3, 1 to 1, 2, 3. The order on the body did not change; older copies of the sheet just number it differently.

Source: Texas Instruments LM340, LM340A and LM7805 Family Wide VIN 1.5-A Fixed Voltage Regulators, SNOSBT0L, p. 3 (NDE (TO-220) top view, tab marked GND; pin table: INPUT 1, GND 2, OUTPUT 3); Texas Instruments LM340, LM340A and LM7805 Family Wide VIN 1.5-A Fixed Voltage Regulators, SNOSBT0L, p. 3 (DCY (SOT-223): INPUT, GND, OUTPUT, with the tab on GND)

Which one do you have?

The last two digits are the output voltage: a 7805 gives 5 V, a 7812 gives 12 V, a 7815 gives 15 V. The letters in front name the maker (uA and LM for TI, L for ST, MC for onsemi) and the ones after it the package and grade, so a uA7805CKCS and an LM7805CT are the same job in the same TO-220.

The pins and the tab are the same on every member of the family. Only the output and the input range change, so read the number on the body before you swap one for another.

Ratings

The absolute maximum input is 35 V in both sheets (40 V for the 7824). TI recommends 7 to 25 V for the 7805, and the LM7805 sheet says the input must stay at 7.5 V or more to hold regulation at 1 A.

Ratings from each datasheet
ParameteruA7805CKCSTO-220LM7805CTTO-220
Input voltage, absolute maximum VI35 V (40 V for the 7824)35 V
Input voltage, recommended, 7805 VI7 to 25 V7.5 V min to hold regulation at 1 A
Output current, recommended IO1.5 A1.5 A (title)
Power dissipation PDnot given; thermal-overload protectedinternally limited
Junction temperature TJ150 °C max; 0 to 125 °C recommended150 °C max
Junction to ambient, TO-220 RθJA19 °C/W (JEDEC board model)54 °C/W in free air; 23.9 °C/W (JEDEC board model)
Junction to case, TO-220 RθJC17 °C/W (top)4 °C/W
Storage temperature TSTG−65 to 150 °C−65 to 150 °C

Two thermal figures matter. The 54 °C/W is the LM340 sheet's figure for a TO-220 standing in free air with no heat sink, and it is in a footnote, not the thermal table. The 19 and 23.9 °C/W in the thermal tables are for TI's standard test board, which a part on wires or perfboard never sees. Design to 54 °C/W without a sink, and to the 4 °C/W junction to case when you add one.

Dropout, bias current and the capacitors

Limits for the 7805; min / typ / max where three figures are given
ParameteruA7805CKCSTO-220LM7805CTTO-220
Output voltage, 7805 VO25 °C, 5 mA to 1 A; min / typ / max4.8 / 5 / 5.2 V4.8 / 5 / 5.2 V
Output voltage, over temperature VO0 to 125 °C, PD up to 15 W4.75 to 5.25 V4.75 to 5.25 V
Dropout voltageIO = 1 A, 25 °C; typ2 V2 V
Bias (quiescent) current IQtyp / max4.2 / 8 mA (25 °C)8 mA max (25 °C), 8.5 mA over temperature
Line regulation7 to 25 V in, 25 °C; typ / max3 / 100 mV3 / 50 mV (500 mA)
Load regulation5 mA to 1.5 A, 25 °C; typ / max15 / 100 mV10 / 50 mV
Ripple rejection120 Hz; min / typ62 / 78 dB62 / 80 dB
Output noise10 Hz to 100 kHz; typ40 µV40 µV
Short-circuit current25 °C; typ750 mA2.1 A
Peak output current25 °C; typ2.2 A2.4 A
Capacitors the maker asks for0.33 µF in, 0.1 µF out in the simplified schematic; output capacitor not needed for stability0.22 µF in if far from the supply filter; 0.1 µF out recommended

The dropout is 2 V at 1 A in both sheets, and that is a typical figure, not a maximum. So a 7805 wants about 7 V in at the very least, and 7.5 V to be sure at full current. A 6 V battery or a 5 V USB supply is not enough.

The bias current, up to 8.5 mA over temperature, runs from the input to ground whether there is a load or not. It is small beside the load current, but it is heat too, and it is why a 7805 drains a battery even with nothing connected.

The capacitors are small. TI's circuit uses 0.33 µF on the input and 0.1 µF on the output, and the uA78xx sheet says the output capacitor is not needed for stability; it only helps the transient response. The input capacitor is the one that matters when the regulator sits away from the supply's filter capacitor. If you fit a large capacitor on the output, the LM340 sheet asks for a diode from output to input, so the output capacitor cannot discharge back through the chip if the input is shorted.

The family: 7808, 7812, 7815 and 7824

Every member needs its output plus at least 2 V, and more at the top of the family. The uA78xx sheet gives each one its own input window and output limits at 25 °C:

0 V10 V20 V30 V40 V780578087810781278157824Bar: input range. Black line: output.
Figure 1. Recommended input range against output for each part. The gap below each bar is the headroom it needs.
  • 7805: 4.8 to 5.2 V out at 25 °C, 7 to 25 V in.
  • 7808: 7.7 to 8.3 V out at 25 °C, 10.5 to 25 V in.
  • 7810: 9.6 to 10.4 V out at 25 °C, 12.5 to 28 V in.
  • 7812: 11.5 to 12.5 V out at 25 °C, 14.5 to 30 V in.
  • 7815: 14.4 to 15.6 V out at 25 °C, 17.5 to 30 V in.
  • 7824: 23 to 25 V out at 25 °C, 27 to 38 V in.

A 7812 from a 12 V battery does not work: it needs 14.5 V. The heat sum below works the same way for each of them, with the part's own output in place of 5 V.

The 7806 and 7809

Both exist (6 V and 9 V out) in the same TO-220 with the same pins, but neither TI sheet covers them, and the ST and onsemi sheets that do could not be reached for this page. We give no limits for them here rather than borrow the 7805's. Take the input range and dropout from the datasheet of the maker whose part you hold.

What it is good for

  • 5 V for logic, sensors and small boards from a 9 V or 12 V supply, at modest current.
  • A clean, quiet rail after a transformer, rectifier and filter capacitor.
  • A local regulator on a card fed from a higher, noisier bus.

It is a poor choice where the drop is large and the current is high, or where a battery has to last. From 12 V it wastes more than half the input power, so a buck converter such as the LM2596 does that job better. For an odd voltage, the LM317 sets its output with two resistors; for 3.3 V from 5 V, see the AMS1117.

Worked example: 5 V at 500 mA from a 12 V adapter

An Arduino board, a relay module and a few LEDs draw about half an amp. Model them as a 10 Ω load on 5 V: 500 mA. The 7805 has 0.33 µF on its input and 0.1 µF on its output, as in TI's circuit, and the air around it is 35 °C.

1. Heat. (12 − 5) V × 500 mA + 12 V × 8.5 mA of bias current = 3.6 W. The load itself gets 2.5 W, so the regulator burns more than the circuit uses.

2. Without a heat sink. 3.6 W × 54 °C/W = 195 °C of rise. The bare TO-220 can lose only 1.67 W between 35 °C and 125 °C, so the part overheats, its thermal protection cuts the output and the board keeps resetting.

3. How much it could carry bare. (1.67 W − 12 V × 8.5 mA) / 7 V = 224 mA.

4. The heat sink. From 125 °C down to 35 °C at 3.6 W allows 25.0 °C/W in all. Take away the 4 °C/W from junction to case, and the sink plus its mounting pad must be 21.0 °C/W or better.

5. Efficiency. 2.5 W out of 6.1 W in is 41 %. Change the input to 9 V and the heat falls to 2.08 W, which needs only 39.3 °C/W.

1 IN 3 OUT 2 GND 7805 +12 V C1 0.33 µF 5 V C2 0.1 µF RL 10 Ω
Figure 2. The 5 V rail from the example. Simulated, this drawing gives 5 V out and 3.6 W in the regulator from 12 V, and 2.08 W from 9 V.
Heat in the 7805 at 500 mA8 V1.57 W9 V2.08 W12 V3.60 W15 V5.13 W1.67 W: bare TO-220 at 35 °C
Figure 3. The same load from four supplies. Only 8 V stays under the line without a heat sink.
0 mA200 mA400 mA600 mA800 mA1000 mA891011121314151617181920example load, 500 mAInput voltage, V
Figure 4. Most load current against input voltage with no heat sink, at 54 °C/W. Above about 8.2 V the example load needs a sink.
Heat sink needed, °C/W (bigger is easier)8 Vnone9 V39.312 V21.015 V13.6bare tab: 50 °C/W
Figure 5. The heat sink needed at 500 mA. A lower °C/W is a bigger sink: from 15 V it takes 13.6 °C/W.

A heat sink's maker quotes its rating in °C/W; compare that number, plus the pad, with 21.0 °C/W before you buy. The regulator thermal design lesson works the same sums for other packages.

Worked example in numbers

Heat from 12 V
3.6 W
Most current, no sink
224 mA
Heat sink needed
21.0 °C/W
Efficiency from 12 V
41 %
Advertisement

Tips and checks

  • Work out the heat before anything else: (input − 5 V) × load current. Above about 1.7 W at 35 °C, plan a heat sink.
  • Feed it from the lowest supply that stays above 7.5 V at full load and lowest mains. Every extra volt is another half watt at 500 mA.
  • The tab is ground, so a grounded chassis makes a free heat sink. Use thermal paste or a pad; a dry metal-to-metal joint adds its own thermal resistance.
  • Put the input capacitor right at the pins if the bulk filter capacitor is more than a few centimetres away.
  • With a big capacitor on the output, add a diode from output to input (cathode on the input) so a shorted input cannot pull current back through the chip.

Substitutes

Any 7805 from any maker fits the same footprint. The LM7805 and LM340-5 from TI are the tighter-spec versions of the same part. The 7805 vs LM317 vs AMS1117 page compares the three side by side, and LM2596 vs 7805 shows when a buck regulator beats it.

Pin order on the TO-220, printed face toward you, leads down, left to right
PartPinsVerdict
LM7805, LM340-5 (TI)IN-GND-OUTThe same pins and the same 2 V dropout, with tighter line and load regulation. A drop-in for any 7805 in TO-220.Texas Instruments LM340, LM340A and LM7805 Family Wide VIN 1.5-A Fixed Voltage Regulators, SNOSBT0L, p. 3; Texas Instruments LM340, LM340A and LM7805 Family Wide VIN 1.5-A Fixed Voltage Regulators, SNOSBT0L, p. 6
7812, 7815 and the rest of the familyIN-GND-OUTSame package, pins and tab; only the output and the input window change. Check the number on the body before you fit one in place of another.Texas Instruments uA78xx Fixed Positive Voltage Regulators, SLVS056P, p. 3; Texas Instruments uA78xx Fixed Positive Voltage Regulators, SLVS056P, p. 4

A bench check

  1. Power off, meter on continuity: the tab should read 0 Ω to the middle pin.
  2. Feed 12 V from a current-limited supply with no load. The output should read 4.8 to 5.2 V.
  3. Add a 10 Ω resistor rated 5 W or more as the load (500 mA, 2.5 W in the resistor), with the 7805 on its heat sink. The output should barely move.
  4. Turn the supply down slowly and note where the output starts to fall. The gap between input and output there is the dropout, about 2 V.

The common mistakes: the pins read as output, ground, input (that is the order from the back), no heat sink at half an amp from 12 V, a 7812 run from a 12 V battery, and a large output capacitor with no protection diode.

What we'd do

Use a 7805 from 8 to 9 V where you can, with 0.33 µF in and 0.1 µF out at the pins. From 12 V, fit a heat sink of 21.0 °C/W or better for half an amp, or keep the load under about 220 mA bare. If the current is high or the input is battery power, use a buck converter instead.

Questions people ask

What is the 7805 pinout?

In TO-220, printed face toward you and leads down: 1 input, 2 ground, 3 output. The tab is ground.

What is the minimum input voltage of a 7805?

TI recommends 7 V at least, and the LM7805 sheet asks for 7.5 V to hold regulation at 1 A. The dropout is about 2 V.

Does a 7805 need a heat sink?

Only when the heat is more than about 1.7 W. From 12 V that means above about 224 mA; at 500 mA it needs a 21.0 °C/W sink.

Why does my 7805 get so hot?

It turns the difference between its input and 5 V into heat. At 500 mA from 12 V that is 3.6 W, more than the circuit it feeds uses.

What capacitors does a 7805 need?

0.33 µF on the input and 0.1 µF on the output, as in TI's circuit. The output capacitor is not needed for stability, but it helps the response to load steps.

What is the difference between the 7805 and 7812?

Only the output: 5 V against 12 V. The pins are the same, and the 7812 needs at least 14.5 V in.

Buying the 7805 in India

The 7805 is easy to find, loose in TO-220 or on small regulator boards with the capacitors and a heat sink fitted. Our guide to buying electronic components in India compares ten online sellers and covers how to spot fakes. Buy the heat sink at the same time and check its °C/W rating.

Advertisement

One email a month from the bench

New circuits, lessons, part guides and calculators, on the first Sunday of each month.

We'll send one email to confirm. Every email has a one-click unsubscribe. Privacy policy

Used in these lessons

Lessons that go deeper

Datasheets this page was checked against

Makers revise datasheets. If the copy you download has a newer revision and a number here disagrees with it, the datasheet wins, and we would like to hear about it.