Online Circuit Simulator
LED resistor example: setting the LED current
We typically respond within one business day.
LED and its resistor. The resistor, not the LED, sets the current.
Open this example in the simulator
What does this circuit show?
V1, R1 and the LED sit in one loop. An LED's forward voltage hardly moves as its current changes, so whatever the supply has left after it falls across R1, and R1 decides the current.
What should you notice?
The table reads 20.2 mA through both parts, with 1.97 V across the LED and 3.03 V across R1. The LED's row says lit and shows 67% of its current rating.
Why does it happen?
R is the supply minus the forward voltage, over the current you want. With 5 V, a red LED's 1.9 V and 150 Ω that gives 20.7 mA; the reading is a shade under because the forward voltage creeps up with current.
What can you try?
Change R1 to 47 Ω. The textbook formula gives 66 mA and the table reads 62.2 mA, both far past the LED's 30 mA rating, so the simulator draws the LED red and flags it.
What is a common mistake?
Leaving the resistor out. An LED on its own takes whatever current the supply can give and dies at once.
Related examples
Get your project started
We typically respond within one business day.