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.
| Pin | Name | Function |
|---|---|---|
| 1 | 3V3 | 3.3 V power, ~50 mA budget |
| 2 | 5V | 5 V power, from the supply |
| 3 | GPIO2 | I²C SDA (fixed 1.8 kΩ pull-up on board) |
| 4 | 5V | 5 V power |
| 5 | GPIO3 | I²C SCL (fixed 1.8 kΩ pull-up on board) |
| 6 | GND | Ground |
| 8 | GPIO14 | UART TXD |
| 10 | GPIO15 | UART RXD |
| 19 | GPIO10 | SPI0 MOSI |
| 21 | GPIO9 | SPI0 MISO |
| 23 | GPIO11 | SPI0 SCLK |
| 24 | GPIO8 | SPI0 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 →