Ohm's Law & LED Calculator

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

Input

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. Input is plain text like "12V 100mA" or "vin=12 vf=2.1 if=20mA", not a form.

How to use it

Pick a calculation mode, then type values as key=value pairs or number-plus-unit tokens separated by spaces or commas, such as "R=4.7k P=2W" or "vin=9 vout=3 r2=1k". 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.

Why this one

Most online Ohm's law calculators handle only one mode, force you into separate input boxes per variable, and round LED resistor suggestions to arbitrary values instead of real E12 or E24 parts. This one takes 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.