How to Use
- Enter supply voltage
Input the supply voltage (V) powering your circuit.
- Enter LED specs
Input the LED forward voltage (Vf) and rated current (mA).
- View results
Click Calculate to see the required resistance and the nearest standard resistor value.
What is an LED series resistor?
An LED (light-emitting diode) is a nonlinear device: once the voltage exceeds its forward voltage (Vf), the current rises exponentially. Because an LED cannot limit its own current, connecting it directly to a power source lets excessive current flow and burns it out almost instantly.
To prevent this, a current-limiting resistor wired in series with the LED is called an LED series resistor. It absorbs the difference between the supply voltage and the LED's forward voltage (the excess voltage), holding the LED current at its rated value (typically 20 mA).
Where it's used
- Power indicators, status LEDs and other simple lighting circuits
- Connecting an LED to an Arduino or Raspberry Pi GPIO pin
- Current design for LED strips, signs and stage lighting
Formula
Derived from Ohm's law, the LED series resistor formula is:
R = (Vs - Vf) / If
- Vs: supply (source) voltage (V)
- Vf: LED forward voltage (V)
- If: LED forward current (A) — divide mA by 1000 to convert
For example, connecting a red LED with Vf 2 V and If 20 mA to a 5 V supply gives R = (5 - 2) / 0.02 = 150 Ω. The resistor's power dissipation is P = (Vs - Vf) × If = 3 V × 0.02 A = 0.06 W, so a 1/4 W (0.25 W) resistor is more than enough.