Common headers

Raspberry Pi · 40-pin GPIO pinout

Common 40-pin GPIO · B+ and later / Zero

Open in the interactive atlas →See the pin map, choose functions and save a wiring plan.Türkçe

Shared physical connections for B+, A+, Pi 2/3/4/5, the Zero family and 400/500. Some Zero models have an unpopulated header. Excludes 26-pin boards and Compute Modules. Alternate functions depend on the processor; this profile shows GPIO, power and ground only. Select the Pi 3 Model B+, Pi 4, Pi 5, Zero W, Zero 2 W or Pi 500 profile for its alternate functions.

At a glance

Platform / manufacturer
Raspberry Pi
Type
Common headers
MCU
Common GPIO
Physical contacts
40
GPIO
28 (2 reserved)
I/O voltage
3.3 V I/O
First production / release date
Unverified for this exact model/revision [a]
MCU / processor core
Common header; no single processor model [a]
Clock speed / maximum
Depends on selected board [a]
Internal RAM / system RAM
Depends on selected board [a]
Program Flash / storage
Depends on selected board [a]
Power and logic level
5 V and 3.3 V power pins; GPIO: 3.3 V [a]
Pin sources checked
2026-11-15
Technical details reviewed
2026-11-14

Cautions for this board

All pins (40)

Raspberry Pi · 40-pin GPIO: every pin in physical order with its type, functions and warnings
PhysicalPin nameTypeFunctionsNotes and warningsSource
013V3Power——[2]
025VPower——[2]
03GPIO2General-purpose I/O—

This pin has a fixed 1.8 kΩ on-board pull-up resistor to 3.3 V; it is not software-configurable. Source: [1]

[2] [1]
045VPower——[2]
05GPIO3General-purpose I/O—

This pin has a fixed 1.8 kΩ on-board pull-up resistor to 3.3 V; it is not software-configurable. Source: [1]

[2] [1]
06GNDGround——[2]
07GPIO4General-purpose I/O——[2]
08GPIO14General-purpose I/O——[2]
09GNDGround——[2]
10GPIO15General-purpose I/O——[2]
11GPIO17General-purpose I/O——[2]
12GPIO18General-purpose I/O——[2]
13GPIO27General-purpose I/O——[2]
14GNDGround——[2]
15GPIO22General-purpose I/O——[2]
16GPIO23General-purpose I/O——[2]
173V3Power——[2]
18GPIO24General-purpose I/O——[2]
19GPIO10General-purpose I/O——[2]
20GNDGround——[2]
21GPIO9General-purpose I/O——[2]
22GPIO25General-purpose I/O——[2]
23GPIO11General-purpose I/O——[2]
24GPIO8General-purpose I/O——[2]
25GNDGround——[2]
26GPIO7General-purpose I/O——[2]
27GPIO0General-purpose I/O—

Reserved for HAT EEPROM

Reserved for the HAT identification EEPROM; do not plan it as a general project GPIO.

[2]
28GPIO1General-purpose I/O—

Reserved for HAT EEPROM

Reserved for the HAT identification EEPROM; do not plan it as a general project GPIO.

[2]
29GPIO5General-purpose I/O——[2]
30GNDGround——[2]
31GPIO6General-purpose I/O——[2]
32GPIO12General-purpose I/O——[2]
33GPIO13General-purpose I/O——[2]
34GNDGround——[2]
35GPIO19General-purpose I/O——[2]
36GPIO16General-purpose I/O——[2]
37GPIO26General-purpose I/O——[2]
38GPIO20General-purpose I/O——[2]
39GNDGround——[2]
40GPIO21General-purpose I/O——[2]

Model-specific features and connection notes

Sources

Pin and warning references

  1. Raspberry Pi GPIO documentationGPIO pads and voltage · 3.3 V only warning, fixed GP2/GP3 pull-ups, per-pin and total current
  2. Raspberry Pi GPIO documentationPin names, types, and typical functions · all 40 header rows

Technical sources (1)

  1. Raspberry Pi GPIO documentationManufacturer · Locked pin-source document; see sources/manifest.json for revision and SHA-256

Locked source documents

Pin reference · Datasheet