How to Reset a Mac: Factory reset a MacBook Air or MacBook Pro

Factory reset your MacBook
(Image credit: Laptop Mag)

Does your MacBook Air or MacBook Pro seem a little long in the tooth? Is there an issue you can’t seem to solve no matter how you try? Or do you want to sell your MacBook without a trace of personal data on it? Here's our guide on how to reset a MacBook — or any Mac computer — to solve any of those issues.

Below, we explain how to completely factory reset your MacBook (or iMac) to a like-new state. The instructions below (with a few minor tweaks here or there, depending on your exact machine) will work for macOS Big Sur and most older versions of the operating system. 

Before you do this, be sure to back up your data. If you’re selling your MacBook, also make sure to sign out of iMessage, iCloud and any other accounts before you reset. Worried about losing your data? Scroll to the bottom of this article for steps you should take before factory resetting your MacBook.

How to reset a MacBook Air or MacBook Pro

1. Hold down the Command and R keys on the keyboard and turn on the Mac. Let go when the Apple logo pops up.

2. Select your language and continue.

3. Choose Disk Utility and click Continue.

4. Choose your startup disk (named Macintosh HD by default) from the sidebar and click the Erase button.

5. After you've chosen a name for the disk once it's erased, select Mac OS Extended (Journaled) from the dropdown menu and then click Erase. (If you want to encrypt your disc for extra security, choose the “Journaled, Encrypted” option. You’ll be prompted to create a password.) Choose GUID Partition Map.

6. Click Erase then Done and exit the window.

7. If you haven’t done this already, connect to Wi-Fi in the top right-hand corner, just like you usually would on your Mac.

8. From the main menu, choose Reinstall macOS and then click Continue.

9. Press Continue. A pop-up window will appear; choose Continue there, too.

10. Read the software license agreement and click Agree.

11. Choose your boot disk and click Install.

12. Wait for the first step of the installation to occur. (This is a good time to take a break and stretch your legs. Getting a sandwich is encouraged, but optional.)

13. The computer will restart and continue installing.

What to do before you reset your MacBook

The guide above is focused on resetting your MacBook, but there are recommended actions to take before factory resetting your MacBook that you should be aware of. These pointers will ensure that you don't lose any personal files, photos or apps when you move from one MacBook to another.

Here are some things to consider doing before you reset your MacBook Air or MacBook Pro.

  • Back up your MacBook. We can't overstate the importance of this step. Creating a backup will protect your most valuable files. If you don't back up your data, it will disappear into the ether when you perform a factory reset.
  • Sign out of iTunes. Choose Account > Authorizations > Deauthorize This Computer. If you're running the latest macOS, you can skip this step. 
  • Sign out of iCloud. Hit the Apple menu, go to System Preferences then click the Apple ID. Choose iCloud from the side panel and Turn off Find my Mac. Then click Overview and Sign out.
  • Sign out of iMessage. Open the Messages app, choose Messages then Preferences. Click iMessage and Sign Out.
  • Unpair Bluetooth devices. Go to the Apple menu > System Preferences and choose Bluetooth. Here, you can unpair keyboards, headphones or other Bluetooth-enabled peripherals

Now you know how to factory reset a MacBook or any Mac computer!

From here, if you’re looking to sell your computer, you’re all done — no need to worry about the new owner getting into your files or apps. If you want to get back to the desktop, follow the prompts as if you were setting up your MacBook for the first time. 

If your old Mac is still acting up and you've decided you want to upgrade, check out our roundup of the best MacBooks available now or we can help you decide between MacBook Air vs. MacBook Pro