Skip to content

LED Current Limiting Resistor Calculator

Calculate the correct current limiting resistor for an LED. Shows exact value, nearest E24 standard, actual current, and power dissipation.

Ohm's law at fixed forward voltage · nearest E24 value (IEC 60063)API slug led-resistor

Sign in to saveSave

Specification

Example

100 mV to 48 V

500 mV to 5 V

100 µA to 1 A

Rounds every part to the nearest value in the series; the response and the export are the rounded design's.

Circuit

Values shown: E24
5 VR1 150 ΩD12 VOUT
RefPositionIdealE24Error
R1Series150Ω150Ω0.0%

Response

Actual Current
20mAideal 20 mA
Power (series R)
60mWideal 60 mW
Power (exact R)
60mW

Formula

R=Vs−VfIfR = \frac{V_s - V_f}{I_f}
SymbolQuantityYour value
VsSupply voltage (V)5 V
VfLED forward voltage (V)2 V
IfDesired forward current (A)20 mA

Assumptions

5 items
  1. 01One LED in series with one resistor from a DC supply, the LED a fixed forward voltage: R = (V_s − V_f)/I_f, refused when V_s is not above V_f.
  2. 02V_f does not move with current or temperature, so the current through a fitted resistor is exactly (V_s − V_f)/R; a real LED’s V_f rises with current and falls as it warms, which moves the current.
  3. 03The power is the resistor’s alone, (V_s − V_f)·I, at the exact resistance and at the fitted one; the LED’s own V_f·I is not given, and the KiCad export sizes the resistor’s package for twice the fitted one’s power.
  4. 04The resistor is rounded to the part series, E24 by default: E24 takes the value with the least relative error from 0.10 Ω to 9.1 MΩ, E12, E48 and E96 the nearest value of the series, and Ideal values keeps the exact resistance; the actual current, the power and the export are the fitted resistor’s.
  5. 05LEDs in series strings or in parallel, the supply’s tolerance and pulsed or PWM drive are not modelled, and the current is not checked against the LED’s rating.

Worked example

White LED at 20 mA from 12 V

A white indicator LED with a 3.2 V forward voltage is to run at 20 mA from a 12 V rail through one E24 resistor. Which resistor is it, and what current and dissipation does it give?

StepExpressionResult
Voltage across the resistor12 V − 3.2 V8.8 V
Exact resistance8.8 V / 20 mA440 Ω
Resistor in E24440 Ω → E24430 Ω
Deviation of the E24 value(430 / 440 − 1) × 100−2.3 %
Deviation of 470 Ω, the next E24 value up(470 / 440 − 1) × 100+6.8 %
Current as built8.8 V / 430 Ω20.47 mA
Power at the exact resistance8.8 V × 20 mA176 mW
Power in the fitted resistor8.8 V × 20.47 mA180.1 mW

How it works

The LED resistor calculator determines the current-limiting resistor value and power rating for driving LEDs safely — essential for indicator circuits, backlighting, and display designs. Electronics engineers, hobbyists, and embedded developers use this tool to prevent LED burnout while achieving target brightness. According to Vishay's LED Application Note 80099, operating an LED at 20 mA without a current limiter causes junction temperature to exceed 150°C within 50 ms, resulting in immediate failure. The formula R = (Vsupply - Vf) / If derives from Ohm's Law and Kirchhoff's voltage law. LED forward voltage (Vf) varies by color: red/yellow LEDs exhibit 1.8–2.2 V (GaAsP), green 2.0–2.4 V (GaP), blue/white 2.8–3.6 V (InGaN). Resistor power dissipation P = I²R must stay below 50% of the resistor's rating for reliable operation — a 1/4 W resistor should dissipate no more than 125 mW to maintain <40°C temperature rise per MIL-HDBK-217F guidelines.

Practical tips

  • Per Lumileds AN1149, use constant-current drivers (e.g., TI TPS92512, 93% efficient) for high-power LEDs >350 mA — resistors waste 20-40% of input power as heat at these currents
  • Derate LED current to 50-70% of maximum for extended lifetime — Nichia data shows 100,000-hour L70 life at 50% rated current versus 30,000 hours at 100%
  • For multiple LEDs, connect in series rather than parallel with individual resistors — series connection ensures identical current through all LEDs, eliminating brightness variation from Vf mismatch

