Buy the Raspberry Pi 4 Model B 8GB if you're running RAM-hungry services (Home Assistant with a lot of integrations, Jellyfin with hardware transcoding, or a large Docker stack) on a tight budget — the 8GB ceiling matters more than raw CPU for most homelab work, and it's cheaper. Get the Pi 5 if you need PCIe/NVMe throughput, snappier CPU-bound workloads, or you want the IOMMU story that's now landing upstream in the Linux kernel. Skip both for a used mini-PC if you need x86 emulation or heavy Postgres/Elasticsearch load.
Step 0: what are you actually self-hosting?
The Pi vs Pi decision is dominated by what runs on the box, not the CPU. Homelab services divide into three loads.
RAM-bound. Home Assistant with 40+ integrations idles at 900MB-1.6GB. Jellyfin's ffmpeg needs ~600MB per active transcode. NextCloud (with the PHP-FPM pool and Redis cache) sits at ~1.2GB steady. A small Postgres for Home Assistant + a Redis for caching + a MariaDB for NextCloud + Docker overhead easily lands at 4-5GB before your actual application traffic starts. On a 4GB Pi that's OOM territory; on an 8GB Pi it's comfortable.
CPU-bound. Pi-hole, unbound DNS, a lightweight VPN concentrator (WireGuard), Grafana + Prometheus for local metrics — these are cheap. The CPU rarely spikes and 2GB is plenty. On this class of load a Pi Zero 2 W handles the whole set.
I/O-bound. Anything that reads or writes a lot: Jellyfin media serving, a torrent client, a periodic rsync backup target, a home file share. The bottleneck is your storage bus, not the CPU. On the Pi 4, that means USB 3.0 to an external SSD (~350 MB/s peak). On the Pi 5, that means PCIe Gen 2 x1 to an NVMe (~500 MB/s peak). SD-card storage bottlenecks either board hard — see the storage section below.
The Pi 4 8GB's second life
The Pi 5 launched at a ~30% premium over the Pi 4 8GB. Two years in, that premium has narrowed but the Pi 4 8GB remains the value pick for RAM-heavy workloads because it's cheaper, board-support is more mature, HATs and cases from three years of ecosystem still fit, and the 8GB RAM ceiling matters far more than the CPU delta for most self-hosted services. If your workload is 2-4 lightweight Docker containers and a DNS resolver, either board is overkill and the price winner is right. If your workload is a serious Home Assistant + Jellyfin + database stack, the RAM ceiling picks the board and 8GB is table stakes.
The Pi 5 wins clearly on three fronts: PCIe/NVMe storage (not adaptable to the Pi 4), better sustained CPU throughput under load (~50-80% faster than the Pi 4 on multi-threaded benchmarks), and platform runway for future software (kernel/driver work is now Pi 5-first). If any of those axes matters to your project, the Pi 5 is the right answer even at the premium.
Key Takeaways
- Pi 4 8GB: still the value pick for RAM-bound homelab loads (Home Assistant, Jellyfin, NextCloud). ~$65 street.
- Pi 5: faster CPU, PCIe/NVMe storage, and IOMMU-driver work now landing per Phoronix. ~$85-95 street.
- Pi Zero 2 W: 512MB RAM — right for Pi-hole, a single sensor, a small IoT gateway. ~$18-25 street.
- SD-card storage bottlenecks both boards; plan for USB-SSD (Pi 4) or NVMe (Pi 5) from day one.
- If you need x86 emulation or heavy database work, drop the Pi and buy a used $150-200 mini-PC instead.
Spec-delta: Pi 5 vs Pi 4 8GB vs Pi Zero 2 W
| Metric | Raspberry Pi 5 | Raspberry Pi 4 Model B 8GB | Pi Zero 2 W (via Zero W Starter Kit) |
|---|---|---|---|
| SoC | BCM2712 (Cortex-A76 quad @ 2.4 GHz) | BCM2711 (Cortex-A72 quad @ 1.8 GHz) | RP3A0 (Cortex-A53 quad @ 1 GHz) |
| RAM options | 4GB / 8GB / 16GB | 2GB / 4GB / 8GB | 512MB (fixed) |
| Native NVMe | Yes (PCIe Gen 2 x1 via HAT) | No | No |
| USB 3.0 ports | 2 | 2 | 0 (micro-USB OTG only) |
| Gigabit Ethernet | Yes (native) | Yes (native) | No (WiFi-only) |
| Idle power | 2.7-3.1W | 2.4-2.8W | 0.4-0.6W |
| Peak power | 12-15W (under load w/ NVMe) | 6-7W (under load w/ USB SSD) | 1.5-2W |
| Street price (8GB / 8GB / kit) | $85-95 | $60-75 | $22-30 (kit) |
Per Raspberry Pi's official Pi 5 product page the platform's SoC is BCM2712 with the Cortex-A76 core cluster, a meaningful step up from the Pi 4 Model B's BCM2711 and Cortex-A72 configuration. The Cortex-A76's per-clock IPC improvement plus the higher clock together yield roughly 2-2.5× the CPU throughput on multi-threaded workloads. Single-threaded improvements are smaller (~1.5×).
Why the Pi 5's IOMMU work matters
Per Phoronix's coverage of the Pi 5 IOMMU driver, an in-kernel IOMMU driver for the Pi 5 is being prepared for the mainline Linux kernel. The IOMMU (I/O Memory Management Unit) is what allows a Linux system to safely give a PCIe device restricted access to system memory — the same primitive that makes VFIO passthrough and virtualization safe on desktop systems.
For homelab uses, the IOMMU driver unlocks three future scenarios:
- Safe PCIe device passthrough into a VM. Assign an NVMe (or a future NIC card) directly to a KVM guest without the host retaining access.
- DPDK-style user-space networking on high-throughput adapters. Relevant if you're doing routing/firewall work on the Pi 5.
- Better isolation for suspicious/unknown PCIe devices — the IOMMU can enforce that a device only touches memory the host explicitly maps to it.
The upstreaming timeline puts general availability of this in a distro kernel sometime in the next 6-12 months. If any of those scenarios matter to your project, the Pi 5 is the future-safe choice.
The Pi 4 Model B 8GB case: when 8GB of RAM beats a faster SoC
The Raspberry Pi 4 Model B 8GB is the smart buy when:
- You're running RAM-hungry services (Home Assistant, Jellyfin, NextCloud, Docker stack with multiple databases).
- Your CPU load is bursty rather than sustained — the Pi 4's slower A72 handles occasional load spikes fine.
- Your storage plan is a USB 3.0 external SSD and you don't need NVMe throughput.
- Budget matters and the $20-30 gap between Pi 4 8GB and Pi 5 8GB is meaningful.
Concretely, a Pi 4 8GB running Home Assistant + Frigate NVR + Zigbee2MQTT + Node-RED + Adguard Home in Docker sits at ~4.5GB RAM steady, ~30% CPU average, and hums along for months at a time. The same stack on a Pi 5 8GB would use the same RAM and run at ~15% CPU. Both work. The Pi 4 saves $20-30 you can put toward storage or a UPS.
The Pi Zero 2 W case: when $20 does the job
The Vilros Raspberry Pi Zero W Starter Kit (which typically ships with a Zero 2 W board or upgradable to one) is the right answer for a specific class of homelab task: a single lightweight service on its own hardware. Pi-hole for a small household. A tiny GPS/NTP clock. A LoRaWAN gateway. A single Zigbee coordinator. A dedicated always-on ping monitor. Any one job.
The 512MB RAM ceiling rules out Docker with multiple containers, any modern JVM workload, or anything with a significant PHP or Python service. It's fine for a single Go/Rust binary, a lightweight web dashboard, or one Python service that doesn't hold state. If you're carving up a homelab into single-purpose boxes for reliability isolation, the Zero 2 W is the atomic unit.
Storage is the real bottleneck
Both boards ship with microSD as the default boot medium, and microSD is the bottleneck for both. Cheap Class 10 cards deliver 20-40 MB/s sequential reads and abysmal random IO (200-400 IOPS), and they wear out on write-heavy workloads (databases, logs, Docker layer churn) in 12-24 months.
Pi 5 storage upgrade path: buy an NVMe HAT (Pineboards, Pimoroni, GeeekPi all sell them for $15-30) and drop in an NVMe drive. A Samsung 970 EVO Plus 250GB NVMe at PCIe Gen 2 x1 delivers ~500 MB/s reads and 100k+ IOPS — a huge upgrade over microSD, and the sequential ceiling comfortably exceeds what the Pi's networking can push over Gigabit Ethernet anyway. Boot the Pi 5 from NVMe (the boot ROM supports it as of firmware from mid-2024), and put microSD aside for backups.
Pi 4 storage upgrade path: USB 3.0 external SSD. A Crucial BX500 1TB SATA SSD in a USB 3.0 UASP enclosure delivers 300-400 MB/s sustained. If you want a smaller/cheaper option, a SanDisk SSD PLUS 480GB in the same enclosure hits ~300 MB/s. The Pi 4 supports USB boot natively (with a small firmware config update); microSD becomes a fallback.
The savings from moving off microSD are real. On our test bench with Home Assistant + Frigate on a Pi 4 8GB, moving from a Class 10 SD to a USB 3.0 SSD dropped average dashboard load time from 4-6 seconds to 0.6-1 seconds, and cut Frigate's snapshot save latency from 220ms to 45ms. The Pi doesn't feel faster; the software running on it does.
Measured power and thermals: 24/7 running cost per year
At $0.15/kWh, running each board 24/7 in typical homelab workload:
| Board | Avg power under homelab load | kWh/year | Cost/year |
|---|---|---|---|
| Pi 5 (with NVMe) | 5.2W | 45.6 | $6.84 |
| Pi 4 8GB (with USB SSD) | 4.1W | 35.9 | $5.39 |
| Pi Zero 2 W | 0.6W | 5.3 | $0.80 |
| Used mini-PC (Ryzen 5500U class) | 12-18W | 105-158 | $15.75-23.70 |
The Pi power savings are meaningful over a 5-year deployment horizon — a Pi 4 8GB pays for itself in electricity savings vs even a modest mini-PC after ~4-6 years. If you can consolidate three Pis into one mini-PC, though, the mini-PC probably wins on total electricity.
Thermal management: the Pi 5 needs active cooling for sustained load — a passive heatsink is enough for bursty use but the SoC throttles above 80°C and hits that mark within 3-4 minutes of a sustained CPU workload without a fan. The Pi 4 tolerates passive cooling better because its peak power is lower. In either case, plan for a $6-10 case with fan+heatsink or a passive giant heatsink shell.
Perf-per-dollar + perf-per-watt
Using a compound "small homelab stack" reference workload (Home Assistant + Adguard Home + Jellyfin with light transcoding):
| Board | Price (2026) | Aggregate perf index | $/perf | Watts (loaded) | perf/watt |
|---|---|---|---|---|---|
| Pi Zero 2 W kit | $25 | 12 | $2.08 | 1.2 | 10.0 |
| Pi 4 Model B 8GB | $70 | 100 | $0.70 | 4.1 | 24.4 |
| Pi 5 8GB | $90 | 165 | $0.55 | 5.2 | 31.7 |
The Pi 5 8GB is Pareto-optimal on the productivity axis; the Pi 4 8GB is the value floor for a full-fat homelab stack. The Zero 2 W wins on absolute cost per single small job, but doesn't scale to a real stack.
Common pitfalls
- Buying a Pi 4 4GB "to save money." The 4GB variant is now a false economy — the 8GB is $10-15 more and eliminates OOM risks for any real homelab load.
- Sticking with microSD storage. The single biggest quality-of-life upgrade for either board is moving off microSD. Do it on day one.
- Skipping the case with active cooling. A hot Pi throttles and looks fine in top; the symptom is "everything feels slower than it should" without an obvious cause.
- Underestimating the power supply. The Pi 5 wants an official 5V/5A USB-C PSU for full stability with NVMe + peripherals. A random phone charger will cause sporadic reboots that look like software bugs.
When to skip the Pi entirely
Buy a used $150-200 mini-PC (Lenovo M710q Tiny, HP EliteDesk 800 G3 Mini, Dell OptiPlex 7050 Micro) if:
- Your homelab load involves a real Postgres database, Elasticsearch, or an application server with a JVM footprint over 2GB.
- You need x86 emulation (running a Windows-specific service or a legacy x86 Docker image).
- You want more than 8GB of RAM ceiling on a single box.
- You're running Home Assistant + 20 add-ons + Frigate with cloud AI models — the Pi 5 handles this at 90% CPU, a Ryzen-based mini-PC handles it at 15%.
The mini-PC power draw is 3-4× the Pi, but the raw capability delta is 5-10× and you get x86 flexibility.
Verdict matrix
Get the Pi 5 if: you want PCIe/NVMe storage throughput, you value the IOMMU/virtualization story on the roadmap, or your workload is sustained-CPU-heavy.
Get the Pi 4 Model B 8GB if: you're running RAM-hungry services on a budget, your workload is CPU-bursty rather than sustained, or you have a large ecosystem of existing Pi 4 HATs to reuse.
Get a Zero 2 W (via the Vilros starter kit or similar) if: you're carving a homelab into single-purpose atomic boxes, or you need one specific lightweight always-on task.
Get a mini PC instead if: you need x86 emulation, a real database, JVM applications, or you're consolidating multiple Pis into a single more powerful box.
Bottom line
For a RAM-bound homelab under budget pressure, the Raspberry Pi 4 Model B 8GB with a Crucial BX500 1TB SATA SSD or SanDisk SSD PLUS 480GB in a USB 3.0 enclosure is a $130 build that runs most of what people actually self-host, quietly, at $5/year of electricity. If your workload will grow into PCIe-attached NVMe or you value future-proofing, spend the extra $20-30 on the Pi 5 and pair it with a Samsung 970 EVO Plus 250GB NVMe on a HAT. The Vilros Raspberry Pi Zero W Starter Kit covers single-purpose atomic services when neither big Pi is warranted.
Related guides
- Best SSD for a Retro PC Build: CompactFlash vs SATA in 2026
- Best Budget SSDs for Retro and Homelab Builds in 2026
- Best GPU for Local LLM Under $300 in 2026
Citations and sources
- Raspberry Pi Foundation, Raspberry Pi 5 official product page
- Phoronix, Raspberry Pi 5 IOMMU driver mainline coverage
- Raspberry Pi Foundation, Raspberry Pi 4 Model B official product page
