Build a Voltage Divider — Step by Step
A voltage divider is the most fundamental circuit in electronics. Two resistors in series, with an output taken from the middle — that's it. Yet this simple circuit appears in almost every electronic device. This guided simulation teaches you to build, calculate, and test one.
What We Are Building
The formula: Vout = Vin × R2 / (R1 + R2)
Step-by-Step Guide
Common use case: you have a 5V Arduino and a 3.3V sensor. You need to step the Arduino's 5V GPIO output down to 3.3V before it reaches the sensor's data input. Target: Vout = 3.3V from Vin = 5V.
From Vout = Vin × R2 / (R1 + R2), rearrange to find the R1:R2 ratio:
R2 / (R1 + R2) = Vout / Vin = 3.3 / 5 = 0.66
So R2 / R1 = 0.66 / 0.34 = 1.94. Use R2 = 2kΩ and R1 = 1kΩ (standard values, ratio ≈ 2:1). Actual output: 5 × 2/(1+2) = 3.33V ✓
Open the voltage divider simulation. Double-click R1 and change its value to 1kΩ. Double-click R2 and change to 2kΩ. Hover over the junction node to see the output voltage displayed in the bottom right.
Now add a load: right-click the output node and add a resistor to ground. Set it to 50kΩ (representing the sensor input). Watch the output voltage drop slightly — this is the loading effect.
Double-click the voltage source and change from 5V to 9V. The output changes proportionally to 9 × 2/3 = 6V. This demonstrates that a voltage divider scales the output linearly with input — it is always a fixed ratio.
This makes voltage dividers ideal for resistive sensor interfaces (NTC thermistors, LDRs, potentiometers) where you want a voltage that scales with the sensor's resistance change.
▶ Potentiometer as DividerWhen driving a low-impedance load, add a voltage follower (unity-gain op-amp buffer) between the divider output and the load. This presents near-infinite impedance to the divider (no loading effect) while driving the load from a low-impedance output.
▶ Op-Amp Voltage Follower