ESP32 Calcs

LED Strip Power Supply Calculator — Watts, Amps, Injection Points

Who this is for: For WS2812/SK6812 and analog strip builds: the two classic failures are an undersized 5 V supply and a long strip with voltage sagging at the far end.

Power supply sizing for LED strips: enter length and W/m to get total watts, total amps, the PSU wattage to buy with headroom, and how many power injection points the strip needs.

Quick answer: Total power = length × watts per meter; amps = watts ÷ supply volts. A 5 m strip at 14.4 W/m draws 72 W — 14.4 A at 5 V — so buy a 90 W (18 A) supply for 20% headroom, and inject power from both ends if you're running close to full brightness. And no, the ESP32 does not power the strip: the GPIO provides only the data signal, while the supply feeds the strip directly through a common ground.

From the strip spec — 5 V: 7–18 W/m · 12 V: 4.8–14.4 W/m

Don't run a PSU at 100% — 20% is the usual margin

Supply voltage
Common strips:
Total power
72 W
Total current
14.4 A
Power supply to buy
17.3 A @ 5 V
Power injection points
1
What this means in practiceNumber
PSU wattage to buy (with headroom)86 W
Current per injection point (5 m segments)14.4 A
Max LEDs a single ESP32 GPIO can drive directly1 (signal only)
An ESP32 GPIO powers nothing here. An ESP32 GPIO is a signal pin, not a power supply: keep it under ~12 mA per pin (40 mA absolute max, and never use it to power the strip). Switch the strip through a MOSFET (or the strip's own controller) and keep the ESP32 GPIO purely as the data/PWM signal. Addressable strips (WS2812/SK6812) additionally need a 5 V data signal — a 3.3 V GPIO works on most strips but a level shifter makes it reliable. Long strips also lose voltage along the copper: inject power every ~5 m (calculate more for high-density 5 V strips), and on 5 V strips a 3.3 V data signal is marginal — power the strip at 5 V, feed the data line through a level shifter, and keep a common ground. If you're asking "how many LEDs can an ESP32 drive", the honest answer is: unlimited LEDs through a data pin (addressable strips), but the power comes from the PSU, never the GPIO — and RAM is what really caps long WS2812 chains.
Core facts
FormulaW = length × W/m · A = W ÷ V
PSU headroom+20% minimum
Injection cadenceevery ~5 m (more on 5 V high-density)
ESP32 roledata signal only, ~12 mA max per GPIO
Long runsprefer 12 V or 24 V strips over 5 V

How to size an LED strip power supply

LED strip power math starts with one spec from the strip's own listing — watts per meter at full brightness, per meter of strip, not per meter of LED — and multiplies by your length. From there it's Ohm's law split in two: total amps at your chosen voltage, and the PSU wattage you should actually order, which means adding headroom. A 5 V strip wants 20% minimum; a supply run at 100% of rating is a supply running hot, and cheap ones derate their own label.

The second half of the problem isn't the total, it's the distribution. Copper traces inside a 5 m strip have real resistance — the far end of an unreinforced 5 V strip can see under 4 V at full white, which reads as a pink/red gradient. The fix is multiple power injection points (clip +5 V and GND into the strip every ~5 m, feeding back toward the start), and this calculator returns the number of injection points for your length as a starting plan.

For ESP32 builders the last piece is the interface: the supply powers the strip, the ESP32's GPIO carries only the data signal, and both share a ground. Addressable 5 V strips technically accept a 3.3 V data signal, but many do it marginally — through a short wire it usually works, over a long one it flickers. A level shifter (or one channel of a spare gate powered at 5 V) makes it reliable, and a 300–500 Ω resistor in series with the data line protects the first pixel from ringing. That data-line advice is different from a plain RGB analog strip, which needs MOSFETs instead of a data signal — one MOSFET per color channel, and the supply does the heavy lifting there too.

Common uses

  • Choosing the PSU for a 5 m WS2812B strip behind a desk or TV
  • Planning power injection for a 20 m run along a room ceiling
  • Checking whether a 12 V 3 A brick can feed two 2 m strips in parallel
  • Sizing the fuse to put in line with a big 5 V strip (hint: at the PSU's amp rating)
  • Deciding between 5 V addressable and 12 V analog strips for a long installation

Specs from real strip listings

5 V addressable: 30 LED/m ≈ 9 W/m, 60 LED/m ≈ 18 W/m (full white; typical patterns use a third of that). 12 V analog: 30 LED/m ≈ 7.2 W/m, 60 LED/m ≈ 14.4 W/m. 24 V strips run lower current per watt — for runs over ~10 m, 24 V is the sane choice because amps scale down with voltage. Watts per meter always refers to full white, all channels on — movies and color patterns draw a fraction, but size the supply for full white anyway: the day you write a 'turn everything on' test pattern is the day an undersized supply gets hot.

The ESP32's part (and only its part)

ESP32's job is the data signal: one GPIO, under 12 mA, never the strip's power. Two things make the interface robust: a common ground between the strip's supply and the ESP32 (without it, the data signal has no reference and nothing works), and a level-shifted data line for 5 V strips. Wires matter too: from the PSU to the strip, use short thick wires (18–20 AWG for a few amps) — the strip's own copper is the thin part you're compensating for with injection points.

Frequently Asked Questions

How many LEDs can an ESP32 drive?
For addressable strips: essentially unlimited (thousands), because the ESP32 only sends the data signal — power comes from the strip's own supply. The real limits are RAM (each WS2812 pixel costs 3 bytes; a few thousand pixels strain an ESP32's buffers) and the 12 mA GPIO limit, which the data line stays far under. The strip's power supply, not the GPIO, decides how many LEDs can light.
What power supply do I need for a 5 m WS2812B strip?
For the common 60 LED/m (18 W/m) version: 5 × 18 = 90 W at full white — a 5 V, 22 A supply with headroom (many builders use a 5 V 20-30 A unit for exactly this). For 30 LED/m (9 W/m): 45 W, so 5 V 10 A with margin. Cheap 5 V supplies labeled 10 A often deliver less; buy 25% up if the label is optimistic.
Why does the far end of my LED strip look dimmer or pink?
Voltage drop along the strip's thin copper. On 5 V strips this is pronounced: at full white the far end can fall below 4 V and the colors degrade. Fix with power injection: connect the supply's 5 V and GND into the strip every ~5 m (and at both ends for shorter runs at high brightness). 12 V and 24 V strips tolerate longer runs because the same wattage is lower current.
Can I power the strip from the ESP32's 5 V pin?
Only a tiny strip: a few LEDs at low current. The dev board's regulator and USB feed can't supply an amp-class strip, and the 5 V pin is directly connected to USB power, so a big draw browns out the whole board or kills the USB port. Strips get their own supply; the ESP32 connects to it only through a common ground and the data pin.
Do I need a level shifter for a 5 V LED strip with an ESP32?
It works without one most of the time — 3.3 V is inside the typical 0.7 × VDD (3.5 V) hold-high threshold only marginally. Short data wires and few pixels: fine. Long wire, many pixels, or glitchy first pixel: add a level shifter (74HCT125/74AHCT1G125 is the classic ESP32 upgrade) or power the strip at 4.3-4.5 V and keep the 3.3 V signal. Also put a 300-500 Ω resistor in series with the data line near the first LED.
Should I fuse a big LED strip?
If the supply is 5 V and the current is 10 A+, yes — an inline fuse on the +V line rated at the supply's ampacity (or just above the intended load) turns a shorted strip from a fire story into a fuse replacement. It costs a dollar and protects a $30 supply and your desk.

More guides

ESP32 AI Hardware Projects

The AI hardware builds everyone is making: voice assistants, desktop AI boxes, smart displays and AI toys — with the parts list, the wiring, and what each one actually teaches.

How Many LEDs Can an ESP32 Drive?

The honest answer: data pins drive unlimited addressable LEDs, GPIO pins safely drive one 10 mA indicator — here's the wiring that makes big strips work.

More Electronics calculators

Battery Life Calculator

Battery runtime for microcontroller projects: enter capacity, active current, duty cycle and sleep current to get real-world battery life in hours and days — the way it actually behaves on an ESP32-class board.

LED Resistor Calculator

Series resistor for one or more LEDs: enter supply, forward voltage and target current to get the exact resistance, the nearest E24 value to buy, actual current and the power rating you need.

Voltage Divider Calculator

Two-resistor voltage divider: output voltage, divider current and dissipation — plus the R2 value that hits a target voltage, and the ESP32 ADC limits that decide whether your reading will actually be stable.

PCB Trace Width Calculator

IPC-2221 trace width for your current, temperature rise and copper weight — external or internal layer — plus resistance and voltage drop when you enter the trace length.