LED Resistor Calculator

Calculate the correct resistor value for LED circuits in series or parallel configurations.

LED Circuit Parameters

R = (Vs - Vled) / I

Typical: 10-20mA for standard LEDs, 350mA+ for power LEDs

Recommended Resistor

680 ohms
Calculated: 500.0 ohms

Standard Resistor Options

Nearest Standard470 ohms
Actual current: 21.28 mA
Recommended (next higher)680 ohms
Actual current: 14.71 mA (safer)

Power Dissipation

Resistor Power212.77 mW
LED Power40.00 mW
Recommended Wattage1/4W

Circuit Summary

Configurationseries
LEDs1
Total LED Voltage2V
Voltage Drop (Resistor)10.00V

LED Basics and Why Current Limiting Matters

LEDs (Light Emitting Diodes) are semiconductor devices that emit light when current flows through them. Unlike incandescent bulbs, LEDs do not self-limit current and will draw increasing amounts until they burn out without a current-limiting resistor.

LED PropertySymbolTypical RangeNotes
Forward VoltageVf1.8V - 3.6VVaries by LED color
Forward CurrentIf10mA - 20mAStandard brightness LEDs
Maximum CurrentIf(max)25mA - 30mAAbsolute maximum rating
Power DissipationPd50mW - 100mWTypical through-hole LED
Luminous IntensityIv10mcd - 20,000mcdBrightness measurement

LED Current Limiting Resistor

R = (Vs - Vf) / If P = (Vs - Vf) × If

Where:

  • R= Required resistor value in Ohms
  • Vs= Supply voltage in Volts
  • Vf= LED forward voltage in Volts
  • If= Desired LED current in Amperes
  • P= Power dissipated by resistor in Watts

LED Forward Voltage by Color

Different LED colors require different forward voltages due to the semiconductor materials used. This table shows typical values for standard 5mm through-hole LEDs.

LED ColorSemiconductor MaterialForward Voltage (Vf)Wavelength
InfraredGaAs/GaAlAs1.2V - 1.4V850nm - 940nm
RedAlGaInP1.8V - 2.2V620nm - 645nm
OrangeAlGaInP2.0V - 2.2V590nm - 610nm
YellowAlGaInP2.0V - 2.2V585nm - 595nm
Green (Standard)GaP2.0V - 2.4V565nm - 575nm
Green (High Brightness)InGaN3.0V - 3.4V520nm - 535nm
BlueInGaN3.0V - 3.6V460nm - 480nm
WhiteInGaN + Phosphor3.0V - 3.6VBroad spectrum
UVInGaN3.5V - 4.0V380nm - 400nm

Important: Always check the LED datasheet for exact Vf values, as these vary between manufacturers and LED types (indicator, high-brightness, power LEDs).

LEDs in Series and Parallel

Multiple LEDs can be connected in series or parallel, each with different resistor requirements and trade-offs.

ConfigurationResistor FormulaAdvantagesDisadvantages
Single LEDR = (Vs - Vf) / IfSimple, any voltage worksInefficient at high voltages
Series LEDsR = (Vs - (Vf1 + Vf2 + ...)) / IfMore efficient, same current through allRequires higher Vs, one failure breaks chain
Parallel LEDsEach LED needs its own RWorks with low voltage, one failure doesn't affect othersMore resistors, uneven brightness possible
Series-ParallelR per series stringBest of both worldsComplex layout

Series LED Configuration

R = (Vs - n × Vf) / If Max LEDs in series: n ≤ (Vs - 2) / Vf

Where:

  • n= Number of LEDs in series
  • Vs - 2= Supply minus minimum resistor voltage drop

Resistor Power Rating Selection

The current-limiting resistor must be rated to handle the power dissipation. Undersized resistors overheat and fail.

Calculated PowerMinimum Resistor RatingRecommended Rating (2×)Common Package
< 62.5 mW1/16 W (62.5mW)1/8 W (125mW)0402 SMD
< 125 mW1/8 W (125mW)1/4 W (250mW)0603 SMD, small axial
< 250 mW1/4 W (250mW)1/2 W (500mW)0805 SMD, standard axial
< 500 mW1/2 W (500mW)1 W1206 SMD, larger axial
< 1 W1 W2 WWire-wound, power resistor

Safety margin: Always select a resistor rated for at least 2× the calculated power dissipation to ensure reliable operation and longer component life.

Resistor Power Dissipation

P = (Vs - Vf)² / R P = I² × R P = (Vs - Vf) × If

