Voltage Divider Calculator
Instantly calculate the output voltage of any resistor voltage divider. Useful for level-shifting 5V signals to 3.3V for ESP32/ESP8266 inputs, biasing op-amps, and ADC reference networks.
What is a voltage divider?
A voltage divider uses two resistors to reduce a voltage to a lower level. Common applications: monitoring battery voltage, reading analog sensors, level-shifting between different voltage domains, and biasing AC signals. The output voltage is always lower than input and depends on the resistor ratio, not the absolute values.
Simulated — dashes show current flowing from Vin to GND through R1 and R2. Vout tap draws no current (ideal, unloaded output).
Connected between Vin and Vout
Connected between Vout and GND
Output Voltage
2.500 V
- Voltage ratio
- 50.0%
- Current draw
- 0.250 mA
- R1 + R2
- 20.00 kΩ
Formula: Vout = Vin × R2 / (R1 + R2)
The voltage divider formula
Two resistors in series between a voltage and ground split that voltage in proportion to their values. The output at the junction is:
Vout = Vin × R2 ÷ (R1 + R2)
R1 is the top resistor (from Vin to the output) and R2 the bottom one (from the output to ground). Equal resistors give exactly half the input.
Common resistor pairs
| Goal | R1 | R2 | Result |
|---|---|---|---|
| 5 V → 3.3 V logic (one way) | 1 kΩ | 2 kΩ | 3.33 V |
| 5 V → 3.3 V logic | 10 kΩ | 20 kΩ | 3.33 V |
| Halve a voltage | 10 kΩ | 10 kΩ | Vin ÷ 2 |
| 12 V battery → ESP32 ADC (≤ 3.1 V) | 33 kΩ | 10 kΩ | 2.79 V at 12 V, 3.02 V at 13 V |
| Li-ion cell (4.2 V) → 3.3 V ADC | 100 kΩ | 220 kΩ | 2.89 V at 4.2 V |
Why the load matters
The formula assumes nothing draws current from the output. If you connect a load resistance RL, it sits in parallel with R2 and pulls Vout down. Keep the divider current at least 10× the load current, or keep RL at least 10× larger than R2. That is why a voltage divider cannot power a module: a 5 V → 3.3 V divider feeding an ESP32 that draws 100 mA would collapse. Use a regulator such as an AMS1117-3.3 for power and a divider only for signals.
Choosing the resistor size
- Lower values (1–10 kΩ) are stiffer against loading and noise but waste more current: a 1 k + 2 k divider on 5 V draws 1.7 mA all the time.
- Higher values (100 kΩ–1 MΩ) save battery but form a high source impedance. ADCs sample by charging an internal capacitor, so readings get noisy or low. Add a 100 nF capacitor from the output to ground when using values above about 50 kΩ.
Reading a battery with a microcontroller
Pick R1 and R2 so the highest battery voltage gives a little under the ADC's full-scale input (about 1.1 V on an ESP8266's A0 pin without its board divider, 3.1 V for an ESP32 with 11 dB attenuation, 5 V for an Uno). Then multiply the reading back up in code: Vbattery = Vadc × (R1 + R2) ÷ R2.
Formula, inputs and worked examples
Formula and method
For an unloaded divider, Vout = Vin × R2/(R1 + R2); load resistance changes the effective lower leg and output voltage.
Worked examples
5 V signal to 3.3 V logic
R1 = 1 kΩ and R2 = 2 kΩ: Vout = 5 × 2 / (1 + 2) = 3.33 V. This is a common way to bring a slow 5 V signal into an ESP32 or ESP8266 input.
Reading a 3S Li-ion pack with an ADC
A pack that reaches 12.6 V and an ADC that tops out near 3.3 V: choose R1 = 33 kΩ and R2 = 10 kΩ. Vout = 12.6 × 10 / 43 = 2.93 V at full charge, and the divider draws 12.6 / 43 kΩ = 0.29 mA. With R1 = 27 kΩ the same pack would give 3.41 V, above the ADC range.
What a load does to the output
A 10 kΩ / 10 kΩ divider on 5 V gives 2.5 V unloaded. Connect a 10 kΩ load across R2 and the lower leg becomes 5 kΩ, so Vout falls to 5 × 5 / 15 = 1.67 V.
Inputs
- Input voltage — Unit: V
- Upper resistor R1 — Unit: Ω
- Lower resistor R2 — Unit: Ω
- Load resistance when present — Unit: Ω
What the result means
- Output voltage — Unit: V
- Output ratio — Unit: fraction or percent
Practical tips and common mistakes
- Make the load at least ten times larger than R2 so it barely changes the result, or buffer the node with an op-amp.
- Dividers suit slow signals. Fast signals (SPI at MHz speeds, bidirectional I²C) need a proper level shifter, because the resistors and pin capacitance form a low-pass filter.
- For ADC measurements, keep the divided voltage in the middle of the ADC range and add a 100 nF capacitor from the ADC pin to ground to steady the reading.
- Higher resistor values waste less power but are more sensitive to noise. 10–100 kΩ is a practical range for battery monitoring.
Assumptions and limitations
- A divider is not a regulator; output changes with input voltage and load.
- Check resistor current and power dissipation.
- Do not assume a divider alone protects a sensitive input under every fault condition.
Frequently asked questions
How do I choose resistors for a voltage divider?
Decide the ratio Vout ÷ Vin, then pick R2 and calculate R1 = R2 × (Vin − Vout) ÷ Vout. Use values in the 10–100 kΩ range for signals and round to standard resistor values.
Can I use a voltage divider to power a 3.3 V device from 5 V?
No. The output voltage drops as soon as the device draws current, and it varies as the current changes. Use a voltage regulator for power; a divider is only suitable for signals and sensing.
Can a voltage divider convert 5 V logic to 3.3 V?
Yes, for one direction and moderate speeds: 1 kΩ over 2 kΩ (or 10 kΩ over 20 kΩ) turns a 5 V output into about 3.3 V for an ESP32 or Raspberry Pi input. For fast or bidirectional lines like I2C, use a level-shifter module.
Why is my voltage divider reading lower than calculated?
Something is loading the output: a meter on a low range, an ADC with low input impedance, or a module input. Lower the divider resistances or buffer the output with an op-amp, and check the resistor tolerances.
Learn more
More Electronics