Powering LED with 9V battery

10 mm is not an electrical specification, you should consult the datasheet to find out how much current it needs. For an indicator LED that's often 20 mA. The LED will have a voltage across it, what's called the voltage drop. We also need that, it's also in the datasheet. The voltage drop mainly depends on the color, for a red LED 2 V is a typical value.

So with 2 V and 20 mA we can get to work. We're going to place a resistor in series with the LED to control the current. At 9 V battery voltage and a 2 V drop across the LED we'll have 7 V remaining for the resistor. Then according to Ohm's Law Voltage = Current x Resistance, we can calculate the resistor value as

\$ R =\dfrac{V}{I} = \dfrac{7 V}{20 mA} = 350 \Omega \$

The closest E12 value is 390 Ω. To know how long the battery will light the LED we want to know the battery's capacity, expressed in mAh, for mA-hours. An alkaline barry may have a capacity of 560 mAh. Then at 20 mA it will work for about 28 hours, maybe somewhat less.

And yes, a camera will see IR, from how far depends on the LED's power output.


Use Ohm's law. First you have to know the voltage drop accross the LED when lit to its desired level. For typical green LEDs, that's usually about 2.1 V. Red LEDs are lower, and IR LEDs even lower still. Blue and white are higher, like a bit over 3 V.

Let's say for sake of example you have a typical 20 mA green LED that drops 2.1 V. The battery puts out 9 V, so that leaves 9V - 2.1V = 6.9V accross the resistor in series with the LED. These LEDs can take 20 mA of current, but unless you expect to use it in a bright environment that will be overkill. Let's aim for about 10 mA LED current. Since the LED and resistor are in series, the LED current and the resistor current will be the same.

The question now is, what resistance drops 6.9 V at 10 mA? This is what Ohm's law is about. 6.9V / 10mA = 690Ω. The standard value of 680 Ω will be fine.

To calculate the run time, look at the battery Amp-hours spec. 9 V batteries have poor energy density for their size, and they are not a good choice for running a LED efficiently. I rarely use them so I don't remember what the capacity is, so I'll use 1 A-h for example only (could be quite off from a real 9 V battery.

The A-h capacity is in theory the current you can draw for 1 hour from a fresh battery until it is dead. You are drawing 10 mA, which is 1/100 Amps, so in theory a 1 A-h battery will last 100 hours. In practise less, as low as half that in cold for example.


Instead of wasting power with a large voltage drop across the resistor, you can also put more LEDs in series. Red and yellow LEDs are typically 1.6 V, and blue and white are 3.2 V in low currents less than 20 mA. This assumes modern high intensity parts are selected.

This means you could put red, white, and blue LEDs in series with a 9 V to 9.5 V battery as you suggested.

9.2 V Battery (~ mid life), then subtract:

  • red        1.6 V
  • white    3.2 V
  • blue      3.2 V

The remainder is 1.2 V, which we want across the current limiting resistor for say 10 mA, which is half of most 5 mm LEDs rated at 20 mA.

  • 1.2V/10 mA = 0.12 kΩ = 120 Ω
  • 1.2V * 10 mA = 12 mW or 10% of rated 1/8th W resistor

Naturally, tolerances of 10% on resistors and 10% on LEDs will be safe when you operate at the 50% rating.

A bigger resistor will be proportionally less current and last longer.

LEDs with a larger luminous intensity (Iv) have smaller beam width angles that use the same chip, such that Theta of 20 degrees is twice as bright as Theta of 45 degrees.