How to Calculate LED Current-Limiting Resistors: Formula, Quick Table & Common Mistakes

发布于: 2026-08-23 19:31

Quick answer: LED current-limiting resistor R = (supply voltage Vs − LED forward voltage Vf) ÷ operating current If. For a 20mA red indicator: 150Ω at 5V, 510Ω at 12V, 1.1KΩ at 24V. But at 24V the resistor dissipates 0.44W — you need at least a 1/2W part. Around 90% of burnt-resistor failures come from calculating resistance but forgetting power.

The current-limiting resistor is the cheapest component in an LED indicator circuit — and the one most often specified incorrectly. This guide gives you the full calculation, a quick-selection table for common rail voltages, and the classic mistakes, for both through-hole LED indicators and SMD LED indicators.

1. The Formula: Three Steps to the Right Value

An LED is a non-linear device — never connect it directly to a constant-voltage rail. The formula:

R = (Vs − Vf) ÷ If

  • Vs — supply voltage (5V, 12V, 24V…)
  • Vf — LED forward voltage, from the datasheet. Typical: red/yellow/yellow-green 1.8~2.2V, blue/pure green/white 2.8~3.4V, IR emitters 1.2~1.6V
  • If — operating current. For indicator duty, 10~20mA is typical; modern high-brightness parts only need 5~10mA, which also extends lifetime

Example: one white 5mm through-hole LED (Vf=3.2V, If=20mA) on 12V: R = (12−3.2) ÷ 0.02 = 440Ω — pick the nearest E24 value, 430Ω or 470Ω.

2. Quick-Selection Table (If = 20mA)

SupplyRed/Yellow/YG (Vf≈2.0V)Blue/Green/White (Vf≈3.2V)IR (Vf≈1.4V)
3.3V68Ω5.1Ω (better: 10Ω at 10mA)91Ω
5V150Ω91Ω180Ω
9V360Ω300Ω390Ω
12V510Ω430Ω510Ω
24V1.1KΩ1KΩ1.1KΩ

All values are nearest E24 standard. For lower power draw or longer life, recalculate at If=10mA — resistance roughly doubles.

3. The Step 90% of Engineers Skip: Resistor Power

The right ohmic value is not enough. Power dissipation P = If² × R, and good practice derates to ≤50% of the resistor's rated power.

Case (20mA)ResistanceReal DissipationMinimum Rating
5V + red LED150Ω0.06W1/8W (0603 SMD is fine)
12V + red LED510Ω0.20W1/2W (1206 SMD at its limit — prefer through-hole)
24V + red LED1.1KΩ0.44W1W (better: change the approach)

24V panel indicators are the classic failure point: engineers reuse their 5V habits and fit a 1/4W resistor, which chars within minutes. The correct approach at 24V is to drop the operating current to 5~10mA (high-brightness LEDs are still clearly visible), raising resistance to 2.2K~4.3KΩ and cutting dissipation to the 0.1W class.

4. Multiple LEDs in Series

Add the forward voltages, then apply the same formula: R = (Vs − n×Vf) ÷ If.

Example: three red LEDs (Vf=2.0V) in series on 12V: R = (12−6) ÷ 0.02 = 300Ω. Keep total Vf well below the rail — a 20% headroom minimum — or supply ripple will show up as brightness instability.

5. The Four Most Common Mistakes

  • 1. Connecting an LED straight to the supply — a 3V rail into a red LED (Vf=2.0V) looks "close enough"; in practice current can spike past 100mA and the part degrades within minutes.
  • 2. Ignoring Vf spread — within one part number, Vf varies ±0.1~0.2V. With tiny voltage headroom (e.g. a blue LED on 3.3V), a 0.1V difference in drop can make current double or halve from part to part. The smaller the headroom, the more you should lower current or use constant-current drive.
  • 3. Sharing one resistor across paralleled LEDs — mismatched Vf unbalances the branches; the brightest branch takes the most current and ages fastest. Every branch needs its own resistor.
  • 4. Calculating ohms but not watts — see section 3; most common at 24V.

6. FAQ

I only need a dim indicator — how do I calculate for 2mA?

Same formula. Red LED on 5V: R = (5−2) ÷ 0.002 = 1.5KΩ. For low-level indicators, choose a low-current LED (specified for clear output at 2mA) rather than starving a standard part — the result is far better. HC-LED offers low-current (2~5mA) custom through-hole and SMD indicator LEDs.

Is the calculation different for SMD vs through-hole LEDs?

Identical — the formula doesn't care about package. Only the Vf value differs by part; same-color 0603/0805 SMD and 3mm/5mm through-hole parts have essentially the same Vf. Check each datasheet. In SMD layouts, watch the resistor package rating too (0603 is only 1/10W).

What if I go one resistor value up or down?

Higher resistance: less current, dimmer, longer life — usually acceptable for indicators. Lower: current exceeds the rated If, accelerating lumen depreciation or killing the part. When in doubt, round up.

Conclusion

The arithmetic is trivial; engineering judgment is not. Vf spread, power derating, and long-term reliability separate a robust design from a field failure. For production designs, re-check worst-case current using both the minimum and maximum Vf from the datasheet.

Free selection support, samples and volume quotes: phone/WeChat +86 139 2571 4318, email sales@led-hc.com. All HC-LED indicator LEDs ship with full datasheets including Vf binning data — get them from our download center. Further reading: 2026 LED Lamp Bead Manufacturer Ranking | How to Choose an LED Manufacturer: Industrial vs Consumer Grade

分享
  • toolbar