PCB TOOLS / PINOUT & INTERFACE REFERENCE

Raspberry Pi 26 / 40-Pin GPIO and Legacy Revisions

Look up physical pins, BCM GPIO, I²C/SPI/UART functions and early Rev1/Rev2 differences. The historical source covers A/B through Pi 4; Pi 4 extra alternate functions are not a Pi 5 mapping.

Quick answer

Physical pins 3 and 5 on Rev2 and the later listed boards are normally GPIO2/SDA1 and GPIO3/SCL1; early Rev1 uses GPIO0/SDA0 and GPIO1/SCL0. Pins 27/28 of a 40-pin header are ID_SD/ID_SC for HAT identification. GPIO signals are 3.3 V and are not 5 V tolerant.

Scope

Retains the source early 26-pin P1, 40-pin and Pi4 extra columns. Pi4 extra describes BCM2711 alternate functions, not Pi 5/RP1. Multiple functions on one pin need software selection and cannot all be arbitrarily enabled together. The specifications are a historical snapshot, not a current product/RAM catalogue or supply recommendation.

Reading example

For a 3.3 V I²C sensor on a confirmed Rev2 or later listed board, connect SDA to physical pin 3 (BCM GPIO2), SCL to physical pin 5 (BCM GPIO3) and share ground. GPIO2 in software does not mean physical pin 2, which is a 5 V supply pin.

Interfaces, pinouts and technical reference

Original Raspberry Pi A/B P1 · 26 pins signal-numbering diagram
Original Raspberry Pi A/B P1 · 26 pins functional numbering map; verify actual pin 1 and view. Not a mechanical view.
Original Raspberry Pi 40-pin GPIO signal-numbering diagram
Original Raspberry Pi 40-pin GPIO functional numbering map; verify actual pin 1 and view. Not a mechanical view.
Table 1
Row1 SignalPinPinRow2 Signal
Pi Rev1Pi Rev2
Pi+, Pi0, Pi2, Pi3, Pi4
Pi4 extraPi Rev1Pi Rev2
Pi+, Pi0, Pi2, Pi3, Pi4
Pi4 extra
3.3 V125 V
GPIO 0GPIO 2SPI3 MOSI345 V
I²C0 SDAI²C1 SDAI²C3 SDA
GPIO 1GPIO 3SPI3 SCLK56Ground
I²C0 SCLI²C1 SCLI²C3 SCL
GPIO 4SPI4 CE078GPIO 14SPI5 MOSI
UART3 TX
I²C3 SDAUART0 TXUART1 TX
Ground910GPIO 15SPI5 SCLK
UART0 RXUART1 RX
GPIO 171112GPIO 18
SPI1 CE1SPI1 CE0SPI6 CE0
GPIO 21GPIO 27SPI6 CE11314Ground
GPIO 22I²C6 SDA1516GPIO 23I²C6 SCL
3.3 V1718GPIO 24SPI3 CE1
GPIO 101920Ground
SPI0 MOSII²C5 SDA
GPIO 9UART4 RX2122GPIO 25SPI4 CE1
SPI0 MISOI²C4 SCL
GPIO 112324GPIO 8UART4 TX
SPI0 SCLKI²C5 SCLSPI0 CE0I²C4 SDA
Ground2526GPIO 7I²C4 SCL
SPI0 CE1SPI4 SCLK
ID_SDLegacy record: “IS_SD”. Source IS_SD is a typo; the official HAT identification signal on physical pin 27 is ID_SD.SPI3 CE02728ID_SCLegacy record: “IS_SC”. Source IS_SC is a typo; the official HAT identification signal on physical pin 28 is ID_SC.SPI3 MISO
GPIO 0UART2 TXGPIO 1UART2 RX
I²C0 SDAI²C6 SDAI²C0 SCLI²C6 SCL
GPIO 5SPI4 MISO2930Ground
UART3 RX
I²C3 SCL
GPIO 6SPI4 MOSI3132GPIO 12SPI5 CE0
I²C4 SDAI²C5 SDA
UART5 TX
GPIO 13SPI5 MISO3334Ground
I²C5 SCL
UART5 RX
GPIO 193536GPIO 16SPI1 CE2
SPI1 MISOSPI6 MISO
GPIO 26SPI5 CE13738GPIO 20SPI6 MOSI
SPI1 MOSI
Ground3940GPIO 21SPI6 SCLK
SPI1 SCLK

