Raspberry Pi 5 Pinout

Raspberry Pi 5 pinout for the physical pin numbering and RP1 peripheral functions on the 40-pin header.

Main pinout

Physical pin numbers and RP1 peripheral functions on the 40-pin expansion header of Raspberry Pi 5.

100%Drag to pan · Ctrl/⌘ + wheel to zoomSwipe up/down to scroll the page · Swipe sideways to pan · Use two fingers to pan and zoom
Show alternate functions

Pin index

Pin index

Quickly scan every header pin, port name, supported function and usage note.

40 visible
PinMCU pinTypesNotes
Power3V3 supply rail.
Power5V supply rail.
GPIOSPIUARTI2CJ8 physical pin 3, RP1 GPIO2.
Power5V supply rail.
GPIOSPIUARTI2CJ8 physical pin 5, RP1 GPIO3.
GNDGround return.
GPIOSPIUARTI2CJ8 physical pin 7, RP1 GPIO4.
GPIOSPIUARTI2CPWMJ8 physical pin 8, RP1 GPIO14.
GNDGround return.
GPIOSPIUARTI2CPWMJ8 physical pin 10, RP1 GPIO15.
GPIOSPIUARTJ8 physical pin 11, RP1 GPIO17.
GPIOSPII2SPWMJ8 physical pin 12, RP1 GPIO18.
GPIOSPII2SJ8 physical pin 13, RP1 GPIO27.
GNDGround return.
GPIOI2CI2SJ8 physical pin 15, RP1 GPIO22.
GPIOI2CI2SJ8 physical pin 16, RP1 GPIO23.
Power3V3 supply rail.
GPIOSPII2SJ8 physical pin 18, RP1 GPIO24.
GPIOSPIUARTI2CJ8 physical pin 19, RP1 GPIO10.
GNDGround return.
GPIOSPIUARTI2CJ8 physical pin 21, RP1 GPIO9.
GPIOSPII2SJ8 physical pin 22, RP1 GPIO25.
GPIOSPIUARTI2CJ8 physical pin 23, RP1 GPIO11.
GPIOSPIUARTI2CJ8 physical pin 24, RP1 GPIO8.
GNDGround return.
GPIOSPIUARTI2CJ8 physical pin 26, RP1 GPIO7.
GPIOSPIUARTI2CJ8 physical pin 27, RP1 GPIO0.
GPIOSPIUARTI2CJ8 physical pin 28, RP1 GPIO1.
GPIOSPIUARTI2CJ8 physical pin 29, RP1 GPIO5.
GNDGround return.
GPIOSPIUARTI2CJ8 physical pin 31, RP1 GPIO6.
GPIOSPIUARTI2CPWMJ8 physical pin 32, RP1 GPIO12.
GPIOSPIUARTI2CPWMJ8 physical pin 33, RP1 GPIO13.
GNDGround return.
GPIOSPII2SPWMJ8 physical pin 35, RP1 GPIO19.
GPIOSPIUARTJ8 physical pin 36, RP1 GPIO16.
GPIOSPII2SJ8 physical pin 37, RP1 GPIO26.
GPIOSPII2SJ8 physical pin 38, RP1 GPIO20.
GNDGround return.
GPIOSPII2SJ8 physical pin 40, RP1 GPIO21.

Specifications

I/O controller
Raspberry Pi RP1
Header
40 pins, 3.3 V logic

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
RP1I/O controllerRaspberry PiGPIO function selection, Table 4.Datasheet
Raspberry Pi 5GPIO headerRaspberry Pi40-pin physical numbering and HAT identification lines.Datasheet

Board notes

Header orientation
USB and Ethernet face down in the photograph. Pin 1 is the inner top contact, adjacent to pin 2 on the outer row.
Alternate functions
The RP1 selector a0–a8 for each function is listed in the pin details. Pin 27 and pin 28 are reserved for HAT identification.