The Easy Way to Identify Your Raspberry Pi’s Model Number

Learn how to identify your Raspberry Pi model number quickly and easily. Follow this step-by-step guide to find out whether you have a Raspberry Pi 2, 3, or any other version. …


Updated August 5, 2023

Need help with your Raspberry Pi?
Contact Me!

Do you love silly Raspberry Pi Projects?
Check out my this YouTube Channel!


Learn how to identify your Raspberry Pi model number quickly and easily. Follow this step-by-step guide to find out whether you have a Raspberry Pi 2, 3, or any other version.

Finding the model of your Raspberry Pi can be crucial for understanding its specifications, compatibility with accessories, and even troubleshooting issues. Here’s how to identify your Raspberry Pi model number in a few simple steps:

  1. Power on your Raspberry Pi.
  2. Open a terminal window by clicking the icon in the top left corner of the desktop or pressing Ctrl + Alt + T.
  3. Type the following command and press Enter:
cat /proc/device-tree/model
  1. The output will display your Raspberry Pi’s model number, such as “Raspberry Pi 3 Model B Plus” or “Raspberry Pi Zero W”.

Alternatively, you can use the command:

sudo cat /proc/cpuinfo

This will provide more information about your device, including the processor and revision number. The revision number is a four-digit code that corresponds to a specific model of Raspberry Pi. Here’s a list of some common codes:

Revision CodeModel
00002Raspberry Pi Model B
00003Raspberry Pi Model B+
00004Compute Module
00005Raspberry Pi 2 Model B
9000021Raspberry Pi Zero
9000032Raspberry Pi Zero W
9000092Raspberry Pi Zero 2 W
A01040Raspberry Pi 2 Model B
A01041Raspberry Pi 2 Model A
A21041Raspberry Pi 2 Model B
A22082Raspberry Pi 3 Model B
A32082Raspberry Pi 3 Model B+
A52082Compute Module 3
A22042Raspberry Pi 3 Model A+
C03111Raspberry Pi 4 Model B

Remember, the actual model name may be more descriptive than the revision code. It’s always best to use the cat /proc/device-tree/model command for accuracy. Once you know your Raspberry Pi model, you can make informed decisions about software compatibility, hardware upgrades, and more. Happy tinkering!