Raspberry Pi Technical Specifications

Table 2 · Raspberry Pi Technical Specifications
Pi APi A+Pi BPi B+Pi2 BPi3 BPi3 B+Pi4 BPi 0Pi 0 W
SoCBroadcom BCM2835Broadcom BCM2836Broadcom BCM2837Broadcom BCM2837B0Broadcom BCM2711Broadcom BCM2835
CPU700MHz ARM1176JZF-S900MHz 4x ARM Cortex-A71.2GHz 4x ARM Cortex-A531.4GHz 4x ARM Cortex-A531.5GHz 4x ARM Cortex-A721GHz ARM1176JZF-S
GPUBroadcom VideoCore IV @ 250 MHz, OpenGL ES 2.0, 1080p30 H.264 high-profile decoder and encoder (BCM2837: 1080p60)Broadcom VideoCore VI @ 500 MHz, OpenGL ES 3.x, HEVC 4K 60 fpsBroadcom VideoCore IV @ 250 MHz, OpenGL ES 2.0, 1080p30 H.264 high-profile decoder and encoder
RAM256 MB256/512 MB1 GB1/2/4 GB512 MB
USB212421 (micro)
USB3020
Video outputHDMI (rev 1.3)2x micro-HDMI (rev 2.0)Mini-HDMI
composite (RCA jack)composite (3.5mm jack)composite (RCA jack)composite (3.5mm jack)composite via GPIO
Audio outputHDMI, 3.5mm jackMini-HDMI, PWM on GPIO
StorageSD/MMC/SDIOmicroSDSD/MMC/SDIOmicroSD
Network-10/100 Ethernet10/100 Ethernet,
802.11n WiFi,
Bluetooth 4.1
10/100/1000 Ethernet,
802.11ac WiFi,
Bluetooth 4.2
10/100/1000 Ethernet,
802.11ac WiFi,
Bluetooth 5.0
-802.11n WiFi,
Bluetooth 4.1
Peripherals26 pin GPIO header40 pin GPIO header26 pin GPIO header40 pin GPIO header
Power ratings300mA (1.5W)200mA (1W)700mA (3.5W)200mA (1W) idle
350mA (1.75W) max
220mA (1.1W) idle
820mA (4.1 W) max
300mA (1.5W) idle
1.3A (6.5 W) max
450mA (2.25W) idle
1.1A (5.5 W) max
3 A (15W)100mA (0.5W) idle
350mA (1.75W) max
Size (mm)85.6 x 56.565 x 56.585.60 x 56.565 x 30
Legacy source notes and applicability

These notes retain the legacy record. For corrected facts and applicability, use this page’s quick answer, scope and visible table corrections.

Raspberry Pi A/B P1 header (GPIO)
Raspberry Pi A+/B+ and Raspberry Pi0/Pi2/Pi3/Pi4 header (GPIO)
Notes:
Voltage levels are 3.3V (NOT 5V tolerant). There is no over-voltage protection on the board.
The maximum permitted current draw from the 3.3 V pin is 50 mA.
The GPIO pins are unbuffered and unprotected.
Pin 3-5 (SDA/SCL) have 1.8 kΩ pulls up resistors on the board.
Pin 27-40 are only available on Raspberry Pi A+/B+, Raspberry Pi0, Pi2, Pi3 and Pi4.
Pin IS_SD-IS_SC are reserved for ID EEPROM.
Raspberry Pi Technical Specifications

Frequently asked questions

How do physical and BCM numbering differ?

Physical numbers describe header positions 1–26 or 1–40; BCM numbers identify SoC GPIO signals. Early revisions changed the GPIO at physical pin 3, so check both revision and numbering scheme.

Can Pi4 extra be used directly on Pi 5?

No. Similar header positions for common power/GPIO signals do not imply identical SoC alternate functions. Pi 5 has a different I/O architecture; use its official Pi 5/RP1 documentation and system configuration.

Why does one diagram show only 26 pins?

It represents the early A/B P1 header. A+/B+ and the later listed boards use 40 pins. Early Rev1 also differs at physical pins 3, 5 and 13.

Related tools and references

Sources and verification

Legacy baseline: the Electrodoc Pro 5.2 data package. Raw records are retained and checked factual corrections are shown explicitly.