Voltage Divider Calculator

Calculate output voltage in a voltage divider circuit

Voltage Divider Calculator

Vin R1 Vout R2

Voltage Divider Formula

Vout = Vin × (R2 / (R1 + R2))

  • Vin - Input voltage applied across both resistors
  • Vout - Output voltage measured across R2
  • R1 - Upper resistor (between Vin and Vout)
  • R2 - Lower resistor (between Vout and ground)

Note: Voltage dividers work best when no current is drawn from the output. When a load is connected, the output voltage will decrease. For accurate results, the load resistance should be at least 10 times larger than R2.

Understanding Voltage Dividers

What is a Voltage Divider?

A voltage divider is one of the most fundamental circuits in electronics. It consists of two resistors connected in series across a voltage source, with the output voltage taken from the junction between them. The circuit produces an output voltage that is a fraction of the input voltage, determined by the ratio of the two resistor values.

Voltage dividers are used extensively in electronics for tasks such as scaling down voltages for measurement, creating reference voltages, biasing active components like transistors, and interfacing between circuits that operate at different voltage levels. Despite their simplicity, understanding how they behave under different conditions is essential for reliable circuit design.

How Does a Voltage Divider Work?

The operating principle relies on Ohm's Law and Kirchhoff's Voltage Law. When current flows through two series resistors, each resistor drops a portion of the total voltage proportional to its resistance. Since the same current flows through both resistors (they are in series), the voltage across each resistor is:

VR1 = Vin x (R1 / (R1 + R2)) -- Voltage across R1

VR2 = Vin x (R2 / (R1 + R2)) -- Voltage across R2 (this is Vout)

The key insight is that the output voltage depends only on the ratio of the resistors, not their absolute values. A divider with 1 kΩ and 1 kΩ produces the same output ratio as one with 10 kΩ and 10 kΩ. However, the absolute values matter for current consumption, power dissipation, and load sensitivity.

Voltage Divider with Load

The simple voltage divider formula assumes no current is drawn from the output node. In practice, any circuit connected to the output acts as a load resistance (RL) in parallel with R2. This changes the effective lower resistance and causes the output voltage to drop below the ideal calculated value.

Loaded Voltage Divider Formula

R2_eff = (R2 x RL) / (R2 + RL)

Vout_loaded = Vin x (R2_eff / (R1 + R2_eff))

Example: With R1 = 10 kΩ, R2 = 10 kΩ, and RL = 10 kΩ:
R2_eff = (10k x 10k) / (10k + 10k) = 5 kΩ
Vout drops from 50% to 33% of Vin

Rule of thumb: To keep the output voltage within 10% of the ideal value, the load resistance should be at least 10 times greater than R2. For 1% accuracy, the load should be 100 times greater than R2.

Common Applications

Voltage dividers appear in nearly every area of electronics design. Here are the most common use cases:

  • Sensor Interfaces: Many sensors (such as thermistors, photoresistors, and force-sensitive resistors) change resistance with the measured quantity. Placing the sensor in a voltage divider converts the resistance change into a measurable voltage change that can be read by a microcontroller's analog-to-digital converter (ADC).
  • ADC Reference and Input Scaling: Microcontrollers typically accept analog input voltages between 0 V and 3.3 V or 5 V. A voltage divider scales higher voltages down to this safe input range for measurement. For example, monitoring a 12 V battery with a 3.3 V microcontroller requires a divider ratio of approximately 3.64:1.
  • Transistor Biasing: In amplifier circuits, voltage dividers set the DC operating point (bias point) of bipolar junction transistors (BJTs). The divider provides a stable base voltage that is relatively independent of transistor beta variations, improving circuit reliability.
  • Logic Level Shifting: When connecting a 5 V logic output to a 3.3 V input, a simple voltage divider can step down the signal level. Using R1 = 1 kΩ and R2 = 2 kΩ converts 5 V signals to approximately 3.3 V.
  • Potentiometers: A potentiometer is essentially an adjustable voltage divider. Turning the knob changes the ratio between the upper and lower resistance, providing a variable output voltage used in volume controls, dimmer switches, and calibration circuits.
  • Feedback Networks: Voltage regulators and op-amp circuits use resistive dividers in their feedback paths to set the output voltage or gain. The divider ratio determines what fraction of the output is compared against a reference voltage.

Design Guidelines

Choosing the right resistor values involves balancing several trade-offs:

Choosing R1 and R2 Values

Start by determining the required output voltage ratio. Then select actual resistor values from standard series (E12 or E24) that closely match. When an exact ratio is not achievable with standard values, choose the nearest combination and verify that the resulting voltage is within your circuit's tolerance.

  • Current Consumption: Lower resistance values mean more current flows through the divider, wasting power. Higher values reduce current but make the circuit more sensitive to load and noise. A typical design target is 1 mA to 10 mA of divider current for power supply applications.
  • Power Dissipation: Each resistor dissipates power as heat. Calculate P = I² x R for each resistor and ensure it stays well within the resistor's power rating (commonly 1/8 W or 1/4 W for through-hole resistors). Derate by 50% for reliable long-term operation.
  • Impedance Matching: The output impedance of a voltage divider equals R1 in parallel with R2. This impedance must be low relative to the load impedance to maintain voltage accuracy. If the load impedance is not high enough, consider using a buffer amplifier (voltage follower) after the divider.
  • Frequency Response: At high frequencies, parasitic capacitance across the resistors and in PCB traces can alter the divider ratio. For AC signals or fast digital edges, compensated dividers with capacitors in parallel with the resistors may be necessary.
  • Temperature Stability: Resistor values drift with temperature. For precision applications, use resistors with low temperature coefficients (such as thin-film resistors with 25 ppm/°C or better) and ensure both resistors have matching temperature coefficients so the ratio remains stable.

