Circuit fundamentals
LED current-limiting resistor
Also called: LED resistor · series resistor for LED · (Vs − Vf)/I
Definition
An LED needs a series resistor to set its current, chosen so that the supply voltage minus the LED's forward voltage, divided by the resistance, gives the desired current.
Picture it
An LED behaves like a one-way valve with an almost fixed voltage drop. Connected straight to a supply, current shoots up until something burns out. The resistor absorbs the leftover voltage and, by Ohm's law, fixes the current.
The maths
R = (V_supply − V_f) / I_LED
| Quantity | Unit | Symbol |
|---|---|---|
| resistance | ohm | Ω |
| voltage | volt | V |
| current | ampere | A |
Worked example
A 3.3 V microcontroller pin drives a green LED with V_f = 2.1 V. You want 10 mA. What resistor should you use?
- Leftover voltage = 3.3 − 2.1 = 1.2 V
- R = 1.2 / 0.010 = 120 Ω
- 120 Ω is a standard E12 value
Answer120 Ω.
✓ The number in this answer is recomputed from scratch by an automated test.
Common misconceptions
- Misconception: Using the full supply voltage instead of V_supply − V_f gives a resistor too large and a dim LED.
- Misconception: Microcontroller pins have a current limit too, often around 10–20 mA per pin; check the datasheet.