Voltage divider calculator
Get the output voltage from two resistors, or pick R2 for the voltage you need.
The formula
Vout = Vin × R2 ÷ (R1 + R2). R1 connects to the input, R2 to ground, and the output is taken from the middle.
Common questions
How do I get 3.3 V from 5 V?
With R1 = 10 kΩ, R2 should be about 19.4 kΩ; the nearest standard value, 20 kΩ, gives 3.33 V. Fine for a logic-level signal; use a regulator to power anything.
Can I power a device from a voltage divider?
Not reliably. The load changes the output voltage. Dividers are for reference voltages and signal levels; use a regulator for power.