LED series resistor calculator
The resistor takes what the LEDs leave of the supply, at the LED current: R = (V_s − n × V_f) ÷ I. A red LED (2 V) on 9 V at 20 mA needs (9 − 2) ÷ 0.02 = 350 Ω, and the resistor gets 7 V × 20 mA = 140 mW.
Your values
Enter a number above 0, up to 10,000.
Enter a number above 0, up to 100.
Enter a whole number from 1 to 100.
Enter a number above 0, up to 100,000.
The supply V_s must be more than the LEDs' forward voltages, n × V_f.
These values have no real result.
Result
- R resistance
- Ω
- V_R voltage across the resistor
- V
- P power in the resistor
- mW
Fix the value marked above to see the result.
Worked steps
- V_R = V_s − n × V_f = 9 V − 1 × 2 V = 7 V
- R = V_R ÷ I = 7 V ÷ 0.02 A = 350 Ω
- P = V_R × I = 7 V × 20 mA = 140 mW
Formulas used
The same formulas as the formula sheet and the practice questions; the worked steps print them with your numbers.
R = (V_s − n × V_f) ÷ IP = V_R × I
Questions
How do I calculate the resistor for an LED?
Take the LED's forward voltage from the supply and divide by the current in amps: (9 V − 2 V) ÷ 0.02 A = 350 Ω. Pick the next standard value up, such as 390 Ω, for a little less current.
What resistor do several LEDs in a row need?
Their forward voltages add: three 2 V LEDs on 12 V at 20 mA need (12 − 6) ÷ 0.02 = 300 Ω. The supply must be higher than all the forward voltages together.
What forward voltage does an LED have?
Roughly 1.8 to 2.2 V for red, yellow and some green LEDs, and about 3 to 3.3 V for blue, white and bright green ones. The datasheet gives the exact value at the rated current.