A voltage divider calculator works out the output voltage of two resistors in series, or the resistor you need to get a particular output. Enter the input voltage and both resistors, or the input and output voltages and one resistor, and this voltage divider calculator gives the output voltage or the missing resistor, plus the divider ratio, the current through the divider and the power in each resistor.
What a voltage divider is
A voltage divider, also called a potential divider, is a simple circuit that produces an output voltage that's a fraction of its input voltage. The simplest version is two resistors in series: the input voltage goes across both, and the output is taken from the point between them. Resistor dividers are commonly used to create reference voltages, to reduce a voltage so it can be measured, and as signal attenuators at low frequencies.
The voltage divider formula
With the input voltage across R1 and R2 in series and the output taken across R2, and no current drawn from the output:
Vout = Vin × R2 ÷ (R1 + R2)
The ratio R2 ÷ (R1 + R2) is the divider's voltage ratio, or transfer function. Rearranging gives the resistor you need:
- R2 = Vout × R1 ÷ (Vin − Vout)
- R1 = R2 × (Vin − Vout) ÷ Vout
The current through both resistors is Vin ÷ (R1 + R2), by Ohm's law, and the power in each resistor is the current squared times its resistance.
Worked examples
- Output voltage: 12 V across R1 = 10 kΩ and R2 = 4.7 kΩ gives Vout = 12 × 4,700 ÷ 14,700 ≈ 3.837 V. The current is about 0.816 mA, and R1 dissipates about 6.66 mW and R2 about 3.13 mW.
- Finding R2: to get 3.3 V from 5 V with R1 = 10 kΩ, R2 = 3.3 × 10,000 ÷ 1.7 ≈ 19.41 kΩ. The nearest standard value would then be chosen.
How to use the voltage divider calculator
- Choose what to find: the output voltage, R2 or R1.
- Enter the input voltage.
- Enter the resistances in ohms, or with k for kilohms and M for megohms, and the output voltage if you're finding a resistor.
- Press Calculate.
Loading matters
The formula assumes nothing draws current from the output. When you connect a load, it's in parallel with R2, which lowers the effective bottom resistance and pulls the output voltage down. Keep the divider's resistances much smaller than the load's resistance, typically ten times smaller or more, if you need the output to stay close to the calculated value. That's also why a simple divider isn't a good way to power a circuit that draws much current; use a voltage regulator instead.
Choosing resistor values
Many pairs of resistors give the same ratio. Smaller values make the output stiffer against loading but waste more current and power; larger values save power but are more affected by the load and by noise. Check the power figure against your resistors' ratings, and remember real resistors have a tolerance, so the actual output can differ slightly from the calculated value.
Common uses
- Reading a sensor or battery voltage with a microcontroller's analog input, by scaling it into the input's range.
- Setting a reference voltage for a comparator or amplifier.
- Level shifting a signal down for a lower-voltage input.
- Potentiometers, which are adjustable voltage dividers.
Example: reading a battery with a microcontroller
Suppose a microcontroller's analog input accepts up to 3.3 V and you want to measure a battery that can reach 12 V. Choose R1 and R2 so that 12 V becomes no more than 3.3 V: the ratio needs to be 3.3 ÷ 12, or 0.275. With R1 = 10 kΩ, the required R2 is 3.3 × 10,000 ÷ 8.7 ≈ 3.79 kΩ; a standard 3.6 kΩ resistor keeps the output a little below 3.3 V. In your code, multiply the measured voltage by (R1 + R2) ÷ R2 to get the battery voltage back.
Standard resistor values
The resistor you calculate usually won't match a value you can buy, because resistors come in standard series of values. Pick the nearest standard value, then enter it back into the calculator with Output voltage selected to see the exact output you'll get. If you need a precise ratio, combine two resistors in series or use a trimmer potentiometer for fine adjustment.
AC and other components
The same principle works with other components, such as capacitors and inductors, as long as you use their impedances, which depend on frequency. This calculator handles the common case of two resistors with a DC or low-frequency input, where the resistances can simply be used in the formula.
Reading the result
The large figure is what you asked for: the output voltage, or the missing resistor in ohms, kilohms or megohms. The table then shows every value together: the output voltage, the divider ratio, both resistors, the current flowing through them and the power each one turns into heat. With 12 V and a 3.6 kΩ bottom resistor under 10 kΩ, for example, the output is about 3.18 V, safely under a 3.3 V limit.
Common mistakes
- Swapping R1 and R2. The output is across R2, the bottom resistor.
- Ignoring the load connected to the output.
- Mixing up kΩ and Ω.
- Powering devices from a divider instead of a regulator.
What next
Use this often? Add Voltage Divi to your Home screen.
Frequently asked questions
How does the voltage divider calculator work?
It uses Vout = Vin × R2 ÷ (R1 + R2) to find the output voltage, or rearranges it to find R1 or R2, and adds the current and power in each resistor.
What is the voltage divider formula?
Vout = Vin × R2 ÷ (R1 + R2), with the output taken across R2 and no load.
How do I find R2 for a given output?
R2 = Vout × R1 ÷ (Vin − Vout).
Why is my measured voltage lower?
A load on the output is in parallel with R2 and pulls the voltage down.
Can I type 4.7k?
Yes. Use k for kilohms and M for megohms, such as 4.7k or 1M.
Sources
Was this tool helpful?
What went wrong?
We only receive the reason you pick, never what you typed into the tool.
Thanks for your feedback.