How the calculation works
Vout = Vin × R2 ÷ (R1 + R2). Branch current in mA equals Vin ÷ (R1 + R2) when R is in kΩ.
Worked example
With 12 V, R1 = 10 kΩ and R2 = 5 kΩ, the output is 4 V and branch current is 0.8 mA.
Before you rely on this result
The output is unloaded. Connecting a sensor or input can change the voltage; never exceed your microcontroller’s maximum input rating.
Informational tool. It does not replace testing, measurement or professional advice when needed.
Frequently asked questions
Can I wire the output to an ESP32?+
Only after verifying the actual voltage, pin input limits, tolerances and transients.
Which resistor unit should I use?+
Enter both values in kiloohms (kΩ).