Voltage Divider Calculator

A free tool by DeepRit, a Google Ads agency that does PPC and nothing else. We build and run Google Ads accounts so every click is accounted for. Book a free audit call

Free voltage divider calculator. Find the output voltage from Vin, R1 and R2, or the R2 you need for a target voltage, with current and resistor power.

R2
0
Current
0
Power in R1
0
Power in R2
0
Divider ratio
0

Free, no sign-up. Runs in your browser: nothing you type is uploaded or saved.

How to use the voltage divider calculator

  1. Choose what to find: the output voltage from two resistors, or the value of R2 needed for a target output.
  2. Enter the input voltage.
  3. Enter R1, the resistor between the input and the output.
  4. Enter R2, the resistor between the output and ground, or the target output voltage if you're finding R2.

The voltage divider calculator shows the output voltage, the value of R2, the current through the divider, the power in each resistor and the divider ratio.

What is a voltage divider?

A voltage divider is one of the simplest and most useful circuits in electronics. Two resistors are connected in series between a voltage source and ground, and the output is taken from the point between them. Because the same current flows through both resistors, the voltage divides between them in proportion to their resistances. A voltage divider produces a fixed fraction of its input voltage.

Voltage dividers are used to scale signals down to a level a microcontroller can read, to set reference and bias voltages, to read sensors such as thermistors and light-dependent resistors, and in the form of a potentiometer, to make volume knobs and adjustable controls.

The voltage divider formula

Vout = Vin × R2 ÷ (R1 + R2)

With the default values, an input of 12 V with R1 = 10 kΩ and R2 = 4.7 kΩ:

Vout = 12 × 4,700 ÷ (10,000 + 4,700) = 12 × 0.3197 ≈ 3.837 V

The current through the divider is Vin ÷ (R1 + R2) = 12 ÷ 14,700 ≈ 0.816 mA. The power in R1 is about 6.7 mW and in R2 about 3.1 mW, well within the rating of ordinary resistors.

Finding R2 for a target voltage

Rearranging the formula gives the value of R2 for a chosen output:

R2 = R1 × Vout ÷ (Vin − Vout)

For example, to get 3.3 V from 5 V with R1 = 10 kΩ:

R2 = 10,000 × 3.3 ÷ (5 − 3.3) ≈ 19,412 ohms

That's not a standard value, so in practice you'd choose the nearest standard resistor, such as 20 kΩ from the E24 series, which gives about 3.33 V, and then check that's acceptable. The voltage divider calculator shows the exact R2, so you can choose the closest standard part.

A worked example: reading a battery voltage

A microcontroller can read voltages up to 3.3 V, but you want to monitor a battery that can reach 12.6 V. You choose R1 = 30 kΩ and R2 = 10 kΩ.

  1. Ratio: 10,000 ÷ 40,000 = 0.25.
  2. Output at 12.6 V: 12.6 × 0.25 = 3.15 V, safely below 3.3 V.
  3. Current: 12.6 ÷ 40,000 = 0.315 mA, a small, constant drain on the battery.

In software, multiply the reading by 4 to get the battery voltage. Enter 12.6 V, 30,000 and 10,000 in the voltage divider calculator to check.

The loading effect

The voltage divider formula assumes nothing draws current from the output. In reality, whatever you connect to the output, the load, acts like a resistor in parallel with R2, lowering the effective resistance and pulling the output voltage down.

For example, with 10 kΩ and 10 kΩ from 10 V, the output is 5 V with no load. Connect a 10 kΩ load, and R2 in parallel with the load becomes 5 kΩ, so the output falls to about 3.33 V.

A common rule of thumb is to make the load resistance at least ten times larger than R2, which keeps the error small. Microcontroller inputs, op-amp inputs and meters usually have very high input resistance, so they load a divider very little. Motors, LEDs and most other loads draw far too much current for a divider to supply.

Why not use a divider as a power supply?

Because of the loading effect, a voltage divider is a poor way to power anything that draws more than a tiny current. The output voltage changes as the load changes, and the divider wastes power continuously as heat in the resistors. To supply power at a lower voltage, use a voltage regulator: a linear regulator for small currents and simple circuits, or a switching (buck) converter for higher currents and better efficiency.

Choosing resistor values

The ratio of the resistors sets the output voltage, but their absolute size matters too:

  • Low resistances (hundreds of ohms) draw more current and waste more power, but the output is less affected by loads and noise.
  • High resistances (hundreds of kilohms) waste very little power, which is good for battery-powered devices, but the output is more easily affected by loading, leakage and noise.

