Skip to main content

Free calculator

Use this calculator to

  • Size the series resistor for indicator LEDs on 5 V, 12 V or 24 V control panels
  • Check whether a string of LEDs in series fits within the available supply voltage
  • Pick the nearest standard preferred resistor value instead of an unobtainable exact figure
  • Confirm the resistor's power dissipation before choosing its wattage rating

LED Resistor Calculator

Find the resistor needed to safely power an LED from any supply voltage.

V
V
mA

Typical: 20mA standard LED, 1–5mA low-current, 350mA–1A high-power.

LEDs
Resistor Required

Formulas

  • R = (Vs − n×Vf) / If
  • Vs = supply voltage, Vf = LED forward voltage
  • n = number of LEDs in series, If = LED current (A)
  • Power dissipated = (Vs − n×Vf) × If

Common scenarios

Select one to run it in the calculator above.

For business

Why this matters for businesses

Every LED needs a current-limiting resistor in series, sized to the supply voltage, the LED forward voltage and the target forward current. Get the value wrong and the LED either runs cold and dim, which makes the indicator unreadable, or runs hot and fails inside a few hundred hours, which means a maintenance callout on something that should have been fit-and-forget. For in-house signage and control panels, those callouts are how a small wiring decision becomes a recurring operations cost.

For a facilities team retrofitting LED indicators into a legacy BMS, a control panel, or a custom alarm board, having the resistor calculation to hand is what separates a working refit from a procession of warranty returns. The forward current sits in a narrow window, typically 10 to 20 mA for a standard indicator and noticeably tighter on high-brightness parts. The right resistor sets the operating point in the middle of that window and gives the part a reasonable shot at its rated life on the datasheet.

For an in-house engineering team supporting operations, the same calculation is the first line of defence when an OEM panel is no longer supported and you need to substitute a generic indicator. The original drawing will give you the supply voltage and the indicator type, the new LED datasheet gives you the forward voltage and current, and the resistor value follows in a single step. Documented in the maintenance record, it is also the audit trail that survives a change of contractor and stops the same problem returning at the next service visit.

Common questions

How do I work out the resistor value for an LED?

Subtract the total LED forward voltage from the supply voltage, then divide by the LED current in amps: R = (Vs minus n × Vf) / If. A blue LED with a 3.0 V forward voltage running at 20 mA from a 5 V supply needs (5 minus 3.0) / 0.02 = 100 Ω. The calculator also reports the nearest standard preferred value and the power the resistor dissipates.

What forward voltage should I use for my LED?

Forward voltage depends on the LED colour and chemistry. Typical values are about 1.8 V for red, 2.0 V for yellow, 2.1 V for green, 3.0 V for blue and 3.2 V for white. These are starting points: the datasheet value at your chosen current is always more accurate, and high-power LEDs often sit higher. The dropdown in the calculator fills in these typical values for you.

Can I run several LEDs from one resistor?

LEDs in series can share one resistor because the same current flows through every device: add up the forward voltages and make sure the total stays comfortably below the supply voltage. Avoid putting LEDs in parallel on a single resistor: small differences in forward voltage make one LED hog the current, so it runs bright and hot while the others stay dim. Give each parallel branch its own resistor.

What power rating does the LED resistor need?

The resistor dissipates P = (Vs minus n × Vf) × If. A green LED at 20 mA on a 24 V panel drops about 21.9 V across the resistor, which is roughly 0.44 W, so a common 0.25 W resistor would overheat. Choose a resistor rated at least double the calculated dissipation: in that example a 1 W part gives a sensible margin.

Should I round the resistor value up or down?

Round up to the next standard value where you can. A slightly larger resistance reduces the LED current a little, which dims it marginally and extends its life. Rounding down increases the current beyond the design figure and erodes the safety margin against the LED's maximum rating. The calculator suggests a nearby standard value; check whether it sits above or below the exact figure before ordering.

LED Resistor Calculator | Purely Energy