LED Resistor Calculator

What resistor do I need for my LED? Enter your supply voltage (5V, 12V, 3.3V — anything), pick the LED color, and get the exact resistor value, the nearest standard E12 size, and a safe wattage rating.

100% in-browser No signup 7 LED colors + custom Free forever

✓ Meets the ToolVaultly Standard · Last tested: Oct 7, 2026

Common supply voltages
—
Resistor needed (exact)
—
Nearest standard (E12)
—
Power dissipated
—
Wattage rating (2× margin)

🔒Private by design. Every calculation happens in your browser. Your circuit values are never sent anywhere or stored.
Quick answer: for a standard red LED (2V drop, 20mA) on 5V you need a 150Ω resistor rated 1/8W or higher — (5−2)÷0.02 = 150Ω. Enter your supply voltage, LED forward voltage and current above and the calculator gives the exact resistor value, the nearest standard E12 size and the power it dissipates.

Like this tool? Get the next one first.

Join the ToolVaultly list — one short email per new tool launch.

You're on the list — please check your inbox to confirm your subscription.

No spam, unsubscribe anytime.

Last updated: October 2026

What resistor do I need for my LED?

Short answer: for a red LED on 5V at 20mA you need a 150Ω resistor rated 1/8W or higher — (5−2)÷0.02 = 150Ω, and it dissipates just 0.06W. Always pick the nearest standard E12 value equal to or above the calculated resistance, then choose a wattage rating with at least double the dissipated power. The calculator above does all of this for you.

How to calculate the resistor for an LED

The formula is Ohm's law applied to the voltage the resistor must drop:

R = (Vs − Vf) ÷ I

Resistors aren't sold in every value, so round up to the nearest standard E12 preferred value. Rounding down would push the current above your target. For background on the parts involved, see the light-emitting diode and resistor articles on Wikipedia.

What resistor do I need for LED Arduino 5V projects?

The classic Arduino case: a red LED (Vf ≈ 2.0V) driven from a 5V pin at 20mA. Applying the formula: (5 − 2) ÷ 0.02 = 150Ω — which happens to be a standard E12 value. It dissipates 3V × 0.02A = 0.06W, so a 1/8W resistor (0.125W ≥ 2 × 0.06W) is the safe, standard pick. For a blue or white LED on 5V: (5 − 3.2) ÷ 0.02 = 90Ω → round up to the E12 value 100Ω.

LED resistor calculator for 12V

On a 12V supply, a single red LED needs (12 − 2) ÷ 0.02 = 500Ω → E12 560Ω. It dissipates 10V × 0.02A = 0.2W, so use a 1/2W resistor (0.5W ≥ 2 × 0.2W) — a 1/4W resistor would run too hot. For 12V it's more efficient to wire LEDs in series so they share one resistor; see the next section.

How to calculate resistor for multiple LEDs in series

When LEDs are wired in series, the same current flows through all of them and their forward voltages add up: R = (Vs − N×Vf) ÷ I. Three white LEDs (3 × 3.2V = 9.6V) on 12V at 20mA need (12 − 9.6) ÷ 0.02 = 120Ω — one resistor for the whole string. The calculator handles this with the "N in series" tab. Important: if Vs is less than N×Vf, no resistor can make it work — you need a higher supply or fewer LEDs in the string.

Quick reference: LED resistor values by color (5V, 20mA)

Forward voltage depends mainly on color, so here are the standard picks for the most common setup — a 5V supply (Arduino pin) driving one LED at 20mA. Values use the calculator's own default forward voltages; exact values from your LED's datasheet always win.

LED colorTypical Vf rangeResistor (exact)Nearest E12Power dissipated
Infrared (IR)~1.4 V180 Ω180 Ω0.072 W
Red1.8–2.2 V150 Ω150 Ω0.060 W
Yellow1.9–2.2 V145 Ω150 Ω0.058 W
Green2.0–3.1 V140 Ω150 Ω0.056 W
Blue3.0–3.7 V90 Ω100 Ω0.036 W
White3.0–3.4 V90 Ω100 Ω0.036 W
UV~3.4 V80 Ω82 Ω0.032 W

The highest dissipation here is 0.072 W, so with the standard 2× safety margin a 1/4W resistor covers every row. For a different supply voltage or current, run the calculator above.

How to use the calculator

1. Enter your supply voltage in volts. 2. Pick your LED color — the forward voltage fills in automatically, or choose "Custom…" and enter Vf from your LED's datasheet. 3. Set the LED current (20mA is standard for 5mm LEDs). 4. Choose the wiring: single LED, N LEDs in series, or N parallel strings of one LED. 5. Read off the exact resistor, the nearest buyable E12 value, the power dissipated, and the recommended wattage rating.

Note on parallel wiring: give each string its own resistor — the calculator assumes one resistor per string and reports the total supply current. See the FAQ below for why a single shared resistor is a bad idea.

Why a bigger resistor isn't safer — just dimmer

