Tested tool guide
Tested browser tools
Checked August 16, 2026
What LED Resistor Calculator does, with a checked example
Choosing an LED's series resistor starts with the voltage that must be dropped outside the LED. This calculator subtracts the LED forward voltage from the supply voltage, then divides that remainder by the desired LED current to give resistance in ohms. It addresses the simple current-limiting resistor calculation, not active current regulation. The frequent mistake is treating milliamperes as amperes: 20 mA is 0.020 A, not 20 A. Another common surprise is that the exact result may not be a stocked resistor value.
Worked example
A concrete input and expected output from the current implementation.
Input
Supply voltage: 9 V
LED forward voltage: 2 V
Desired current: 20 mA
->
Expected output
Required series resistance: 350 ohms
The resistor must drop 9 V - 2 V = 7 V. Converting 20 mA to 0.020 A gives R = 7 V / 0.020 A = 350 ohms; checking backward, 7 V / 350 ohms = 0.020 A.