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.

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.

Raspberry Pi 5 (4 GB) product photo

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.

1. Raspberry Pi 5 RAM options

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.

2. What really changes compared with the Pi 4

  • CPU: clearly faster in most compiling and encoding benchmarks.
  • PCIe: faster storage or add-on cards, with compatible hardware and enough power.
  • Heat: the Pi 5 warms up quickly; the official Active Cooler (or a serious equivalent) is close to essential for long workloads.
  • Power: Raspberry Pi recommends its 27W USB-C supply (5V, 5A) to unlock full USB current. Weak phone chargers cause warnings or throttling. The official supply is sold with UK, US and EU plugs.

3. Which one should you choose?

  1. Tight budget, no desktop: 2GB (or 1GB if you have measured your services’ RAM use).
  2. First Pi for family, school or making: 4GB.
  3. Home lab with Docker or several stacks: 8GB.
  4. Big compiles, memory-hungry models, no compromise: 16GB, after checking that storage and cooling keep up.

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.

4. Accessories you shouldn't forget

  • Active cooling (official Active Cooler or the official case with fan).
  • Power supply: official 27W USB-C or a documented equivalent — Pi 5 27 W PSU (UK search) · US.
  • Fast microSD card, or an NVMe drive if you add a PCIe board — A2 microSD (UK) · A2 microSD (US).
  • Micro-HDMI cables for one or two screens.

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.

5. Where to buy (affiliate)

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.

FAQ

4GB or 8GB to start?

4GB for desktop, learning and robotics; 8GB if Docker, compiling or many services run together.

Is a fan mandatory?

Not for a one-minute test script; practically yes for desktop, server or compile sessions on Pi 5.

Can RAM be expanded later?

No — memory is soldered.

Pi 4 or Pi 5?

Pi 5 if budget allows cooling + 27 W PSU; otherwise a Pi 4 4GB/8GB remains relevant — see Pi 4 which RAM.

Further reading

Was this page helpful?

Have a question about this guide or need advice? Ask us here

Torn between two models or stuck on a build? Drop us a line and we will get back to you by email.