LED Current-Limiting Resistor Calculator

R = (V_supply โˆ’ V_LED) / I_LED. Required series-resistor value to safely drive an LED at a target current.

Inputs

Typical Vf: Red ~1.8, Yellow ~2.0, Green ~2.2, Blue/White ~3.2, IR ~1.2.

Standard indicator LED: 10-20 mA. High-brightness: 30-50 mA. Power LEDs: 350-1000 mA.

Result

Required resistor
150.0 ฮฉ (use 1000 ฮฉ E12)
Drop 3.00 V at 20.0 mA. Dissipation 60.0 mW โ†’ 1/8 W (125 mW) package.
  • Supply voltage5.00 V
  • Total LED forward voltage2.00 V (1 ร— 2.00 V)
  • Voltage drop across R3.000 V
  • Target LED current20.0 mA
  • Exact R value150.00 ฮฉ
  • Nearest E12 (โ‰ฅ exact)1000 ฮฉ
  • Actual current with E12 R3.00 mA
  • Resistor dissipation60.00 mW (P = V_drop ยท I)
  • Recommended package1/8 W (125 mW)

Step-by-step

  1. Voltage drop across R = V_supply โˆ’ 1ยทV_LED = 5 โˆ’ 2 = 3.000 V.
  2. R = V_drop / I = 3.000 / 0.0200 = 150.00 ฮฉ.
  3. Snap UP to E12 standard: 1000 ฮฉ (ensures I โ‰ค target).
  4. Power = V_drop ยท I = 3.000 ยท 0.0200 = 60.00 mW; choose package with โ‰ฅ 2ร— headroom: 1/8 W (125 mW).

How to use this calculator

  • Enter supply voltage (battery / regulator output).
  • Enter LED forward voltage from the datasheet (or use the typical-color reference in the hint).
  • Set target current โ€” 20 mA for indicator LEDs is the safe default.
  • For LEDs in series (e.g. 3 white LEDs from a 12 V supply), set "Number of LEDs in SERIES" โ€” voltages add.

About this calculator

LEDs are current-controlled devices: at their forward voltage Vf they'll happily draw infinite current and self-destruct, so a series resistor is needed to limit current. The formula R = (V_supply โˆ’ V_LED) / I_LED comes straight from Ohm's law on the resistor leg of the circuit. Typical Vf values: red 1.8 V, yellow 2.0 V, green 2.2 V, blue/white 3.0-3.4 V, IR 1.2 V โ€” measure your specific part for precision. Indicator LEDs run at 10-20 mA; high-brightness 30-50 mA; power LEDs need a constant-current driver, not just a resistor. The calculator snaps up to the nearest E12 standard resistor value (5% tolerance โ€” the universal hobbyist set) and recommends a power-rating package with 2ร— headroom over actual dissipation.

Frequently asked

Only if your supply IS a constant-current source (e.g. dedicated LED driver IC, 3V coin cell whose internal resistance happens to limit current). Otherwise the LED will draw destructive current and burn out in milliseconds.

Related calculators

More tools you might like