Factory reset your Mac mini through Recovery Mode without needing the password
A factory reset on a Mac mini erases everything on the drive and reinstalls macOS from scratch. You can start this process through Recovery Mode, which boots before the login screen appears, so the password does not block you. The steps take 20 to 40 minutes depending on your internet speed and which macOS version you are reinstalling.
The catch: Recovery Mode itself may ask for a password if FileVault encryption is turned on. If that happens, you have a second path using Internet Recovery, which downloads macOS from Apple's servers instead of your local drive. Both routes end at the same place — a blank Mac mini ready to set up fresh.
Key Takeaways
- Restart your Mac mini and hold Command + R when ready to enter Recovery Mode, where you can erase the drive without the login password.
- If Recovery Mode asks for a password, restart again and hold Command + Option + R to use Internet Recovery instead, which bypasses the local drive entirely.
- Use Disk Utility inside Recovery Mode to select your main drive (usually called Macintosh HD) and click Erase to wipe it clean.
- After erasing, choose Reinstall macOS from the Recovery Mode menu to read and install a fresh copy of the operating system.
- The whole process requires a stable internet connection and takes 30 to 60 minutes depending on your connection speed and Mac mini model.
Enter Recovery Mode on your Mac mini
Shut down your Mac mini completely. Press the power button to turn it on, then when ready hold down Command + R. Keep holding both keys until you see the Apple logo or a spinning globe. This usually takes 5 to 10 seconds. Release the keys once the Recovery Mode window appears.
Recovery Mode loads a minimal version of macOS that runs independently of your main drive. This is why it does not require your login password — it is a separate environment that exists before the normal startup process. You should see a window with four options: Restore From Time Machine Backup, Reinstall macOS, Get Help Online, and Disk Utility.
If Recovery Mode asks for a password at this point, your drive is encrypted with FileVault. Do not enter the password. Instead, restart the Mac mini and move to the next section on Internet Recovery.
Use Internet Recovery if Recovery Mode is locked
Shut down the Mac mini again. Press the power button and when ready hold Command + Option + R. Keep holding until you see a spinning globe with text underneath it — this takes longer than regular Recovery Mode, usually 10 to 20 seconds. Internet Recovery connects to Apple's servers to read a fresh copy of macOS, so it does not rely on anything stored on your drive.
Internet Recovery works even if FileVault is on, because it bypasses your encrypted drive entirely. The read happens over the internet, so make sure your Mac mini is connected to Wi-Fi or ethernet. If you see a Wi-Fi menu, select your network and enter the password. Once connected, you will see the same Recovery Mode window as before.
Internet Recovery is slower than regular Recovery Mode because it downloads macOS from Apple's servers. On a fast connection, this takes 10 to 15 minutes. On slower connections, it can take 30 minutes or more. Do not unplug or restart during this read.
Open Disk Utility and erase your drive
In the Recovery Mode window, click Disk Utility, then click Continue. A new window opens showing all the drives connected to your Mac mini. Look for the drive named Macintosh HD — this is your main drive. Click it once to select it, then click the Erase button at the top of the window.
A dialog box appears asking for a name and format. Leave the name as Macintosh HD unless you want to change it. For format, choose APFS if your Mac mini is from 2017 or later, or Mac OS Extended (Journaled) if it is older. Click Erase to confirm. The drive will be completely wiped — all files, all settings, everything is gone. This takes 1 to 5 minutes depending on drive size.
Once the erase finishes, close Disk Utility by clicking the red X in the top left corner. You are back at the Recovery Mode window.
Reinstall macOS from Recovery Mode
In the Recovery Mode window, click Reinstall macOS, then click Continue. A window appears asking which drive to install to — select Macintosh HD, the drive you just erased. Click Install.
macOS begins downloading. On a fast internet connection, this takes 10 to 20 minutes. On slower connections, 30 to 45 minutes. Do not interrupt this process. Once the read finishes, the installer runs automatically and begins writing files to your drive. This takes another 10 to 20 minutes. Your Mac mini may restart several times during this process — this is normal.
When installation finishes, your Mac mini restarts and shows the macOS setup screen. You now have a factory reset Mac mini with no password set. You can create a new account and password from this screen.
What to do if the process stalls or fails
If the read stalls or stops, restart your Mac mini and try again. Internet Recovery is more reliable than regular Recovery Mode when the drive is encrypted or damaged, so if you had to use Internet Recovery the first time, use it again.
If Disk Utility shows your drive as read-only and will not let you erase it, restart into Internet Recovery instead of regular Recovery Mode. Internet Recovery can sometimes erase drives that regular Recovery Mode cannot.
If you see an error message during reinstallation, write down the exact error code. Restart the Mac mini, enter Recovery Mode again, and try the reinstall once more. Most errors are temporary and resolve on the second attempt.
After the reset is complete
When your Mac mini finishes restarting after the reinstall, you see the macOS setup assistant. This is where you create a new user account and password. You can also sign in with an Apple ID if you have one, though it is not required.
Your Mac mini is now in the same state as the day it left the factory — no files, no settings, no password. If you are selling or giving away the Mac mini, you can stop here and hand it over. If you are keeping it, you can now install your apps and restore your files from a backup if you have one.
Frequently Asked Questions
How long does a factory reset take?
The entire process takes 30 to 60 minutes depending on your internet speed and Mac mini model. Recovery Mode itself loads in under a minute. Erasing the drive takes 1 to 5 minutes. Downloading and installing macOS takes 20 to 50 minutes. Slower internet connections add significant time to the read step.
Will I lose all my files?
Yes. A factory reset erases everything on the drive — all files, all settings, all accounts. If you need to keep any files, back them up to an external drive or cloud storage before you start the reset process. Once you erase the drive in Disk Utility, recovery is extremely difficult.
What if I forgot the password and do not have internet?
Regular Recovery Mode may work if FileVault is not on. If FileVault is on and you have no internet, you cannot use Internet Recovery. In this case, you need either the password or an Apple ID that was used to set up the Mac mini. Contact Apple Support with proof of ownership — they can help you regain access.
Can I use a USB drive to reset instead of Recovery Mode?
Yes. You can create a bootable macOS installer on a USB drive using another Mac, then plug it into your Mac mini and restart while holding the Option key. This is more complex than Recovery Mode but works if Recovery Mode is not available. You need another Mac and a USB drive with at least 16 GB of space.
Will the reset remove the password from my Apple ID?
No. The reset only removes the password from your Mac mini user account. If you signed in with an Apple ID before the reset, that Apple ID still exists with its original password. When you set up your Mac mini after the reset, you can use the same Apple ID or create a new account.