ShareYourGroupShareYourGroupElectronics Calculators

How to choose an LED resistor

An LED must never be connected straight to a battery or a power supply. A resistor sets the current.

Step by step

  1. Supply voltage Vs: the battery or supply you use.
  2. LED voltage Vf: from the LED's data sheet, for the current you want.
  3. LED current I: the data sheet gives a maximum. Many people choose a lower value than the maximum for a longer life.
  4. Resistor: R = (Vs − Vf) / I.
  5. Standard value: the next value above R in E12 or E24, so the current is slightly lower than planned.
  6. Power: P = I² × R. Choose a resistor with more than twice this power rating.

Worked examples

CaseTarget currentExact resistorNext E12 valueReal currentResistor power
5 V supply, 1 LED of 2 V10 mA300 Ω330 Ω9.091 mA27.27 mW
9 V supply, 1 LED of 2.2 V20 mA340 Ω390 Ω17.44 mA118.6 mW
12 V supply, 3 LEDs of 3.2 V20 mA120 Ω120 Ω20 mA48 mW
3.3 V supply, 1 LED of 2 V5 mA260 Ω270 Ω4.815 mA6.259 mW

Common mistakes

Several LEDs

In series, add the forward voltages and use the same resistor formula, and note that the supply must be higher than the total. In parallel, each LED needs its own resistor.

Can I use a lower resistor to make the LED brighter?

A lower resistor means more current, and above the rating the LED is damaged or its life drops.

What about LED strips?

Strips have their resistors built in and need the supply voltage printed on them.

This is an independent guide. It is not connected with any standards body or company named here. The formulas are the usual textbook ones; the colour code, E-series and AWG values are those printed in common references, because the standards IEC 60062, IEC 60063 and ASTM B258 are paid documents that we did not read. Tables and examples were calculated with Python on 14 November 2026. Check data sheets and local safety rules before you build.