What restoring to factory default actually does
Restoring your MacBook Pro to factory default erases everything on the drive — all files, applications, settings, and accounts — and reinstalls a clean copy of macOS. This is not the same as restarting. It is a complete wipe followed by a fresh installation of the operating system that shipped with your machine.
You end up with a MacBook that looks and behaves exactly as it did when you first turned it on, before you installed anything or created any files. All your data is gone unless you backed it up beforehand. This process takes 30 minutes to several hours depending on your internet speed and which macOS version you are installing.
People do this for three main reasons: to sell or give away the machine, to fix serious software problems that won't respond to normal troubleshooting, or to start fresh after years of accumulated clutter. If you are doing this to fix a specific problem, try restarting in Safe Mode or running Disk Utility first — those solve most issues without erasing anything.
Key Takeaways
- Back up everything you want to keep before you start, because the process erases your entire drive with no recovery option.
- The fastest method on modern MacBook Pro models is to erase the drive using Disk Utility, then reinstall macOS from Recovery Mode.
- You will need your Apple ID and password during setup, and the machine will need an internet connection to download and install macOS.
- The whole process takes longer on older machines or slower internet connections, but the steps are the same regardless of speed.
Back up your data before you do anything
Once you erase the drive, there is no way to get your files back unless you have a backup. Use Time Machine if you have an external drive, or iCloud if you have enough storage space. Both take time to complete, so start the backup now and let it finish before you proceed.
To back up with Time Machine, plug in an external drive, open System Settings, go to General > Time Machine, click Add Backup Disk, and select your external drive. Let it run to completion — this can take hours if you have a lot of data. To back up to iCloud, go to System Settings > [Your Name] > iCloud and turn on iCloud Drive, then wait for the upload to finish.
Write down any passwords, license keys, or account information you will need after the restore. You will need your Apple ID password for sure. If you use any subscription software or services that require login, note those credentials somewhere safe.
Erase the drive using Disk Utility
Shut down your MacBook completely. Turn it back on and immediately hold down Command + R to boot into Recovery Mode. You will see the macOS Utilities window after a few seconds. Click Disk Utility and then Continue.
In Disk Utility, select your main drive from the list on the left — it is usually called "Macintosh HD" or something similar. Click the Erase button at the top. A dialog will appear asking for a name and format. Leave the name as "Macintosh HD" and make sure the format is set to APFS (or Mac OS Extended if you are running an older version). Click Erase to confirm.
The erase process takes a few minutes. When it finishes, you will see an empty drive in Disk Utility. Close Disk Utility and you will return to the macOS Utilities window. The drive is now blank and ready for a fresh installation.
Reinstall macOS from Recovery Mode
From the macOS Utilities window, click Reinstall macOS (or Reinstall OS X on older machines). Click Continue and follow the prompts. You will be asked to select a drive — choose the "Macintosh HD" drive you just erased.
The installer will download macOS from Apple's servers. This step requires an internet connection and can take 30 minutes to an hour depending on your speed. Do not close the window or shut down the machine during this download. Once the download finishes, the installation begins automatically.
The installation itself takes another 20 to 40 minutes. Your MacBook will restart several times during this process. Let it run without interruption. You will see a progress bar and estimated time remaining. When installation is complete, you will see the macOS setup screen.
Set up your MacBook as new or restore from backup
The setup assistant will walk you through creating a new user account, connecting to Wi-Fi, and signing in with your Apple ID. You must have your Apple ID password ready. If you do not remember it, you can reset it at iforgot.apple.com before you start this process.
When asked whether to restore from a backup or set up as new, choose based on what you want. If you backed up with Time Machine, you can restore from that backup now and get all your files, applications, and settings back. If you backed up to iCloud, you can sign in and download your files after setup completes. If you want a completely clean machine, choose Set Up as New.
Restoring from a backup takes additional time — usually 30 minutes to several hours depending on how much data you have. The machine will restart again during this process. Once restoration is complete, your MacBook will look and work exactly as it did before the erase, except the drive is now clean and any corrupted files have been removed.
Troubleshooting if something goes wrong
If you get stuck in Recovery Mode and cannot proceed, try restarting again by holding the power button for 10 seconds, then holding Command + R again. If Disk Utility does not show your drive, your drive may be failing — this is rare but possible on older machines.
If the macOS download fails or stalls, check your internet connection and try again. If you are on Wi-Fi, try moving closer to the router or connecting via ethernet with a USB adapter. If the installation fails partway through, restart in Recovery Mode again and try the reinstall step once more.
If you forget your Apple ID password during setup, you can skip that step and set it up later. Go to System Settings > [Your Name] after setup completes and sign in then. If you cannot remember your password at all, use iforgot.apple.com to reset it before restarting the process.
What to do after the restore is complete
Once setup finishes and you are at the desktop, your MacBook is back to factory default. If you restored from a backup, all your files and applications are back. If you set up as new, you will need to reinstall your applications and restore your files from backup manually.
Run Software Update to make sure you have the latest security patches. Go to System Settings > General > Software Update and install anything available. This is important even though you just installed macOS, because updates are released frequently.
If you are selling or giving away the machine, sign out of your Apple ID before handing it over. Go to System Settings > [Your Name] and click Sign Out. This removes the machine from your account and allows the new owner to set it up with their own Apple ID.
Frequently Asked Questions
Can I undo a factory reset after I have already erased the drive?
No. Once you erase the drive and reinstall macOS, your old files are gone permanently. This is why backing up before you start is critical. If you did not back up and need to recover files, you may be able to use data recovery software, but success is not may provide and costs money.
Do I need an external drive to do a factory reset?
No. You can erase and reinstall macOS using only Recovery Mode and an internet connection. An external drive is only needed if you want to back up your files first, which you should do.
How long does the whole process take?
The erase itself takes a few minutes. Downloading and installing macOS takes 30 minutes to two hours depending on your internet speed. Restoring from a backup adds another 30 minutes to several hours. Plan for at least two hours total, longer if your internet is slow or you have a lot of data to restore.
What if my MacBook is too old to run the latest macOS?
Recovery Mode will reinstall the newest version of macOS that your machine supports. Older MacBook Pro models cannot run the latest versions, but Recovery Mode knows which version is compatible with your hardware and installs that automatically.
Will a factory reset remove malware or viruses?
Yes. Erasing the drive and reinstalling macOS removes any malware that was present. However, if you restore from a backup that was infected, you may restore the malware too. If you suspect malware, set up as new instead of restoring from backup.