Is there any difference in the GPIO layout between Raspberry Pi 2 B and 3 B? If yes, please provide the differences.


1 Answer 1


It basically depends on what aspect you are looking at.

The pins of all with 40pin headers (B+, Pi2, Pi3) are identical.

The functions which are allocated to the pins differ slightly. The Pi3 has a different UART assigned to the serial pins, and there is some difference in the 2nd I²C (which are normally reserved).

If you run gpio readall this will show current state. gpio SHOULD be installed, but was missing from some releases. It can be installed as part of wiringpi if missing.

  • All the pins should be the same numbers right? (BCM layout)
    – Human
    Feb 25, 2017 at 4:02
  • @human you can confirm that for yourself by running the gpio readall command millways mentioned Feb 25, 2017 at 4:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.