CODDY Tool

LED Resistor Calculator

Find the series resistor an LED needs, from supply voltage, forward voltage and target current.

Calculate the current-limiting resistor an LED needs off a given supply, for one LED or several in series. Includes the nearest real (E24) resistor value and the power rating that resistor should have.

Everything you enter stays in this browser tab. Nothing is sent to our servers, logged or stored.

Loading tool…

About LED Resistor Calculator

An LED's forward voltage barely changes as current through it rises — which sounds convenient and is actually the problem. Without something else in the circuit limiting current, a tiny rise in supply voltage drives a large, uncontrolled rise in current, and an LED destroys itself in milliseconds run this way. The resistor is what actually sets the current: it drops whatever voltage the LED doesn't, and Ohm's law pins the resulting current to a safe, predictable value.

Forward voltage depends on the semiconductor material an LED is made from, which is also what determines its colour — red, yellow and orange LEDs typically drop around 2V, while green, blue and white ones drop more, often 3V or higher. This is why a resistor calculated for a red LED is usually wrong for a blue one on the same supply, even at the same target current.

The result includes the nearest E24 (5% tolerance) resistor value, rounded up rather than down or to the closest — a slightly higher resistance means slightly lower current than calculated, which is the safe direction to round in. It also recommends a power rating with headroom, since running a resistor at exactly its rated power leaves it hot and its value drifting.

How to calculate an LED's series resistor

  1. Enter the supply voltage

    What the LED and resistor together are connected across.

  2. Choose the LED colour or forward voltage

    Or enter a custom value from the LED's datasheet.

  3. Set the target current

    20mA is typical for a standard 5mm LED; check the datasheet for anything unusual.

  4. Read the resistor value

    Both the exact calculated value and the nearest real one you can buy.

Frequently asked questions

What happens if I skip the resistor?

The LED draws whatever current the supply and its own tiny internal resistance allow, which is usually far beyond its rated maximum. It will run hot, dim rapidly, and typically fail within seconds to minutes depending on the supply's current capability.

Why is the calculated resistance not a value I can buy?

Real resistors are only manufactured at standard values (the E24 series, for 5% tolerance parts) — this is why the nearest standard value is shown alongside the exact calculation, always rounded up so the actual current ends up slightly below the target rather than above it.

Can I connect LEDs in parallel with one shared resistor?

Not reliably. Even 'identical' LEDs have slightly different forward voltages, so one ends up carrying more current than the others and burns brighter and hotter until it fails — then the rest follow. Each parallel LED (or parallel string) should get its own resistor, calculated the same way.

Why does the calculator warn about too many LEDs in series?

Each LED in series adds its forward voltage to the total the supply has to cover. Once that total meets or exceeds the supply voltage, there is nothing left for a resistor to drop — the circuit physically cannot work as wired, and needs either fewer LEDs in series or a higher supply voltage.

LED Resistor Calculator is free to use with no account, no watermark and no usage limits. Last updated 3 September 2026.