Component guide · Beginner · 3 min read
7805, 7812, 79xx and 78Mxx Voltage Regulators

Pinout, Wiring and Heat
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The 78xx family are fixed positive linear regulators (7805 gives 5 V, 7812 gives 12 V) and the 79xx family are the negative versions (7905 gives -5 V). The 78Mxx is a 500 mA SMD version. They need only two capacitors and are very robust, but waste power as heat and need about 2 V of headroom.
Key specs at a glance
- Output
- Fixed: 5, 9, 12 V (78xx); -5, -12 V (79xx)
- Current
- 1 A (78xx, 79xx TO-220); 500 mA (78Mxx)
- Dropout
- About 2 V
- Input max
- 35 V (78xx); -35 V (79xx)
- Capacitors
- 0.33 uF in, 0.1 uF out (78xx); larger for 79xx
- Protection
- Thermal shutdown, current limit
Models in this guide
These are alternatives. Pick the one that fits your project; you only need one.
Option 1LM7812 12V Voltage Regulator Module₹97
Option 279xx Negative Voltage Regulator IC (TO-220)₹12
Option 378Mxx / 79Mxx Voltage Regulator, TO-252 SMD₹9
What the 78xx and 79xx voltage regulators is
The 78xx and 79xx are fixed three-pin linear regulators. The last two digits give the voltage: a 7805 makes +5 V and a 7905 makes −5 V from a higher input.
Pinouts differ. 78xx: IN, GND, OUT (left to right, text facing you). 79xx: GND, IN, OUT. Mixing them up is the most common mistake.
A split supply for op-amps uses a 78xx and a 79xx together from a centre-tapped transformer or two batteries.
78xx and 79xx voltage regulators pinout
The pins on the 78xx and 79xx voltage regulators and what each one does.
| Pin | Function |
|---|---|
| 78xx pin 1 / 2 / 3 | IN / GND / OUT |
| 79xx pin 1 / 2 / 3 | GND / IN / OUT |
| Tab | GND (78xx), IN (79xx) |
- 78xx pin 1 / 2 / 3
- IN / GND / OUT
- 79xx pin 1 / 2 / 3
- GND / IN / OUT
- Tab
- GND (78xx), IN (79xx)
Wiring the 78xx and 79xx voltage regulators
Connect the 78xx and 79xx voltage regulators like this.
| 78xx and 79xx voltage regulators pin | 7805 / 7812 | 7905 |
|---|---|---|
| IN | Pin 1 with 0.33 uF to GND | Pin 2 with 2.2 uF to GND |
| OUT | Pin 3 with 0.1 uF to GND | Pin 3 with 1 uF to GND |
| GND | Pin 2 | Pin 1 |
- IN
- 7805 / 7812:
- Pin 1 with 0.33 uF to GND
- 7905:
- Pin 2 with 2.2 uF to GND
- OUT
- 7805 / 7812:
- Pin 3 with 0.1 uF to GND
- 7905:
- Pin 3 with 1 uF to GND
- GND
- 7805 / 7812:
- Pin 2
- 7905:
- Pin 1
Example code
A minimal sketch to check the part works.
P = (Vin - Vout) x I
9 V in, 5 V out, 0.5 A -> 2 W -> needs a small heatsink
12 V in, 5 V out, 1 A -> 7 W -> large heatsink or use a buckSetup and tuning
fit 0.33 µF at the input and 0.1 µF at the output for a 78xx; the 79xx needs larger ones (about 2.2 µF in, 1 µF out).
78xx is IN, GND, OUT; 79xx is GND, IN, OUT, and its tab is the input, so insulate it from grounded heatsinks.
add one above about 1 W of loss (voltage drop × current).
with large output capacitors, add a diode from OUT to IN so the regulator is not reverse-biased at power-off.
keep the input at least 2 V above the output.
What you need
Shop this list4 of 5 found in our store · ₹471
LM7812 12V Voltage Regulator Module: the part this guide coversLM7812 12V Voltage Regulator Module₹97- 79xx Negative Voltage Regulator IC (TO-220): another version this guide coversFind this part
78Mxx / 79Mxx Voltage Regulator, TO-252 SMD: another version this guide covers78Mxx / 79Mxx Voltage Regulator, TO-252 SMD₹9
Digital multimeter: to check supply and signal voltagesDigital Multimeter₹177
DC power adapter (5.5 x 2.1 mm): a wall adapter inputDC Power Adapter (5.5x2.1mm)₹188
Alternatives and when to choose them
- LM317 adjustable.
- AMS1117: low dropout.
- Voltage regulators.
Common mistakes to avoid
- Using the 78xx pinout on a 79xx, which has its pins in a different order.
- Leaving out the capacitors, so the regulator oscillates.
- Dropping a large voltage without a heatsink.
- Feeding it less than 2 V above the output.
Frequently asked questions
Can I power a 7805 from a 9 V battery?
Yes, but it wastes about 40 % of the energy as heat, so a small buck converter gives far longer battery life.
How do I get a negative voltage?
Use a 79xx regulator such as the 7905 or 7912, fed from a negative supply.
How much current can a 7805 supply?
About 1 A in the TO-220 package with a heatsink. The 78M05 is a 500 mA version.
What is the 78M05?
A 500 mA version of the 7805, often in a small SMD package.
Why use a linear regulator instead of a buck converter?
Linear regulators are simpler and have no switching noise, which suits audio and analog circuits.
Parts for this guide
Keep learning
Sources
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.
