Skip to content
Press Equals

What resistor do I need for a 2 V LED on 5 V at 20 mA?

150 Ω exactly: (5 − 2) V ÷ 0.02 A. Use a 150 Ω resistor, rated at least 1/8 W.

Resistor = (supply voltage − LED voltage) ÷ current, by Ohm's law. Use the LED's forward voltage and current from its datasheet, then round up to the next standard resistor.

Try your own numbers

Result

Exact resistance

150Ω

Use this standard resistor
150Ω
Power in the resistor
0.06W
Resistor rating (2× margin)
1/8 W
Current with the standard resistor
20mA