LED Resistor

Find the right resistor to protect your LED.

Vs R
Required Resistor -- Ω
Nearest Standard (E24) -- Ω
Power Dissipation -- mW

Watch: Why every LED needs a series resistor

[VIDEO PLACEHOLDER — embed a short walkthrough here]

The theory is one formula, but watching an unprotected LED burn out in real time next to a properly resistor-limited one makes the point faster than any explanation. A short demo also clears up the parallel-wiring mistake that trips up a lot of beginners.

Suggested video topics to film or source for this page:

  1. Side-by-side: an LED wired directly to a 9V battery versus one wired through the correct resistor
  2. Measuring current with a multimeter before and after adding the series resistor
  3. Demonstrating the parallel LED failure mode: one LED hogging current and burning out first
  4. Wiring an LED to an Arduino GPIO pin with a 220Ω resistor and reading the current draw

What is an LED series resistor?

An LED series resistor is the component that controls how much current flows through a light-emitting diode. LEDs are non-ohmic semiconductors, meaning their resistance isn't fixed, it drops sharply as the voltage across them increases. That behavior is exactly why they can't be connected straight to a power source without something else in the circuit to hold current in check.

Without a series resistor, even a small increase in supply voltage can push current well past what the LED is rated for, and the failure is usually immediate: the junction overheats and the LED dies. The resistor's job is to absorb the extra voltage that the LED doesn't need, so the LED itself only ever sees its rated current, typically around 20mA for a standard indicator LED.

How to calculate the resistor value

The formula is a direct application of Ohm's law, rearranged to solve for the resistance needed to drop the leftover voltage at a target current:

R = (Vsource - Vforward) / Iforward

Where:

Variable Meaning
Vsource The supply voltage, such as 5V from USB or 9V from a battery
Vforward The voltage dropped across the LED itself. This varies by color, roughly 2.0V for red and up to 3.3V for blue or white
Iforward The target current in amps (20mA = 0.02A)

Worked example

Connecting a red LED (2.0V forward voltage) to a 9V battery at 20mA:

Step Calculation Result
Voltage to drop 9V − 2.0V 7V
Resistor value 7V / 0.02A 350 Ω

Typical forward voltage by LED color

LED color Typical forward voltage Typical forward current
Red ~2.0V 20mA
Green ~2.1V 20mA
Yellow ~2.1V 20mA
Blue / White ~3.3V 20mA

These values vary somewhat by manufacturer and LED size, so check the datasheet for anything beyond a basic indicator LED.

Power dissipation: don't skip this step

Once the resistor value is set, check how much power it actually has to dissipate as heat:

P = I² × R

For the 350Ω example above at 20mA, that's roughly 0.14W, comfortably inside a standard 0.25W resistor's rating. On lower supply voltages or higher currents, this number can climb fast enough to need a larger resistor package, so it's worth checking every time rather than assuming a small resistor is automatically fine.

Practical applications

Use case How it's applied
Indicator lights Power LEDs on routers, chargers, and PC cases all rely on a series resistor to stay within safe current
Arduino and microcontroller projects A 220Ω or 330Ω resistor is the standard choice for wiring an LED to a GPIO pin without overloading it
Automotive lighting 12V car systems use resistor arrays to drive LED dashboards and tail lights at the correct brightness
Backlighting LCD screens and keypads often run strings of LEDs, each stage current-limited by its own resistor

Frequently asked questions

Why do I need a resistor for an LED?

LEDs don't self-regulate current. Connected directly to a voltage source higher than their forward voltage, they behave close to a short circuit, drawing more and more current until they burn out. The resistor acts as a bottleneck that strictly caps that current at a safe level.

Can I wire LEDs in parallel with one shared resistor?

It's not a good idea. Manufacturing tolerances mean one LED in the group will almost always have a slightly lower forward voltage than the others. That LED ends up hogging most of the current, overheats, and fails first, and the failure often cascades to the remaining LEDs as the current redistributes. Give each LED its own series resistor instead.

What happens if the resistor value is too high?

The LED stays safe, but very little current reaches it, so it glows dimly or may not visibly light up at all. Too-high resistance is a brightness problem, not a damage problem.

What happens if the resistor value is too low?

This is the dangerous direction. Too little resistance lets excess current through, and the LED can overheat and fail almost immediately, sometimes within seconds under a strong enough supply. Always round up to the nearest standard resistor value rather than down.

Do I need a resistor for every LED, even low-power ones?

Yes, essentially always. Even a "low current" LED still needs its current limited to whatever its datasheet specifies (often 2mA to 5mA for indicator-style micro LEDs). The formula and process are identical, only the target current changes.

Can I use a potentiometer instead of a fixed resistor?

A potentiometer can work for adjustable brightness, but it needs to be sized so its minimum resistance still limits current to a safe level. Treat the potentiometer's lowest setting as the effective resistance when doing the power and current calculations, not its maximum.