Resistor for a 5V blue LED at 20 mA

Worked answer for a 5V rail (USB / Arduino) driving a blue LED (typical Vf ≈ 3.2V) at 20 mA.

Use a 91Ω E24 standard value · 1/8 W or higher
Supply voltage (Vs)5V
LED forward voltage (Vf)≈ 3.2 V (blue)
Target current (I)20 mA
Exact resistor R = (Vs−Vf)/I90.0 Ω
Nearest E24 (rounded up)91Ω
Actual current with 91Ω19.8 mA (≤ target — safe)
Resistor dissipation36 mW
Recommended power rating1/8 W (≥ 2× dissipation)

The resistor is rounded up to the nearest E24 standard value, so the real current (19.8 mA) stays at or below your 20 mA target — the safe direction for the LED.

Different values? Change the supply, LED color or current in the interactive tool:

Open the LED Resistor Calculator →

Read the guides: LED current-limiting resistor: theory & sizing · LED forward voltage chart by color

More 5V LED presets

Disclaimer: This is a reference estimate using a typical forward voltage for the color. Confirm Vf and the maximum current against your LED's datasheet before building.

⚡ Powered by Circflow