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.
Result
- 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
- Voltage drop across R = V_supply โ 1ยทV_LED = 5 โ 2 = 3.000 V.
- R = V_drop / I = 3.000 / 0.0200 = 150.00 ฮฉ.
- Snap UP to E12 standard: 1000 ฮฉ (ensures I โค target).
- 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.