Voltage Divider Calculator

Enter any three values, the fourth calculates automatically (you can also enter your desired output voltage!). Units can be changed at any time.
Vin R1 Vout R2
Equations:
Vout = Vin * (R2 / (R1 + R2))
Vin = Vout * (R1 + R2) / R2
R1 = R2 * (Vin - Vout) / Vout
R2 = R1 * Vout / (Vin - Vout)