ECEdge

Exam: GATE 2027 exams are on 6, 7, 13, 14, 20 and 21 February 2027. Official GATE 2027 site

LED resistor calculator

Find the resistor that keeps an LED at a safe current, with the nearest standard value and the power it must handle.

LED series resistor

The resistor sets the LED current. Pick the LED colour for a typical forward voltage, or type your LED’s value from its datasheet.

R = (V_supply − n × V_f) / I

How it works

  • The resistor takes the voltage the LEDs do not: Vsupply − n × Vf.
  • Ohm’s law then gives R = that voltage ÷ the current you want.
  • Round up to the next standard (E12) value so the current stays at or below your target.

Worked example

5 V supply, one blue LED (Vf ≈ 3.1 V), 10 mA: R = (5 − 3.1) ÷ 0.01 = 190 Ω. The next standard value is 220 Ω, giving about 8.6 mA.

Common questions

How much current should an LED get?

Most small 5 mm LEDs are bright enough at 5–10 mA and rated for 20 mA maximum. Less current means longer life and less heat.

Can I use one resistor for several LEDs in parallel?

Not reliably: LEDs share current unevenly. Give each LED (or each series string) its own resistor.

More calculators