Physics

LED Resistor Calculator

Find the series resistor for an LED.

Parameters Live Compute
Calculated Output
Resistor value (Ω) 150
Resistor power (W) 0.06
Formula: R = (Vsupply − Vled) ÷ I
Step-by-Step Breakdown
1. Values used:
2. Supply voltage = 5 V
3. LED forward voltage = 2 V
4. LED current = 20 mA
5.
6. Resistor value = 150Ω
7. Resistor power = 0.06W
Did this calculator solve your problem today?
Report issue to loopingon.com
Sponsored

Pick a current-limiting resistor so an LED runs safely.

The math behind it

R = (supply voltage − LED forward voltage) ÷ LED current (in amps).

Worked Example

5 V, 2 V LED, 20 mA → 150 Ω.

Frequently Asked Questions

Resistor wattage?

Choose a resistor rated above the power shown.

Advertisement