# LED resistor calculator wrong?

Planning to use a green LED (forward voltage 2V, forward current 30mA) on a 12V circuit so using as resistor calculator (led.linear1.org/1led.wiz) I bought a 390 ohms, 1W resistor.

However after connecting the resistor to the positive terminal the led refuse to light up.

Is the calculator wrong or am I making a mistake somewhere? (gather I am a complete novice)

• (12V-2V)/(30mA) = 333Ohm, so your calculations are correct. The max power 1W is 3 times more than what you need, so you should be fine. You have a mistake somewhere else.
– yo'
Jan 25, 2015 at 19:24
• Don't take it bad but... Try inverting polarity :-) Jan 25, 2015 at 19:26
• Does it need a heat sink ? what type of LED is it ? ( a clear plastic housing or for mounting on a heat sink) Jan 25, 2015 at 20:14
• @yo': Four times more. Jan 25, 2015 at 20:45
• @EMFields I wouldn't dare myself to use a 0.25W resistor in a 0.26W setting, so I left some headroom there :)
– yo'
Jan 25, 2015 at 20:48

Ok, first let's check the resistor value. We'll do the maths so you never need trust a random website again:

$$V_{DROP} = V_{IN}-V_{LED} = 12 - 2 = 10V$$ $$R=\frac{V_{DROP}}{I_{LED}} = \frac{10}{0.03} = 333.\dot{3}$$ So that all looks OK.

So why isn't it working? Well, some possibilities:

1. The LED is connected backwards. LEDs are polarized devices and have to be connected the right way around. Look for a flat edge to the rim of the LED which denotes the negative (cathode) connection. Also LEDs often have leads of different lengths. The longer is normally positive (anode).
2. You have blown the LED. Accidentally putting 12V through the LED will pretty much instantly kill it.
• I received a batch of LEDs that the molded in flat edge was where the anode connected, whether by mistake or design. That can happen too. Jun 6, 2021 at 16:06

The ballast resistor must drop the difference between the supply voltage and the LED forward voltage with the LED current through it so, consulting Ohm's law, we have:

$$R = \frac{Vsupply-Vled}{Iled} = \frac{12V-2V}{0.03A} \approx 333\Omega$$

So your 390 ohms should be enough to get the LED to light.

Since the LED is a diode, once past the knee the voltage it drops will stay pretty constant over a fairly wide range of currents through it, so consulting Ohm's law once again and solving for the current 390 ohms will let through, we have:

$$Iled = \frac{Vsupply-Vled}{R} = \frac{12V-2V}{390\Omega} \approx 26 mA$$

Which should be plenty to light up the LED.

The power the resistor will dissipate will be:

$$P = ( Vsupply-Vled) \times Iled\ =\ 10V\times 0.026A = 260mW$$

So a 1/2 watt unit would be OK. Your 1 watt resistor will be fine, though, and it'll run cooler.

I would guess that you connected the LED backwards to start with and now it won't work in either direction because you let out the magic smoke. ;)

• if it looks black inside then it is dead. Jan 25, 2015 at 20:15

Based on the formula above, I have created a calculator that will help you calculate the resistance required - http://www.calctown.com/calculators/led-current-resistor-calculator

I did verify this value and got 333.33 Ohms.

• This looks a lot like link spam - you should answer the actual question or leave this as a comment. Jun 18, 2015 at 18:18