Resistor for a 5V green LED at 10 mA
Worked answer for a 5V rail (USB / Arduino) driving a green LED (typical Vf ≈ 2.2V) at 10 mA.
Use a 300Ω E24 standard value · 1/8 W or higher
| Supply voltage (Vs) | 5V |
| LED forward voltage (Vf) | ≈ 2.2 V (green) |
| Target current (I) | 10 mA |
| Exact resistor R = (Vs−Vf)/I | 280.0 Ω |
| Nearest E24 (rounded up) | 300Ω |
| Actual current with 300Ω | 9.3 mA (≤ target — safe) |
| Resistor dissipation | 26 mW |
| Recommended power rating | 1/8 W (≥ 2× dissipation) |
The resistor is rounded up to the nearest E24 standard value, so the real current (9.3 mA) stays at or below your 10 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
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.