How to Reset Raspberry Pi 5: Reboot, Hard Reset, Reflash

Quick answer: How to reset Raspberry Pi 5 depends on how stuck it is. If it still responds, run
sudo rebootor tap the onboard power button. If it’s frozen, hold the power button to force a hard shutdown, then press it again to start. A true factory reset is reflashing the OS with Raspberry Pi Imager, and a Pi that won’t boot at all may need its bootloader reflashed.
Unlike the Pi 4, the Pi 5 has a real power button on the board, which changes the answer a lot. On a Pi 4, “reset” mostly means pulling the plug.
There are four levels here. I’d always start at the top and only move down when the one above fails.
Why You’d Need to Reset a Pi 5
- The desktop or an app froze, but the system still answers a keyboard or SSH.
- The whole board locked up and nothing responds.
- You broke the OS with a bad config change, or you just want a clean slate.
- It won’t boot at all, often after a bootloader setting went wrong.
Each one has a matching fix below.
How to Reset Raspberry Pi 5: Pick Your Level
Here’s the decision tree I’d follow. Don’t jump straight to reflashing.
- Can you still type or SSH in? Do a soft reboot (Level 1).
- Totally frozen? Hold the power button for a hard reset (Level 2).
- Boots, but the system is a mess? Reflash the OS (Level 3).
- Won’t boot even with a fresh card? Reset the bootloader (Level 4).
- Still dead after all four? Check the supply and the LED codes, then contact the seller.
| Level | When to use it | What you lose |
|---|---|---|
| 1. Soft reboot | Still responding | Nothing |
| 2. Hard reset | Frozen solid | Unsaved work |
| 3. Reflash OS | Broken system or clean slate | Everything on the card |
| 4. Bootloader reset | Won’t boot at all | Custom bootloader settings |
Most people only ever need the first two. That’s good news, because levels 3 and 4 cost you your setup or a spare card, plus time you’d rather spend on the actual project.
Level 1: Soft Reboot (Still Responding)
If you can type, this is the cleanest option. It closes everything properly:
sudo reboot
Or use the power button. The Raspberry Pi documentation describes how it behaves:
- Raspberry Pi OS desktop: a brief press opens a window to shut down, reboot or log out. Press twice quickly to shut down.
- Raspberry Pi OS Lite: a single press starts a shutdown.
- Board is off but still powered: a press starts it up again.
In practice, a clean shutdown and a press to restart is the Pi 5’s version of “turn it off and on again.” No unplugging needed, and I think that alone makes the Pi 5 nicer to live with.
Level 2: Hard Reset (Frozen Solid)
When nothing responds to the keyboard, mouse or SSH, hold the power button down. The docs say holding it forces a hard shutdown. Then press it again to boot.
The trick is to use this only when the gentle options fail. A forced shutdown skips the normal process of closing files. Not a habit I’d build with an SD card.
No button access because the Pi sits in a case? Unplugging the power and plugging it back in does the same job.
Adding an External Reset Button
The Pi 5 has a small header labeled J2, between the real-time clock battery connector and the edge of the board. According to the docs, bridging its two pads with a normally open momentary switch does the same thing as the onboard button.
Handy for enclosures. When the board is buried inside a project box, a pair of wires from those pads to a panel-mount button gives you a reset switch on the outside of the case, and you never have to open the lid again just to restart a hung script.
Level 3: Factory Reset (Reflash the OS)
On a Pi, the factory reset is writing a fresh copy of Raspberry Pi OS to your card or SSD with Raspberry Pi Imager.
Back up anything you need first. Seriously. Writing the image erases everything on that card.
- Put the card in a reader on another computer and open Raspberry Pi Imager. I’d grab the latest version first. It runs on Windows, macOS and Linux, and you can install it on a Pi with
sudo apt install rpi-imager. - On the Device tab, select Raspberry Pi 5.
- On the OS tab, choose your operating system.
- On the Storage tab, select your card. Check twice. The docs warn that picking the wrong drive could overwrite it.
- In the customisation step, set the hostname, user, Wi-Fi and remote access if you need them.
- Write the image, put the card back in the Pi, and power it on.
My take: set up SSH and Wi-Fi in that customisation step. It saves you hunting for a keyboard and a monitor later.
Level 4: Reset the Bootloader (Won’t Boot)
The Pi 5 keeps its bootloader in onboard EEPROM, separate from the SD card. If a bad bootloader setting stops it booting, a fresh OS card won’t help. You need to reflash the bootloader itself.
The docs describe this as a recovery mechanism that can always reset the bootloader to a valid image with factory default settings. The steps:
- Insert a spare or empty microSD card into another computer and open Raspberry Pi Imager.
- On the Device tab, choose your Pi model. Don’t forget to pick the right model here.
- On the OS tab, scroll down to Misc utility images, then Bootloader, then SD Card Boot.
- On the Storage tab, select the spare card, then write it.
- Put that card in the Pi and connect power.
- Wait until the green activity LED flashes in a steady pattern. An HDMI screen, if connected, turns green.
- Disconnect power and remove the card. Then put your normal OS card back in.
No monitor attached? Don’t worry about the screen. Watch the LED instead.
What If It Still Won’t Start?
Check the power first. Honestly, it’s the cheapest thing to rule out, so I’d never skip it. The docs say the Pi 5 needs a supply that can deliver 3 A at 5 V just to boot, and Raspberry Pi recommends its 27 W USB-C supply (5 V at 5 A). With a 3 A supply, USB peripherals are limited to 600 mA.
Then read the green LED. When you count the flashes, count slowly. The docs list flash codes for boot failures. Seven short flashes, for example, mean the kernel image wasn’t found, which often points to a bad or empty OS card.
If a known-good supply, a freshly flashed card and a bootloader reset all fail, the board itself may be faulty. Stop there and contact the seller you bought it from about a warranty claim.
Running an older Pi 4 that’s sluggish rather than stuck? Read why is my Raspberry Pi 4 so slow. For more projects and fixes, see our DIY electronics section.
Frequently Asked Questions
Does the Raspberry Pi 5 Have a Reset Button?
Not a dedicated one. Its onboard power button handles shutdown, startup and a forced off, and the J2 header accepts an external switch that behaves identically.
How Do I Factory Reset a Raspberry Pi 5?
Write a fresh OS image with Raspberry Pi Imager. That wipes the card completely, so copy your files off beforehand.
What Happens if I Hold the Raspberry Pi 5 Power Button?
It forces a hard shutdown. A short press afterward boots it again.
How Do I Reset the Raspberry Pi 5 Bootloader?
Flash Misc utility images, Bootloader, SD Card Boot onto a spare card, boot from it, and wait for the steady green blinking before you unplug.
Why Won’t My Raspberry Pi 5 Turn on After a Reset?
Suspect the supply first: booting needs at least 3 A at 5 V. Next, count the activity LED blinks and compare them with the documented codes.
Last updated: November 10, 2026. Sources: Raspberry Pi documentation: hardware, power button and bootloader, Raspberry Pi documentation: getting started and Imager and Raspberry Pi Imager download page.