Today I Learned

Why Do LEDs Need Resistors?

I used to think connecting an LED directly to a power supply was harmless, as long as the voltage was roughly correct. Turns out, that's not how LEDs work.

comapring the volume of ristretto, espresso and lungo side by side

An LED (Light Emitting Diode) is a current-driven device. Unlike a typical resistor, it doesn't regulate the current flowing through itself.

Once the voltage across an LED reaches its forward voltage, a small increase in voltage can cause a disproportionately large increase in current. Too much current generates heat and can permanently damage the LED.

That's where a current-limiting resistor comes in.

The resistor limits the current flowing through the circuit, protecting the LED.

How do you calculate the resistor value?

You can use Ohm's Law:

[
R = \frac{V_s - V_f}{I}
]

Where:

  • (V_s) = Supply voltage
  • (V_f) = LED forward voltage
  • (I) = Desired LED current

For example, suppose we have:

  • Supply voltage: 5V
  • LED forward voltage: 2V
  • Desired current: 10mA (0.01A)

[
R = \frac{5-2}{0.01} = 300\Omega
]

So we'd use a 300Ω resistor, or the next higher commonly available value, 330Ω.

What I found interesting

The resistor isn't there to reduce voltage to some fixed value. Its job is to limit current by dropping whatever voltage is left over at the operating current.

It's a small component, but it makes the difference between a working LED and a potentially damaged one.

Takeaway: LEDs need current limiting, not just the correct supply voltage.