ToolSphere

LED Resistor Calculator

Electronics

LED resistor calculator: enter supply voltage, LED forward voltage, current and the number of LEDs in series to get the resistor value and power rating.

Pick your LED color and type your supply voltage. The resistor to use appears straight away.

1. LED color

A red LED uses about 2 V.

A 9 V battery is 9. Two AA cells are 3. An Arduino 5 V pin is 5.

More options

Also called forward voltage (Vf). Check the LED's datasheet if you have it.

Use the current rating in your LED's datasheet. A lower current usually gives less light.

LEDs wired one after another share one resistor.

Use this resistor

390 Ω

rated 1/4 W or more

Exact value: 350 Ω. The standard part gives about 17.95 mA.

Calculation details
  • At the requested 20 mA, the exact resistor dissipates 0.14 W. Pick a resistor rated at least 0.21 W (a 50% margin); this is conservative for the larger standard part.
  • Why: R = (supply − LED voltage) ÷ current = (9 − 2) ÷ 0.02 A.

On this browser only

Give feedback

Did this tool help?

Tell us what worked, what didn’t, or what you’d like next.

Opens Google Forms in a new tab with this tool’s name filled in. No sign-in or email required. Feedback is optional.

Coming from Fritzing? See what carries over and what Fritzing still does better →

Try next

How to use LED Resistor Calculator

  1. 1Enter the supply voltage and the forward voltage of one LED at the intended operating current.
  2. 2Enter the target forward current in milliamperes (mA), using the LED datasheet rather than assuming the default applies to every part.
  3. 3Enter the number of identical LEDs in the series string.
  4. 4Read the required resistance and choose a resistor rated above the displayed power threshold. If the supply-too-low warning appears, change the supply or series count.
  5. 5Use Copy to save the series count, component inputs, resistance and wattage threshold, or the low-supply warning.

About LED Resistor Calculator

Calculate a resistor for one LED or a series string

This LED resistor calculator finds the series resistance needed for a chosen LED current and estimates the resistor power requirement. Enter supply voltage, forward voltage per LED, target current in milliamperes and the number of LEDs in series. It is useful for indicator LEDs, simple breadboard circuits and checking a string before laying out a board.

The calculator assumes the LEDs in the string have the same forward voltage and share the same current. Its result is a nominal component calculation, rather than a simulation of the LED current-voltage curve. Copy includes the series count and the voltage and current assumptions so the saved result can be traced back to the intended circuit.

LED resistor formula and current units

For a string of N matching LEDs, R = (Vin − N × Vf) / I. Vin is the supply voltage, Vf is the forward voltage of one LED, and I must be in amperes in the formula. The input field uses mA, which the calculator converts internally. The quantity Vin − N × Vf is the voltage available across the resistor.

Choose Vf from the LED's datasheet at the intended operating current, and consider its variation with current and temperature. The forward voltage is an input assumption; this page does not calculate it from LED color, identify the LED automatically, or predict brightness. The default current is an example, not a universal recommendation for every LED.

When supply voltage is at or below the assumed total forward voltage, the page shows a supply-too-low warning. There is no positive resistor value that can produce the requested current under those assumptions. A zero or negative calculated resistance is not permission to connect the string directly across the source.

Worked example: resistor value and wattage

Use a 12 V supply, an LED forward voltage of 2 V, and a target current of 20 mA. With one LED in series, the resistor must drop the remaining voltage, and the calculator gives 500 Ω. For three identical LEDs in series at the same current, the combined forward drop is larger and the result becomes 300 Ω.

Supply Vf per LED Series count Current Resistance Displayed rating threshold
12 V 2 V 1 20 mA 500 Ω Above 0.30 W
12 V 2 V 3 20 mA 300 Ω Above 0.18 W
5 V 2 V 1 10 mA 300 Ω Above 0.05 W
5 V 2 V 2 10 mA 100 Ω Above 0.02 W

Resistor dissipation follows P = I²R. For the first row it is 0.2 W; for the second it is 0.12 W. The page applies a 50% margin, then rounds the displayed threshold upward to the next hundredth of a watt. Choose a real resistor with a rating above that threshold, and check its temperature derating and installation conditions.

