Runs in your browser — nothing is uploaded
—
Details
For learning, hobby and prototyping use. Not professional electrical design advice — follow applicable codes and standards.
How to use LED Resistor Calculator
Current-limiting resistor for one or more LEDs.
- Enter supply voltage, LED forward voltage, LED current and LEDs in series; each field shows its unit.
- Read the LED Resistor result — it updates as you type.
- Check the method in the formula below, then change any value to compare scenarios.
Formula & assumptions
R = (Vsupply − n × Vf) / I
Example: For a 5 V supply, one 2 V LED and 20 mA current, R = (5 − 2) / 0.02 = 150 Ω.