Skip to content
On this page

Voltage Dividers

← Back to Home

Related pages: LED Resistors, Breadboard, Multimeter, Logic Levels.

This page covers voltage dividers — how they work, the math, and when to use them.


What Is a Voltage Divider?

A voltage divider is a simple circuit that takes an input voltage and outputs a fraction of it. It uses two resistors in series to "divide" the voltage down to whatever level you need.

Voltage dividers are used for:

  • Scaling sensor readings down for Arduino analog inputs
  • Creating reference voltages
  • Biasing transistors and amplifiers
  • Measuring voltages safely

They are one of the most fundamental circuits in electronics.


The Circuit

A basic voltage divider looks like this:

text
        V1 (+)
         │
       [ R1 ]
         │
         ├───► Vout (to load or meter)
         │
       [ R2 ]
         │
        GND
  • V1 is your input voltage (e.g., battery or power supply)
  • R1 and R2 are two resistors in series
  • Vout is taken from the junction between R1 and R2
  • The circuit shown is under no load — no current is drawn from Vout

Under no-load conditions, the formula is exact. If you connect something to Vout that draws current (like a motor or LED), the calculation changes because that load acts like another resistor in parallel with R2.


The Formula

The output voltage is calculated using Ohm's Law. Since R1 and R2 are in series, the same current flows through both:

Vout = V1 × R2 / (R1 + R2)

Where:

  • V1 = Input voltage (in volts)
  • R1 = Upper resistor (in ohms)
  • R2 = Lower resistor (in ohms)
  • Vout = Output voltage across R2

Example

Say you have a 9V battery and want 5V out:

VariableValue
V19V
Desired Vout5V
R1400 Ω
R2500 Ω

Vout = 9 × 500 / (400 + 500) = 9 × 500 / 900 = 5V

A 400 Ω and 500 Ω resistor give you exactly 5V from a 9V source.


Common Resistor Values

You won't always find the exact resistor values you need. Here are common combinations using standard resistor values:

Desired VoutV1R1R2Actual Vout
3.3V5V1 kΩ2.2 kΩ3.44V
5V9V10 kΩ12 kΩ4.91V
2.5V5V10 kΩ10 kΩ2.5V
1.8V3.3V10 kΩ12 kΩ1.8V

Tip: Higher resistor values (10 kΩ–100 kΩ) draw less current and are better for low-power applications. Lower values (100 Ω–1 kΩ) are more stable but waste more power as heat.


Practical Uses with Arduino

Reading a Higher Voltage

Arduino analog inputs expect 0–5V. To read a 12V source:

  1. Choose R1 = 10 kΩ and R2 = 5.6 kΩ
  2. Vout = 12 × 5600 / (10000 + 5600) = 4.31V (safe for a 5V Arduino)
  3. In your code, multiply the reading back up using the exact resistor ratio: voltage = analogRead(A0) * (5.0 / 1023.0) * ((10000.0 + 5600.0) / 5600.0);

Safety Note: Always size your divider for the maximum voltage it could ever see. A charging 12V lead-acid or car battery can reach ~14.4V, which would push a 10 kΩ / 5.6 kΩ divider to 5.17V (above 5V). Using R1 = 10 kΩ and R2 = 4.7 kΩ keeps Vout safely under 5V all the way up to ~15.6V.

Scaling a Sensor Output

Many sensors output 0–10V but your Arduino only reads 0–5V. A voltage divider with two equal resistors (e.g., 10 kΩ each) cuts the voltage in half perfectly.


Rules of Thumb

  • Keep R1 + R2 high enough to avoid wasting current (10 kΩ–100 kΩ is a good range for most projects)
  • Keep R1 + R2 low enough that your meter or ADC doesn't affect the reading (the Arduino's ADC works best with source impedance under 10 kΩ)
  • Use 1% or better resistors for accurate dividers
  • If Vout needs to power something (not just measure), a voltage divider probably isn't the right tool — use a voltage regulator instead

Online Calculator

Need to find the right resistors fast? Try the DigiKey Voltage Divider Calculator. Plug in your values and it gives you standard resistor combinations instantly.


← Back to Home

Released under the MIT License.