ThisCalculator

Everyday

Raspberry Pi Model: Revision Codes & Visual ID

Updated · Standard formula, shown below

To identify your Raspberry Pi model, check the revision code in /proc/cpuinfo (Linux) or use the visual clues: board size, mounting holes, USB ports, GPIO pin count, and the position of the P3/P5 headers. The revision code is the most reliable method, giving the exact model and board revision.

Background: Why Identification Matters

Knowing your exact Raspberry Pi model is essential for selecting compatible accessories, downloading the correct OS image, and troubleshooting hardware issues. For example, the Raspberry Pi 4 uses a different power supply (USB-C, 5V/3A) than the Pi 3 (Micro-USB, 5V/2.5A), and the Pi 5 has a different bootloader and requires a newer version of Raspberry Pi OS. Using the wrong OS or power supply can cause instability or even hardware damage.

How to Find the Revision Code

On any Raspberry Pi running Linux (Raspberry Pi OS, Ubuntu, etc.), open a terminal and run:

cat /proc/cpuinfo

Look for the line starting with Revision. It contains a hexadecimal code that encodes the model, memory size, and board revision. For example, a020d3 indicates a Raspberry Pi 3 Model B (Rev 1.2) with 1GB RAM.

You can also use the vcgencmd command (available on Raspberry Pi OS):

vcgencmd get_config total_mem

But this only gives memory, not the model. The revision code is the definitive answer.

If you cannot boot the Pi, you can read the code from the EEPROM (on newer models) or use visual identification.

Visual Clues: Quick Reference

Visual identification is fast and works even without power. Here are the key features to look for:

  • Model A series: Smaller board (approx. 65mm x 56mm), single USB port, no Ethernet port (except the A+ which has no Ethernet).
  • Model B series: Larger board (approx. 85mm x 56mm), two USB ports (B and B+), Ethernet port (except the Zero series).
  • Raspberry Pi Zero: Very small (65mm x 30mm), mini-HDMI and micro-USB ports, no Ethernet, single USB OTG port.
  • Raspberry Pi 4: Two micro-HDMI ports, USB-C power, two USB 3.0 (blue) and two USB 2.0 ports, Gigabit Ethernet.
  • Raspberry Pi 5: Two micro-HDMI ports, USB-C power, two USB 3.0 and two USB 2.0 ports, Gigabit Ethernet, and a new 40-pin GPIO with a different pinout for the fan and RTC.

Also check the GPIO header: all modern Pis (since 2014) have a 40-pin header. The original B and A had 26 pins. The Pi Zero has a 40-pin header but is unpopulated (you need to solder headers).

Another clue is the mounting holes: the Pi 4 and 5 have four mounting holes, while the Pi 3 B+ has four, but the Pi 3 B has only two (on the edges). The Pi 2 B has two, and the Pi 1 B+ has four.

Interpreting Revision Codes

The revision code is a 32-bit hexadecimal number. The last 4 digits are the most useful. Here is a simplified breakdown:

  • Last 4 digits: These encode the model and memory size. For example:
    • 0002 – Raspberry Pi 1 Model B Rev 1
    • 0007 – Raspberry Pi 1 Model A
    • 000e – Raspberry Pi 1 Model B Rev 2
    • 0010 – Raspberry Pi 1 Model B+
    • 0012 – Raspberry Pi 1 Model A+
    • a01041 – Raspberry Pi 2 Model B v1.1
    • a02082 – Raspberry Pi 3 Model B
    • a020d3 – Raspberry Pi 3 Model B+
    • a03111 – Raspberry Pi 4 Model B 1GB
    • b03112 – Raspberry Pi 4 Model B 2GB
    • c03112 – Raspberry Pi 4 Model B 4GB
    • d03114 – Raspberry Pi 4 Model B 8GB
    • c04170 – Raspberry Pi 5 Model B 4GB
    • d04170 – Raspberry Pi 5 Model B 8GB

Note: The first digit (e.g., ‘a’, ‘b’, ‘c’, ‘d’) often indicates the memory size (a=1GB, b=2GB, c=4GB, d=8GB for Pi 4/5). The middle digits indicate the board revision.

