For Pi-hole alone, a Raspberry Pi 4 is more hardware than you need. A Pi Zero 2 W meets Pi-hole’s memory minimum, and its processor is more than enough for a typical home’s DNS traffic. A Pi 4 makes more sense if the same device also runs Unbound, Home Assistant, Docker or other services.
What Pi-hole actually uses
Pi-hole’s documented minimum is 512 MB of RAM. It needs modest storage, and a few gigabytes is plenty for the software, logs and blocklists.
Most of the work is answering DNS queries, and each query takes very little processing. The heaviest regular task is the gravity update, which rebuilds the blocklists. It runs more slowly on a Zero with very large lists, but it still completes.
Pi-hole also writes query history to its database on disk. On an SD card, that adds wear over time. If you plan to run it for years, consider a more durable drive.
How the models compare
| Model | Processor | RAM | Ethernet | Fit for Pi-hole |
|---|---|---|---|---|
| Pi Zero W (original) | Single-core, 1 GHz | 512 MB | None; USB adapter needed for wired | Enough for a typical home |
| Pi Zero 2 W | Quad-core Cortex-A53, 1 GHz | 512 MB | None; USB adapter needed for wired | Meets the memory minimum, with more processing than the original |
| Pi 4 | Quad-core Cortex-A72, 1.5 GHz (1.8 GHz on later boards) | 1, 2, 4 or 8 GB | Gigabit | Plenty of headroom for other services |
When a Pi 4 makes sense
- You want Unbound. Unbound resolves queries itself instead of passing them to a third party, and a Pi 4 has room for it alongside Pi-hole.
- You plan a second Pi-hole. Two servers give redundancy only when they run on separate hardware.
- Home Assistant, Docker or other services share the device. Keep the total load in mind, and check it over time. For Home Assistant’s own needs, see which Raspberry Pi you need to run Home Assistant.
- You want wired gigabit Ethernet and room to grow.
When a smaller board is enough
- Pi-hole is the only job on the device.
- Your network is one household, and you don’t mind slower gravity updates.
- You can use wired Ethernet through a USB adapter, or you’re happy with Wi-Fi.
Wired is better. A wired connection gives more consistent DNS latency than Wi-Fi.
Power and setup
- Use the official power supply, or one with the same rating. A Pi 4 needs a 5 V 3 A USB-C supply. A Zero needs a 5 V 2.5 A micro-USB supply. Undervoltage can corrupt SD cards.
- Use Raspberry Pi OS Lite, 64-bit. Pi-hole doesn’t need a desktop.
- Use wired Ethernet where you can. It gives more consistent DNS latency.
Myths about RAM and CPU
- More RAM or CPU doesn’t block more ads, and it doesn’t make browsing noticeably faster.
- A faster Pi doesn’t raise your internet speed. Pi-hole only handles DNS lookups, not your traffic.
- An 8 GB Pi 4 is more memory than Pi-hole alone needs. Most of it would sit unused.
- Bigger blocklists aren’t automatically better. They mostly add false positives.
Choosing for your setup
If Pi-hole is the only job, a Pi Zero 2 W is enough for one household. If the device will run more, a Pi 4 leaves room for it. For setup steps, see How do I set up Pi-hole?. To connect the server to Home Assistant, see Pi-hole and AdGuard Home With Home Assistant.