How to set up a Raspberry Pi home server in 2026
Key takeaways
- A Raspberry Pi 5 with 8GB RAM is the sweet spot for a first home server, drawing under 5W while running Pi-hole, Home Assistant and a few Docker containers at once
- Skip the SD card as your main drive and boot from an M.2 NVMe SSD; it is faster, far more reliable, and the single biggest upgrade you can make
- Docker is the shortcut that makes self-hosting painless, since almost every app you want ships as a container you can start in one command
- Memory prices spiked through 2026, so the 8GB Pi 5 at around 115 dollars is better value than the 16GB at 305 dollars for most first builds
This article contains affiliate links. We may earn a small commission if you make a purchase, at no extra cost to you.
Last updated: August 2026
A Raspberry Pi home server is the cheapest way to stop renting other people's clouds and start running your own. For the price of a couple of years of storage subscriptions you get a credit-card-sized computer that sips under 5 watts, sits quietly on a shelf, and blocks ads for your whole house, stores your photos, runs your smart home, and more. This guide walks you through building one from scratch in 2026, from picking the board to running your first self-hosted app. No prior server experience needed.
Prices below are approximate, given in US dollars, and current as of August 2026. Check your regional pricing, since Pi stock and street prices swing by country and month.
What a Raspberry Pi home server can actually do
Before you buy anything, it helps to know what you are building toward. A Raspberry Pi home server is a small always-on machine on your network that other devices connect to. On a Pi 5 with 8GB of RAM, you can comfortably run several of these at once:
- Pi-hole, a network-wide ad and tracker blocker that speeds up browsing on every device without installing anything on them.
- Home Assistant, a local smart-home hub that pulls your lights, plugs, sensors and thermostats into one dashboard with no cloud and no subscription.
- Immich, a self-hosted photo library that looks and feels like Google Photos, with face recognition and phone auto-backup, except the photos live in your house.
- Jellyfin, a media server that streams your own films and music to any device, free and with no strings.
- Vaultwarden, a lightweight password manager that runs happily even on older Pi hardware.
That is a private cloud, an ad blocker, a smart-home brain and a media server on one board. Now let us build it.
Step 1: Pick the right Raspberry Pi and RAM
For a 2026 home server, get the Raspberry Pi 5. Its quad-core Cortex-A76 chip is roughly two to three times faster than the Pi 4, and it adds a proper M.2 connector for an SSD, which matters more than almost anything else here.
The harder call is memory, and 2026 made it awkward. Demand for AI data-centre memory squeezed the LPDDR4X supply the Pi uses, and prices climbed through the year. As of August 2026 the 4GB board is around 75 dollars, the 8GB around 115 dollars, and the 16GB a steep 305 dollars.
For a first home server, 8GB is the sweet spot. It runs Pi-hole, Home Assistant and a handful of Docker containers with room to spare, and it costs a fraction of the 16GB board. Only reach for 16GB if you already know you want heavy workloads like Immich on a large library plus a media server plus a dozen other services. If money is tight, 4GB will still happily run one or two lightweight apps like Pi-hole and Vaultwarden. If you are curious why memory got so pricey this year, we covered it in our piece on why RAM got more expensive in 2026.
Check Raspberry Pi 5 prices on Amazon →
Step 2: The accessories that actually matter
The Pi is only part of the bill. A few extras make the difference between a server that runs for years and one that corrupts itself in a month.
An M.2 NVMe SSD and HAT. This is the upgrade that matters most. SD cards are slow and wear out, and a home server writes to its drive constantly, so an SD card is the number one cause of dead Pi servers. A cheap M.2 HAT plus a small NVMe SSD gives you faster boots, snappier apps and far better reliability. Do not skip this.
The official 27W USB-C power supply. The Pi 5 is fussy about power, especially with an SSD attached. Use the official supply rather than a random phone charger, or you will chase mysterious crashes.
An active-cooler or case with a fan. The Pi 5 runs hot under sustained load, and a home server is sustained load by definition. The official active cooler or a fan case keeps it from throttling.
A decent SD card, only for the initial flash if you are not booting straight from SSD. A 32GB A2-rated card is plenty.
For most people, buying a Pi 5 starter kit that bundles the power supply, case and cooler works out cheaper than buying each piece separately.
Check Pi 5 M.2 SSD kits on Amazon → Check Pi 5 active cooler on Amazon →
Step 3: Flash the operating system
Download the free Raspberry Pi Imager on your main computer, from Windows, macOS or Linux. It does all the hard work.
For a headless server, meaning one with no monitor attached, choose Raspberry Pi OS Lite (64-bit). Lite has no desktop, which is exactly what you want, since every megabyte of RAM should go to your services, not to a screen you will never look at.
Before you write the image, open the Imager's settings gear. This is the step beginners miss and then regret. Set:
- A hostname, so you can find the Pi on your network by name.
- Enable SSH, so you can control the Pi remotely from your laptop.
- A username and a strong password.
- Your Wi-Fi details, if you are not using Ethernet.
Write the image to your SSD or SD card, then slot it into the Pi.
Step 4: First boot and secure login
Plug in Ethernet if you can, since a home server wants a stable wired connection, then power on. Give it a minute on first boot.
From your main computer, open a terminal and connect over SSH using the hostname you set:
ssh yourusername@yourhostname.localOnce you are in, update everything first:
sudo apt update && sudo apt full-upgrade -yA quick word on security, because this box will be on all the time. Use a strong unique password, and if you ever expose the Pi to the internet, set up key-based login instead of passwords. Better still, learn to use passkeys and keys everywhere; we explained the why in our guide to passkeys and why passwords are dying.
Step 5: Install Docker, your self-hosting shortcut
Here is the trick that turns self-hosting from a weekend of pain into a one-line command: Docker. Almost every app worth running ships as a Docker container, a tidy self-contained package that installs cleanly and uninstalls without leaving a mess. Install it with the official convenience script:
curl -sSL https://get.docker.com | sh
sudo usermod -aG docker $USERLog out and back in, and Docker is ready. From here, adding a new service is usually a matter of copying a short config file and running one command. If you would rather click than type, install a container manager with a web dashboard so you can start, stop and monitor everything from your browser.
Step 6: Run your first service, Pi-hole
Pi-hole is the perfect first app, because the payoff is instant and the whole house feels it. It runs as a container, then you point your router's DNS at the Pi, and suddenly ads and trackers vanish across every phone, laptop and smart TV on the network. No per-device installs, no browser extensions.
Once Pi-hole is humming, add the next thing. Immich if you want to ditch Google Photos. Home Assistant if you are into smart home. Jellyfin if you have a film library. Add them one at a time, get each one stable, and enjoy watching your Pi quietly replace one subscription after another.
Do not forget backups
A home server holds things you care about, so treat it that way. Immich photos and Home Assistant configs deserve a copy somewhere else, because a single drive can fail. The clean answer for most people is a hybrid: keep the working copy on your Pi, and push a backup to a second drive or an off-site cloud. We walked through the full trade-off in NAS vs cloud storage: the real 5-year cost. If your Pi ever outgrows its job, a small mini PC or a NAS is the natural next step up.
Frequently asked questions
Is a Raspberry Pi good enough for a home server?
Yes, for most home uses. A Pi 5 with 8GB of RAM handles Pi-hole, a password manager, a smart-home hub and a personal photo cloud at once, all while drawing less power than a light bulb. If you plan to transcode multiple 4K video streams or run heavy databases, a mini PC has more headroom, but for the common self-hosting jobs the Pi is more than enough.
Should I use an SD card or an SSD?
Use an SSD. An M.2 NVMe drive on the Pi 5 is faster and dramatically more reliable than an SD card, which wears out under the constant writes a server produces. Booting from SSD is the single best upgrade you can make.
How much does a Raspberry Pi home server cost to build?
As of August 2026, budget roughly 115 dollars for the 8GB Pi 5, plus about 40 to 70 dollars for an SSD and M.2 HAT, and another 25 to 40 for the official power supply, case and cooler. Call it around 200 dollars all in for a capable, reliable build. After that, running it costs pennies in electricity.
How much power does a Raspberry Pi server use?
Very little. A Pi 5 home server typically draws under 5 watts at idle and rarely much more under normal load. Left on all year it costs only a few dollars in electricity, which is a big part of why it beats leaving an old desktop running as a server.
The bottom line
A Raspberry Pi home server is the friendliest on-ramp to owning your own tech instead of renting it. Start with an 8GB Pi 5, boot from an SSD, install Docker, and add one service at a time. Within an afternoon you can be blocking ads network-wide and backing up your phone's photos to a box that costs pennies a year to run. Once you have tasted it, the hard part is stopping at one Pi. For your next hardware decisions, our guides on NAS vs cloud storage and Wi-Fi 6 vs Wi-Fi 7 are good next reads.