Choosing an available resistor

The calculated resistance may not match a value in your parts drawer. The tool does not automatically round to a standard resistor series. For an indicator circuit, selecting a nearby higher resistance reduces nominal current; selecting a lower one increases it. Recalculate the current for the selected part before deciding that the substitution is acceptable.

For the first example, replacing 500 Ω with an available 510 Ω resistor gives approximately 19.61 mA and 0.1961 W using the same assumed LED forward voltage. The small current reduction may be acceptable for an indicator, but its actual appearance depends on the LED and application. A power rating is a separate specification from the resistance value.

The resistor color code decoder helps identify the part you choose. Use Ohm's law to check current and resistor power when substituting a different resistance or source voltage.

Series LEDs and parallel branches

LEDs in a series string carry the same current, and their forward voltages add. The count field therefore changes the total forward drop without multiplying the target current. If the LEDs have different forward-voltage specifications, calculate the actual sum separately rather than treating the single Vf input as a prediction for every part.

Parallel branches require separate current control. For a simple resistor-limited arrangement, give each LED or series string its own resistor. Sharing one resistor across unmatched parallel LEDs can lead to uneven current distribution. This calculator sizes one series branch at a time; it does not distribute current between parallel branches or determine the total supply rating for a larger array.

Practical limits and common mistakes

A resistor is one way to limit LED current; a suitable constant-current driver is another. High-power LEDs and circuits with widely varying supply voltage often need a driver design rather than a single nominal resistor calculation. Do not assume that every LED assembly sold as a lamp is a bare diode requiring the same external resistor arrangement.

Check the largest supply voltage and the smallest plausible forward voltage when estimating maximum current. If the available resistor voltage is very small, small supply or Vf changes can cause a large current change. Also check the source's current capacity: a microcontroller output does not necessarily behave like an ideal voltage supply under load.

For a physical build, use the perfboard simulator to place the LED, resistor and connections before soldering. Its connection checks help with wiring; the current and thermal checks still come from the component values and datasheets. For more complicated resistance arrangements, the series and parallel calculator can check the equivalent network.

Guides and tutorials

Frequently asked questions

How do I calculate a resistor for an LED?

Use R = (Vin − Vf) / I for one LED, with I in amperes. This page accepts the current in milliamperes and also supports matching LEDs connected in series.

How many LEDs can I put in series?

Their total forward voltage must leave positive voltage across the resistor at the required current. Enter the intended series count and check the supply-too-low warning, then allow for real supply and LED variation.

Do I enter the voltage of one LED or the whole string?

Enter the forward voltage of one LED and specify the series count separately. The calculator multiplies those values to obtain the assumed total LED drop.

What resistor does one 2 V LED need at 12 V and 20 mA?

The nominal result is 500 Ω with 0.2 W resistor dissipation. The displayed power threshold is above 0.30 W, so select an available rating above it and check derating.

Why does the tool say the supply is too low?

The source voltage is at or below the assumed total forward voltage of the LEDs. No positive resistor can deliver the target current in that model; increase the supply or reduce the series count.

Can multiple parallel LEDs share one resistor?

For simple resistor-limited branches, use a separate resistor for each LED or series string. Forward-voltage differences can cause unequal current sharing when unmatched parallel LEDs rely on one shared resistor.

Should I round the LED resistor up or down?

A nearby higher resistance reduces the nominal current, while a lower resistance increases it. Check the current using the selected component rather than treating the calculated value as an automatic standard-value recommendation.

How is the resistor power rating calculated?

The calculator finds dissipation using P = I²R, adds a 50% margin and rounds the displayed threshold upward. Choose a rating above that threshold and account for the resistor datasheet and operating temperature.

Do all LEDs need a 20 mA current?

No, the current field is an input, and the default is only an example. Use the LED datasheet and required brightness to choose an operating current within its limits.

Can this calculate LED forward voltage or brightness?

No, forward voltage and target current are supplied by you. The result sizes a resistor for those assumptions; it does not model the LED curve, light output or junction temperature.

Have a suggestion for LED Resistor Calculator?Share your feedback ↗