Where:

  • P= Power in Watts dissipated as heat
  • Vs - Vf= Voltage across the resistor

Standard Resistor Values for LED Circuits

Resistors come in standard values (E24 series is most common). Select the nearest standard value equal to or higher than calculated.

Calculated ΩUse Standard ValueActual Current (5V, Red LED 2V)Brightness Effect
100Ω100Ω30mA (may exceed max!)Very bright, risk of damage
150Ω150Ω20mAFull brightness
180Ω180Ω16.7mASlightly dimmer
200Ω220Ω13.6mANormal indicator brightness
330Ω330Ω9.1mAVisible but dim
470Ω470Ω6.4mALow power indicator
1000Ω1kΩ3mAVery dim, minimal power

Tip: For most indicator LEDs, 220Ω to 330Ω works well with 5V supplies, providing good visibility without excessive current.

Special LED Types and Requirements

Different LED types have unique current and voltage requirements. Always check the datasheet for specific values.

LED TypeTypical VfTypical IfSpecial Considerations
Standard 3mm/5mmSee color table10-20mABasic calculation applies
High-brightness (5mm)3.0-3.6V20-30mAMay need heatsinking
SMD (0603, 0805)1.8-3.3V5-20mALimited power handling
Power LED (1W)3.0-3.5V300-350mAConstant current driver recommended
Power LED (3W)3.0-3.8V700-1000mARequires heatsink and driver
RGB Common CathodeR:2V, G:3.2V, B:3.2V20mA eachSeparate resistor per color
RGB Common AnodeR:2V, G:3.2V, B:3.2V20mA eachResistors to ground side
Addressable (WS2812)5V (built-in driver)~60mA max per LEDNo external resistor needed

Power LEDs: For LEDs over 100mA, use a constant-current LED driver instead of a simple resistor for better efficiency and consistent brightness.

Common LED Circuit Mistakes

Avoid these common mistakes when designing LED circuits to prevent damage and ensure reliable operation.

MistakeWhat HappensHow to Avoid
No resistorLED burns out instantlyAlways use a current-limiting resistor
Resistor value too lowLED overheats, shortened lifeCalculate properly, never go below calculated value
Wrong polarityLED doesn't light (minor reverse OK)Long leg = anode (+), flat side = cathode (-)
Exceeding reverse voltageLED permanently damagedUse protection diode in AC circuits
Parallel LEDs, one resistorUneven brightness, one LED may hog currentUse individual resistors for each LED
Ignoring resistor powerResistor overheats, may catch fireUse 2× safety margin on power rating
Using Vf as supply voltageCalculation gives 0Ω (LED burns out)Vs must be higher than Vf

Worked Examples

Single LED with 5V Supply

Problem:

Calculate the resistor needed to power a standard red LED (Vf = 2.0V) at 15mA from a 5V USB supply.

Solution Steps:

  1. 1Identify known values: Vs = 5V, Vf = 2.0V, If = 15mA = 0.015A
  2. 2Apply formula: R = (Vs - Vf) / If
  3. 3Substitute: R = (5V - 2V) / 0.015A
  4. 4Calculate: R = 3V / 0.015A = 200Ω
  5. 5Find nearest standard value: 200Ω → use 220Ω (E24 series)
  6. 6Verify current: I = 3V / 220Ω = 13.6mA (safe, slightly dimmer)
  7. 7Calculate power: P = 3V × 0.0136A = 41mW → use 1/4W resistor

Result:

Use a 220Ω, 1/4W resistor for 13.6mA LED current

Series LEDs with 12V Supply

Problem:

Design a circuit with 3 blue LEDs (Vf = 3.2V each) in series, running at 20mA from a 12V supply.

Solution Steps:

  1. 1Identify values: Vs = 12V, Vf per LED = 3.2V, n = 3 LEDs, If = 20mA
  2. 2Calculate total LED voltage drop: 3 × 3.2V = 9.6V
  3. 3Calculate voltage across resistor: 12V - 9.6V = 2.4V
  4. 4Apply formula: R = 2.4V / 0.020A = 120Ω
  5. 5Nearest standard value: 120Ω (exact match in E24)
  6. 6Verify: I = 2.4V / 120Ω = 20mA ✓
  7. 7Calculate power: P = 2.4V × 0.020A = 48mW → use 1/4W resistor
  8. 8Note: 12V can power max 3 blue LEDs (3×3.2 = 9.6V, needs ~2V headroom)

Result:

Use a 120Ω, 1/4W resistor for the 3-LED series string

