Skip to main content

Digital Trends may earn a commission when you buy through links on our site. Why trust us?

How to restore a Mac to its factory settings

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.

Recommended Videos

Erasing your Mac or MacBook

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.

A screen shot of the macOS recovery mode on a white background.

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.

Reinstalling the operating system

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.

The MacOS Utilities screen featuring four options, one of which, "Reinstall MacOS", is selected.

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.

Alternative: Overwrite install

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.

A MacBook Pro laptop sitting on a table in front of a window.

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.

Alternative: Time Machine

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.

Apple Music

A screenshot showing how to deauthorize your Mac in Apple Music.

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.

iCloud

A screenshot showing how to sign out of iCloud on a Mac.

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.

Messages

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.

Tyler Lacoma
If it can be streamed, voice-activated, made better with an app, or beaten by mashing buttons, Tyler's into it. When he's not…
Is macOS more secure than Windows? This malware report has the answer
A person using a laptop with a set of code seen on the display.

It’s a long-held belief that Macs are less at risk of malware and viruses than Windows PCs, but how true is that? Well, a new report has shed some light on the situation -- and the results might surprise you.

According to threat research firm Elastic Security Labs, roughly 39% of all malware infections happen on Windows PCs. In good news for Apple fans, only 6% of breaches occurred on macOS, making Mac systems far less vulnerable than their Windows counterparts.

Read more
Apple may be struggling with its next Mac chips — here’s why that matters
Apple's Tim Millet presents the Apple silicon A14 Bionic chip.

Apple’s chip manufacturer is “straining to meet demand” for the chips that will power future Macs, according to a report from EE Times. If these difficulties continue, it could have worrying implications for Apple with just months to go before the 3-nanometer M3 chip is set to debut.

TSMC is currently manufacturing Apple’s 3nm chips (which TSMC calls N3), and the EE Times report notes that TSMC’s “tool and yield struggles have impeded the ramp to volume production.” Aside from Samsung, TSMC is the only company that has the ability to make these chips, so any kind of delay could be of grave concern for Apple execs.

Read more
Here’s why WWDC could be a ‘critical event’ for Apple
Apple CEO Tim Cook looks at a display of brand new redesigned MacBook Air laptop during the WWDC22

Apple is planning a packed line-up for its Worldwide Developers Conference (WWDC) on June 5, which could become “one of the most critical events in the company’s history.” Aside from the company’s upcoming Reality Pro headset, there will be major updates to Apple’s software systems, including the biggest watchOS revamp since the Apple Watch launched in 2015.

That’s according to a new report from Bloomberg journalist Mark Gurman, who has a history of accurate predictions and leaks surrounding Apple products. It suggests that WWDC will be a chance for Apple to set out its future ambitions for a “post-iPhone era.”

Read more