FirmGod

Voltage Divider Calculator

Find the closest standard resistor pair for a voltage divider: actual output, percent error, current, and the worst case once tolerance is applied.

Input voltage, volts.

Must be below Vin.

±5% parts

Sets the current the divider draws.

Closest real pair

R1 = 47k, R2 = 91k
3.297 V (-0.09%) — worst case 3.183 V to 3.408 V with ±5% parts
Ideal ratio R2 / (R1 + R2)0.660000
Ideal R1 for R2 = 91k46.9k
Current drawn (no load)36.2 µA
Output impedance31k
Dissipation R1 / R261.7 µW / 119 µW

Other pairs in this range

Ranked by how close the nominal output lands. The worst-case column is what the output can actually be once both resistors sit at the edge of their tolerance.

R1R2VoutErrorWorst caseCurrent
47k91k3.297 V-0.09%3.183 V – 3.408 V36.2 µA
6.2k12k3.297 V-0.10%3.183 V – 3.407 V275 µA
20k39k3.305 V+0.15%3.191 V – 3.415 V84.7 µA
8.2k16k3.306 V+0.18%3.192 V – 3.416 V207 µA
22k43k3.308 V+0.23%3.194 V – 3.418 V76.9 µA
24k47k3.31 V+0.30%3.196 V – 3.42 V70.4 µA
39k75k3.289 V-0.32%3.175 V – 3.4 V43.9 µA
5.1k10k3.311 V+0.34%3.198 V – 3.421 V331 µA

Check a pair you already have

Uses the Vin above. Any spelling works: 4.7k, 4k7, 470R, 1M.

Vout3.311 V
Error vs target+0.34%
Worst case (±5%)3.198 V to 3.421 V
Current drawn (no load)331 µA
Output impedance3.38k
Dissipation R1 / R2559 µW / 1.1 mW

The voltage divider formula

Two resistors in series across a supply, with the output taken from the junction between them:

Vout = Vin × R2 / (R1 + R2)

R1 is the top resistor, between the input and the output node; R2 is the bottom one, between the output node and ground. The output is the input scaled by R2’s share of the total resistance, which is all thevoltage divider rule says: in a series chain, the voltage across any part is the whole voltage times that part’s share of the resistance. British textbooks call the circuit apotential divider; it is the same two resistors.

The three rearrangements are the ones you actually reach for, and the tool solves all of them:

  • R1 = R2 × (Vin − Vout) / Vout — the top resistor for a wanted output
  • R2 = R1 × Vout / (Vin − Vout) — the bottom one
  • Vin = Vout × (R1 + R2) / R2 — what the input must have been

A number to anchor it: 10 k on top, 10 k on the bottom, 5 V in. R2’s share is 10/20, so Vout is 2.5 V. Make the bottom one 20 k and its share is 20/30, so Vout is 3.33 V. Notice that only the ratioappears — 10 k and 20 k give the same output as 100 k and 200 k, or 1 k and 2 k. Everything that makes one of those three the right choice and the other two wrong is current, loading and noise, which is the rest of this page.

The ratio is not the answer

The divider equation takes one line: Vout = Vin × R2 / (R1 + R2). Any calculator can solve it for a ratio. The work starts after that, because a ratio is not a part number. Wanting 3.3 V from 5 V with a 10k bottom resistor calls for R1 = 5151.5 Ω, and that resistor does not exist. You will fit 5.1k or 5.6k, and the question that matters is what the output becomes when you do.

This tool searches the standard values a series actually offers, pairs each R2 with the nearest real R1, and ranks the pairs by how close the nominal output lands. The answer is two resistors you can order and the voltage you will actually get.

Why 4.7k exists and 4.5k does not

Resistors are made in preferred values defined by IEC 60063, spaced roughly evenly on a logarithmic scale so that each value's tolerance band just about meets its neighbour's. E24 puts 24 values in each decade and is sold at ±5%; E96 puts 96 in a decade at ±1%. That is why the familiar numbers are 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7 and so on, and why a 4.5k resistor is not something you will find in a drawer.

One detail worth knowing: the coarse series were rounded by hand long before the geometric formula was standardised, so E24 has 2.7 and 4.7 where the formula would give 2.6 and 4.6. A calculator that generates E24 from the formula produces values nobody sells. The tables here are the published ones.

Tolerance is the number that bites

The nominal error — the difference between the target and what the marked values produce — is often a fraction of a percent and easy to feel good about. The tolerance band is a different matter. Two ±5% parts can each be anywhere within their band, and when R2 is high and R1 is low the output climbs; the opposite corner drops it. For 5.1k over 10k from 5 V the nominal output is 3.311 V, but the worst-case range is 3.198 V to 3.421 V — a spread of more than 6%.

If the output sets a reference, a threshold, or a supply rail for something that cares, that band is the specification, not the nominal. Switching to ±1% parts narrows it to about 1.3%. The tool shows both so the choice is made with the numbers in front of you rather than discovered on the bench.

A divider is not a source

Everything you connect to the output sits in parallel with R2. A 10k load across a 10k R2 halves the bottom leg and the output drops well below what was calculated. The figure to check is the output impedance, which is R1 in parallel with R2; the load should be at least ten times larger for the calculated voltage to survive within a few percent.

The same rule catches an ADC. A microcontroller's sample-and-hold input has to charge its internal capacitor through whatever impedance feeds it, and many parts specify a maximum source impedance of a few kilohms for full accuracy at full speed. A divider built from 100k parts to save current will read low unless a buffer or a capacitor at the input, or a slower sampling rate, gives it time.

Current and power are the other constraint

Pushing the resistances down fixes the loading problem and creates a different one. The divider draws Vin / (R1 + R2) all the time, whether or not anything reads the output. On a battery-powered board a 1k divider across 3.7 V is 1.2 mA continuously, which can be more than the microcontroller sleeping. On a 24 V industrial input a 100 Ω pair dissipates over 5 W and needs a resistor rated for it.

That is why the tool asks for the R2 range instead of guessing. 1k to 100k covers nearly everything; below it you are paying in current and heat, above it in accuracy at the load.

Scaling an ADC reading in firmware

When the divider feeds an ADC, the code that converts counts back to volts should use the resistors that were fitted, not the ratio that was wanted. With 5.1k and 10k the scale factor is (5.1 + 10) / 10 = 1.51, not 1.515; using the ideal ratio bakes the nominal error into every reading. Better still is to calibrate once against a known voltage and store the measured factor, which absorbs the tolerance of the actual parts on the actual board.

For the arithmetic on the microcontroller side, the Q format converter shows what a scale factor becomes once it is stored as a fixed-point constant, and the IEEE 754 converter shows the exact value a float holds.

Frequently asked questions

What is the voltage divider formula?

Vout = Vin × R2 / (R1 + R2), where R1 is the top resistor and R2 the one from the output to ground. The output is the input times R2’s share of the total resistance — that is the voltage divider rule, and the circuit is also called a potential divider. Rearranged: R1 = R2 × (Vin − Vout) / Vout, R2 = R1 × Vout / (Vin − Vout), and Vin = Vout × (R1 + R2) / R2. Only the ratio sets the output, so 10k/20k and 100k/200k give the same 3.33 V from 5 V.

Which resistor is R1 and which is R2?

R1 is the top resistor, from Vin to the output node. R2 is the bottom one, from the output to ground. Vout = Vin × R2 / (R1 + R2), so a bigger R2 means a higher output. Swapping them is the most common way to get the inverse of the voltage you wanted.

Why does the tool not just give me the exact resistor values?

Because they almost never exist. 3.3 V from 5 V with R2 = 10k needs R1 = 5151.5 Ω, and no such part is made. Real resistors come in the E-series steps — E24 has 24 values per decade, E96 has 96 — so the tool picks the closest pair that can actually be ordered and tells you how far off it lands.

What does the worst-case column mean?

A ±5% resistor can be anywhere within 5% of its marked value. If R2 sits at the top of its band and R1 at the bottom, the output is highest; the other way round, lowest. That range is what your circuit has to tolerate, and it is usually wider than the nominal error the calculator shows. E96 (±1%) parts shrink it fivefold.

Should I use E24 or E96 parts?

E96 (±1%) gives a tighter worst-case band and finer choices, and costs almost nothing extra today. E24 (±5%) is fine when the output feeds something forgiving or when you calibrate in software anyway. Note that a finer series does not always give a smaller nominal error for a specific target — that depends on where the ratio falls — but its tolerance band is always narrower.

How do I pick the R2 range?

By current and by what the output drives. Lower resistance draws more current and wastes power — 100 Ω across 12 V is 120 mA and 1.4 W, which is a heater, not a divider. Higher resistance draws less but raises the output impedance, and a microcontroller ADC sampling through 100k of source impedance will read low. 1k to 100k covers most cases.

Can a divider power something?

Not really. Anything you connect to the output is in parallel with R2 and pulls the voltage down. The output impedance the tool reports is R1 ∥ R2; if the load is not at least ten times that, the divider is no longer producing the voltage you calculated. For power, use a regulator; a divider is for setting a reference or scaling a signal.

The code behind this

The arithmetic on this page is published as the voltagedivider module — the same functions you are using here, with the same tests. MIT, no dependencies.

Read the sourceOn npmnpm i electronics-math