For reading sensors and battery voltages with a microcontroller, values from a few kilohms to around 100 kΩ are common. Check your microcontroller's datasheet for the recommended source impedance of its analogue inputs.

Who uses a voltage divider calculator

Electronics hobbyists and makers use it when connecting sensors and batteries to microcontrollers. Electrical engineering students use it in circuit analysis. Product designers use it to set reference voltages and feedback networks for regulators. Repair technicians use it to check whether measured voltages in a circuit make sense.

Get the next job from Google

Homeowners search Google when something breaks. Search ads put a local trade business at the top of those searches. DeepRit is a Google Ads agency that does PPC and nothing else: we build the campaigns, block the searches that waste money, write the ads, set up conversion tracking and send you a short report every week. Request a free PPC audit and we will show you, in dollars, what we would fix first.

Potentiometers

A potentiometer is a variable voltage divider: a resistive track with a sliding contact, the wiper, that moves along it. The two ends of the track connect to the input voltage and ground, and the wiper provides the output. As you turn the knob, the ratio of the two parts of the track changes, and so does the output voltage. Volume controls, joysticks and position sensors all use this principle. When the wiper is a fraction x of the way along the track, the output is roughly x × Vin, as long as the load is light.

Sensor dividers

Many sensors change their resistance in response to temperature, light or force. Putting the sensor in a voltage divider with a fixed resistor turns that change in resistance into a change in voltage, which a microcontroller can read. For a thermistor, choosing the fixed resistor equal to the thermistor's resistance at the middle of the temperature range you care about gives the greatest sensitivity there. The voltage divider calculator helps you see what voltages to expect at each end of the range.

Tolerance and accuracy

The output of a voltage divider is only as accurate as its resistors. With 5% resistors, the ratio can be off by up to about 10% in the worst case; with 1% resistors, by up to about 2%. For measurement circuits, use 1% or better resistors, and if needed, calibrate in software by measuring the actual output at a known input. The resistor color code calculator helps identify resistors and their tolerance.

Common mistakes

  • Swapping R1 and R2, which gives the complement of the intended voltage.
  • Powering a load from a divider, which drags the voltage down.
  • Using very high resistances with an input that needs a low source impedance.
  • Ignoring resistor tolerance in measurement circuits.

Level shifting a 5 V signal to 3.3 V

A frequent use of the voltage divider calculator is connecting a 5 V device's output to a 3.3 V microcontroller input. A divider with R1 = 10 kΩ and R2 = 20 kΩ turns 5 V into about 3.33 V, which most 3.3 V inputs accept. For a little extra margin, 10 kΩ and 18 kΩ give about 3.21 V. This works well for slow signals such as buttons and serial data at modest speeds. For fast signals, the resistors and the input's capacitance form a filter that rounds off the edges, so lower resistor values, or a dedicated level-shifter chip, may be needed. Run your chosen values through the voltage divider calculator to see the exact output and the current drawn.

Dividers in regulator feedback

Adjustable voltage regulators set their output with a voltage divider. The regulator adjusts its output until the divider's midpoint equals an internal reference voltage, often around 0.6 V to 1.25 V depending on the part. The output is then the reference multiplied by (1 + R1 ÷ R2). The datasheet gives the exact reference voltage and recommended resistor range. The same divider maths applies, and the voltage divider calculator can check that the midpoint equals the reference at your target output.

Sources and further reading

  • Voltage divider on Wikipedia: the formula, loading and applications.
  • Ohm's law on Wikipedia: the relationship between voltage, current and resistance.
  • Potentiometer on Wikipedia: variable voltage dividers.

Frequently asked questions

What is the voltage divider formula?

Vout = Vin × R2 ÷ (R1 + R2), where R2 is the resistor between the output and ground.

How do I find R2 for a target voltage?

R2 = R1 × Vout ÷ (Vin − Vout).

Why does my output voltage drop when I connect a load?

The load acts like a resistor in parallel with R2, lowering the output. Make the load resistance at least ten times R2.

Can I use a voltage divider to power a device?

Not well. Use a voltage regulator instead, because a divider's output changes with the load and wastes power.

What resistor values should I use?

Values from a few kilohms to about 100 kΩ are common for microcontroller inputs. The ratio sets the voltage; the size sets the current.

Is the voltage divider calculator free?

Yes. It's free, needs no sign-up, and works in your browser.

Free PPC audit

See where your ad budget leaks.

We look at your Google Ads account before the call, then walk you through what we'd fix first, in dollars. No obligation, no hard sell.

Book a free audit call 30-minute call · Free · The audit is yours to keep