If you have a Pi with a code not listed, you can look up the full table on the official Raspberry Pi documentation (but we won’t link it here).

Common Problems and Misconceptions

A common mistake is confusing the Raspberry Pi 3 Model B with the 3 Model B+. Visually, the B+ has a metal shield over the Ethernet/USB ports and a different power supply (5V/2.5A vs 5V/2A). The revision codes are different: a02082 for B, a020d3 for B+.

Another misconception is that all 40-pin Pis are the same. The Pi 4 and 5 have different GPIO electrical characteristics (the Pi 5 uses a different I/O controller), and the Pi 5 has a new power button and RTC connector. Always check the official documentation for pinout.

People often think the Pi Zero and Zero 2 W are the same. The Zero 2 W has a quad-core processor and is about 5x faster, but looks almost identical. The only visual difference is the chip on the underside (the Zero 2 has a larger chip with a metal cover). The revision code for Zero 2 W is 902120.

If you have a Pi with a revision code that starts with 9000, it is a Pi Zero (original). 900092 is Pi Zero v1.2, 900093 is Pi Zero v1.3 (with camera connector), 9000c1 is Pi Zero W.

How to Choose the Right Model for Your Project

When selecting a Raspberry Pi for a project, consider the following:

  • Processing power: Pi 5 is the fastest, followed by Pi 4 (2GB+), Pi 3 B+, Pi Zero 2 W, and Pi Zero.
  • RAM: For desktop use or web browsing, 4GB or 8GB is recommended. For headless servers, 1GB may suffice.
  • Connectivity: Pi 4/5 have Gigabit Ethernet and USB 3.0. Pi Zero has Wi-Fi (on W models) but no Ethernet.
  • Power consumption: Pi Zero is the most efficient, drawing about 0.5-1W. Pi 5 draws up to 10W under load.
  • Form factor: Pi Zero is great for embedded projects, Pi B series for desktop use.

If you already have a Pi, identifying the model helps you know its capabilities. For example, a Pi 1 Model B cannot run the modern 64-bit OS and is limited to older 32-bit distributions.

Safety and Handling Tips

When handling your Raspberry Pi, always disconnect power before changing connections. Use a proper power supply that matches the model’s requirements. Overvoltage can damage the board. For the Pi 4/5, use a USB-C supply that can deliver 3A (or 5A for Pi 5 with peripherals). For the Pi 3 and earlier, use a 5V/2.5A micro-USB supply.

Also, ensure adequate cooling. The Pi 4 and 5 can overheat under heavy load; use a heatsink and fan. The Pi 5 includes a fan connector for this purpose.

When measuring the board, be careful with static electricity. Use an anti-static mat or wrist strap if possible.

Frequently Asked Questions

How do I check the revision code on a non-Linux system?

If you are not running Linux, you can still visually identify the model. You can also boot a Linux live SD card (like Raspberry Pi OS) and run the same command. Alternatively, you can read the EEPROM using a separate tool, but that is more advanced.

What does the revision code ‘beta’ mean?

Some early Pi 1 boards had a revision code of 0002 (Rev 1) and 0003 (Rev 1.1). The ‘beta’ (pre-release) boards had 0000. These are extremely rare and not in general use.

Can I upgrade the RAM on my Raspberry Pi?

No, the RAM is soldered onto the board and cannot be upgraded. You must choose the correct model with the desired RAM at purchase.

Why does my Pi show a revision code that doesn’t match any list?

It could be a new revision not yet documented. Check the official Raspberry Pi documentation for the latest list. Also, ensure you are reading the full code, not just the last 4 digits.

Is the Raspberry Pi 5 the same as the Pi 4 with a faster CPU?

No, the Pi 5 has a completely new chip (BCM2712), a different GPU, and a new I/O controller. It also has a different power management and a new PCIe interface. Software written for the Pi 4 may need updates to run on the Pi 5.

What is the difference between Model A and Model B?

Model A is the budget version with less RAM (usually 256MB-1GB), no Ethernet, and one USB port. Model B has more RAM, Ethernet, and multiple USB ports. Model A is designed for embedded projects, Model B for desktop use.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.