Skip to content

6 min read

How Many LEDs Can an Arduino Power?

The answer is a current calculation, not a fixed count. Each pin has a safe limit, the whole board has another, and every LED needs its own resistor.

Several LEDs with individual resistors connected to Arduino digital pins

At a glance

The per-pin limit

A digital pin is designed to source about 20 milliamps comfortably, with a higher absolute maximum that should not be used in normal operation. A single indicator LED with a suitable resistor stays well inside that figure. Driving a high-power LED directly from a pin is not safe.

The same limit applies when a pin sinks current to ground. Check both directions if your circuit uses some LEDs tied to the supply and others tied to ground.

The whole-board budget

Current drawn from pins also passes through the board’s regulator or USB connection. Even if every individual pin is within its limit, the total can exceed what the supply provides. Add the currents of all LEDs and other parts, then compare that sum with the available rail current.

Leave margin for the board itself and for anything that starts up with a brief current peak. A design that runs at the exact limit will fail on a slightly weaker supply.

A worked example

Suppose you want six red LEDs at about 10 milliamps each. That is 60 milliamps total, which is modest for the board, and each pin supplies only 10 milliamps. With 5 V and a 2 V forward voltage, each resistor is 300 ohms; 330 ohms is a standard safe choice.

Now suppose those are white LEDs at 20 milliamps on a 3.3 V board. The per-pin figure is still acceptable, but the total rises to 120 milliamps and the resistor calculation changes because of the higher forward voltage. Recalculate rather than reusing the first answer.

One resistor per LED is not negotiable

LEDs in parallel behind one resistor do not share current evenly. Small differences in forward voltage mean one branch takes more current than the others, and that branch can fail. Give every LED its own series resistor sized for the intended current.

It costs one extra part per LED and removes a whole class of mysterious failures. It also makes each LED independently replaceable.

When to add a transistor or driver

If you need more current than a pin can supply, use the pin to switch a transistor or a dedicated driver, and let that device draw power from the rail or an external supply. The pin then carries only the small control current.

This is the standard approach for LED strips, high-power LEDs and anything with a large total current. Keep the control side and the power side connected by a common ground.

Power comes from the supply, not the signal

A pin decides whether current flows; it is not a power source. For a large display, choose a supply that matches the total LED current and let the board control the switching. This keeps the microcontroller out of the power path entirely.

Write the current per LED and the number of LEDs in your notes. Those two numbers determine the resistor, the pin load and the supply size, so they are worth recording once.

Frequently asked questions

How many LEDs can one pin drive?

One indicator LED at around 10 to 20 mA is normal. Use a transistor or driver for higher currents.

Is there a maximum number for the whole board?

Yes. The sum of all LED currents must stay below the available rail current with margin left for the board.

Can several LEDs share a resistor?

Not in parallel. Each LED needs its own series resistor for even current.

Why do I need a driver for an LED strip?

A strip draws far more current than a pin can provide. The pin controls a transistor or driver that draws from a suitable supply.

Related pages