Restoring your Mac to its factory settings will erase all your data from the hard drive as well as your preferences and customized settings. You can fix a number of technical issues by restoring a MacBook to its factory settings, and it’s also something you should do before selling your Mac or giving it to someone — you’ll protect your personal data and allow the new owner to personalize the device.
Our simple step-by-step guide will help you erase everything on your Mac, reinstall MacOS, and restore your machine to its original factory settings.
Step 1: For MacBooks, plug in the power adapter so there’s no danger of running out of battery power.
Step 2: Make sure your Mac is connected to the internet, preferably through a wired connection. Erasing your hard drive is simple, but once it’s wiped, you’ll need access to your Mac’s factory settings. Apple stores this data remotely on its servers.
Step 3: Click the Apple logo in the top-left corner and select Restart on the drop-down menu.
Step 4: Once your Mac restarts, press the Command + R keys together. Keep holding them until your Mac shows either an Apple logo, a spinning globe, or another startup screen. This takes you to MacOS Recovery.
Step 5: After a few moments, enter your password as prompted. The MacOS Utilities pop-up appears on your screen. Select Disk Utility on the list and click Continue.
Step 6: Your Mac’s startup disk is listed on the left, typically named “Macintosh HD” by default unless you renamed it. Also listed is another drive with the word “Data” appended at the end. For instance, if your startup disk is Macintosh HD, you should also see a drive labeled Macintosh HD — Data. If you don’t have a Data drive, don’t worry — just skip ahead to step 9.
Step 7: Select the Data drive, click Edit on the menu bar, and then select Delete APFS Volume on the drop-down menu. Alternatively, with the Data drive selected, you can click the Minus button in the Disk Utility toolbar.
Step 8: In the resulting window, click Delete to confirm. Make sure you don’t click Delete Volume Group. If you have any other Data drives, delete them too, but leave the regular Macintosh HD drive alone.
Step 9: Select your main volume — again, typically it’s Macintosh HD — and then click the Erase button. Assign a name (or stick with Macintosh HD) and select a format.
Note: For file format, you should choose either APFS or Mac OS Extended (Journaled). Disk Utility shows the recommended format by default — stick with that unless you have a specific reason for another format.
Step 10: Click Erase. You may see a prompt for your Apple ID info.
Finally, erasing your Mac’s drive could take some time. When it’s finished, close Disk Utility to return to the MacOS Utilities window.
With the primary drive erased, you now need to reinstall MacOS. Click the Reinstall MacOS option on the MacOS Utilities list and click Continue to proceed. You may need to click through a few confirmations and enter your password before moving forward.
Since Apple stores your Mac’s factory settings on its servers, your computer requires an internet connection so it can retrieve new, off-the-assembly-line settings.
Note: This download solution only works with newer versions of MacOS. This shouldn’t be an issue for modern devices, all of which are designed to download factory settings from the web.
However, if you’re working with Snow Leopard (10.6) or older, you can’t reinstall these settings from the web. Instead, you’ll need the original MacOS installation disc that came with your computer.
Also, when you reinstall MacOS, a setup assistant asks you basic questions regarding your region and so on.
If you’re selling or giving away your Mac, leave the setup assistant untouched. Instead, hold down the Command + Q keys to close the setup assistant, then click Shut Down. This will turn off your Mac and leave the setup assistant waiting for the new owner.
If wiping your MacBook isn’t ideal, you can fully reinstall MacOS without erasing any data. It’s the “lite” version of a full wipe since you don’t need to erase the disk if you just want a clean, fresh install.
This option is useful if you have corrupted data, malware you can’t isolate, or problems stemming from a faulty update. However, this process may leave behind data that would be relatively easy to recover — meaning this method isn’t a good idea if you’re selling or giving away your Mac.
Nevertheless, if you move forward with this method, follow the steps below. As always, make sure to back up any data and documents that you want to keep.
Step 1: Shut down your Mac and restart it as you normally would. Immediately after turning on your computer, hold down the Command + R keys, then release the keys when you see the Apple logo. This will open the MacOS Utilities window in MacOS Recovery.
Step 2: Select Reinstall MacOS on the list. Confirm that you want to reinstall the operating system, which installs the latest version.
If you already use Time Machine to store backups, you can also use it to restore MacOS. This is useful if you want to restore particular settings and data instead of your entire OS — perhaps in an effort to save data while dealing with a bug or similar issue.
Step 1: Shut down your Mac and restart it as normal. Once it powers on, hold down the Command + R keys, then release the keys when you see the Apple logo. This opens the MacOS Utilities window in MacOS Recovery.
Step 2: Select Restore From Time Machine Backup on the list. Remember that if you save backups on an external drive or server, your Mac must be connected to those devices to complete the restoration.
Deauthorizing your devices in Apple Music, iCloud, and Messages
If you’re selling or giving away your MacBook, make sure you fully deauthorize both your Mac and any connected devices before restoring the original factory settings. This helps prevent anyone from accessing your personal information in the future.
Step 1: Launch Apple Music and click Account in the menu bar.
Step 2: On the drop-down menu, hover over Authorizations, then click Deauthorize This Computer.
Apple Music will now remove that particular Mac from its list of authorized devices. You will no longer be able to access any of your Apple Music content from your machine, but neither will anyone else.
It’s not enough to simply sign out of iCloud — you also need to make sure no local data lingers on your computer.
Step 1: Click the Apple logo in the top-left corner and select System Preferences from the drop-down menu.
Step 2: Click the Apple ID icon within the System Preferences window.
Step 3: Select the Overview category listed on the left and then click the Sign Out button.
MacOS will ask if you want to keep your current iCloud data on the machine. Since you don’t, uncheck the boxes for everything you want to delete. Depending on what you decide to do with your MacBook, you might not uncheck any boxes.
If you plan on replacing your old Mac with a new one, you might want to sell your old one or give it away. Whichever you decide, it’s important to sign out of Mac’s Messages app to maintain your messages’ privacy. Signing out of Mac’s Messages app will sever the connection between your old MacBook and your iPhone, which will keep you from leaving private information behind. The easy process takes just two quick steps.
Step 1: Open the Messages app. Select Messages on the menu bar. Then click Preferences on the drop-down menu.
Step 2: Click the iMessage tab in the window that pops up. Then click Sign Out.
There are plenty of arguments for backing your data up. You don’t want the new owner of your computer accessing your personal or sensitive information, for starters. Besides, clearing out your computer before passing it on is a considerate thing to do. If you need a little help, take a look at our guides on backing up data to an external drive and backing up data with iCloud.