LED Series Resistor Calculator

Drop the excess voltage safely

Required Parameters

V
V
A
#

Waiting for input data...

Ad Placement
Sidebar Adaptive Ad Slot

Quick Answer

Formula: R = (Supply Voltage - LED Forward Voltage) / Target Current. Use this to find the exact current-limiting series resistor required for your LED.

Documentation

LED Series Resistor Calculator — Design Guide

Use this calculator to determine the correct current-limiting resistor for your LED circuit. Selecting the proper resistor value ensures your LED operates at its rated brightness without exceeding its maximum current, preventing premature failure.

The LED Resistor Formula

R = (Vsource − Vf) / If

Where:

  • Vsource = Supply voltage (e.g., 5V, 12V)
  • Vf = LED forward voltage drop (varies by color)
  • If = Desired forward current (typically 20 mA for standard LEDs)
  • R = Required series resistor value

Typical LED Forward Voltages

LED ColorTypical VfWavelength
Infrared1.1–1.5V850–940 nm
Red1.8–2.2V620–645 nm
Orange2.0–2.2V590–610 nm
Yellow2.0–2.2V570–590 nm
Green2.0–3.5V520–570 nm
Blue3.0–3.5V450–490 nm
White3.0–3.5VBroad spectrum
UV3.0–4.0V380–420 nm

Design Examples

Single LED from 5V Supply

Red LED (Vf = 2.0V, If = 20 mA):

  1. R = (5V − 2.0V) / 0.020A = 150 Ω
  2. Power: P = (3.0V)² / 150 = 60 mW → 1/8W resistor is sufficient
  3. Nearest standard value: 150 Ω (E24 series) ✓

Single LED from 12V Supply

Blue LED (Vf = 3.2V, If = 20 mA):

  1. R = (12V − 3.2V) / 0.020A = 440 Ω
  2. Nearest standard: 470 Ω → If = 8.8V / 470 = 18.7 mA (close enough)
  3. Power: P = 0.0187 × 8.8 = 165 mW → Use 1/4W resistor

Multiple LEDs in Series

Three red LEDs in series from 12V:

  1. Total Vf = 3 × 2.0V = 6.0V
  2. R = (12V − 6.0V) / 0.020A = 300 Ω
  3. Nearest standard: 330 Ω → If = 6.0V / 330 = 18.2 mA

Resistor Power Rating

Always verify the power dissipation of the resistor:

P = (Vsource − Vf)² / R

Calculated PowerRecommended Rating
< 62 mW1/8W (0.125W)
62–125 mW1/4W (0.25W)
125–250 mW1/2W (0.5W)
250–500 mW1W

Best Practice: Always choose a resistor rated at least 2× the calculated dissipation for long-term reliability.

Common Mistakes

  1. Omitting the resistor entirely — LEDs have very low dynamic resistance and will draw excessive current, burning out instantly.
  2. Using the wrong Vf — Always check the datasheet. Green and white LEDs have significantly higher Vf than red or yellow.
  3. Ignoring power dissipation — The resistor can overheat if undersized, especially with 12V or 24V supplies.
  4. Parallel LEDs sharing one resistor — Each LED should have its own resistor to ensure equal current distribution.

Series vs. Parallel LED Configurations

  • Series: All LEDs share the same current. Preferred for uniform brightness. Limited by supply voltage (must exceed total Vf).
  • Parallel: Each branch has independent current. Each branch needs its own resistor. Allows more LEDs than the voltage would permit in series.

Related Tools

  • Ohm's Law Calculator — Fundamental V, I, R, P calculations
  • Resistor Color Code Calculator — Identify resistor values by band colors
  • Voltage Divider Calculator — Design voltage scaling networks
  • Resistor Calculator — Combine resistors in series or parallel

Design Notes

LEDs are current-driven semiconductor devices. Without a series resistor, they will draw excessive current and burn out instantly. The forward voltage (Vf) depends on the LED color (e.g., ~2.0V for Red, ~3.3V for Blue/White). Always round your calculated resistor UP to the nearest standard E12/E24 value to protect the LED. Furthermore, factor in the power dissipation of the resistor (P = I²R) – if it exceeds 0.125W, consider using a 1/4W or 1/2W package.

Common Mistakes

  • 1

    Placing multiple parallel LEDs on a single resistor: Variations in Vf will cause thermal runaway in the LED with the lowest Vf.

  • 2

    Putting LEDs in series where the total Vf exceeds the supply voltage (the LEDs will simply not turn on).

  • 3

    Forgetting to calculate the heat (power dissipation) of the resistor, especially when dropping large voltages (e.g., 12V supply to a 2V LED).

Engineering Handbox

1. Calculate total forward drop: 2 LEDs × 3.3V = 6.6V 2. Subtract from supply: 12V - 6.6V = 5.4V excess to drop 3. Resistance: R = V / I = 5.4V / 0.020A = 270Ω 4. Resistor Power: P = I²R = (0.020)² × 270 = 0.108W

VerificationUse a 270Ω resistor (1/4W rating is sufficient).

Knowledge Base

What is a typical LED forward voltage (Vf)?

Forward voltage varies by LED color and material: Infrared 1.1-1.5V, Red 1.8-2.2V, Orange/Yellow 2.0-2.2V, Green 2.0-3.5V (varies widely by chemistry), Blue 2.8-3.6V, White 2.8-3.6V, UV 3.1-4.4V. Always check the datasheet — these are typical ranges, and high-power LEDs may differ significantly.

Why do LEDs need a series resistor?

LEDs are current-driven diodes with an exponential I-V curve. Once the forward voltage threshold is exceeded, current increases rapidly with tiny voltage changes. Without a resistor to absorb the excess voltage, the LED draws destructive current and burns out in milliseconds. The resistor creates a linear relationship: I = (Vsupply - Vf) / R.

What is the formula for an LED resistor?

R = (Vsupply - Vf) / If. For multiple LEDs in series: R = (Vsupply - N x Vf) / If. Where Vsupply is power supply voltage, Vf is the LED forward voltage, If is the desired forward current (typically 20mA for standard LEDs), and N is the number of series LEDs.

Can I use one resistor for multiple LEDs in parallel?

No! This is a common and dangerous mistake. Each LED has slightly different Vf due to manufacturing tolerance. The LED with the lowest Vf gets the most current, heats up, which further lowers its Vf, creating thermal runaway until it burns out. Then the next LED takes over and fails too. Always use one resistor per LED (or per series string) in parallel configurations.

How do I choose the resistor wattage?

Calculate power dissipation: P = If squared times R, or equivalently P = (Vsupply - Vf) times If. Standard 1/8W (0.125W) resistors work for most single-LED circuits at 20mA. For 12V systems dropping to a 2V LED at 20mA, P = 10V x 20mA = 0.2W — you need at least a 1/4W resistor. Always choose a wattage rating at least 50% higher than calculated.

What resistor do I need for a 5V Arduino with an LED?

For a standard red LED (Vf = 2.0V, If = 20mA) on a 5V Arduino GPIO pin: R = (5V - 2V) / 0.020A = 150 ohms. Since Arduino GPIO pins can only source 20-40mA, a 220 ohm resistor (giving ~13.6mA) is commonly used for a good balance of brightness and safety. Power dissipation is only 0.04W, so any standard resistor works.

What resistor do I need for a 12V car LED?

For a standard white LED (Vf = 3.3V, If = 20mA) on 12V automotive power: R = (12V - 3.3V) / 0.020A = 435 ohms. Use a 470 ohm standard value. Power = 8.7V x 0.020A = 0.174W, so use a 1/4W resistor minimum. Important: automotive voltage can spike to 14.4V during charging, so design for 14.4V worst case.

How many LEDs can I wire in series?

The maximum number of series LEDs is limited by your supply voltage: N_max = floor((Vsupply - 2V) / Vf). You need at least 2V of headroom for the resistor to regulate current properly. For example, with 12V supply and 3.3V white LEDs: N = floor((12 - 2) / 3.3) = 3 LEDs maximum. With 5V and 2V red LEDs: N = floor(3 / 2) = 1 LED (with proper headroom).

Do I need a resistor for WS2812B / NeoPixel LEDs?

No series resistor is needed — WS2812B and similar addressable LEDs have built-in constant-current drivers. However, you do need: (1) a 300-500 ohm resistor on the data line between the microcontroller and the first LED, (2) a large capacitor (100-1000uF) across the power supply, and (3) adequate power supply capacity (each WS2812B draws up to 60mA at full white).

Should I round the resistor value up or down?

Always round UP to the next standard resistor value (E12 or E24 series). Rounding down means more current flows through the LED, potentially exceeding its rating and shortening its lifespan. The slight brightness reduction from rounding up is imperceptible — for example, 18mA vs 20mA is virtually identical to the eye.