LED Resistor Quick Calculator

Choose a current-limiting resistor for one LED connected to a DC supply. Enter the supply voltage, the LED's forward voltage, and the desired current to see the exact minimum resistance, the next-higher common E12 resistor, the resulting LED current, and a practical resistor power rating.

LED Resistor Quick Calculator Interactive Tool

Quick formula hint
R = (Vₛ - Vꜰ) ÷ I P = (Vₛ - Vꜰ) × I I with standard resistor = (Vₛ - Vꜰ) ÷ Rₛₜd

Convert LED current from milliamps to amps before using the formula (20 mA = 0.020 A).

Results

Enter values to see results

How to use this calculator

  1. Enter the DC supply voltage that will power the LED.
  2. Enter the LED forward voltage from its datasheet; typical values are about 2.0 V for red LEDs and 3.0–3.3 V for blue or white LEDs.
  3. Enter the desired LED current in milliamps. Use the datasheet rating and choose a lower current when in doubt.
  4. Use the next-higher standard resistor and the suggested minimum power rating shown in the results.

The Formula

The mathematical logic powering this calculation is:

R = (Vₛ - Vꜰ) ÷ I
P = (Vₛ - Vꜰ) × I
I with standard resistor = (Vₛ - Vꜰ) ÷ Rₛₜd

Worked Example

If you input:

  • Supply Voltage: 12 V
  • LED Forward Voltage: 2 V
  • LED Current: 20 mA

Result:

Exact resistance: 500 Ω; recommended standard resistor: 560 Ω; actual current: 17.86 mA; use at least a 0.5 W resistor.

Frequently Asked Questions

Why does the calculator recommend a resistor above the exact value?

Resistors are sold in standard values. Choosing the next-higher common value keeps the LED current at or below the requested current, which is the safer direction.

Where do I find an LED's forward voltage and maximum current?

Use the LED datasheet. Forward voltage varies by color, part, temperature, and current, so the datasheet is more reliable than a generic color estimate.

Can I use one resistor for several LEDs?

This calculator is for one LED. LEDs in series can share a resistor when the supply voltage is high enough, but parallel LEDs should normally have one resistor per branch.

Similar Calculators