Skip to main content

Raspberry Pi GPIO Pinout

Raspberry Pi 40-pin header · 40-pin 2.54 mm header

The 40-pin header is identical across Pi 2, 3, 4, 5 and Zero. Physical pin numbers and BCM GPIO numbers are different schemes — mixing them up is the usual cause of a circuit that does nothing.

PinNameFunction
13V33.3 V power, ~50 mA budget
25V5 V power, from the supply
3GPIO2I²C SDA (fixed 1.8 kΩ pull-up on board)
45V5 V power
5GPIO3I²C SCL (fixed 1.8 kΩ pull-up on board)
6GNDGround
8GPIO14UART TXD
10GPIO15UART RXD
19GPIO10SPI0 MOSI
21GPIO9SPI0 MISO
23GPIO11SPI0 SCLK
24GPIO8SPI0 CE0

Things that catch people out

  • GPIO is 3.3 V only. 5 V on any GPIO pin will damage the SoC — there is no tolerance.
  • Pins 3 and 5 already carry 1.8 kΩ pull-ups; do not add your own.
  • Ground is on pins 6, 9, 14, 20, 25, 30, 34 and 39.

Need this part on a board? PCBEditor generates the schematic and PCB from a prompt.

Open the editor →

Other pinouts