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.
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
You will need
- LED and resistor kitEvery colour, with matching resistorsView on Amazon
- Battery holder with switch2, 3 or 4 AAView on Amazon
- Breadboard and jumper wiresTry it without solderingView on Amazon
Tools
None for a breadboard; a soldering iron for a permanent build.
Step by step
- 1
Find the LED's legs: the longer leg is + (anode); the short leg and the flat edge of the rim are −.
- 2
Connect the battery + to one end of the resistor (a resistor works either way round).
- 3
Connect the other end of the resistor to the LED's long leg.
- 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.
| Done | From | To | Wire |
|---|---|---|---|
| Battery + | Resistor (either end) | Red | |
| Resistor's other end | LED 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
You will need
- LEDs and resistorsValue from the calculator for each stringView on Amazon
- 12 V adapter and DC socketOr a 12 V batteryView on Amazon
- PerfboardTo solder the strings neatlyView on Amazon
Tools
Soldering iron, multimeter.
Step by step
- 1
Use the calculator: choose 12 V and the number of LEDs in one string (up to the maximum it shows).
- 2
Build one string: long leg to short leg, all in a row, with the resistor at the start.
- 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
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.
| Done | From | To | Wire |
|---|---|---|---|
| Adapter +12 V | Resistor at the start of every string | Red | |
| Resistor | First LED's long leg | thin wire | |
| Each LED's short leg | Next LED's long leg | thin wire | |
| Last LED's short leg, every string | Adapter − | 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.
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.