Ugenz Academy/IoT Tutorial

Voltage Divider

7 min read1,294 words

Reading progress

Keep learning

Voltage Divider

1. What Is a Voltage Divider?

A voltage divider is an electrical circuit that produces a lower output voltage from a higher input voltage using two or more components, usually resistors connected in series.

It is one of the most common circuits in electronics and is used to obtain a specific voltage for sensors, microcontrollers, measurement circuits, and other electronic devices.

For example, a voltage divider can reduce a 12 V input to approximately 5 V using two properly selected resistors.

Voltage Divider | Free SVG

freesvg.org

The basic voltage divider consists of:

  • An input voltage source V_inV\_{in}
  • Two resistors, R1R_1 and R2R_2
  • An output voltage V_outV\_{out} measured across R2R_2

The output voltage depends on the resistance values and the input voltage.

2. Voltage Divider Circuit Diagram

Consider two resistors connected in series across a voltage source.

The output is taken from the junction between the resistors and ground, across R2R_2.

In this circuit:

  • V_inV\_{in} is the voltage supplied to the complete resistor network.
  • R1R_1 is the resistor between the input and the output node.
  • R2R_2 is the resistor between the output node and ground.
  • V_outV\_{out} is measured across R2R_2.

Both resistors carry the same current when the output is unloaded.

3. Voltage Divider Formula

The standard voltage divider formula is:

V_out=V_inR2R1+R2\boxed{V\_{out}=V\_{in}\frac{R_2}{R_1+R_2}}

Where:

SymbolMeaningUnit
V_inV\_{in}Input voltageVolts (V)
V_outV\_{out}Output voltageVolts (V)
R1R_1Upper resistorOhms (Ω\Omega)
R2R_2Lower resistorOhms (Ω\Omega)

The formula assumes that the output is not significantly loaded by another circuit.

Why does the formula work?

Because the resistors are connected in series, the total resistance is:

RT=R1+R2R_T=R_1+R_2

Using Ohm’s law, the current through both resistors is:

I=V_inR1+R2I=\frac{V\_{in}}{R_1+R_2}

The output voltage is measured across R2R_2, so:

V_out=IR2V\_{out}=IR_2

Substituting the current:

V_out=V_inR1+R2R2V\_{out}=\frac{V\_{in}}{R_1+R_2}R_2

Therefore:

V_out=V_inR2R1+R2\boxed{V\_{out}=V\_{in}\frac{R_2}{R_1+R_2}}

This is the voltage divider equation.

4. Solved Numerical Examples

Example 1: Finding output voltage

Suppose:

  • Input voltage = 12 V
  • R1=2,kΩR_1=2\\,k\Omega
  • R2=4,kΩR_2=4\\,k\Omega

Find the output voltage.

Using the formula:

V_out=V_inR2R1+R2V\_{out}=V\_{in}\frac{R_2}{R_1+R_2}

Substitute the values:

V_out=1242+4V\_{out}=12\frac{4}{2+4} V_out=12×46V\_{out}=12\times\frac{4}{6} V_out=8 V\boxed{V\_{out}=8\text{ V}}

Therefore, the output voltage is 8 V.

Example 2: Reducing 12 V to 5 V

Suppose you have a 12 V input and want approximately 5 V at the output.

Choose:

  • R1=7,kΩR_1=7\\,k\Omega
  • R2=5,kΩR_2=5\\,k\Omega

Then:

V_out=1257+5V\_{out}=12\frac{5}{7+5} V_out=12×512V\_{out}=12\times\frac{5}{12} V_out=5 V\boxed{V\_{out}=5\text{ V}}

This gives 5 V mathematically for an unloaded output.

However, a resistor divider is not necessarily a suitable 5 V power supply. When a device draws current, the output voltage can fall. For powering electronics, a properly rated voltage regulator or DC-DC converter is often more appropriate.

Example 3: Finding an unknown resistor

Suppose:

  • V_in=10 VV\_{in}=10\text{ V}
  • V_out=4 VV\_{out}=4\text{ V}
  • R1=3,kΩR_1=3\\,k\Omega
  • R2=?R_2=?

Start with:

V_out=V_inR2R1+R2V\_{out}=V\_{in}\frac{R_2}{R_1+R_2}

Substitute:

4=10R23000+R24=10\frac{R_2}{3000+R_2}

Multiply both sides:

4(3000+R2)=10R24(3000+R_2)=10R_2 12000+4R2=10R212000+4R_2=10R_2 12000=6R212000=6R_2 R2=2000,Ω=2,kΩ\boxed{R_2=2000\\,\Omega=2\\,k\Omega}

The required lower resistor is 2 kΩ.

5. Interactive Voltage Divider Calculator

Use the calculator below to see how changing the input voltage or either resistor affects the output.

