Free electronics calculators
Ad

LED Resistor Calculator

Calculate the current-limiting resistor value for an LED circuit.

Resistor value
Nearest standard value (E24)
Power dissipated in resistor
Recommended resistor wattage
R = (Vsupply − (Vled × N)) / Iled. Always use a resistor with a wattage rating at least 2× the calculated power dissipation.

Get your results + weekly electronics tips

One email per week. Tips, tool deals, new calculators. Unsubscribe anytime.

Free tools, useful tips. We recommend products we'd actually use.

Common LED Forward Voltages

LED ColorForward VoltageTypical Current
Red1.8–2.2V20mA
Orange2.0–2.2V20mA
Yellow2.0–2.2V20mA
Green2.0–3.0V20mA
Blue3.0–3.4V20mA
White3.0–3.4V20mA
UV3.1–3.5V20mA
Infrared1.2–1.6V20–50mA
Ad

How to Size an LED Resistor

LEDs require a current-limiting resistor to prevent them from burning out. Without one, an LED will draw excessive current and fail almost instantly.

The formula is simple: R = (Vsupply − Vled) / Iled. For multiple LEDs in series, subtract the total LED voltage drop: R = (Vsupply − N × Vled) / Iled.

Always choose a standard resistor value equal to or greater than the calculated value. A slightly higher resistance means slightly less current and brightness, which is always safer than too little resistance.

Check the power dissipation: P = (Vsupply − Vled) × Iled. Use a resistor rated for at least twice this power to ensure long life.

The formula is R = (V_supply − V_forward) / I_forward. The forward voltage V_f is the voltage an LED "uses up" — typically 1.8–2.2V for red/yellow, 2.8–3.4V for blue/white/green. The forward current I_f is usually 20mA (0.020A) for standard 5mm LEDs, or 350mA–1A for high-power emitters.

Example: powering a red LED (V_f = 2.0V) from a 5V USB supply at 20mA: R = (5.0 − 2.0) / 0.020 = 150Ω. Choose the nearest standard resistor value (150Ω is a standard value in the E12 series).

Always round up to the next standard resistor value to stay within the LED's current rating. Running slightly below rated current extends LED life significantly — 15mA instead of 20mA is a common conservative choice.

For multiple LEDs in series, add their forward voltages: two red LEDs in series from 12V need R = (12 − 4.0) / 0.020 = 400Ω. In parallel, each LED needs its own resistor — shared resistors cause uneven brightness as LEDs age.

See also: Ohm's Law Calculator · Voltage Divider Calculator