RGB LED Color Mixing

Problem:

Calculate resistors for a common cathode RGB LED (Red: 2.0V, Green: 3.2V, Blue: 3.2V) at 10mA each from 5V for use with PWM dimming.

Solution Steps:

  1. 1Red: R = (5V - 2.0V) / 0.010A = 300Ω → use 330Ω (I = 9.1mA)
  2. 2Green: R = (5V - 3.2V) / 0.010A = 180Ω → use 180Ω (I = 10mA)
  3. 3Blue: R = (5V - 3.2V) / 0.010A = 180Ω → use 180Ω (I = 10mA)
  4. 4Power calculations: Red = 28mW, Green/Blue = 18mW each
  5. 5All resistors: Use 1/8W or 1/4W (standard)
  6. 6Total max current when white (all on): 9.1 + 10 + 10 = 29.1mA
  7. 7PWM dimming: These values work well for 256-level PWM dimming

Result:

Red: 330Ω, Green: 180Ω, Blue: 180Ω (all 1/4W)

Tips & Best Practices

  • Always check the LED datasheet for exact forward voltage and maximum current—values vary significantly between manufacturers.
  • For 5V systems with red/yellow LEDs, 220Ω is a good 'universal' value providing about 15mA—safe and bright enough for indicators.
  • When driving LEDs from microcontroller GPIO pins (typically 20mA max), calculate the resistor for 10-15mA to stay within pin limits.
  • Resistor wattage matters: a 1/4W resistor at 1/8W dissipation runs cool; at 1/4W it gets noticeably warm; beyond rating it can burn.
  • For battery-powered projects, consider lower currents (5-10mA). Modern high-efficiency LEDs are still visible at these levels.
  • Test your calculated values on a breadboard before permanent installation—LED brightness is subjective and you may prefer adjustment.
  • Keep resistors close to the LED to minimize interference; long wires between resistor and LED can pick up noise in sensitive circuits.

Frequently Asked Questions

Yes, using a larger resistor is always safe for the LED. The LED will simply be dimmer because less current flows. For example, using 470Ω instead of calculated 220Ω will roughly halve the current and noticeably reduce brightness. This can be useful for power-saving indicator LEDs or when you want a subtle glow. However, below about 2-3mA, most LEDs become very dim or barely visible.
LEDs have slight manufacturing variations in their forward voltage. When connected in parallel with a shared resistor, the LED with the lowest Vf draws more current (it turns on 'first'), which heats it up, lowering its Vf further. This thermal runaway causes one LED to hog all the current while others stay dim. Eventually, the overloaded LED fails. Each parallel LED needs its own resistor to guarantee equal current distribution regardless of Vf variations.
If Vs < Vf, the LED simply won't light up. The formula R = (Vs - Vf) / If would give a negative value, which is physically meaningless. You need a supply voltage at least 0.5V to 1V higher than Vf to have enough 'headroom' for the resistor to control current. For example, a 3.3V supply cannot reliably drive a blue LED (Vf ≈ 3.2-3.4V). Use a higher voltage supply or choose a different LED color.
Use series for efficiency when your supply voltage allows it (Vs > sum of all Vf + 2V headroom). Series LEDs share the same current, so brightness is identical. Use parallel (with individual resistors) when your supply voltage is limited, or when you need LEDs to remain lit if one fails. For battery circuits, series is more efficient because the resistor only drops 2-3V instead of most of the supply. For example, 12V with 3 series LEDs at 20mA uses 240mW, while 3 parallel LEDs with individual resistors would use 360mW.
No. LED driver ICs (like constant-current drivers) and addressable LEDs (WS2812B, APA102, etc.) have built-in current regulation. Adding a resistor would interfere with their operation. Addressable LEDs typically need only power (5V and GND) plus a data line. Power LEDs should use dedicated constant-current drivers rather than resistors for efficiency. Only use resistors with basic LEDs connected directly to a voltage source.
Resistors are manufactured in standard value series (E12, E24, E96) based on logarithmic spacing. Your calculated value will rarely match exactly. Always round UP to the next standard value for safety—this gives slightly less current than calculated, which is safe. For example, if you calculate 185Ω, use 200Ω or 220Ω (E24 series). Going lower (180Ω) exceeds your target current and may stress the LED. The E24 series includes: 100, 110, 120, 130, 150, 160, 180, 200, 220, 240, 270, 300, 330, 360, 390, 430, 470, 510, 560, 620, 680, 750, 820, 910.

Sources & References

Last updated: 2026-01-22