STM32 GPIO

STM32 GPIO Current Guide

Calculate safe STM32 GPIO current for LEDs, pull-ups, external loads and total port current limits.

GPIO pins are not power drivers

STM32 GPIO pins can drive small loads, but each pin and port has current limits. Exceeding them can cause voltage drop, heating or damage.

LED resistor calculation

For LEDs, current is set by GPIO voltage, LED forward voltage and series resistor. Use conservative current values for reliability.

Total port current

Multiple pins switching current at the same time can exceed port limits even if each pin looks safe individually.

When to use a driver

Use a transistor, MOSFET or driver IC for motors, relays, LED strips, high-current LEDs or external loads.

Use the related STM32 calculator

Try real values with the related STM32 calculator.

Open calculator

Frequently asked questions

Can I use this guide for production hardware?

Use it for estimates and planning. Verify final hardware with the exact datasheet, reference manual and real measurements.

Why do STM32 current numbers vary?

Current depends on STM32 family, voltage, clock speed, peripherals, firmware and board-level components.