How to tell which Raspberry Pi 4 RAM size do I have?

Posted by Jack L on

So...which Raspberry Pi 4 RAM size do I have?

If your Raspberry Pi is already up and running, you can easily check for the memory size within the OS by running the followig command in terminal:

free -h

However, if your Raspberry Pi is sitting in front of you right now, you can simply look at the marking on the RAM chip. Refer to the picture below (2GB version shown):

At the time of writing, the marking code is as follows:

  • 1GB - 4HBMGCJ
  • 2GB - D9WHZ
  • 4GB - D9WHV
  • 8GB - D9ZCL

Have fun!

Raspberry Pi 4 (2GB)

Share this post

← Older Post Newer Post →


  • Very helpful, I have 2 RPI4s 4GB and an 8GB. It was easy using your chart to identify the two boards, thank You!

    Marc G on
  • Frustratingly unhelpful.
    My RPi4 is in RAM chip occluding case. Your post hinted at, but did not deliver the technique “within the OS”
    BTW: from within a Terminal… top
    left most portion of the 4’rd line will be MiB Mem : XXXX.Y total

    Tom Moyer on
  • Thanks- extremely helpful in verifying what I thought I had.

    hochspeyer on
  • This helped an awful lot and made it easy thank you

    Rob on
  • Well I searched a long time for this.
    Thanks a lot!

    The Calif on

Leave a comment

Please note, comments must be approved before they are published.