Current model·Semiconductor junctions

Light-emitting diode

Switch between real LED colors and watch why the current, not the voltage, is what you actually control — and why a bare LED on a supply is always one step from burning out.
Power off · Ready0.0 s / 15 s
Unsaved setupSave it as a project to come back to it later.
Power off
↖ Drag to rotate
Operating regionPower off
Forward voltage0 V
LED current0 mA
Luminous intensity0 %
Junction temperature25 °C
Unsaved setupSave it as a project to come back to it later.

Junction bias experiment

LED I–V and brightness characteristics

See how the series resistance rounds off the knee, and how brightness saturates as current keeps rising.

Live operating pointApply power to generate the curves
Forward characteristicCurrent rise softened by the series resistance
00 µA0.711 mA1.322 mA233 mA2.644 mAApply power to generate the curves
Reverse characteristicTiny leakage, then a low-voltage breakdown that LEDs are not built to survive
-7-44 mA-5.3-33 mA-3.5-22 mA-1.8-11 mA00 µAApply power to generate the curves
Luminous intensity vs. currentOptical output saturates as current rises, then droops as the junction heats up
0 µA0%11 mA25%22 mA50%33 mA75%44 mA100%Apply power to generate the curves

What is an LED?

The bandgap sets the color

An LED is a PN junction where forward current makes electrons and holes recombine directly at the junction instead of just diffusing across it. Each recombination releases its energy as a photon, and the photon's energy — its color — is fixed by the semiconductor's bandgap, not by a dye or filter. That is also why the forward voltage jumps by material family rather than sliding smoothly with wavelength: red, orange and yellow LEDs use AlGaInP or GaAsP with a roughly 2 V bandgap, while green, blue and phosphor-converted white LEDs use InGaN, whose wider bandgap needs over 3 V before it conducts at all.

Why every LED needs a series resistor

Past the turn-on knee, current rises so steeply with voltage that a fraction of a volt can mean the difference between a dim glow and a burnt-out die. An incandescent bulb is self-limiting because its filament resistance climbs as it heats; a diode junction does the opposite, so nothing internal stops the current from running away. In practice only the bulk and lead resistance inside the package holds it back at all, and that alone is not enough — which is why every real circuit feeds an LED through a series resistor, or a proper constant-current driver, and never straight from a voltage source.

Reading the datasheet

LED datasheets specify forward voltage at a stated test current rather than a saturation current, together with luminous intensity in millicandela or flux in lumens, a viewing angle, and a maximum forward current the die can dissipate without failing. Push current well past that rating and light output does not keep pace — efficiency droop means each extra milliamp buys proportionally less brightness, and heat pulls the output down further still. The reverse voltage rating is also unusually low compared with a rectifier diode, since an LED's junction was never designed to block a high reverse field.

Where it is used

LEDs serve as indicator lights, segments in seven-segment and dot-matrix displays, and backlighting in nearly every screen. Blue LEDs coated with a yellow phosphor produce white light efficiently enough to have displaced incandescent and fluorescent bulbs in general lighting, and infrared LEDs drive remote controls and optocouplers. Above a handful of LEDs, a single resistor is usually replaced by a dedicated constant-current driver IC, which regulates brightness far more precisely and efficiently than a resistor ever could.

Frequently asked questions

How do you calculate the resistor for an LED?
Use R = (Vsupply − Vf) / I. For a red LED with Vf ≈ 2 V on a 5 V supply at 20 mA, R = 3 V / 0.02 A = 150 Ω, which is a standard value; if the result falls between values, choose the next higher one. The resistor then dissipates 3 V × 20 mA = 60 mW. Try it in the simulator by changing the series resistance.
Why do different LED colors have different forward voltages?
The color comes from the semiconductor's bandgap: each emitted photon carries about the bandgap energy, and shorter wavelengths need larger bandgaps and therefore higher forward voltages. Red LEDs drop about 1.8 to 2.2 V, while blue, green and white LEDs drop about 2.8 to 3.4 V.
Can you connect an LED without a resistor?
Not directly to a voltage source. An LED's current rises exponentially with voltage, so a small change in supply voltage or temperature causes a large change in current, which quickly overheats the die. Use a series resistor or a constant-current driver; the simulator shows the current and junction temperature climbing without one.
Power off · Ready0.0 s / 15 s