Raspberry Pi 5: 2GB, 4GB, 8GB or 16GB? Which RAM to buy
Which Raspberry Pi 5 memory size should you buy? What each RAM option is good for, the cooling and power supply you also need, and a quick decision tree.
Getting started
Home Assistant
Buying
Which Raspberry Pi 5 memory size should you buy? What each RAM option is good for, the cooling and power supply you also need, and a quick decision tree.

Some links on this page are affiliate links. Check the listing for memory size before you buy.
Last updated 17 November 2026.
Direct answer (November 2026) — For a first Pi 5 at home, school or for Python robotics, choose 4GB in most cases. Pick 8GB if you stack Docker containers, compile often or run a busy Linux desktop. 16GB only when you have measured the need. Plan active cooling and a 27 W USB-C PSU on every new Pi 5.
The Raspberry Pi 5 is built around the Broadcom BCM2712: four Cortex-A76 cores at 2.4 GHz, a VideoCore VII GPU and the RP1 I/O controller. It is also the first full-size Raspberry Pi with a PCIe 2.0 ×1 link, which opens the door to NVMe SSDs through an add-on board. Specs from the official Raspberry Pi 5 page.

Product photo — Raspberry Pi 5 board (4 GB variant).
This guide covers the memory options in the range (availability varies by country), what you must budget for cooling and power, and how to choose. Compare generations in Pi 3 vs 4 vs 5; for Pi 4 RAM see Raspberry Pi 4 which RAM.
| RAM | Typical use |
|---|---|
| 1GB | Ultra-low-cost edge jobs: simple scripts, a light gateway. Little headroom for a web browser or IDE. |
| 2GB | Minimal servers, displays, bots. Not ideal as a family desktop with many browser tabs. |
| 4GB | The all-round choice: Raspberry Pi OS desktop, coding, modest web stacks, Home Assistant. |
| 8GB | Several containers, databases, serious compiling, a desktop with many background services. |
| 16GB | Rarely needed on a single-board computer: small local AI models, big builds, caches. Only buy it if you know why. |
Memory is LPDDR4X-4267 on the Pi 5 (LPDDR4-3200 on the Pi 4). RAM is soldered — you cannot upgrade later.
UK and US prices differ — verify at purchase time on the official Raspberry Pi 5 page. The gap between 4GB and 16GB can be large. For a ready-made educational robot instead of a bare board, see best programmable robots and Arduino robot kits.
Flash Raspberry Pi OS with Raspberry Pi Imager — steps match Raspberry Pi 3 getting started.
Key takeaway: choose the Pi 5 on RAM first (4GB or 8GB for most people), then on a good power supply and cooling.
Confirm memory size on the listing before you buy.
UK
US
Approved resellers: raspberrypi.com/resellers. Smart-home stack: Install Home Assistant on Pi 5.
Amazon partner — commission possible on eligible purchases.
See also: Raspberry Pi 3 vs 4 vs 5 · Pi 5 complete kit.
4GB for desktop, learning and robotics; 8GB if Docker, compiling or many services run together.
Not for a one-minute test script; practically yes for desktop, server or compile sessions on Pi 5.
No — memory is soldered.
Pi 5 if budget allows cooling + 27 W PSU; otherwise a Pi 4 4GB/8GB remains relevant — see Pi 4 which RAM.
Was this page helpful?
Thank you!
What should we improve?
Torn between two models or stuck on a build? Drop us a line and we will get back to you by email.
Cookies and analytics
We use Google Analytics 4 to understand how the site is used (page views, navigation). It is only switched on if you accept. Declining does not stop you using the site. More: cookie settings and privacy policy (in French).