Raspberry Pi 4 Model B Pinout

Raspberry Pi 4 Model B pinout for the 40-pin GPIO header and J2 control header.

Jump to pin index ↓

Main pinout

J8 40-pin HAT expansion header and J14 PoE connector on Raspberry Pi 4 Model B. J2 has its own control-header view.

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.

44 visible
PinMCU pinTypesNotes
Power3V3 supply rail.
Power5V supply rail.
GPIOSPII2CUARTBCM2711 GPIO2, header J8 pin 3.
Power5V supply rail.
GPIOSPII2CUARTBCM2711 GPIO3, header J8 pin 5.
GNDGround return.
GPIOSPII2CUARTBCM2711 GPIO4, header J8 pin 7.
GPIOSPIUARTBCM2711 GPIO14, header J8 pin 8.
GNDGround return.
GPIOSPIUARTBCM2711 GPIO15, header J8 pin 10.
GPIOSPIUARTBCM2711 GPIO17, header J8 pin 11.
GPIOSPIPWMBCM2711 GPIO18, header J8 pin 12.
GPIOSPIBCM2711 GPIO27, header J8 pin 13.
GNDGround return.
GPIOI2CBCM2711 GPIO22, header J8 pin 15.
GPIOI2CBCM2711 GPIO23, header J8 pin 16.
Power3V3 supply rail.
GPIOSPIBCM2711 GPIO24, header J8 pin 18.
GPIOSPII2CUARTBCM2711 GPIO10, header J8 pin 19.
GNDGround return.
GPIOSPII2CUARTBCM2711 GPIO9, header J8 pin 21.
GPIOSPIBCM2711 GPIO25, header J8 pin 22.
GPIOSPII2CUARTBCM2711 GPIO11, header J8 pin 23.
GPIOSPII2CUARTBCM2711 GPIO8, header J8 pin 24.
GNDGround return.
GPIOSPII2CUARTBCM2711 GPIO7, header J8 pin 26.
GPIOSPII2CUARTBCM2711 GPIO0, header J8 pin 27.
GPIOSPII2CUARTBCM2711 GPIO1, header J8 pin 28.
GPIOSPII2CUARTBCM2711 GPIO5, header J8 pin 29.
GNDGround return.
GPIOSPII2CUARTBCM2711 GPIO6, header J8 pin 31.
GPIOSPII2CUARTPWMBCM2711 GPIO12, header J8 pin 32.
GPIOSPII2CUARTPWMBCM2711 GPIO13, header J8 pin 33.
GNDGround return.
GPIOSPIPWMBCM2711 GPIO19, header J8 pin 35.
GPIOSPIUARTBCM2711 GPIO16, header J8 pin 36.
GPIOSPIBCM2711 GPIO26, header J8 pin 37.
GPIOSPIBCM2711 GPIO20, header J8 pin 38.
GNDGround return.
GPIOSPIBCM2711 GPIO21, header J8 pin 40.
PoEEthernet transformer centre tap routed to the PoE HAT connector.
PoEEthernet transformer centre tap routed to the PoE HAT connector.
PoEEthernet transformer centre tap routed to the PoE HAT connector.
PoEEthernet transformer centre tap routed to the PoE HAT connector.

Specifications

I/O
3.3 V GPIO · BCM numbering
Expansion
2 × 20 pins, 2.54 mm pitch

References

Datasheets

Manufacturer references and technical documentation.

ChipRoleManufacturerNotesLink
Raspberry Pi 4 Model BBoard datasheetRaspberry PiGPIO header numbering and alternate functions.Datasheet
Raspberry Pi 4 Model BSchematicRaspberry PiJ2 control, J8 HAT and J14 PoE nets.Datasheet
Raspberry Pi 4 Model BBCM2711 pin functionsRaspberry PiDriver ALT0–ALT5 table.Datasheet

Board notes

HAT EEPROM
J8 pins 27 and 28 are reserved for HAT identification.
Board orientation
The PoE header is adjacent to Ethernet. USB and Ethernet face the lower edge in this view.