# Voltage divider

21-03-2012 07:04

A voltage divider is a special circuit that is used to output a fraction of the input voltage. For example, if you have a 5V battery and you need a 3V voltage. The voltage divider is one of the simplest and common circuits used in electronics.

Below it is possible to use this simple tool to compute the output voltage or to compute the resistance values. In order to compute one of the values, click on the its label (e.g., R1, Vin, etc.) and insert the remaining values. Initially, the tool computes the value of the output voltage Vout.

This tool can also compute the output voltage, when this is connected to a load (i.e., the resistance RL): when the field RL is empty (as it is when the page is initially loaded), the voltage Vout is computed in open-circuit (i.e., as RL would be ∞).

R1: kΩ
R2: kΩ
RL: kΩ

Let's see how the voltage divider works. The input voltage is applied to the two resistances R1 and R2 in series, while the output voltage is the one that can be measured through the resistance R2 alone. Ohm's Law states that the current through a conductor between two points is directly proportional to the potential difference across the two points, and thus that: $V=R \cdot I$ Let's apply this formula to the circuit on the left, that is formed by Vin, R1 and R2:

$V_\left\{in\right\}=\left(R_1+R_2\right)\cdot I_1$ and then to the circuit on the right: $V_\left\{out\right\}=R_2 \cdot I_2$ Since the currents I1 and I2 represent the same current (that flowing through R2, that is the same that flows also through R1), we have: $V_\left\{out\right\}=\frac\left\{R_1\right\}\left\{R_1+R_2\right\}\cdot V_\left\{in\right\}$

The previous formula holds in the case of absence of the load RL. When this is present, it is easy to follow the same computation and obtain:

$V_\left\{out\right\}=\frac\left\{R_2\|R_L\right\}\left\{R_1 + R_2\|R_L\right\}\cdot V_\left\{in\right\}$

where R2||RL is:

$R_2\|R_L=\frac\left\{R_2 R_L\right\}\left\{R_2+R_L\right\}$

Since the output voltage depends only on the ratio between R1 and R2, it is possible to use different values of resistance to obtain the same Vout (e.g., if R1 = R2, the value of Vout will always be one half of the input, whether R1 and R2 are 1 Ω, or they are 1 MΩ). For the great part of electronic uses, the sum of R1 and R2 should be always within 1 kΩ and 10 kΩ, as the SparkFun website advices (see the box to the right), because using lower values, the circuit would waste a lot of power (for the current flowing through R1 and R2), while using higher values, Vout could be unable to obtain enough current.