Voltage Divider Examples

Example 1: Converting 12 V to 5 V for a Microcontroller ADC

A sensor outputs 0-12 V but the microcontroller ADC accepts 0-5 V maximum. We need a divider ratio of 5/12 = 0.4167.

Solution: Using R1 = 14 kΩ and R2 = 10 kΩ (both standard E24 values):
Vout = 12 x (10,000 / (14,000 + 10,000)) = 12 x 0.4167 = 5.0 V

Current draw: I = 12 / 24,000 = 0.5 mA. Power: P = 12 x 0.0005 = 6 mW total. Both values are well within typical component ratings.

Example 2: Battery Voltage Monitoring

A 4-cell lithium battery pack ranges from 12 V (empty) to 16.8 V (full). We need to monitor this with a 3.3 V ADC. The divider must keep Vout below 3.3 V at maximum battery voltage.

Solution: Required ratio: 3.3 / 16.8 = 0.1964. Using R1 = 82 kΩ and R2 = 20 kΩ:
Vout at 16.8 V = 16.8 x (20,000 / 102,000) = 3.29 V (safe)
Vout at 12.0 V = 12.0 x (20,000 / 102,000) = 2.35 V

High-value resistors keep current draw below 0.2 mA, preserving battery life. The ADC reads 2.35-3.29 V, which maps to the 12-16.8 V battery range in firmware.

Example 3: Thermistor Temperature Sensing

A 10 kΩ NTC thermistor (10 kΩ at 25°C) is used with a voltage divider to measure temperature. The thermistor is placed as R2 (lower resistor) with a fixed 10 kΩ R1 and a 3.3 V supply.

At 25°C: Thermistor = 10 kΩ, Vout = 3.3 x (10k / 20k) = 1.65 V
At 50°C: Thermistor = ~3.6 kΩ, Vout = 3.3 x (3,600 / 13,600) = 0.87 V
At 0°C: Thermistor = ~27.3 kΩ, Vout = 3.3 x (27,300 / 37,300) = 2.42 V

The microcontroller reads the ADC voltage and converts it back to temperature using the Steinhart-Hart equation or a lookup table. Choosing R1 equal to the thermistor's nominal resistance centers the measurement range around that temperature.

Alternative Voltage Regulation

Voltage dividers are not voltage regulators. They cannot maintain a constant output voltage when the load current changes. For powering circuits that draw significant current, a dedicated voltage regulator is the correct choice. Here is when to use each approach:

Feature Voltage Divider Linear Regulator (e.g., LM7805) Switching Regulator (Buck)
Output regulation None (varies with load) Excellent (typically 1-3%) Excellent (typically 1-2%)
Load current Microamps only Up to 1-2 A typical Up to several amps
Efficiency Poor (wastes power as heat) Poor to moderate (Vout/Vin) High (85-95% typical)
Complexity 2 resistors IC + 2 capacitors IC + inductor + capacitors
Cost Very low Low Moderate
Best use case Signal scaling, biasing, sensing Low-power, noise-sensitive circuits High-power, battery-powered systems

Important: Never use a voltage divider to power a microcontroller, LED, motor, or any component that draws meaningful current. The output voltage will sag unpredictably, potentially causing malfunction or damage. Use a proper voltage regulator for power delivery and reserve voltage dividers for signal conditioning and measurement tasks.

Frequently Asked Questions

Q: Can I use a voltage divider to charge a phone or power a USB device?

A: No. USB devices draw hundreds of milliamps to several amps of current. A voltage divider cannot supply this current while maintaining a stable 5 V output. Use a buck converter or linear voltage regulator rated for the required current instead.

Q: Why does my measured output voltage differ from the calculated value?

A: Several factors can cause discrepancies. Resistor tolerance (typically 5% for carbon film, 1% for metal film) means actual resistance values differ from nominal. Additionally, your multimeter has finite input impedance (usually 10 MΩ) which acts as a load, and the source voltage may not be exactly at its rated value. For precise results, measure the actual resistor values and source voltage.

Q: Can voltage dividers work with AC signals?

A: Yes, resistive voltage dividers work with both DC and AC signals. The division ratio remains the same regardless of frequency (for ideal resistors). However, at high frequencies (above a few MHz), parasitic capacitance and inductance in the resistors and wiring can alter the ratio. Oscilloscope probes use compensated voltage dividers with parallel capacitors to maintain accuracy across a wide frequency range.

Q: What happens if R1 or R2 fails open or short?

A: If R1 fails open (breaks), no current flows and Vout drops to 0 V. If R1 fails short, Vout rises to Vin, which could damage downstream components. If R2 fails open, Vout rises to Vin. If R2 fails short, Vout drops to 0 V and excessive current flows through R1. In safety-critical designs, consider adding protection components like Zener diodes or fuses.

Engineering Disclaimer

This voltage divider calculator is provided for educational and reference purposes. Always verify calculations independently before using them in production designs. For safety-critical or high-reliability applications, consult a qualified electrical engineer and follow applicable standards and regulations.