How to calculate
Subtract total forward voltage from the supply. Divide the remaining voltage by target current, then multiply voltage drop by current for power.
Worked example
Use Supply voltage (V) 12 · Forward voltage per LED (V) 2 · Number of LEDs in series 2 · Target LED current (mA) 20. The result is ≈ 400 Ω.
Input and result notes
Enter LEDs in one series string. If choosing a standard resistor value, rounding up reduces current.