Skip to main content

Free LED Resistor Calculator – Size a Current-Limiting Resistor

LED Resistor Calculator finds the right current-limiting resistor for an LED online for free. Enter supply voltage, LED voltage, and current to get the resistor value.

Written & reviewed by Helperzy Editorial Team · Updated July 2026

R = (Vs − Vf) ÷ INearest E24 valuePower ratingReal-timeFree

Quick LED presets

Required Resistor

350 Ω

Nearest standard: 390 Ω

Power Dissipated

0.14 W

Min. Resistor Rating

1/4 W

100% Private

All calculations run locally in your browser. Nothing is uploaded.

How to Use LED Resistor Calculator

1

Enter Voltages

Type the supply voltage and the LED's forward voltage, or tap a colour preset for a typical value. The forward voltage must be lower than the supply for the LED to light. Check the datasheet if you need an exact figure.

2

Set the Current

Enter the target LED current in milliamps, with 20 mA a safe default for standard 5 mm LEDs. Staying at or below the LED's rated current protects it. The tool converts this to amps for the calculation.

3

Get the Resistor

Read the exact resistor value, the nearest standard E24 size to buy, and the power rating you need. Pick the standard value at or above the calculated one to keep current safely under target. The power figure tells you whether a quarter-watt part is enough.

Sizing a Current-Limiting Resistor for an LED

An LED needs a series resistor to survive, because it behaves like a diode, not a fixed resistance. Wire one straight across a supply and it will gulp far more current than it can handle and burn out in an instant. A resistor in series soaks up the excess voltage and holds the current to a safe level. This calculator works out the right resistor with the formula R = (V_supply − V_LED) ÷ I_LED, taking the guesswork out of a step that trips up almost every beginner in electronics. Each term has a clear meaning. V_supply is the voltage of your power source, such as a 9-volt battery. V_LED is the LED's forward voltage — the voltage it naturally drops when lit, which depends on its colour. I_LED is the current you want to run through it, given in amps in the formula (so 20 milliamps becomes 0.02 A). The tool subtracts the LED's forward voltage from the supply to find the voltage the resistor must drop, then divides that by the target current. Typical forward voltages are about 1.8 V for red, 2.1 V for yellow, 2.2 V for green, and around 3.2 V for blue and white, and 20 mA is a safe current for a standard 5 mm LED. Here is a worked case. Drive a red LED (forward voltage 2 V) from a 9-volt supply at 20 mA. The resistor must drop 9 − 2 = 7 volts, and at 0.02 amps that means R = 7 ÷ 0.02 = 350 ohms. Since 350 is not a standard value, you would pick the nearest standard part at or above it, commonly 360 ohms in the E24 series, which nudges the current a touch below 20 mA for safety. The resistor dissipates about 7 × 0.02 = 0.14 watts, so a common quarter-watt resistor is comfortably rated for the job. With 360 ohms fitted, the actual current settles at 7 ÷ 360 = 19.4 milliamps, close enough that the LED brightness is indistinguishable. Run the same red LED from a 5-volt board instead and you need only (5 − 2) ÷ 0.02 = 150 ohms. This is bread-and-butter work for indicator lights, hobby electronics, Arduino projects, decorative lighting, and panel LEDs. The tool reports the exact value, the nearest standard E24 value you can actually buy, the power the resistor burns, and a suggested minimum power rating with headroom. Choosing the standard value just above the calculated one keeps the LED safely under its maximum current and lengthens its life. Consider three concrete jobs. An Arduino builder adding a status LED to a 5-volt pin uses 150 ohms for a red LED at 20 mA and keeps the pin well inside its current limit. Someone lighting a model railway signal from a 12-volt supply wires three white LEDs in series, adds their forward voltages to 9.6 volts, and needs only (12 − 9.6) ÷ 0.02 = 120 ohms for the whole string, dissipating a tiny 0.048 watts. A panel builder driving an indicator from a 24-volt industrial rail lands on 1,100 ohms and 0.44 watts, which means a half-watt resistor is the minimum sensible choice. A few guardrails keep results sensible. If the LED's forward voltage is equal to or greater than the supply, there is not enough headroom to light it, and the tool says so rather than returning nonsense; it also rejects a current of zero. For several LEDs, calculate per branch — LEDs in series add their forward voltages and share one resistor, while parallel LEDs each need their own resistor to avoid uneven current sharing. The classic beginner error is entering the current in milliamps where the formula expects amps — typing 20 instead of 0.02 gives a resistance a thousand times too small and destroys the LED on first power-up. Also resist the temptation to push current to the absolute datasheet maximum; running a little under keeps the LED cooler and dramatically extends its life. Treat the figures as a design guide, check your LED datasheet for true ratings, and if the circuit connects to mains in any way, follow local electrical code and have a qualified electrician handle that side. Everything runs locally in your browser.

LED Resistor Calculator Formula & Method

R = (V_supply − V_LED) ÷ I_LED Resistor power = (V_supply − V_LED) × I_LED V_supply = supply voltage in volts V_LED = LED forward voltage in volts (about 1.8 red, 2.1 yellow, 2.2 green, 3.2 blue/white) I_LED = target LED current in amperes (20 mA = 0.02 A, a safe default for 5 mm LEDs) For LEDs in series, add their forward voltages and use the total as V_LED

Examples: LED Resistor Calculator

Input

9 V supply, 2 V red LED, 20 mA

Result

R = 350 Ω (use 360 Ω), ≈ 0.14 W

(9 − 2) ÷ 0.02 = 350 Ω; power = 7 × 0.02 = 0.14 W.

Input

12 V supply, 3.2 V white LED, 20 mA

Result

R = 440 Ω (use 470 Ω)

(12 − 3.2) ÷ 0.02 = 440 Ω, rounded up to a standard value.

Input

5 V board pin, 2 V red LED, 20 mA

Result

R = 150 Ω, 0.06 W

(5 − 2) ÷ 0.02 = 150 Ω, a standard value already, dissipating 3 × 0.02 = 0.06 W.

Frequently Asked Questions – LED Resistor Calculator

Use R = (Supply Voltage − LED Forward Voltage) ÷ LED Current. Enter the supply voltage, the LED's forward voltage, and the target current in milliamps. The calculator returns the exact resistor value, the nearest standard value, and the power rating needed.