LED Resistor Calculator

Calculate the series resistor for an LED, its power rating and the nearest standard value.

Runs in your browser. Your files never leave your device. See how to check

…

How to do it

  1. 1
    Step 1: Open LED Resistor Calculator and add your input

    Type your numbers or text, add your file, or pick the options you need. Nothing is uploaded: everything stays in your browser.

  2. 2
    Step 2: What LED Resistor Calculator does

    Calculate the series resistor for an LED, its power rating and the nearest standard value.

  3. 3
    Step 3: Read the result and compare

    The result appears at once. Change one value to see how the answer moves, then keep the figure that fits your case.

  4. 4
    Step 4: Copy or save it

    Copy the result or download it. For an important decision, confirm it with the official source or an adviser.

About this tool

Enter the supply voltage, the LED forward voltage, the current you want and the number of LEDs in series. The calculator gives the exact resistor, the nearest E12 standard value, the actual current with that value and the power the resistor dissipates.

Formula

R = (supply voltage − number of LEDs × forward voltage) ÷ current. Power in the resistor P = (supply − LED drop) × current. Choose a resistor rated at least twice this power.

Typical forward voltages

Red 1.8 to 2.2 V, yellow 2.0 V, green 2.0 to 3.0 V, blue and white 3.0 to 3.4 V. Typical current 10 to 20 mA.

Standard values

The E12 series: 1.0, 1.2, 1.5, 1.8, 2.2, 2.7, 3.3, 3.9, 4.7, 5.6, 6.8, 8.2 times powers of ten. Choose the next higher value if you want to stay below the current limit.

Worked example

A 12 V supply and a red LED (2.0 V) at 20 mA need 500 Ω. The nearest E12 value is 470 Ω, giving 21.3 mA and 0.2 W, so use a 0.5 W resistor.

Tips for best results

Check every box before you rely on a result, because one wrong digit changes the whole answer. Use the exact figures from your payslip, bill, certificate or contract, and keep a note of the date you calculated. Rates, thresholds and rules change from time to time, so for tax, fees and legal matters treat the output as an estimate and confirm with the official source named on this page. You can run as many scenarios as you like; nothing is saved or sent, and refreshing the page clears the boxes.

Quick facts

Embed this calculator on your site

Copy this code to show the calculator on your own page. A link back to shobfree.com is included.

Frequently asked questions

Which current?

10 to 20 mA is typical; check the datasheet.

Can I use a lower voltage?

The supply must be higher than the LED voltage.

What about several LEDs?

In series they add their forward voltages; in parallel give each its own resistor.

What power rating?

At least twice the calculated power.

Guides for this tool

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages