![]() |
| How to Choose an LED Resistor – MY CREATIVE ENGINEERING |
An LED looks simple, but connect it straight to a supply and it can burn out in a flash. The fix is one small part: a series resistor that limits the current. Here is how to choose the right one in 4 easy steps.
Step 1: Find the LED's Vf and If
Check the datasheet or label for the LED's forward voltage (Vf) and its rated forward current (If). Typical forward voltages: red about 2.0 V, green or yellow about 2.0 – 2.2 V, blue or white about 3.0 – 3.3 V. A common working current for a standard indicator LED is up to 20 mA.
Step 2: Work Out the Voltage Drop
The resistor must absorb whatever voltage the LED does not use. Subtract Vf from your supply voltage (Vs). With a 5 V supply and a red LED at 2.0 V, the resistor has to drop 3.0 V.
Step 3: Calculate the Resistor
Use Ohm's law: R = (Vs − Vf) ÷ I. For our example: R = 3.0 V ÷ 0.020 A = 150 Ω. If the exact value is not a standard value, round UP to the next standard resistor so the current stays at or below the rating.
Step 4: Connect It in Series
Place the resistor in series with the LED. Connect the anode (+) toward the supply and the cathode (−) toward ground.
Worked Example: 5 V Red LED at 20 mA
| Supply voltage | 5 V |
| LED forward voltage (red) | 2.0 V |
| (5 − 2.0) ÷ 0.02 | 150 Ω |
| Resistor to use | 150 Ω |
Resistor heat: P = V × I = 3 V × 20 mA = 0.06 W, so a 1/4 W resistor is more than enough.
Quick Reference (20 mA)
| 5 V · Red LED | 150 Ω |
| 5 V · Blue / White LED | 100 Ω |
| 12 V · Red LED | 510 Ω |
| 3.3 V · Red LED | 68 Ω |
If there is no exact match, use the next higher standard resistor value.
Safety Tips
- Switch off power before wiring.
- Check polarity: anode (+) toward the supply, cathode (−) toward ground.
- Never connect an LED directly to a supply.
- Use a resistor with enough wattage rating.
- Hot parts: allow them to cool before touching.
- At higher voltages, work with care.
Remember: always use a series resistor. R = (Vs − Vf) ÷ I, then round up to a standard value.
Follow MY CREATIVE ENGINEERING for more practical electronics tips!

