Find the correct current-limiting resistor for an LED circuit - essential for protecting an LED from drawing too much current and burning out.
LED Resistor Calculator
LiveThe formula
A 12V supply, single LED with 2.0V forward voltage, targeting 20mA: resistor = (12 - 2.0) / 0.020 = 500Ω - the nearest standard value is 470Ω, in a 1/4W or higher resistor.
Step-by-step guide
- Enter your supply voltage and the LED's forward voltage (check its datasheet, or use a typical value for its color).
- Enter your desired current - 20mA is a very common safe default for standard 5mm LEDs, but check your specific LED's maximum rating.
- Enter how many LEDs are wired in series, if more than one.
- Use the nearest standard resistor value at or above the calculated minimum, with adequate power rating.
Why LEDs need a current-limiting resistor at all
Unlike a standard resistor, an LED's voltage stays roughly constant (its forward voltage) once it's conducting - which means without something limiting the current, it will draw more and more current as temperature rises, in a runaway process that quickly destroys it. A correctly sized series resistor absorbs the extra voltage and limits current to a safe, stable level.
Common mistakes
Frequently asked questions
What forward voltage should I use if I don't know my LED's exact value?
Red and yellow LEDs are commonly around 1.8-2.2V, while green, blue, and white LEDs are typically 3.0-3.4V, due to differences in the semiconductor materials used. Check the specific LED's datasheet for an exact figure when possible.
Why does this recommend the "nearest standard value" instead of the exact calculated resistance?
Resistors are manufactured only in a standard set of values (the E-series), not every possible number - rounding up to the next standard value at or above the calculated minimum keeps current safely at or below the target.
Can I wire multiple LEDs in parallel instead of series?
It's generally not recommended without a separate resistor for each LED, since even small manufacturing differences between LEDs can cause one to hog most of the current and burn out. Series wiring with one shared resistor (as this calculator assumes) or parallel branches each with their own resistor are both safer approaches.
Related calculators
See the full list of Engineering calculators, or try: