LED Resistor Calculator
Find the series resistor an LED needs from the supply voltage, forward voltage and current, with the nearest standard value and power rating.
Also searched as: LED series resistor · current limiting resistor · resistor for LED · what resistor do I need for an LED
Your inputs
Results
Exact resistor value
150 Ω
- Nearest standard (E12) value above
- 150 Ω
- LED current with the standard resistor
- 20 mA
- Power in the resistor
- 0.06 W
- Suggested resistor power rating
- 0.125 W
✓Exact calculation — rounded only for display
Notes for this result
- Use the forward voltage and current from the LED datasheet; typical values are about 2 V for red, 2.1 V for yellow and 3–3.3 V for white, blue and green LEDs.
- The standard value is chosen above the exact value so the LED current stays at or below the target; the power rating includes a 2× safety margin.
What if?
Pick an input and drag the slider to see how the result changes.
What this calculator does
An LED must have its current limited, usually by a resistor in series. The resistor drops the voltage the LEDs do not use; choosing it from Ohm’s law keeps the LED at a safe current and prevents it from burning out.
Formula and method
- R
- Series resistance in ohms
- Vs
- Supply voltage
- n
- Number of LEDs in series
- Vf
- Forward voltage of one LED
- I
- LED current in amperes
- P
- Power dissipated in the resistor
Worked example
Calculated by this tool with its default inputs:
Inputs
- Supply voltage: 5 V
- LED forward voltage: 2 V
- LED current: 20 mA
- LEDs in series: 1
Results
- Exact resistor value: 150 Ω
- Nearest standard (E12) value above: 150 Ω
- LED current with the standard resistor: 20 mA
- Power in the resistor: 0.06 W
- Suggested resistor power rating: 0.125 W
How to read the results
Use the standard resistor value at or above the exact result and a resistor rated for at least the suggested power. A slightly higher resistance makes the LED a little dimmer but safer.
Assumptions and limitations
- Several LEDs in parallel should each have their own resistor, because small differences in forward voltage make them share current unevenly.
- High-power LEDs are better driven by a constant-current driver than by a resistor.
These are educational estimates. Electrical, structural and other safety-critical work must comply with local codes and be designed or checked by a qualified professional.
Questions
What resistor do I need for an LED on 5 V?
For a red LED (about 2 V) at 20 mA: (5 − 2) ÷ 0.02 = 150 Ω.
What happens without a resistor?
The current rises until the LED overheats and fails, often in a fraction of a second.
Can I use a higher resistor value?
Yes. The LED will be dimmer, but most indicator LEDs are still clearly visible at 5–10 mA.
Sources
- IEC 60063: Preferred number series for resistors and capacitors (E series)
Methodology and verification
- Result type
- Exact mathematical calculation (rounded only for display)
- Formula version
- 1.0
- Automated verification
- 4 reference and validation test cases, checked against independently computed values. The site cannot be built if any of them fail.
Privacy
Everything you enter is calculated in this browser and is not sent to Numerith or anyone else. Inputs are added to a share link only if you choose to include them. Privacy policy