Skip to content
ohmpal
English

12 V to 5 V: voltage regulator calculator

Linear (7805, AMS1117) or step-down: heat, efficiency and which one to use.

Loading the calculator…

To get 5 V or 3.3 V from a 12 V supply you have two options: a linear regulator such as the 7805 or the AMS1117, which turns the extra voltage into heat, or a step-down (buck) converter, which switches at high frequency and wastes little.

Enter the input voltage, the output voltage and the current your circuit draws. The calculator shows the heat of each option, the efficiency, the input current and whether the linear regulator needs a heatsink.

How to use

  1. Enter the input voltage: 12 V from a car or a power adapter, 9 V from a battery, 24 V from a truck or a machine.
  2. Pick the output: 5 V for Arduino, USB and most modules; 3.3 V for ESP32, ESP8266 and Raspberry Pi Pico.
  3. Enter the current the circuit draws. If you don't know it: 100 mA is a small board, 500 mA a board with a few modules, 1 A or more a phone charger or an LED strip.
  4. Read the recommendation and compare the heat of the two options.

Why not use a voltage divider?

A voltage divider only gives the right voltage when almost no current flows. As soon as the circuit draws current, the output drops and changes with the load. To power anything, use a regulator: it holds the output steady whether the circuit draws 10 mA or 1 A.

Linear regulator or step-down?

A linear regulator wastes (Vin − Vout) × I. From 12 V to 5 V at 0.5 A that's 3.5 W, enough to burn a 7805 without a heatsink. A buck module (LM2596, MP1584) delivers the same 2.5 W losing about 0.3 W and stays cool.

Linear wins when the current is small or the voltage difference is low: it is cheaper, smaller and has no switching noise, which matters for audio and analog sensors. It needs some headroom: about 2 V for the 7805 and 1.3 V for the AMS1117.

Frequently asked questions

How do I get 5 V from 12 V?

For small currents (up to about 100 mA), a 7805 or an AMS1117-5.0 with its two capacitors is enough. Above that, use a step-down module such as the LM2596 or the MP1584 set to 5 V: it stays cool and draws less current from the 12 V side.

Does the 7805 need a heatsink?

It depends on the heat: (Vin − 5 V) × I. Without a heatsink, a 7805 in a TO-220 package handles about 1.5 W. From 12 V that's roughly 200 mA; above that, use a heatsink or a step-down converter.

How do I get 3.3 V for an ESP32?

From 5 V (USB), an AMS1117-3.3 works: an ESP32 draws up to about 500 mA in peaks, which means about 0.9 W of heat. From 12 V, use a step-down converter set to 3.3 V.

Can I use resistors to drop 12 V to 5 V?

Only for a fixed, tiny load such as a single LED. A series resistor or a divider can't hold the voltage when the current changes, and microcontrollers and modules change their current all the time. Use a regulator.

Related tools