An LED without a resistor is a blown LED on a schedule, because its V-I curve turns vertical at turn on. This page covers the resistor calculation for indicator LEDs, the series and parallel rules, and when constant current becomes mandatory.
An indicator LED needs its current fixed by the external circuit: the forward drop of 1.8 to 2.2 V for red and yellow, 3.0 to 3.4 V for blue, green and white, leaves the supply minus the drop across the resistor, and Ohm sizes it: R equals Vcc minus Vf times n over If. On a 5 V rail a red LED at 10 mA wants about 300 ohms, giving the familiar 270 to 330 ohm value; a white one wants 150 to 220 ohms. Give the resistor a two times power margin, which at these currents means a quarter watt part is fine.
Series strings multiply the drop and must satisfy Vcc greater than n times Vf; parallel strings never share one resistor, because the string with the lowest Vf hogs the current and ages fastest, so each parallel branch carries its own resistor. Small SMD indicators run happily at 2 to 3 mA and 680 ohms to 1 k on 5 V. Power LEDs above 100 mA are a different animal: their drop falls as they heat, so a fixed resistor lets current run away, and a constant current driver with thermal feedback is the only correct answer.
| Color | Vf | Typical If | R on a 5V supply |
|---|---|---|---|
| Red and yellow | 1.8 to 2.2V | 10mA | 270 to 330 ohms |
| Blue, green, white | 3.0 to 3.4V | 10mA | 150 to 220 ohms |
| Small SMD indicator | 2.0 to 3.2V | 3mA | 680 ohms to 1k |
| Infrared emitter | 1.2 to 1.5V | 20mA | 180 to 220 ohms |
| Power LED | 3.0 to 3.6V | 350mA and up | Constant current driver |
Size R from supply minus drop over current with a two times power margin, give each parallel string its own resistor, and move power LEDs to a constant current driver before thermal runaway does.
The quantities and component characteristics discussed here follow current national standards and the corresponding IEC documents: Semiconductor devices follow IEC 60747 and GB/T 4586, graphic symbols GB/T 4728, with lighting safety per IEC 60204-1. Always check the device datasheet and the product design file for ratings and derating.
Locate the issue with the approach above, then confirm with measurements; safety-related circuits must follow the standards and manufacturer requirements.