Friendly Calculator logo FRIENDLY CALCULATOR

FRIENDLY CALCULATOR · SCIENCE

LED Resistor Calculator

Choose a current-limiting resistor for an LED from the supply voltage, LED forward voltage and desired current.

Enter your values

Formula and methodology

Resistor R = (supply voltage − LED forward voltage) ÷ current. Resistor power P = I² × R.

Worked example

With Supply voltage 9, LED forward voltage 2, Desired current 20, the calculator gives: Required resistance (ohms) = 350; Power dissipated in resistor (W) = 0.14; Power drawn from supply (W) = 0.18.

How to read the result

Round up to the next standard resistor value and choose a power rating at least twice the dissipated power. Check the LED datasheet for maximum current.

Frequently asked questions

Why round up the resistance?

A slightly higher resistor gives slightly lower current, which is safer for the LED.

Can I run several LEDs in series?

Yes. Add their forward voltages together before subtracting from the supply.

Assumptions and limitations

This tool uses idealised textbook formulas for learning and quick estimates. Real systems include friction, losses, tolerances and measurement error. Do not use it as the only basis for safety-critical or regulated engineering design.

Browse all calculators · Calculation methodology · Developer guide · Free Embed Builder