Input voltage

12 V

1 V

12 V

24 V

Upper resistor (R₁)

2 kΩ

1 kΩ

10 kΩ

20 kΩ

Lower resistor (R₂)

4 kΩ

1 kΩ

10 kΩ

20 kΩ

Calculated output voltage

8.000 V

66.7% of the input voltage

Divider current

2.000 mA

Voltage across R₁

4.000 V

Power in R₁

8.000 mW

Power in R₂

16.000 mW

Calculations assume an unloaded output, ideal voltage source, and resistor values expressed in kΩ.

Reset values

6. What Happens When You Change the Resistors?

The output voltage depends on the ratio between the two resistors, not just their individual values.

  • Increasing R2R_2 while keeping R1R_1 constant increases the output voltage.
  • Decreasing R2R_2 while keeping R1R_1 constant decreases the output voltage.
  • Increasing R1R_1 while keeping R2R_2 constant decreases the output voltage.
  • Multiplying both resistors by the same factor keeps the ideal output voltage unchanged, but reduces the current drawn by the divider.

For example, both R1=1,kΩ, R2=2,kΩR_1=1\\,k\Omega,\ R_2=2\\,k\Omega and R1=10,kΩ, R2=20,kΩR_1=10\\,k\Omega,\ R_2=20\\,k\Omega produce the same ideal output ratio:

V_outV_in=23\frac{V\_{out}}{V\_{in}}=\frac{2}{3}

But the first circuit draws ten times as much current as the second.

7. Loaded Voltage Divider

A basic voltage divider assumes that no significant current is drawn from its output. When a load is connected, the situation changes.

Voltage Divider

hyperphysics.phy-astr.gsu.edu

If a load resistor RLR_L is connected across R2R_2, the effective lower resistance becomes:

R_effective=R2RLR2+RLR\_{\text{effective}}=\frac{R_2R_L}{R_2+R_L}

The output voltage is then:

V_out=V_inR_effectiveR1+R_effective\boxed{V\_{out}=V\_{in}\frac{R\_{\text{effective}}}{R_1+R\_{\text{effective}}}}

Because the load resistor is in parallel with R2R_2, the effective resistance is smaller than R2R_2. This usually makes the output voltage lower than the unloaded value.

For a more stable output, the load resistance should generally be much larger than the divider's lower resistance, or a buffer circuit can be used.

8. Applications of Voltage Dividers

Interfacing a Light Sensor (LDR) with Raspberry Pi 4 - The Engineering Projects

A. Sensors

A voltage divider with an LDR or thermistor converts a change in resistance into a change in voltage. A microcontroller can read this voltage to estimate light level or temperature.

Měření napětí pomocí Arduino | VOXCAFE - internet full service

B. Microcontroller voltage measurement

A resistor divider can scale a voltage down to a safe measurement range for an analog input, provided the input limits, resistor tolerances, and circuit grounding are considered.

Lab 3 — Experimenting with Potentiometer | by Richa Verma | Medium

C. Potentiometers

A potentiometer acts as an adjustable voltage divider. Moving its wiper changes the output voltage between the two end-terminal voltages.

Many assume voltage divider biasing is just about fixing the base voltage, but its real strength lies in how it stabilizes the entire transistor operation. The resistors R1 and R2 form a divider that… | Dahiru Ohida

D. Transistor biasing

Resistor dividers are often used to establish a suitable base voltage for a bipolar junction transistor, helping set its operating point.

9. Voltage Divider vs. Voltage Regulator

FeatureVoltage dividerVoltage regulator
Main purposeProduces a ratio-based output voltageMaintains a regulated output voltage
Main componentsUsually resistorsRegulator IC or converter circuit
Output under changing loadCan change significantlyUsually more stable within its specifications
EfficiencySome input power is continuously dissipated in resistorsDepends on regulator type
Typical useSignal scaling and sensor circuitsPowering electronic devices

Important: Do not use a simple resistor voltage divider as a general-purpose power supply for an Arduino, ESP32, or other device that draws varying current. A suitable regulator or DC-DC converter is normally the better choice.

10. Important Points to Remember

  • A voltage divider produces an output voltage from a fraction of the input voltage.
  • Its basic formula is:
V_out=V_inR2R1+R2V\_{out}=V\_{in}\frac{R_2}{R_1+R_2}
  • The output is taken across the lower resistor R2R_2 in the standard circuit.
  • The formula assumes the output is unloaded.
  • A load connected to the output can change the voltage.
  • A potentiometer is an adjustable voltage divider.
  • Voltage dividers are commonly used with sensors, analog inputs, and transistor bias circuits.

In short: A voltage divider is a simple way to obtain a fraction of an input voltage by using resistors connected in series.

Keep learning. Keep building. Keep growing.

© 2026 Ugenz Academy