Stax

Raspberry Pi GPIO Pinout

Complete Raspberry Pi 40-pin GPIO reference.

5V Power3.3V PowerGPIOGNDSpecial
Bus quick reference
InterfaceBCM PinsPhysical
UARTBCM 14 (TX), BCM 15 (RX)Phys 8, 10
I2C1BCM 2 (SDA), BCM 3 (SCL)Phys 3, 5
SPI0BCM 10 (MOSI), 9 (MISO), 11 (SCLK), 8 (CE0), 7 (CE1)Phys 19,21,23,24,26
SPI1BCM 20 (MOSI), 19 (MISO), 21 (SCLK), 18/17/16 (CE)Phys 38,35,40,12,11,36
PWMBCM 12 (PWM0), BCM 13 (PWM1), BCM 18 (alt)Phys 32,33,12
1-WireBCM 4 (default)Phys 7
Raspberry Pi 40-pin GPIO header (BCM numbering). All GPIO are 3.3V logic — NOT 5V tolerant.

Raspberry Pi GPIO reference with dual views

Switch between grid view for quick lookup and physical header view to visualize the actual pin layout. All BCM numbers, physical positions, and alternate functions included.

Frequently asked questions

What is BCM numbering?
BCM (Broadcom SoC channel) numbering refers to the GPIO pin numbers on the Broadcom BCM2835/2836/2837 chip, used in Python RPi.GPIO and pigpio. Physical pin numbering counts pin positions on the header starting from pin 1 (near SD card).
Are Raspberry Pi GPIO pins 5V tolerant?
No. All Raspberry Pi GPIO pins operate at 3.3V logic and are NOT 5V tolerant. Connecting a 5V signal directly to a GPIO pin can permanently damage the BCM chip. Use a level shifter when interfacing with 5V devices.
How many GPIO pins does the Raspberry Pi have?
The 40-pin header has 26 usable GPIO pins (BCM numbering). The rest are 5V power (2 pins), 3.3V power (2 pins), and ground (8 pins).

Related tools