Wire Gauge & Current Ratings for Raspberry Pi Projects

Choose the right wire gauge for Raspberry Pi power, GPIO, and sensor connections. Covers AWG sizes, current limits, and voltage drop calculations.

Andreas · April 16, 2026 · 7 min read

Introduction

Wire gauge matters more than most Raspberry Pi builders realize. Use wire that's too thin for the current, and you get voltage drop — the Pi browns out, reboots randomly, or throttles under load. Use wire that's too thick and it doesn't fit the connector or is impossible to route neatly. This guide covers the practical wire sizes you'll encounter in Pi projects.

Quick reference: common Raspberry Pi wiring scenarios

Connection Current Recommended AWG Notes
5V USB-C power cable 3A 20 AWG Minimum for Pi 5
5V power from PSU to Pi 3–5A 18–20 AWG Keep cable short
GPIO digital signal <20 mA 22–26 AWG Dupont jumpers are 22 AWG
LED from GPIO 10–20 mA 22–28 AWG Any jumper wire works
I2C/SPI bus <10 mA 22–26 AWG Keep under 1m
12V fan power 0.1–0.3A 22–24 AWG Standard fan wires are 26 AWG
Relay switching 5A load 5A 16–18 AWG Not through GPIO — use a relay module
Solar panel to charge controller 5–10A 12–14 AWG Length matters a lot
Battery to Pi (off-grid) 3–5A 16–18 AWG Minimize length

The wire gauge reference has the full AWG table from 0 to 40 with diameter, resistance per meter, and current ratings.

Understanding AWG

American Wire Gauge (AWG) is an inverted scale — lower numbers mean thicker wire:

AWG Diameter (mm) Resistance (Ω/m) Max current (chassis)
14 1.63 0.0083 15A
16 1.29 0.013 10A
18 1.02 0.021 7A
20 0.81 0.033 5A
22 0.64 0.053 3A
24 0.51 0.084 2.1A
26 0.40 0.134 1.3A
28 0.32 0.213 0.83A
30 0.25 0.339 0.52A

The "chassis" current rating assumes open air. For bundled or enclosed wires, derate by 50%.

Voltage drop: the hidden killer

A Raspberry Pi 5 draws up to 5V × 3A = 15W. The Pi's power manager needs at least 4.63V (it warns below 4.63V and throttles below 4.5V).

Voltage drop = current × resistance = I × (ρ × L / A)

Or simply: V_drop = I × R_per_meter × length × 2 (×2 because current flows through both the positive and ground wires)

Example: 1m USB cable to Pi 5

If the cable uses 24 AWG wire (common in cheap cables):

  • R per meter: 0.084 Ω
  • Total resistance (1m, both wires): 0.084 × 1 × 2 = 0.168 Ω
  • Voltage drop at 3A: 3 × 0.168 = 0.504V
  • Voltage at Pi: 5.0 − 0.504 = 4.496V — under the 4.5V throttle threshold!

With 20 AWG wire:

  • R per meter: 0.033 Ω
  • Total resistance: 0.033 × 1 × 2 = 0.066 Ω
  • Voltage drop at 3A: 3 × 0.066 = 0.198V
  • Voltage at Pi: 5.0 − 0.198 = 4.802V — perfectly fine.

This is why the official Raspberry Pi USB-C cables use 20 AWG or thicker. Cheap phone charger cables with 24–28 AWG wire cause undervoltage.

Use the power calculator to check power loss in the cable itself.

GPIO wiring best practices

Signal wires (22–26 AWG)

Standard Dupont/jumper wires are 22 AWG — adequate for any GPIO signal. For breadboard prototyping, solid-core 22 AWG is easiest to insert. For permanent installations, stranded wire is more flexible and resists fatigue from vibration.

Keep signal runs short

Long wires act as antennas, picking up noise. For I2C and SPI:

  • Under 30 cm: no issues with standard pull-ups
  • 30 cm – 1 m: may need stronger pull-ups (2.2 kΩ instead of 4.7 kΩ)
  • Over 1 m: consider a bus extender or differential signaling (RS-485)

GPIO current limits

A single GPIO pin can source 16 mA maximum. All GPIO pins combined should not exceed 50 mA total. For LEDs, the built-in current is enough with a proper resistor. For anything else (motors, relays, solenoids), use a transistor or MOSFET switched by the GPIO.

Off-grid and solar power wiring

For solar-powered Pi setups, wire gauge between the panel, charge controller, battery, and Pi matters a lot because:

  1. Distances are longer — panels may be meters away from the controller
  2. Currents are higher — a 50W panel at 12V produces ~4A
  3. Every volt lost is energy wasted — voltage drop in the wire reduces charging efficiency

Solar panel to charge controller

Panel wattage Approx. current at 12V Cable length Recommended AWG
20W 1.7A 3m 18 AWG
50W 4.2A 3m 14 AWG
100W 8.3A 5m 12 AWG

Battery to 5V converter to Pi

Keep this cable as short as possible (under 30 cm). Use 18 AWG minimum. A 3A draw at 5V through a thin, long cable is the most common cause of "random Pi reboots" in off-grid setups.

Connector current ratings

Wire gauge only matters up to the weakest link — often the connector:

Connector Typical rating
Dupont/jumper pin 3A
JST-XH (2.5mm) 3A
JST-PH (2.0mm) 2A
Screw terminal (5mm) 10–20A
XT30 30A
XT60 60A
Anderson Powerpole 15–45A
USB-C (with e-marker) 5A

For power connections drawing more than 3A, use screw terminals or XT-series connectors rather than Dupont pins.

Practical tips

  1. Color code your wires. Red for positive, black for ground, other colors for signals. It prevents mistakes when debugging.
  2. Tin stranded wire ends before inserting into screw terminals. Untinned stranded wire can splay and cause intermittent connections.
  3. Use ferrules for screw terminal connections in permanent installations. They grip better than bare wire.
  4. Don't splice different gauges without a proper connector. Solder joints between mismatched wires are mechanically weak.
  5. Bundle signal wires away from power wires. Parallel power and signal runs can couple noise into sensitive signals.

Summary

For most Raspberry Pi projects: 22 AWG for signals, 20 AWG for 5V power, 18 AWG for battery/solar connections. When in doubt, go one size thicker — the cost is negligible and the reliability improvement is real.

Check the wire gauge reference for the full AWG table, and the homelab power calculator for total power budgeting.

Comments