Science & Engineering
LED Resistor & Voltage Divider Calculator
Find the current-limiting resistor for LEDs (single or in series) with the nearest standard E12 value, or calculate a voltage divider's output.
How to use
- 1Choose LED resistor or voltage divider.
- 2For LEDs, enter the supply voltage, LED forward voltage and current. For a divider, enter Vin, R1 and R2.
How it's calculated
LED: R = (Vs − n × Vf) ÷ I; power = I² × R. Divider: Vout = Vin × R2 ÷ (R1 + R2).
Frequently asked questions
What forward voltage does my LED have?
Typically red ~2.0 V, yellow/green ~2.1 V, blue/white ~3.0–3.3 V. Check the datasheet.
Why round up to a standard resistor?
A slightly higher resistance means slightly less current, which is safer for the LED.
Can a voltage divider power a device?
Only very light loads — any current drawn changes the output. Use a regulator to power circuits.
Why the resistor is calculated from leftover voltage, not supply voltage
An LED has a roughly fixed forward voltage drop across it once it's conducting — it doesn't behave like a resistor with a voltage proportional to current. That means a resistor has to absorb whatever voltage is left over after the LED (or several in series) takes its share: R = (supply − n × forward voltage) ÷ desired current. Skip the resistor entirely and the LED tries to draw as much current as the supply can push, which destroys it almost instantly — the resistor's entire job is limiting that current to a safe level.
A worked example, and why rounding goes up not down
A single LED with a 2V forward voltage drawing 20 mA from a 5V supply needs (5 − 2) ÷ 0.02 = 150Ω — which happens to be an exact E12 standard value, so no rounding is needed. Three LEDs with a 3.2V forward voltage in series from a 12V supply need (12 − 9.6) ÷ 0.02 = 120Ω, also exact. When the calculated value falls between two standard E12 resistors, the calculator always rounds up to the next standard value rather than down — a slightly larger resistance means slightly less current than intended, which is a safe direction to be wrong in; rounding down would push more current through the LED than designed for.
Why a voltage divider can't power anything real
The divider formula Vout = Vin × R2 ÷ (R1 + R2) assumes no current is drawn from the output tap — the moment you connect a real load, that load effectively becomes a third resistor in parallel with R2, changing the ratio and pulling Vout down from the calculated value. A 5V supply through two 10kΩ resistors gives a clean 2.5V with nothing connected, but powering even a small sensor from that same tap will measurably sag the voltage below 2.5V — for actually driving a circuit, a voltage regulator (which actively maintains its output regardless of load) is the correct tool, not a divider.
Series count is rounded, and a shortfall is refused
One LED, 5 volts, 2 volt forward drop, 20 milliamps gives exactly 150 ohms, which is already an E12 value, so the standard value matches the exact one. The series count is rounded to a whole number, and a count below 1 is treated as a single LED, so a blank or a zero does not divide the string into nothing. If the supply is not strictly above the total forward voltage, I am told the supply is too low for that many LEDs, rather than shown a negative resistor. The power line uses the standard resistor, not the exact one, because that is the part I would actually fit, at the LED current.
Related tools
- Ohm's Law Calculator
Enter any two of voltage, current, resistance and power to calculate the other two with Ohm's law and the power formulas.
- Hemocytometer Cell Count Calculator
Calculate cell concentration and viability from hemocytometer counts: cells per mL, total cells, and the volume needed to seed a target number of cells.
- Molar Mass Calculator
Calculate the molar mass (molecular weight) of any chemical formula — including brackets and hydrates like CuSO4·5H2O — with the mass percentage of each element.
- Molarity & Dilution Calculator
Calculate molarity, moles, mass or volume of a solution, or solve a dilution with C₁V₁ = C₂V₂.
- Customer Lifetime Value (CLV) Calculator
Estimate customer lifetime value from average order value, purchase frequency, gross margin and retention — and compare it with acquisition cost.
- Percent Error Calculator
Calculate percent error between an experimental (measured) value and the theoretical (accepted) value — with absolute and relative error and the working shown.