An LED needs a resistor to limit its current. Find the forward voltage and current on its datasheet (typical red 2.0 V, blue or white 3.0–3.3 V, 20 mA).
Use a standard resistor of: 150 Ω
Your answer
Use a standard resistor of150 ΩExact value 150 Ω
Resistor power0.06 W
Actual current with that resistor
20 mA
Choose a rating of at least
1/4 W
Worked out in your browser. Nothing you type is sent to a server.
How we worked it out
Updated as you change the numbers.
R = (supply − LEDs × forward voltage) ÷ current. Round up to the next standard (E24) value. Power = voltage across R × current.
Method and assumptions
Rounding up keeps the current at or below the target. Choose a resistor rated for at least twice the power it dissipates.