How to use it
- Enter the supply voltage, the LED forward voltage and the current you want.
- If you chain several LEDs in a row, enter how many.
- You get a standard resistor (E12) at or above the calculated value, and the resulting current.
What this calculates
An LED's current shoots up and can burn it out if the voltage is even slightly over, so a series resistor limits the current. The resistor takes the supply voltage minus what the LED uses: R = (supply − LED voltage) ÷ current. A resistor exactly equal to the result is rare, so pick the next standard value up.
The formulas
- R = (supply voltage − LED voltage × count) ÷ current
- Resistor power = current² × R
- Standard value = the smallest value at or above the result in the E12 series (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82)
Reference table
| Supply (V) | Calculated resistor (Ω) | Nearest E12 value (Ω) | Actual current (mA) | Resistor power (mW) |
|---|---|---|---|---|
| 3.3 | 65 | 68 | 19.12 | 24.85 |
| 5 | 150 | 150 | 20 | 60 |
| 9 | 350 | 390 | 17.95 | 125.6 |
| 12 | 500 | 560 | 17.86 | 178.6 |
Worked examples
- 5 V, red LED 2 V, 20 mA → 150 Ω
- 12 V, three white LEDs of 3 V in series, 20 mA → 150 Ω
- 3.3 V, blue LED 3 V, 10 mA → 30 Ω → standard 33 Ω
Frequently asked questions
What if I do not know the LED voltage?
Try about 2 V for red, yellow and green and about 3 V for blue and white, then check the datasheet.
What current should I use?
A regular 5 mm LED is usually 10–20 mA. A lower current is dimmer but lasts longer.
Why check the resistor power?
Use a resistor rated higher than the calculated power (usually twice as much) so it does not get hot. A 0.25 W resistor is common.
What about LEDs in parallel?
It is best to give each LED its own resistor. Sharing one resistor can make the current uneven between LEDs.
Why do I get an error?
If the LED voltage × count is at or above the supply voltage, the LEDs will not light. Reduce the count or raise the supply voltage.
Are my numbers stored?
No. Everything is calculated in your browser and nothing is sent to a server or saved.
Good to know
- To read a resistor's value from its color bands, use the Resistor Color Code Calculator.
- To see power from voltage and current, use the Ohm's Law Calculator.
Sources
- BIPM SI Brochure — definitions of volt, ampere, ohm and watt
- International Electrotechnical Commission (IEC) — standard resistor value series such as E12 are in IEC 60063 (the standard is paid; this table does not copy it)
Last updated 2026-12-02 · For reference only; not investment, tax or legal advice.