LED Resistor Calculator

About this calculator

Find the ideal series resistor for one LED or a string of identical LEDs. Compare a resistor you have to see modeled current and dissipation.

Example: two identical LEDs on a 9 V supply.

Use the forward voltage for your LED and intended current. Enter up to 30 V DC.

Compare a resistor you have

For a higher-current scenario, enter both voltages below. Leave tolerance blank to use the chosen nominal resistance.

Embed this calculator

Paste this code into a Custom HTML block on your site. The calculator fits the width of the block. Adjust the height in the code if you want more room for results.

Find this widget in the publisher directory

How to calculate an LED current-limiting resistor

Enter the nominal DC supply voltage, forward voltage per LED at your intended current, how many identical LEDs share a series string, and the target current in milliamps. Series LEDs all carry the same branch current. Their forward voltage drops add. The resistor drops the voltage left over.

Resistor voltage = supply voltage − (LED count × forward voltage per LED). Resistance in ohms = resistor voltage ÷ target current in amps.

For two LEDs at 2.1 V each and a 9 V supply, the resistor sees 4.8 V. At 15 mA, the ideal resistance is 4.8 ÷ 0.015 = 320 Ω. The resistor dissipates 4.8 × 0.015 = 0.072 W, or 72 mW, in this model.

Compare a resistor you already have

Enter its nominal resistance to estimate the resulting current and power. A 330 Ω resistor with the same voltage across it gives about 14.55 mA and dissipates about 69.82 mW. The estimated current is lower than 15 mA at the entered nominal voltages.

Modeled current = resistor voltage ÷ chosen resistance. Modeled power = resistor voltage × modeled current.

How supply voltage, forward voltage and tolerance affect current

To explore a higher-current scenario, enter a higher supply voltage, a lower forward voltage per LED and optionally the resistor's tolerance. The worksheet subtracts that tolerance from the chosen resistor before recalculating. For 9.6 V, two LEDs at 1.9 V each and a 330 Ω resistor at 5% below nominal, the model uses 313.5 Ω and gives about 18.50 mA and 107.30 mW.

Use the actual part's datasheet and relevant operating conditions. The Analog Devices LED circuit guide explains that forward voltage changes with current. ROHM's LED circuit guidance shows how series drops add and why forward-voltage variation matters. Treat the result as a fixed-voltage scenario. Check component ratings and resistor derating for the package, temperature and mounting before selecting a part.

Which circuit does this model cover?

The calculator covers one DC series string at up to 30 V, with identical entered forward drops. Enter a separate worksheet calculation for each separately resisted branch. Shared-resistor parallel wiring, mains, switched drivers and thermal design use different circuit models.

Frequently asked questions

What happens if the supply equals the total LED forward voltage?
The nominal model leaves zero voltage across a resistor. It cannot calculate a positive resistance for the target current. Check that your supply exceeds the total entered forward drop.
Can I enter a resistor with a different value from the ideal result?
Yes. Enter the chosen value to see modeled current and dissipation. Under the same fixed voltage assumptions, a larger resistance reduces current.
Is the calculated dissipation a resistor wattage rating?
The result is modeled power dissipated in the resistor. Use the part datasheet and relevant derating conditions to check its rating.
Can I use a forward voltage based on LED color?
Use the value for the specific part and the intended current. Color alone does not establish a forward voltage or a lower bound.

Formulas and sample results on this page were checked against independent references. Page last reviewed or updated . How we verify calculators. Project led by Shaun Connell.