Resistor for a 12V blue LED at 20 mA

Worked answer for a 12V supply driving a blue LED (typical Vf ≈ 3.2V) at 20 mA.

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

The resistor is rounded up to the nearest E24 standard value, so the real current (18.7 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 12V 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