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