Common mistakes

  • Using Vf values from different LED colors — a circuit designed for a blue LED (Vf = 3.2 V) will overdrive a red LED (Vf = 2.0 V): on 5 V its 90 Ω resistor passes 33 mA instead of 20 mA
  • Selecting resistor power rating equal to calculated dissipation — a 150 mW dissipation in a 1/4 W (250 mW) resistor causes 100°C+ surface temperature and early failure
  • Ignoring LED current tolerance — datasheet Vf is typical value; ±0.3 V variation at 20 mA changes current by ±15% with fixed resistor

Frequently asked questions

8 questions
Can I use the same resistor for different color LEDs?

No — Vf varies from 1.8 V (infrared) to 3.6 V (blue/white). A 150 Ω resistor on 5 V gives 20 mA with red LED (Vf = 2.0 V) but only 12 mA with blue LED (Vf = 3.2 V). Recalculate for each color: R_red = 150 Ω, R_blue = 90 Ω for equal 20 mA current.

What happens if I use too low a resistor value?

Excessive current degrades LED efficiency and accelerates aging. Per Cree's reliability data, operating at 2× rated current reduces LED lifetime by 75% and increases junction temperature by 40°C. At 3× rated current, most LEDs fail within seconds from thermal runaway.

How does temperature affect LED current?

LED Vf decreases approximately -2 mV/°C (negative temperature coefficient). From 25°C to 85°C, Vf drops ~120 mV, increasing current by 6-12% with a fixed resistor. For precision applications, use a constant-current driver or include NTC thermistor compensation.

Can I dim an LED by changing its resistor?

Yes, but PWM dimming is 15-20% more energy efficient per ON Semiconductor AN-8037. A resistor dropping current from 20 mA to 5 mA (25% brightness) still dissipates power in the resistor. PWM at 25% duty cycle delivers the same perceived brightness while reducing average power consumption by 75%.

What's the typical current range for LEDs?

Standard 5 mm indicator LEDs: 10-20 mA. High-brightness 5 mm: 20-30 mA. SMD 0805/1206: 10-20 mA. High-power LEDs (Cree XP-G3, Lumileds Luxeon): 350 mA to 3 A. Ensure thermal management — high-power LEDs require heatsinks with thermal resistance <5°C/W.

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

For standard red/green LED (Vf = 2.0 V, If = 10 mA safe for GPIO): R = (5 - 2) / 0.01 = 300 Ω, itself an E24 value; 330 Ω gives 9.1 mA. For blue/white (Vf = 3.2 V): R = (5 - 3.2) / 0.01 = 180 Ω. Arduino pins source 20 mA max per ATmega328P datasheet — stay below this limit. Total current for all pins must not exceed 200 mA.

How bright will my LED be at different currents?

Luminous intensity scales approximately linearly with current in the 5-50% range. Cree datasheets show: 5 mA = 30% brightness, 10 mA = 55% brightness, 20 mA = 100% brightness. Above 75% rated current, efficiency drops due to thermal droop — 30 mA may yield only 140% brightness, not 150%. For displays, 5-10 mA provides comfortable viewing; outdoor indicators need 20+ mA.

Can I drive multiple LEDs from one resistor?

Only in series configuration — never parallel. Series: R = (Vsupply - n×Vf) / If, where n = number of LEDs. For 3 red LEDs in series on 12 V: R = (12 - 3×2.0) / 0.02 = 300 Ω. Parallel LEDs with shared resistor causes current hogging — the LED with lowest Vf (due to manufacturing tolerance) draws excess current, overheats, drops Vf further, and fails. Per Kingbright application notes, use individual resistors or matched LED arrays.

Shop Components

As an Amazon Associate we earn from qualifying purchases.

  • DC-DC Buck Converter ModulesAdjustable step-down converter modules for bench and prototype useAmazon →
  • LDO Voltage Regulator KitAssorted low-dropout linear regulators for prototypingAmazon →
  • Electrolytic Capacitor KitAluminum electrolytic capacitor kit for power supply filteringAmazon →
  • Power Inductor KitAssorted shielded power inductors for switching supply designsAmazon →