LED resistor calculator
Enter the supply voltage, the LED voltage and the current you want, and get the resistor to fit.
About LED Resistor Calculator
An LED needs a resistor in series, otherwise it draws far more current than it can take. The size comes from the voltage left over after the LEDs, divided by the current you want. This calculator accepts several LEDs in series, then lists the exact value and the standard E12 and E24 values on each side with the current each would give. It also suggests a power rating for the resistor with a safety margin that you can choose.
- Wiring an indicator LED to a battery or supply.
- Planning a short string of LEDs on one resistor.
- Picking a real, buyable resistor value.
- Checking that the resistor will not run too hot.
How to use LED Resistor Calculator
Step 1
Type the supply voltage, the LED forward voltage and the current.
Step 2
Set the number of LEDs in series and the power margin.
Step 3
Choose the E24 value above the exact one, or another listed value, and note the rating.
Good to know
- Example: a 5 V supply, a 2 V LED and 15 mA need 200 ohms. That is an E24 value but not an E12 value, so with E12 you would take 220 ohms for about 13.6 mA.
- The value above the exact one gives slightly less current than you asked for. That is the safe side for the LED.
- Forward voltage changes with colour and with each part, so read the data sheet. The tool covers small DC circuits. For mains-powered lighting, ask a qualified electrician.
Common questions
How is the LED resistor calculated?
R = (supply voltage - total LED voltage) / LED current. The total LED voltage is the forward voltage times the number of LEDs in series.
Can I put LEDs in parallel on one resistor?
It is better not to. Small differences between LEDs make the current uneven. Use one resistor per LED or per series string.
What are E12 and E24?
They are preferred value series with 12 and 24 steps per decade, for example 100, 120, 150, 180, 220 for E12. Shops stock these values, so you pick the nearest one.