calciz

LED Resistor Calculator

The series resistor your LED needs, with the nearest standard value and wattage.

V
V
Red ~1.8-2.2 V, green/yellow ~2-2.4 V, blue/white ~3-3.4 V.
mA
20 mA is the classic indicator LED; modern LEDs are bright at 5-10 mA.

The formula

R = (Vsupply - Vforward) / I

The resistor takes up whatever voltage the LED doesn't. A red LED (2.0 V) on 5 V at 20 mA needs (5 - 2) / 0.02 = 150 Ω, which happens to be a standard value. Rounding UP to the next standard value is the safe direction: slightly less current, slightly dimmer, no harm.

Why the resistor at all

An LED's current rises almost vertically with voltage; connect one straight to a supply and it takes destructive current instantly. The resistor turns that cliff into a controlled slope. One resistor per LED, too: LEDs in parallel on a shared resistor hog current unevenly and die in sequence.