Do not use it as a power supply
A voltage divider is not suited to powering things. When the load current rises, Vout (the output voltage) drops, so use a voltage regulator to power microcontrollers and sensors.
Calculate voltage divider resistor values automatically. Enter the output voltage (Vout) you need, and the tool searches the E24 series (standard resistor values you can buy) for the best R1 and R2 pairs. A check mode works out Vout from the resistors you already have.
Enter Vin and the target Vout to search for E24 resistor pairs.
Enter the resistors you have to check Vout.
| Rank | R1 (upper) | R2 (lower) | Vout | Error (V / %) | Current | Rating |
|---|
A voltage divider is not suited to powering things. When the load current rises, Vout (the output voltage) drops, so use a voltage regulator to power microcontrollers and sensors.
An ADC (analog-to-digital converter, the circuit that reads a voltage as a number) has a maximum input voltage. Feeding a 5 V signal straight into a 3.3 V device such as a Pico or ESP32 will damage it. Make sure the divided voltage stays below the limit.
Very large resistors (a few hundred kΩ or more) are more affected by noise and the characteristics of the ADC input. Very small resistors draw more current.
A voltage divider is a basic circuit that connects two resistors in series to lower a supply voltage by a fixed ratio. As in the diagram above, the upper resistor R1 and the lower resistor R2 share Vin (the input voltage), and Vout (the output voltage) is taken from the point between R1 and R2, which is the voltage across R2 measured from GND (the 0 V reference). It is used for things like turning 5 V into 3.3 V, scaling sensor signals, and making reference voltages for microcontrollers.
The output voltage is Vout = Vin × R2 / (R1 + R2). R1 is the upper resistor (on the Vin side) and R2 is the lower resistor (on the GND side). For example, with Vin = 5 V, R1 = 5.1 kΩ, and R2 = 10 kΩ, Vout = 5 × 10 / (5.1 + 10) ≈ 3.31 V. The larger R2's share, the higher the output voltage.
In the E24 series, R1 = 5.1 kΩ and R2 = 10 kΩ is a common choice, giving a Vout of about 3.31 V. The Find resistors tab calculates other candidates for you.
Vout = Vin × R2 / (R1 + R2). R1 is the upper resistor (on the Vin side) and R2 is the lower resistor (on the GND side).
It is not recommended. When load current flows, Vout drops, so use a voltage regulator or a DC-DC converter for power. A voltage divider is meant for signals and reference voltages.
A few kΩ to a few tens of kΩ is a good starting point. Values that are too small draw more current and heat up, and values that are too large are more affected by noise and the ADC (analog-to-digital converter) input. This tool shows the balance with current and power warnings.
The E24 series is a standard set of resistor values with 24 steps per decade: 10, 11, 12, and so on up to 91. Resistors are sold in these values, so candidates from the E24 series are combinations you can actually buy.