Beginners often grab a much larger resistor "to be safe" — 1kΩ where 150Ω would do. It won't damage anything, but it starves the LED: current drops far below the LED's rated 20mA and the result is a faint glow you can barely see in daylight. Safety comes from the power rating (use 1/8W or higher for these small values, and check the calculator's dissipation figure), not from oversizing the resistance.

The other classic mistake is skipping the resistor because the supply "almost matches" — a 3.3V rail driving a 3.2V LED still needs one, because without it there's nothing limiting current and the LED draws until it burns out. When in doubt, run the numbers through the calculator above — or check the arithmetic on our scientific calculator. And if your LED runs on batteries, our battery runtime calculator tells you how long the whole circuit stays lit.

Worked example: three red LEDs in parallel on a 9V battery

Series strings suit high-voltage supplies. On a 9V battery, parallel wiring is often the better layout — each LED gets its own resistor and its own path to the supply. Say you want three red LEDs (Vf 2.0V) at 20mA each:

Step 1 — One resistor per string: each string is just a single LED, so the single-LED formula applies per string: (9 − 2.0) ÷ 0.02 = 350Ω. Round up to the nearest E12 value: 390Ω, one for each LED.

Step 2 — The current you actually get: the larger resistor drops the current slightly below target: (9 − 2.0) ÷ 390 = 17.9mA per string — a touch dimmer than 20mA, and safely under the LED's rating.

Step 3 — Total draw and resistor rating: the battery feeds all three strings, so it supplies 3 × 17.9 = 53.8mA in total. Each resistor dissipates 7V × 17.9mA ≈ 0.126W, so a standard 1/4W resistor keeps the usual two-times safety margin. A typical 550mAh 9V alkaline runs the trio for roughly ten hours — the battery runtime calculator works this out for any battery and load.

Why not save two resistors and share one? Because no two LEDs have exactly the same forward voltage, even from the same packet. With a shared resistor, the string with the lowest Vf takes more than its share of current, runs hotter, and its Vf drops further as it warms — so it takes even more. One resistor per string removes the competition entirely, which is why the calculator's parallel mode is built that way. Parallel wiring has two further advantages on battery projects: the circuit keeps working, dimmer but lit, if one LED fails, and the full supply voltage is available to every LED — useful for blue and white LEDs whose 3.2V forward voltage leaves little room for series strings on low-voltage supplies. The arithmetic throughout is plain Ohm's law; for anything beyond it, the scientific calculator covers the general maths.

Frequently asked questions

Why should I use the nearest higher E12 value instead of the closest one?
Because resistors are only sold in standard E12 values, and rounding down would push more current through your LED than you intended, shortening its life. Rounding up to the next standard value slightly lowers the current — the brightness difference is imperceptible, and your LED stays within its safe rating.
What wattage resistor do I need for an LED?
Multiply the voltage across the resistor by the LED current: P = Vdrop × I. For a red LED on 5V at 20mA that's 3V × 0.02A = 0.06W, so choose a rating at least double that — a 1/8W (0.125W) resistor is the standard safe pick. The calculator above applies this 2× safety margin automatically.
Can I use one resistor for several LEDs wired in parallel?
Give each parallel string its own resistor. LEDs never share current perfectly — tiny differences in forward voltage make one LED hog most of the current, burn out, and dump its share onto the rest until they all fail. In series, however, one resistor works fine because the same current flows through every LED.
My supply is only 3.3V. What resistor do I need?
The same formula still applies. A red LED (2.0V) at 20mA on 3.3V needs (3.3 − 2) ÷ 0.02 = 65Ω, so use the nearest higher standard value, 68Ω. With white or blue LEDs (about 3.2V) there's barely any voltage left to drop — use the calculator result but expect the current to be sensitive to small voltage changes, and consider a dedicated LED driver for stable brightness.
Why does an LED need a resistor?
An LED is a diode, not a resistive load like a bulb — once the voltage across it reaches its forward voltage, the current shoots up steeply with any extra voltage, far beyond what the LED can survive. This runaway current heats the LED until it burns out, often in a fraction of a second. A series resistor soaks up the voltage above the LED's forward voltage and holds the current at the level you chose: as current tries to rise, the resistor drops more voltage, leaving less for the LED and pulling the current back down. The resistor is essential, not optional.
What happens if the resistor value is too high or too low?
Too high a resistor means less current than you planned, so the LED is dimmer than expected — or doesn't light at all. Too low means more current than planned, so the LED runs hot and burns out quickly. No resistor at all is the worst case: the LED draws uncontrolled current and usually dies instantly. When in doubt, round up to the next standard E12 value — a slightly dimmer LED is always safer than a slightly overdriven one.
What are the E12 and E24 resistor series?
E12 and E24 are the standard sets of resistor values manufacturers actually produce, defined by the IEC 60063 preferred-number system. E12 has 12 values per decade (10, 12, 15, 18, 22, 27, 33, 39, 47, 56, 68, 82, then ×10, ×100…) — these are the common, cheap, widely stocked resistors. E24 has 24 values per decade for finer steps. For LED current-limiting, E12 is almost always fine; E24 only matters when you need an unusually precise current.
Is my data private?
Completely. Every calculation runs locally in your browser with JavaScript — nothing you enter is sent to a server, stored, or tracked.
What resistor do I need to drop 12V to 5V?
A plain resistor is the wrong tool for dropping 12V to 5V as a power supply — it wastes the extra voltage as heat and the output sags whenever the load changes. Use a buck converter module instead: cheap, efficient and stable. But if you are powering a single LED from 12V, that is exactly what this calculator is for — enter the 12V supply, your LED's forward voltage and current, and it gives you the resistor value.