Get a quote

Free tool

Voltage divider calculator

Type an input voltage and two resistors to get the output, the ratio, the current and the power in each. Or type the highest voltage the input will ever see and the safe output you need, and get a pair of standard E24 resistors. Both show what one ADC count means at the input.

12 V, 30 kΩ over 10 kΩ: 3.0 VTwo resistors to output, part T-03

Free tool. Nothing to sign up for, and nothing you type leaves your browser.

A weatherproof grey enclosure open on a fence post at a Potchefstroom research plot, with a small microcontroller board, two resistors on a terminal board and a battery on charge

Voltage divider calculator

Runs in your browser, nothing is sent
What you want
The divider
The job

The pair comes from the E24 series, so both parts are easy to find in 5% and 1%.

The ADC

Voltage divider

Output
-
Resistors
-
Ratio
-
Current through the pair
-
Power in R1 / R2
-
ADC step at the input
-


Copies these results into the Details box of the quote request on this page.

Ideal figures from the values you type: real resistors carry their tolerance and the ADC has its own input current. The microcontroller's datasheet gives the pin limits, and the engineer signs off anything near mains or a vehicle.

Common jobs, E24 pairs from 10 to 100 kΩ in total
JobR1 (top)R2 (bottom)Output at the highest input
5 V sensor to a 3.3 V pin4.7 kΩ9.1 kΩ3.3 V
12 V battery (15 V charging) to 3.3 V39 kΩ11 kΩ3.3 V
24 V PLC signal to 3.3 V27 kΩ4.3 kΩ3.3 V
9 V battery to a 5 V pin12 kΩ15 kΩ5 V

Before you connect it to a pin

  • A divider is for signals, not for powering anything. Draw current from the middle and the output sags; use a regulator for power.
  • Work from the highest voltage the input can ever reach (a charging battery, a car system, a PLC supply set high), not the nominal one.
  • A small capacitor (around 100 nF) from the pin to ground steadies the reading on a high value divider. A zener or clamp diode adds protection where spikes are likely.
  • A 5 V sensor output into a 3.3 V board is the classic job. Wiring sensors to boards is covered on Arduino sensors.

A research plot outside Potchefstroom logs its 12 V battery with an ESP32, and the charger pushes that battery to nearly 15 V on a sunny afternoon. The ADC pin takes 3.3 V at most, so two resistors bring the voltage down, sized for the highest voltage, not the label. This calculator works out the output from a pair, or the pair for a safe output. Sensors and their wiring are on Arduino sensors.

Two resistors and a ratio

The top resistor runs from the input to the output point and the bottom one from there to ground. The output is the input x bottom / (top + bottom), so only the ratio sets the voltage. The total sets the current, which flows all the time the input is there: low values waste a battery, very high ones leave the ADC reading drift because its input needs a fairly low source impedance. 10 kΩ to 100 kΩ in total suits most ADCs.

Worked example: 12 V through 30 kΩ and 10 kΩ

The first mode starts at 12 V with 30 kΩ on top and 10 kΩ below, read by a 12 bit ADC on a 3.3 V reference:

FigureResult
Output3.000 V, a ratio of 0.25
Current0.3 mA
Power, top and bottom2.7 mW and 0.9 mW
One ADC count at the input3.22 mV
Full scale13.2 V in

That pair is fine at 12 V, but at 15 V on charge it gives 3.75 V, over the pin's limit and past full scale. Hence the second mode.

Picking a pair from the highest voltage

Type the highest input, 15 V, the safe output, 3.3 V, and a total of 10 kΩ to 100 kΩ. The tool tries every E24 pair in that range and keeps the one with the highest output that stays at or under the target: 39 kΩ over 11 kΩ, exactly 3.300 V at 15 V and 0.3 mA. That sits right on the target, so use 1% parts or aim a little lower. The table runs common jobs: 5 V to 3.3 V is 4.7 kΩ over 9.1 kΩ, 24 V to 3.3 V is 27 kΩ over 4.3 kΩ, and 9 V to 5 V is 12 kΩ over 15 kΩ.

Signals only, and reading them well

A divider is for measuring, never for powering a board or a sensor: the output sags as soon as current is drawn from it. A small capacitor from the pin to ground steadies a high value divider. ESP32 ADCs are not linear near the ends of their range, so check the reading against a multimeter and correct it in code. Battery nodes are covered on ESP32.

Frequently asked questions

How do I bring a 5 V sensor signal down to 3.3 V?

For a slow signal such as an analogue output or an echo pin, a divider of about 4.7 kΩ over 9.1 kΩ does it. Fast two way lines such as I2C need a proper level shifter instead, because a divider only works in one direction.

Can I power my circuit from a voltage divider?

No. The output only holds while almost no current is drawn. Use a regulator or a buck converter for power and keep dividers for signals.

Which resistor values should I use?

Keep the total between about 10 kΩ and 100 kΩ for most ADC pins. Lower values waste current; above about 1 MΩ the reading drifts and lags. The microcontroller's datasheet gives the source impedance its ADC wants.

Who will quote me for sensor wiring or a measurement board in Potchefstroom?

Makers, embedded developers and electronics shops who work in and around Potchefstroom. Send the request on this page with the voltages and what you want to measure; we pass it on and they quote you directly. We design, build and sell nothing ourselves.

Read more

More tools

Get a quote for sensors and modules

Tell us what you need: Arduino, ESP32, Raspberry Pi, Pico or STM32 boards, starter kits, chips, components, sensors, motors and displays, a soldering station, a PLC or PLC programming, PCBs made, designed or assembled, firmware, an IoT device or an Arduino project built for you. Electronics suppliers, distributors, PCB houses, embedded developers and PLC integrators who work in your area quote you directly. We sell, stock, make or program nothing ourselves. It is free and there is no obligation. Please leave out your street address.

Parts and services requestSensors and Modules
Request
No. MC-1707
Status
Not sent

The request

What you want optional, it helps the quote

Your request-

The list optional

Up to 12 lines: boards, chips, sensors, motors, PCBs, hours of programming or a build.

Usual lines, tap to add:

Needs and options

You

Free and no obligation. By sending you agree that we may share your request with suitable electronics suppliers, PCB houses, developers and PLC integrators. See our privacy policy.