All articles

    Arduino Pin Limits: the Permitted Current and When You Need a Transistor

    How many milliamps you can draw from an Arduino Uno pin, the chip's total limit and how it's split across groups of pins, how the voltage drops as you draw current, the limits of the 5V, 3.3V and Vin pins, analogue pins and incoming signals, the ESP32's limits, mistakes that burn out the board such as connecting a motor directly or excess voltage on the pins, and how to tell if a pin has failed.

    Updated 6 min read

    The Arduino is patient, but it has limits. And most boards that burn out in first projects burn out for the same reasons: too much current from a pin, or voltage in the wrong place. Learn these limits once, and you'll save yourself a lot of boards.

    Pin current (Arduino Uno / ATmega328P)

    20 mA is comfortable for a pin, 40 is the limit to stay away from, and 200 for the whole chip
    20 mA is comfortable for a pin, 40 is the limit to stay away from, and 200 for the whole chip
    • Comfortable per pin: about 20 mA.
    • The absolute maximum: 40 mA, and that's the damage limit, not the operating one. Don't run at it.
    • The total of all pins through the chip's supply pins: about 200 mA.

    And it's not just the overall total: the pins are split into groups (ports), and each group has a limit too (about 100–150 mA in the datasheet). So 8 LEDs of 20 mA each on the same group (such as pins 0–7) can exceed the limit even if the total is under 200.

    The voltage drops with current

    A pin isn't an ideal source: it has a small internal resistance (about 25 Ω). So when you draw current from it:

    CurrentApproximate HIGH pin voltage
    0–5 mAAbout 4.9 V
    20 mAAbout 4.5 V
    40 mAAbout 4 V, and the chip heats up

    If you draw a large current from the pin, the voltage drops, which can mean the thing reading it doesn't see it as HIGH. It also means the chip burns the difference as heat inside it.

    What is that enough for?

    • ✅ An LED with a resistor (5–15 mA). See the LED resistor.
    • ✅ Signals to modules and chips.
    • ❌ A relay (70 mA or more, and a coil too).
    • ❌ A motor, a magnetic buzzer or an LED strip.

    For these, use a transistor, a MOSFET or a driver.

    A quick example: a 5 V relay whose coil draws 70 mA. A 2N2222 transistor with a 1 k base resistor: the pin supplies only about 4 mA, and the transistor carries the 70. And don't forget a diode across the coil. Or use a ready-made relay module that includes these.

    The power pins

    PinNotes
    5VFrom USB it passes through a fuse (about 500 mA). And from Vin it comes from the regulator on the board, which is limited by heat
    3.3VVery limited (about 50 mA on the Uno). Not enough for an ESP8266 or an nRF24 with an amplifier, for example
    Vin7 to 12 V recommended. The higher the voltage, the hotter the regulator gets

    An example: Vin at 12 V with the board and modules drawing 300 mA from the 5V → the regulator burns (12 − 5) × 0.3 ≈ 2.1 W, which is a lot for a small regulator with no cooling. See the heatsink.

    The board itself draws about 40–50 mA on its own (the chip, the USB chip and the LEDs). So what's left for modules is less than you'd imagine. All the details are in powering the Arduino.

    Incoming signals

    • The voltage on any pin must stay between 0 and 5 V (or less than half a volt beyond them). Anything outside that sends current through the internal protection diodes, which is only allowed for a very small current (about 1 mA).
    • Don't feed a signal into a pin while the Arduino is off. The signal will power the chip through the protection diodes, and it may half-run or be damaged.
    • A floating pin (INPUT with nothing connected) reads randomly. Use INPUT_PULLUP or a resistor. See pull-up and pull-down.
    • Analogue: the maximum voltage on A0–A5 is the AREF voltage (5 V by default). To measure a higher voltage, use a voltage divider.

    Mistakes that burn out the board

    1. A motor or relay directly on the pin.
    2. A voltage above 5 V on any pin (for example a 12 V signal from an industrial sensor). Use a voltage divider or an optocoupler.
    3. An OUTPUT HIGH pin connected directly to ground (a short), or two OUTPUT pins connected together, one HIGH and the other LOW.
    4. Reverse-polarity power on Vin or 5V. See reverse polarity protection.
    5. Large loads on the 5V pin while running from USB.

    A tip while experimenting: put a 220–330 Ω resistor in series with any pin you're testing something uncertain on. If a short happens, the current will only be about 15–20 mA, and the pin will survive.

    Has it burnt out or not?

    • Write a simple program that sets the pin HIGH with nothing connected to it, and measure with the multimeter: it should be close to 5 V. Then LOW: it should be close to zero.
    • If the reading is in between (such as 2 V) or the chip gets hot with nothing connected, the pin (or the chip) has failed.
    • Sometimes only the pin fails and the rest still work, so move to another pin. And if the whole chip has failed on the Uno, the DIP ATmega328P can be replaced (you need a chip with a bootloader on it).

    Advice

    Treat the Arduino's pins as signals, not a power source. Anything that moves, heats up or lights brightly should be run from a separate source with a transistor or driver, and a shared ground.

    And if you're using an ESP32, the limits are different, and the pins are 3.3 V and don't tolerate 5. Check the datasheet.

    The ESP32 in numbers

    • The pins are 3.3 V, and it's best not to draw more than 10–12 mA from a pin.
    • It isn't officially 5 V tolerant on its pins. Use a level shifter or a divider.
    • Some pins are input only (GPIO 34–39), with no internal pull-up.
    • The strapping pins (such as 0, 2, 12 and 15) affect booting, so don't connect anything that pulls them to the wrong level at power-up.

    FAQ

    Can I connect two pins in parallel to get more current? Technically possible, but not a good idea: the two pins don't switch at exactly the same instant, and the group's total limit still applies. Just use a transistor.

    Does the Arduino Mega have the same limits as the Uno? A single pin has the same limits (20 comfortable and 40 maximum), but the chip is larger with more groups, so the total limit is higher. Again, refer to the datasheet (ATmega2560).

    Circuits Nerd
    © 2026 Circuits Nerd. All rights reserved.