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)
| Physical | Pin name | Type | Functions | Notes and warnings | Source |
|---|---|---|---|---|---|
| 01 | 3V3 | Power | — | — | [2] |
| 02 | 5V | Power | — | — | [2] |
| 03 | GPIO2 | General-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] |
| 04 | 5V | Power | — | — | [2] |
| 05 | GPIO3 | General-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] |
| 06 | GND | Ground | — | — | [2] |
| 07 | GPIO4 | General-purpose I/O | — | — | [2] |
| 08 | GPIO14 | General-purpose I/O | — | — | [2] |
| 09 | GND | Ground | — | — | [2] |
| 10 | GPIO15 | General-purpose I/O | — | — | [2] |
| 11 | GPIO17 | General-purpose I/O | — | — | [2] |
| 12 | GPIO18 | General-purpose I/O | — | — | [2] |
| 13 | GPIO27 | General-purpose I/O | — | — | [2] |
| 14 | GND | Ground | — | — | [2] |
| 15 | GPIO22 | General-purpose I/O | — | — | [2] |
| 16 | GPIO23 | General-purpose I/O | — | — | [2] |
| 17 | 3V3 | Power | — | — | [2] |
| 18 | GPIO24 | General-purpose I/O | — | — | [2] |
| 19 | GPIO10 | General-purpose I/O | — | — | [2] |
| 20 | GND | Ground | — | — | [2] |
| 21 | GPIO9 | General-purpose I/O | — | — | [2] |
| 22 | GPIO25 | General-purpose I/O | — | — | [2] |
| 23 | GPIO11 | General-purpose I/O | — | — | [2] |
| 24 | GPIO8 | General-purpose I/O | — | — | [2] |
| 25 | GND | Ground | — | — | [2] |
| 26 | GPIO7 | General-purpose I/O | — | — | [2] |
| 27 | GPIO0 | General-purpose I/O | — | Reserved for HAT EEPROM Reserved for the HAT identification EEPROM; do not plan it as a general project GPIO. | [2] |
| 28 | GPIO1 | General-purpose I/O | — | Reserved for HAT EEPROM Reserved for the HAT identification EEPROM; do not plan it as a general project GPIO. | [2] |
| 29 | GPIO5 | General-purpose I/O | — | — | [2] |
| 30 | GND | Ground | — | — | [2] |
| 31 | GPIO6 | General-purpose I/O | — | — | [2] |
| 32 | GPIO12 | General-purpose I/O | — | — | [2] |
| 33 | GPIO13 | General-purpose I/O | — | — | [2] |
| 34 | GND | Ground | — | — | [2] |
| 35 | GPIO19 | General-purpose I/O | — | — | [2] |
| 36 | GPIO16 | General-purpose I/O | — | — | [2] |
| 37 | GPIO26 | General-purpose I/O | — | — | [2] |
| 38 | GPIO20 | General-purpose I/O | — | — | [2] |
| 39 | GND | Ground | — | — | [2] |
| 40 | GPIO21 | General-purpose I/O | — | — | [2] |
Model-specific features and connection notes
- This profile covers common physical pins only. Open the Pi 3 Model B+, Pi 4, Pi 5, Zero W, Zero 2 W or Pi 500 profile for alternate functions. [a]
Sources
Pin and warning references
- Raspberry Pi GPIO documentationGPIO pads and voltage · 3.3 V only warning, fixed GP2/GP3 pull-ups, per-pin and total current
- Raspberry Pi GPIO documentationPin names, types, and typical functions · all 40 header rows
Technical sources (1)
- Raspberry Pi GPIO documentationManufacturer · Locked pin-source document; see sources/manifest.json for revision and SHA-256
Locked source documents
- Raspberry Pi GPIO documentation0fb416315f8f6c1949c0614989075d3e5805104b