WattBench

LED Resistor Calculator

Find the series resistor that keeps your LED at a safe current, and get the nearest standard value to buy.

Typical forward voltages: red 1.8–2.2 V, yellow 2.0 V, green 2.0–3.2 V, blue and white 2.8–3.4 V. Check your LED's datasheet.

How it works

R = (Vsupply − N × Vforward) / I   |   P = (Vsupply − N × Vforward) × I

The resistor drops the voltage the LED does not use. Because real resistors come in standard values (the E12 series here), the calculator rounds up to the next standard value so the current never exceeds your target.

Frequently asked questions

What current should I use?

Standard 5 mm indicator LEDs are usually run at 10–20 mA. Use a lower value for a dimmer, longer-lived LED.

What resistor power rating do I need?

Choose a rating at least twice the calculated power. For most indicator LEDs a ¼ W resistor is plenty.

Can I connect LEDs in parallel on one resistor?

It is better to give each LED its own resistor, since small differences in forward voltage make the current uneven.

More calculators

Need a custom calculator or an electronics project?

I take on small freelance jobs: Arduino and Raspberry Pi projects, Python scripts and small PCB designs.

See what I can build