EmbeddedEra EmbeddedEra

‹ Tools · LED resistor

LED series resistor calculator

The exact value, the standard value you can actually buy (rounded up, so the current lands under target), the current you will really get and a resistor power rating.

Advanced: brightness

Accepts 4k7, 4.7k, 10µ, 2R2.

LED resistor Live
+ − Vs — V_R = — — — — — — I = — 0 V
Resistor (rounded up) — Actual current — — —
Brightness — —
R = (Vs − n · Vf) / I P = I² · R embeddedera.com/tools

The formula

R = (Vs − n · Vf) / I P = I² · R

When to use it

Indicator LEDs from a logic supply, a string of LEDs from 12 or 24 V, a backlight from a fixed rail. The forward voltage depends on colour and current — about 1.8 to 2.2 V for red, 3.0 to 3.4 V for blue and white — so take it from the datasheet at the current you intend to run.

Pitfalls

  • Rounding up keeps the LED under its rating. If the actual current drops well below what you want, take the standard value below and check the LED’s maximum instead.
  • When Vs − n·Vf is small (a white LED from 3.3 V), the current swings widely with Vf tolerance and supply changes. Leave at least 1 V across the resistor, or use a current regulator.
  • A string of LEDs in series shares one current but needs the supply to exceed the sum of the forward voltages, with headroom.
  • Forward voltage falls as the LED warms, so the current creeps up: another reason for headroom across the resistor.

Need the whole board designed, not just the LED resistor?