Ohm's Law & LED Calculator

Solve voltage, current, resistance, and power, plus LED resistor and voltage divider math.

Input

Ohm's law: fill any two of V, I, R, P.

Accepts m and u prefixes, like 20m.

Related tools

What it does

Solves Ohm's law and power for voltage, current, resistance, and power given any two of them, sizes a current limiting resistor for one or more series LEDs against the E12 and E24 standard series, and solves voltage divider networks in either direction. Fill in the labeled boxes for the values you know and leave the rest blank.

How to use it

Pick a calculation mode, then fill in the boxes that mode uses: any two of V, I, R, and P for the basic mode; supply voltage, LED forward voltage, and LED current for an LED resistor; supply voltage plus two of R1, R2, and Vout for a divider. Values take engineering suffixes such as 4.7k or 20m. The result shows every derived value in clean engineering notation along with the formula used and, for LEDs and dividers, the nearest standard resistor values. Choose "Type it instead" to enter the same thing as text, such as "R=4.7k P=2W" or "12V 100mA", which is also the form the curl API takes.

Why this one

Most online Ohm's law calculators handle only one mode and round LED resistor suggestions to arbitrary values instead of real E12 or E24 parts. This one accepts a form or free-form text, covers all three common calculations in one place, and your inputs never leave your device.

FAQ
Why does it suggest a resistor value above the exact calculation instead of the exact value?
Resistors are only manufactured in standard E12 or E24 values. Rounding up guarantees the LED current stays at or below your target, since a larger resistor lowers current; rounding down would risk over driving the LED.
What wattage resistor do I actually need?
The calculator computes the resistor's real power dissipation for the suggested value and recommends the next standard rating (1/8W, 1/4W, 1/2W, 1W, 2W, or 5W) that gives at least double that dissipation as safety headroom.
Should LEDs be wired in series or parallel with one resistor?
Series with one resistor sized for the combined forward voltage is standard practice; wiring LEDs in parallel behind a single resistor is unreliable because slight forward voltage differences make one LED hog the current.

Keyboard shortcuts: press ? anywhere on this page to see them.