PINOUT · TOOL

Raspberry Pi GPIO Pinout

Complete 40-pin layout — physical pin number, BCM number, and I²C/SPI/UART at a glance.

Basic physical No backend · 100% client-side

What it does: Look up what each of the Raspberry Pi 40-pin header pins is (power/ground/GPIO/bus).

When to use it: When wiring sensors, attaching HATs, or matching pins while writing GPIO code.

Disclaimer: This result is a reference estimate. For actual production, refer to the device datasheet / local regulations as authoritative.

⚠ 3.3V warning: The GPIO signal pins on every model are 3.3V logic and not 5V tolerant. Feeding 5V directly will damage the chip; use level shifting to interface a 5V signal.
5V 3V3 GND GPIO
3V3 1
2 5V
SDA1 · I²C GPIO2 3
4 5V
SCL1 · I²C GPIO3 5
6 GND
GPCLK0 GPIO4 7
8 GPIO14 TXD · UART
GND 9
10 GPIO15 RXD · UART
GPIO17 11
12 GPIO18 PCM_CLK · PWM0
GPIO27 13
14 GND
GPIO22 15
16 GPIO23
3V3 17
18 GPIO24
MOSI · SPI0 GPIO10 19
20 GND
MISO · SPI0 GPIO9 21
22 GPIO25
SCLK · SPI0 GPIO11 23
24 GPIO8 CE0 · SPI0
GND 25
26 GPIO7 CE1 · SPI0
ID_SD · EEPROM GPIO0 27
28 GPIO1 ID_SC · EEPROM
GPIO5 29
30 GND
GPIO6 31
32 GPIO12 PWM0
PWM1 GPIO13 33
34 GND
PCM_FS · MISO1 GPIO19 35
36 GPIO16
GPIO26 37
38 GPIO20 PCM_DIN
GND 39
40 GPIO21 PCM_DOUT

MEANS The left and right columns are the actual odd/even rows of the physical header; use GPIOxx (BCM) in code, and count physical pin numbers when wiring.

Next

You might also need

How to

How to read the Raspberry Pi GPIO header

The left and right columns map to the actual header.

  1. 01

    Match the physical header

    The two columns below are the actual 2×20 header: odd pins on the left, even pins on the right, matching the header on the board one for one.

  2. 02

    Read the BCM number

    When programming (Python gpiozero / RPi.GPIO BCM mode) you use the BCM number GPIOxx, not the physical pin number.

  3. 03

    Identify power and ground

    Red=5V, orange=3V3, grey=GND. These are power/ground — do not use them as signal pins.

Reference

Common function-pin quick reference

The most frequently wired bus pins (BCM number · physical pin).

FunctionBCMPhysical pin
I²C SDAGPIO23
I²C SCLGPIO35
UART TXDGPIO148
UART RXDGPIO1510
SPI MOSIGPIO1019
SPI MISOGPIO921
SPI SCLKGPIO1123
SPI CE0GPIO824

Official Raspberry Pi GPIO documentation + pinout.xyz. Applies to all 40-pin models.

FAQ

Common questions, answered in 3 minutes

Is the GPIO 5V tolerant?

No. The GPIO signal pins on every Raspberry Pi model are 3.3V logic and are not 5V tolerant — feeding 5V directly into a GPIO will permanently damage the chip. To interface a 5V signal, use level shifting or a divider.

How do I tell the physical pin number from the GPIO number?

The physical pin number is counted 1–40 along the header; the BCM number (GPIOxx) is the chip-internal numbering you use in code. This table gives both — don't mix them up.

Are all Raspberry Pi pinouts the same?

The 40-pin models (Pi 2/3/4/5, Zero/Zero 2, A+/B+) are identical. Only the very old 26-pin Pi 1 (rev1/rev2) has a different layout.

How much current can the 5V and 3V3 pins supply?

It depends on the power supply's headroom and is not unlimited. The 3V3 rail has limited capacity (a few hundred mA), so power large loads separately rather than drawing hard from the header.

Data Provenance

Standards and sources referenced by this tool

Item Value / Formula Source
40-pin GPIO layout BCM numbering, 2×20 header Official Raspberry Pi GPIO documentation / pinout.xyz
GPIO logic level 3.3 V (not 5V tolerant) BCM SoC datasheet

Layout from the official documentation, no external API. GPIO is 3.3V logic — never feed in 5V.

⚡ Powered by Circflow