LED Resistor Calculator

Without a resistor, an LED draws too much current and burns out. A 12 volt supply and a 2 volt LED at 20 milliamps needs 500 ohms, and the nearest standard value that keeps the current at or below the target is 560 ohms, with a resistor dissipating 0.2 watts. Choose a resistor rated at least twice the calculated power, and check the LED brightness.

For several LEDs, use a separate resistor for each in parallel, or put them in series and account for the voltages.

LED Resistor Calculator: inputs

Calculated result
Resistor needed (ohms)500
Resistor power (watts)0.2
Next standard E12 value (ohms)560

LED Resistor Calculator: Supply voltage (V) sensitivity

LED Resistor Calculator: Supply voltage (V) and Resistor needed (ohms)5 calculations vary the “Supply voltage (V)” input while holding the other entered inputs constant.1040011450125001355014600

LED Resistor: formula

R = (supply voltage − LED forward voltage) ÷ LED current; power = current² × R; then round up to the next E12 value

OpenStax University Physics: current, resistance and power

Enter supply voltage, forward voltage at the intended operating current, and target current from the specific LED’s datasheet. Color alone does not specify its electrical limits. The resistor limits the current: it equals the voltage left after the LED, divided by the current.

The tool also computes the power the resistor dissipates and rounds to the next standard E12 value.

LED Resistor: worked example

Supply voltage (V)12
LED forward voltage (V)2
LED current (mA)20
Resistor needed (ohms)500
Resistor power (watts)0.2
Next standard E12 value (ohms)560

Forward voltage varies between LEDs and with current and temperature, so real current differs slightly. Batteries drop in voltage as they discharge. Constant-current drivers are better for high-power LEDs.

Reverse polarity can damage an LED. The E12 series has a limited set of values, so pick the next higher one.

LED Resistor: changing Supply voltage (V)

Supply voltage (V)Resistor needed (ohms)Resistor power (watts)Next standard E12 value (ohms)
104000.16470
114500.18470
12 (example)5000.2560
135500.22560
146000.24680

LED Resistor: compare input ranges

InputTested fromToResistor needed (ohms): low inputResistor needed (ohms): high inputSwing
Supply voltage (V)1113450550100 (20%)
LED current (mA)1822555.6454.5101 (20%)
LED forward voltage (V)1.82.251049020 (4.0%)

LED Resistor: individual input comparisons

InputValueResistor needed (ohms)Resistor power (watts)Next standard E12 value (ohms)
Supply voltage (V)104000.16470
114500.18470
125000.2560
135500.22560
146000.24680
LED forward voltage (V)1.65200.208560
1.85100.204560
25000.2560
2.24900.196560
2.44800.192560
LED current (mA)166250.16680
18555.60.18560
205000.2560
22454.50.22470
24416.70.24470

LED Resistor: combined input changes

Supply voltage (V) / LED forward voltage (V)1.622.4
10420400380
11470450430
12520500480
13570550530
14620600580

LED Resistor: which assumptions move the result?

LED Resistor: Resistor needed (ohms) as Supply voltage (V) changesResistor needed (ohms) starts at 400. Moving Supply voltage (V) from 10 to 14 changes it to 600, with LED forward voltage (V) 2; LED current (mA) 20 kept fixed.1040011450125001355014600
Chart quantityDisplayed settings
Supply voltage (V)10 → 14
Resistor needed (ohms)400 → 600
LED forward voltage (V)2
LED current (mA)20
LED Resistor: Resistor needed (ohms) as LED current (mA) changesResistor needed (ohms) starts at 625. Moving LED current (mA) from 16 to 24 changes it to 416.7, with Supply voltage (V) 12; LED forward voltage (V) 2 kept fixed.1662518555.62050022454.524416.7
Chart quantityDisplayed settings
LED current (mA)16 → 24
Resistor needed (ohms)625 → 416.7
Supply voltage (V)12
LED forward voltage (V)2

LED Resistor: values and definitions

Quantity and definitionValue used
Supply voltage (V)12
LED forward voltage (V) — Red is about 2 V and white or blue about 3 V. Check the LED's datasheet.2
LED current (mA)20
Resistor needed (ohms)500
Resistor power (watts)0.2
Next standard E12 value (ohms)560

LED Resistor: half and double Supply voltage (V)

Supply voltage (V)Resistor needed (ohms)
6200
12500
241,100

Common error: Rounding down to the nearest standard value. That pushes more current through the LED than planned and shortens its life.

Science & Electronics calculators: Watts to Amps Calculator, Resistor Color Code Calculator, Voltage Divider Calculator, RC Time Constant Calculator, Combined Gas Law Calculator, Percent Yield Calculator.

An LED has almost no resistance of its own once it turns on, so a resistor must set its current. Subtract the LED's forward voltage from the supply and divide by the current you want. On 12 volts with a 2 volt LED at 20 milliamps that is 500 ohms.

Resistors come in standard values, so you round up to the next one, 560 ohms, which runs the LED a little below its full current.

Look up the forward voltage on the LED's datasheet. Colors differ, and the wrong value shifts the current you get.

See resistance combinations on the resistor calculator, power on the Ohm's law page, a divider on the voltage divider calculator and color bands on the resistor color code page. The watts to amps and voltage drop pages cover wiring, and the RC time constant calculator handles timing circuits.

Why does an LED need a resistor?

An LED has very low resistance once it conducts, so without a limiting resistor the current rises until the LED is destroyed.

What resistor value should I use?

Subtract the LED's forward voltage from the supply voltage and divide by the desired current, then round up to a standard value.

What is the E12 series?

A set of 12 preferred resistor values per decade, such as 100, 120, 150, 180, 220, 270, 330, 390, 470, 560, 680 and 820 ohms.