A voltage divider (or potential divider) is a two-resistor series circuit that produces a predictable fraction of the supply voltage at the junction between the two resistors. It is one of the most frequently used building blocks in electronics: scaling sensor outputs into an ADC range, setting bias points, producing a reference voltage for a comparator, or level-shifting a 5 V logic signal down to a 3.3 V input. This calculator is a full solve-for-any-variable tool — enter any three of Vin, R1, R2 and Vout and it finds the fourth, plus the divider current, per-resistor power dissipation and the voltage ratio. Every calculation is shown step-by-step.
How it works
The supply voltage Vin is applied to the top of R1. The bottom of R1 connects to the top of R2, and R2’s bottom connects to ground. The output Vout is measured at the node between R1 and R2. Because R1 and R2 carry the same series current, the output voltage is simply the fraction of the total resistance that R2 contributes:
Vout = Vin × R2 / (R1 + R2)
Three further quantities follow automatically:
- Divider current: I = Vin / (R1 + R2)
- Power in R1: P₁ = I² × R1
- Power in R2: P₂ = I² × R2
- Total power: P = Vin × I = Vin² / (R1 + R2)
Solving for a resistor
Rearranging the main formula gives two inverse forms:
- Find R1: R1 = R2 × (Vin / Vout − 1) — useful when you have a standard R2 in stock and need the series resistor.
- Find R2: R2 = R1 × Vout / (Vin − Vout) — useful when you have a fixed R1 and need the bottom resistor.
Both are supported by the “Solve for” mode selector.
Worked example — 5 V to 3.3 V level shifter
A microcontroller with a 5 V GPIO drives an input rated only for 3.3 V. Using R1 = 2 kΩ and R2 = 3.9 kΩ:
| Quantity | Formula | Result |
|---|---|---|
| Total R | 2 kΩ + 3.9 kΩ | 5.9 kΩ |
| Vout | 5 V × 3.9 / 5.9 | 3.305 V |
| Current | 5 V / 5.9 kΩ | 0.847 mA |
| Power (R1) | (0.847 mA)² × 2 kΩ | 1.43 mW |
| Power (R2) | (0.847 mA)² × 3.9 kΩ | 2.80 mW |
| Total power | 5 V × 0.847 mA | 4.24 mW |
Both resistors are well within their 1/8 W (125 mW) ratings. The divider current (0.847 mA) is roughly fifty times a typical GPIO input’s leakage current, so loading is negligible.
Loading effect and when to add a buffer
The formula above assumes the output is open-circuit (unloaded). Connecting a load resistance R_L in parallel with R2 reduces the effective bottom resistance to R2 ‖ R_L = R2 × R_L / (R2 + R_L), lowering Vout. To keep the error below 1%, make the divider current at least 100× the load current, or choose resistors whose parallel combination stays close to the intended R2. When driving an op-amp or comparator input, use a voltage follower (buffer) to eliminate loading entirely.
All calculations run client-side in your browser — no data is transmitted.