WattNWave
DIY projects › Lights and LEDs

Which resistor do I need for my LED?

An LED always needs a resistor to limit its current. Wire one LED to a battery, or several strings of LEDs on 12 V: follow the drawing and the calculator gives the resistor value, its colour bands and how hot it gets.

9V
EasySolder or breadboard10 minutes
New to electronics? The words used on this page
Multimeter
A hand-held meter that measures voltage. Use it to check before you connect anything.

Which way is for you?

AOne LED from a battery

Your first circuit: a battery holder, a resistor and an LED. Breadboard or solder · 10 minutes

+−+−+−battery holder2long leg +314+ positive− negative
Swipe sideways to see the whole drawing. The numbers on the drawing match the steps below.

You will need

Tools

None for a breadboard; a soldering iron for a permanent build.

Step by step

  1. 1

    Find the LED's legs: the longer leg is + (anode); the short leg and the flat edge of the rim are −.

  2. 2

    Connect the battery + to one end of the resistor (a resistor works either way round).

  3. 3

    Connect the other end of the resistor to the LED's long leg.

  4. 4

    Connect the LED's short leg back to the battery −. Switch on.

    Check: no light? Turn the LED round.

Every connection, one by one

Tick each one as you make it. When every box is ticked, the wiring is complete.

DoneFromToWire
Battery +Resistor (either end)Red
Resistor's other endLED long leg (+)thin wire
LED short leg (−)Battery −Black

As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.

BSeveral LEDs on 12 V

Strings of LEDs in a row, each string with its own resistor, side by side on 12 V. Soldering · 30 minutes

12 V4123+ positive− negative
Swipe sideways to see the whole drawing. The numbers on the drawing match the steps below.

You will need

Tools

Soldering iron, multimeter.

Step by step

  1. 1

    Use the calculator: choose 12 V and the number of LEDs in one string (up to the maximum it shows).

  2. 2

    Build one string: long leg to short leg, all in a row, with the resistor at the start.

  3. 3

    Build more identical strings and connect them side by side: every resistor to +12 V, every last short leg to −.

    Check: give every string its own resistor; never share one.

  4. 4

    Connect the adapter and switch on.

Every connection, one by one

Tick each one as you make it. When every box is ticked, the wiring is complete.

DoneFromToWire
Adapter +12 VResistor at the start of every stringRed
ResistorFirst LED's long legthin wire
Each LED's short legNext LED's long legthin wire
Last LED's short leg, every stringAdapter −Black

As an Amazon Associate I earn from qualifying purchases. Links open Amazon search results.

Find your resistor

Resistor value, colour bands and heat for your power source and LEDs.

Only used if you chose Other voltage.
Each LED in series adds its voltage.
Our suggestion
—

How this is calculated

Method
R = (supply V − LEDs × forward voltage) ÷ current, rounded up to the next E12 value. Actual current = headroom ÷ R. Resistor heat = I² × R; the wattage shown is the next standard size.
Assumptions
Typical forward voltages: red 2.0, yellow 2.1, green, blue and white 3.1, infrared 1.9 V; real LEDs vary by about ±0.2 V. At least 0.3 V of headroom is needed for the resistor to control the current.
Sources
Ohm's law; E12 series (IEC 60063); typical 5 mm LED datasheets.

Stay safe

  • Never connect an LED straight to a battery or USB without a resistor: it burns out, sometimes in a flash.
  • Use a resistor with at least the wattage shown; undersized resistors get hot.

Questions people ask

What if I can't find the exact resistor value?

Use the next higher standard value. The LED will be very slightly dimmer, which is safe. The tool already rounds up.

Can I put several LEDs in parallel on one resistor?

Better not: LEDs never share current evenly, so one can hog it and burn out. Give each LED (or each series string) its own resistor.

Why does my coin-cell LED light have no resistor?

Small coin cells cannot supply much current, so their own resistance limits the LED. This trick does not work with AA batteries or USB.

How do I read the colour bands?

The first two bands are digits, the third is how many zeros, the fourth is tolerance (gold = 5%). The tool shows the bands for your value.

Written and checked by Moataz FOUAD, telecom and electronics engineer. About this site.