There are two main reasons why you might want to know how to factory reset a MacBook. If you’re having problems with your Mac, a reset can help to solve them. It’s drastic, but it often works. Secondly, if you’re selling or giving away your Mac, you should reset it to protect your data and to give the new owner the ability to make the computer their own.
The idea of wiping everything off your Mac might sound daunting, but if you know what you’re doing, it shouldn’t be too difficult. This guide will walk you through the process—whether you want to reset a MacBook Pro, a MacBook Air, an iMac, or a Mac Mini. If you’re wondering why does your Mac keep freezing, and you’ve tried all other fixes, a factory reset is the way to go.
Before we begin
As a preparation stage before your Mac’s reset, make sure to clean up your computer. MacKeeper’s Safe Cleanup tool is a safe and effective way to delete sensitive data from your MacBook. In addition to removing system logs and caches, it can also find and clear hidden junk and Mail attachments that may contain personal information.
Here’s how to use it:
- Download MacKeeper.
- Install it on your MacBook.
- When MacKeeper opens, select Safe Cleanup in the sidebar.
- Click Start Scan.
- Select all the files you want to delete, then click Clean Junk Files.
In this article you will find the following:
Steps to take before factory resetting your Mac
Before you completely wipe a MacBook or even start looking into how to clear system data on Mac, there are a few steps you should take to protect your data and prevent any other problems later. These include:
- Back up your MacBook
- Unpair your Bluetooth devices
- Sign out of your accounts on Mac
- Wipe Touch Bar data
- Delete the computer from the associated devices
- Reset NVRAM
1. Back up your MacBook
The first and most important step you should take before you restore a Mac to factory settings is to back up its data. The easiest way to do this is by enabling iCloud backup or by using Time Machine, but you can also clone your startup disk by using Disk Utility on Mac if you prefer to have a complete copy of it.
You can back up your data in several ways:
With iCloud
Here’s how to back up your Mac to iCloud:
- Open System Settings on your Mac, then click Apple ID in the sidebar.
- Select iCloud, then click iCloud Drive.
- Ensure the options for Sync this Mac and Desktop & Documents Folders are enabled, then click Done.
- Return to the iCloud menu in System Settings, then select Photos.
- Ensure that Sync this Mac is enabled, then click Done.
![System Settings on Mac shows the General menu. Select iCloud to back up to iCloud Drive. System Settings on Mac shows the General menu. Select iCloud to back up to iCloud Drive.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_53c278ab51.png)
![System Settings on Mac shows the iCloud menu. Select iCloud Drive to back up your Mac to iCloud. System Settings on Mac shows the iCloud menu. Select iCloud Drive to back up your Mac to iCloud.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_ab12f8aa6f.png)
![System Settings on Mac shows the iCloud Drive menu. Enable Sync this Mac and Desktop & Documents Folders, then click Done. System Settings on Mac shows the iCloud Drive menu. Enable Sync this Mac and Desktop & Documents Folders, then click Done.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_f5406f448a.png)
![System Settings on Mac shows the iCloud menu. Select Photos to back up the photos from your Mac to iCloud. System Settings on Mac shows the iCloud menu. Select Photos to back up the photos from your Mac to iCloud.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_e587043f3f.png)
![System Settings on Mac shows the Photos options for iCloud. Enable Sync this Mac, then click Done. System Settings on Mac shows the Photos options for iCloud. Enable Sync this Mac, then click Done.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_f834522ce2.png)
Note from our team: Backing up to iCloud can take time, especially if you’re performing a backup for the first time. Give your laptop time to complete the process before you start to reset it, to ensure that no data is lost when you erase the machine.
Using Time Machine
Alternatively, here’s how to back up your MacBook using Time Machine:
- Connect a clean external drive to your Mac, ensuring that its capacity is large enough to hold all your data. Apple recommends using a drive that’s twice as big as your Mac’s startup disk.
- Open System Settings on your Mac, then select General in the sidebar.
- Click Time Machine, then click Add Backup Disk.
- Select your external drive, then click Set Up Disk.
![System Settings on Mac shows the General menu. Select Time Machine to enable Time Machine backups on your Mac. System Settings on Mac shows the General menu. Select Time Machine to enable Time Machine backups on your Mac.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_88193a47cb.png)
![System Settings on Mac shows the Time Machine menu. Click Add Backup Disk to select an external drive for your Time Machine backups. System Settings on Mac shows the Time Machine menu. Click Add Backup Disk to select an external drive for your Time Machine backups.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_6e72f279ca.png)
![System Settings on Mac shows the Time Machine menu. After selecting your backup drive, click Set Up Disk. System Settings on Mac shows the Time Machine menu. After selecting your backup drive, click Set Up Disk.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_42da1fcf52.png)
Much like backing up to iCloud, performing a Time Machine backup for the first time can take a while. Allow the process to complete before resetting your Mac, or you’ll lose the data that has not yet been copied to your external drive.
With Disk Utility
As another way to do it, clone your Mac’s data with Disk Utility:
- Boot your Mac in Recovery mode by following the steps below.
- In the Recovery app, select Disk Utility, then click Continue.
- Connect a clean external drive that’s big enough to hold a complete copy of your Mac’s startup disk to your MacBook.
- In Disk Utility, select your clean external drive in the sidebar.
- Select Restore in the toolbar.
- In the Restore from menu, select your MacBook’s startup disk. It is usually called Macintosh HD.
- Click Restore.
- When the process is complete, you can quit macOS Recovery mode by clicking the Apple logo in the menu bar, then selecting Restart.
![macOS Recovery shows all Recovery utilities. Select Disk Utility to back up your Mac with a complete drive clone. macOS Recovery shows all Recovery utilities. Select Disk Utility to back up your Mac with a complete drive clone.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_9e046eee6d.jpg)
![Disk Utility on Mac shows all available drives. Select your external drive to clone to, then click Restore. Disk Utility on Mac shows all available drives. Select your external drive to clone to, then click Restore.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_5a62ac8fb2.png)
![Disk Utility on Mac shows the drive restore options. Select your Mac's startup disk, then click Restore. Disk Utility on Mac shows the drive restore options. Select your Mac's startup disk, then click Restore.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_e02c791262.png)
2. Unpair your Bluetooth devices
Even after you format a MacBook, it can still remember Bluetooth devices, so we remind you to unpair them before you start resetting your Apple computer like this:
- Open System Settings on your Mac, then select Bluetooth in the sidebar.
- Click the i button next to one of the Bluetooth accessories that has been paired with your MacBook.
- Select Forget This Device.
- Click Forget Device to confirm.
- Repeat this process for all devices in the list.
![System Settings on Mac shows all system options. Click Bluetooth to access the Bluetooth menu. System Settings on Mac shows all system options. Click Bluetooth to access the Bluetooth menu.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_5826515473.png)
![System Settings on Mac shows the Bluetooth menu. Click the i icon next to one of your Bluetooth devices. System Settings on Mac shows the Bluetooth menu. Click the i icon next to one of your Bluetooth devices.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_677980ca61.png)
![System Settings on Mac shows the Bluetooth options. Click Forget This Device to unpair your Bluetooth accessory. System Settings on Mac shows the Bluetooth options. Click Forget This Device to unpair your Bluetooth accessory.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_fbd7e1d8c4.png)
![System Settings on Mac shows the Bluetooth options. Click Forget Device to confirm you want to unpair your Bluetooth device. System Settings on Mac shows the Bluetooth options. Click Forget Device to confirm you want to unpair your Bluetooth device.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_ab2664c75d.png)
3. Sign out of your accounts on Mac
When you sign out of your Apple accounts before you erase a MacBook, you not only ensure that no one can access them later, but it also removes the Activation Lock on the Mac. As a result, the new owner of your machine can sign in using their accounts.
Start your sign-out with these steps:
Apple ID & iCloud
To remove your Apple ID and iCloud account from your MacBook, follow these steps:
- Open System Settings on your Mac, then select Apple ID in the sidebar.
- At the bottom of the window, click the Sign Out button.
- Uncheck all the boxes to ensure no data is left behind, then click Continue.
- Enter your Mac’s password when prompted to finish.
![System Settings on Mac shows all system options. Select Apple ID to sign out of your Apple ID and iCloud accounts. System Settings on Mac shows all system options. Select Apple ID to sign out of your Apple ID and iCloud accounts.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_4ebea07b05.png)
![System Settings on Mac shows the Apple ID menu. Click the Sign Out button to sign out of your Apple ID and iCloud accounts. System Settings on Mac shows the Apple ID menu. Click the Sign Out button to sign out of your Apple ID and iCloud accounts.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_715e9c1d71.png)
![System Settings on Mac shows the Apple ID option to log out. Uncheck all options, then click Continue. System Settings on Mac shows the Apple ID option to log out. Uncheck all options, then click Continue.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_3ceb31c7ad.png)
iTunes
If you use a separate account for iTunes and the App Store that’s not tied to your Apple ID, you’ll need to sign out of that manually like so:
- Open the Music app on your Mac.
- Select Account in the menu bar, then click Sign Out.
![Apple Music on Mac shows the Account menu. Click Sign Out to sign out of your iTunes account. Apple Music on Mac shows the Account menu. Click Sign Out to sign out of your iTunes account.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_30d1917dcf.png)
iMessage
Your Mac should be disconnected from iMessage automatically when you sign out of your Apple ID, but if that doesn’t happen, here’s how to sign out manually:
- Open Messages on your Mac.
- In the menu bar, click Messages > Settings.
- Click the iMessage tab, then click Sign Out.
- Select Sign Out again to confirm.
![Messages on Mac shows the menu bar options. Click Settings to access iMessage settings. Messages on Mac shows the menu bar options. Click Settings to access iMessage settings.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_f607bb4a7d.png)
![Messages on Mac shows the iMessage options menu. Click Sign Out to log out of your iMessage account. Messages on Mac shows the iMessage options menu. Click Sign Out to log out of your iMessage account.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_39c9c87d92.png)
![Messages on Mac shows the option to sign out of iMessage. Click Sign Out to confirm. Messages on Mac shows the option to sign out of iMessage. Click Sign Out to confirm.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_5ceea145df.png)
4. Wipe Touch Bar data
If you have a MacBook Pro with a Touch Bar, it’s a good idea to wipe its Touch Bar data to make sure that you remove any sensitive information it may contain:
- Boot your Mac in Recovery mode by following the steps below.
- In the Recovery app, select Utilities, then choose Terminal.
- In Terminal, type xartutil --erase-all, then press enter.
- When Terminal asks if you want to proceed, type yes then press enter.
- To exit Recovery mode, open the Apple menu, then select Restart.
![Recovery mode on Mac shows the Utilities menu bar options. Select Terminal to open it. Recovery mode on Mac shows the Utilities menu bar options. Select Terminal to open it.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_06486d7940.png)
![Terminal on Mac shows the command line. Type xartutil --erase-all then press enter to clear Touch Bar data. Terminal on Mac shows the command line. Type xartutil --erase-all then press enter to clear Touch Bar data.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_c716cf670c.jpg)
Wiping the Touch Bar data on your MacBook also clears all Touch ID data, ensuring that no fingerprint information is saved on your machine.
5. Delete the computer from the associated devices
If you’re selling or giving away your Mac, you need to delete it from the list of associated devices in Apple ID. Only a limited number of devices can be registered, so if you don’t remove it, it may prevent you from using Apple Music, Apple TV, and other services on a different device later. Here’s how to delete it:
- Open the Music app on your Mac.
- Click Account in the menu bar, then select Account Settings.
- Enter your email address and password to proceed.
- Click Manage Devices.
- Find your MacBook in the list of associated devices, then click the Remove button.
![Apple Music on Mac shows the Account menu. Click Account Settings to remove a device from your associated devices. Apple Music on Mac shows the Account menu. Click Account Settings to remove a device from your associated devices.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_7d61c8055f.png)
![Apple Music on Mac shows the Account Settings menu. Click Manage Devices to remove a device from your associated devices list. Apple Music on Mac shows the Account Settings menu. Click Manage Devices to remove a device from your associated devices list.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_7db1ae14c8.png)
![Apple Music on Mac shows all associated devices. Find the device you want to delete, then click Remove. Apple Music on Mac shows all associated devices. Find the device you want to delete, then click Remove.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_95158afcff.png)
6. Reset NVRAM
Resetting the NVRAM on your Intel MacBook uses the same process you would follow to reset PRAM on Mac. Here’s how to do it:
- Shut down your MacBook.
- Turn on your Mac, then immediately press and hold the Option, Command, P, and R keys.
- After about 20 seconds, release the keys and wait for your Mac to restart.
If you have a MacBook powered by an Apple Silicon chip, it doesn’t use NVRAM, so there’s no need to follow this process.
How to reset your Mac in Recovery mode
You can erase a MacBook and wipe its hard drive data using Recovery mode. But if you still want to factory reset a MacBook, make sure it’s plugged into the mains before you start.
The process for entering Recovery mode differs between Intel and Apple Silicon Macs, though, so we’ll look at both here:
How to put an Intel Mac into Recovery mode
- Click the Apple logo in the top left of your screen, then choose Restart.
- When your Mac shuts off and powers back on, press and hold Command + R until you see the Apple logo, then release the keys.
- You should now enter Recovery mode.
How to enable an M1 Mac into Recovery mode
- Click the Apple logo in the top left of your screen, then choose Shut Down.
- When it’s completely shut down, press the power button on your machine and keep it held down.
- Your Mac will turn on, and eventually, you’ll see Loading startup options.
- Select Options to get into Recovery.
How to restore a Mac on different versions of macOS to factory settings
We’d like to warn you that the steps to restore a Mac to factory settings differ depending on which version of macOS your MacBook is running, with later versions not needing Recovery mode on modern devices. Choose the right steps for your operating system below:
MacBook running macOS Ventura and Sonoma
- Open System Settings on your Mac, then select General in the sidebar.
- Click Transfer or Reset.
- Select Erase All Content and Settings.
- Enter your Mac’s administrator password, then click Unlock.
- Click Continue.
- Enter your iCloud password if prompted.
- Click Erase All Content & Settings to confirm.
- Once the process is complete, your Mac will restart to the setup screen.
![System Settings on Mac shows the General menu. Click Transfer or Reset to factory reset your Mac. System Settings on Mac shows the General menu. Click Transfer or Reset to factory reset your Mac.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_6863e4f6cc.png)
![System Settings on Mac shows the Transfer or Reset menu. Click Erase All Content and Settings to factory reset your MacBook. System Settings on Mac shows the Transfer or Reset menu. Click Erase All Content and Settings to factory reset your MacBook.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_dac781f1a6.png)
![Erase Assistant on Mac shows the login prompt. Enter your admin password to continue. Erase Assistant on Mac shows the login prompt. Enter your admin password to continue.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_3378841a59.png)
![Erase Assistant on Mac shows the Erase All Content & Settings screen. Click Continue to proceed. Erase Assistant on Mac shows the Erase All Content & Settings screen. Click Continue to proceed.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_590a625779.png)
![Erase Assistant on Mac shows the Sign Out screen. Enter your iCloud password to continue. Erase Assistant on Mac shows the Sign Out screen. Enter your iCloud password to continue.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_4c3e86c0c2.png)
![Erase Assistant on Mac shows the Erase All Content & Settings confirmation prompt. Click Erase All Content & Settings to confirm. Erase Assistant on Mac shows the Erase All Content & Settings confirmation prompt. Click Erase All Content & Settings to confirm.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_88e619ca10.jpg)
MacBook running macOS Monterey
- Open System Preferences on your Mac.
- Click System Preferences in the menu bar, then select Erase All Content and Settings.
- Sign in with administrator credentials.
- Confirm by clicking Erase All Content & Settings.
- Your Mac will restart into setup mode when the reset is complete.
![System Preferences on macOS Monterey shows the menu bar options. Click Erase All Content and Settings to factory reset your MacBook. System Preferences on macOS Monterey shows the menu bar options. Click Erase All Content and Settings to factory reset your MacBook.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_3da92bda5e.png)
![System Preferences on macOS Monterey shows the Transfer or Reset menu. Click Erase All Content and Settings to delete all data and factory reset your Mac. System Preferences on macOS Monterey shows the Transfer or Reset menu. Click Erase All Content and Settings to delete all data and factory reset your Mac.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_184f212844.png)
Hint from our experts:
If you see Erase Assistant not supported on this Mac message, it may be that your MacBook isn’t compatible with this feature. Erase all content and settings is only available on Macs with Apple Silicon or a T2 Security Chip.
Mac on macOS Catalina, macOS Big Sur
For these two versions, Mac Mojave, or earlier, follow these instructions:
- After booting into Recovery mode, select Disk Utility, then click Continue.
- Select your MacBook’s startup disk in the sidebar. It should be called Macintosh HD.
- Click the Erase button in the toolbar.
- We recommend leaving the drive name and format as suggested by Disk Utility. Now click Erase Volume Group. If you don’t see this option, click Erase.
- When the process is complete, you can close Disk Utility by selecting Disk Utility > Quit Disk Utility in the menu bar.
- When the Utilities menu reappears in Recovery mode, select Reinstall macOS, then click Continue.
- Click Continue, then choose your Mac’s startup disk.
- Follow the process onscreen to proceed.
![Recovery mode on macOS Catalina shows the Utility menu. Select Disk Utility, then click Continue. Recovery mode on macOS Catalina shows the Utility menu. Select Disk Utility, then click Continue.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_8f8ade2062.png)
![Disk Utility in macOS Catalina Recovery mode shows all disk drives. Select your Mac's startup disk then click Erase to wipe all data and factory reset your Mac. Disk Utility in macOS Catalina Recovery mode shows all disk drives. Select your Mac's startup disk then click Erase to wipe all data and factory reset your Mac.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_b76661fc5f.jpg)
![Disk Utility in macOS Catalina Recovery mode shows the Erase feature. Click Erase Volume Group or just Erase to continue. Disk Utility in macOS Catalina Recovery mode shows the Erase feature. Click Erase Volume Group or just Erase to continue.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_466ea413a5.png)
![Disk Utility in macOS Catalina Recovery mode shows the menu bar options. Click Quit Disk Utility when you want to exit. Disk Utility in macOS Catalina Recovery mode shows the menu bar options. Click Quit Disk Utility when you want to exit.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_de9b22b8b8.png)
![Recovery mode on macOS Catalina shows the Utility menu. Click Reinstall macOS, then select Continue. Recovery mode on macOS Catalina shows the Utility menu. Click Reinstall macOS, then select Continue.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_6b69f8996d.png)
![macOS Recovery mode shows the Install macOS Catalina screen. Click Continue, then follow the onscreen steps to reinstall macOS. macOS Recovery mode shows the Install macOS Catalina screen. Click Continue, then follow the onscreen steps to reinstall macOS.](https://static-cdn.mackeeper.com/mk-blog-upload/images/new_4722914095.jpg)
FAQ
Does factory reset remove everything from your MacBook?
When performed correctly, a factory reset should remove all data from your MacBook. However, it’s important to remember that you should back up your machine and sign out of your Apple accounts before starting the reset process.
How to hard reset your Mac?
The best way to hard reset a Mac and remove all its data is by using the Erase All Content and Settings feature in modern versions of macOS. In older versions of the operating system, you can boot into Recovery mode and wipe the Mac’s startup disk using Disk Utility.
How can you wipe a MacBook to factory settings without a password?
Depending on which type of MacBook you have and whether it’s tied to your Apple ID, it may not be possible to factory reset a MacBook without its password. Try resetting the password for your Apple ID first so that you can remove the Activation Lock. On older Mac models and those that aren’t tied to an Apple ID, you can wipe the machine to factory settings using Disk Utility in Recovery mode.