How to Factory Reset a MacBook Without Losing Data (Step-by-Step Guide)

English Français Deutsch やまと Español Português

How to factory reset a Mac?

Quick Answer: To factory reset a Mac without losing data, you must first create a full backup (Time Machine), then choose a method:

Method 1: Reset with the "Erase All Content and Settings" button (For T2 & Apple Silicon Macs running macOS Monterey and later)

Method 2: Reset the Mac manually by erasing the startup disk and reinstalling macOS (For Intel Macs running macOS Big Sur or earlier)

Factory reset MacBook

When Do You Need to Factory Reset Your Mac?

There are several situations where a factory reset becomes necessary. 

If you're planning to sell, trade in, or give away your Mac, resetting it ensures that all your personal data is completely removed and the device is ready for its next user. It's also a common solution for persistent system issues, such as frequent crashes, sluggish performance, or software conflicts that can't be fixed through regular troubleshooting.

It's important to understand what a factory reset actually does. This process will erase all data on your Mac and reinstall macOS, returning the system to a clean, like-new state. Because everything is removed, preparing properly beforehand is essential to avoid losing important files.

Before You Start: Protect Your Data and Accounts

Before factory resetting your Mac, take some steps to back up the important data and ensure a smooth transition. Skipping it will likely result in permanent data loss or account-related issues.

Back up your Mac (Required)

Creating a full backup of your Mac is the most important step before factory resetting a Mac. You can use Time Machine to back up the current operating system, apps, settings, and user files. This ensures you can restore to the previous state and preserve data.

Here's how: (on macOS Ventura or later)

  1. Prepare an external storage device and format it in Mac OS Extended (Journaled).
  2. Open System Settings > General > Time Machine.
  3. Click the ( + ) button, choose your external disk, and click Set Up Disk….
    Choosing an external drive to back up data with Time Machine
  4. Choose whether to encrypt the disk and click Done.
  5. If it prompts you to erase the disk, follow the instructions.
  6. After the drive is prepared, click Options.
  7. Set up the backup frequency.
  8. Exclude files you don't want to back up and click Done.
    Choosing files you don
  9. Wait for the Time Machine backup to start and finish.
    Time Machine starting backing up the Mac

If your Mac is running macOS Monterey or earlier, refer to this guide: A Time Machine Guide to Back Up and Restore Your Mac.

Once the backup is complete, don't assume your data is there - verify it. Open the Time Machine app from the Applications > Utilities folder. Then browse through the backup to ensure your files are there and accessible.

Sign out of Apple ID and Services

Any services that your Apple email is linked to should be disconnected, especially services and apps associated with privacy, such as iCloud, iMessages, and Find My.

If you don't log out, sometimes the new users might have trouble logging in to their Apple accounts.

You can either open each software or service to log out or remove the computer from your Apple account.

Once signed out, remove the Mac from your Apple ID device list. This ensures your account is fully disconnected from the Mac.

1. Go to the Apple ID website and log in with your email address and password to manage your Apple account.

2. Scroll down to the Device section and find the Mac computer you will reset to factory defaults.

3. Select it and click "Remove from account".

Remove devices from Apple account

Deauthorize This Mac (Optional but Recommended)

Apple limits users to associate and authorize up to 10 Apple devices (no more than 5 computers) with the same Apple email account. On these associated devices, all purchased content, including games, software, and music, can be downloaded and played.

Forgetting to remove an old device can cause inconvenience later. By deauthorizing the Mac before resetting it, you free up the slot and avoid hitting the limit in the future.

If you are going to factory reset MacBook Pro 2012 or older models, you should take this as a priority because the iTunes Store account can only be used for up to 5 devices in macOS Mojave or older versions.

How to remove the Mac from associated devices:

  1. Open the Apple Music app on your Mac.
  2. Go to the Apple menu bar where the Apple logo is at the top left corner and choose Account > Authorizations > Deauthorize This Computer.
    deauthorize iTunes 
  3. Enter your Apple ID email and password on the pop-up. Forgot the Apple ID password
    Deauthorize accounts on Mac
  4. Click Deauthorize to confirm.

Method 1: Factory Reset Mac with "Erase All Content and Settings" (Fastest Way)

For a MacBook that runs macOS Monterey or later with an Apple silicon or T2 security chip, there's a button called Erase All Content and Settings that allows you to delete all user data, reset system settings, remove Apple ID and Activation Lock while keeping the current installed OS intact.

You can go to the Apple menu > About This Mac to check if your Mac has a T2, M1, M2, M3, or M4 chip. If it is, you can follow the steps below to factory reset your MacBook running Monterey with the button.

How to factory reset a T2, M3, M2, M1 MacBook Pro or MacBook Air running Monterey or later:

  1. Go to the Apple menu > System Settings > General > Transfer or Reset and then click the Erase All Content and Settings button. 

    If your Mac uses macOS Monterey, click the Apple menu > System Preferences > Erase All Content and Settings. 
    Choosing Erase All Content and Settings on macOS Monterey 
     
  2. Follow the on-screen instructions on the erase assistant prompt to erase and factory reset your Mac. 

    You will be asked to sign in with your admin password and Apple account to keep all data and settings wiped. 
     
  3. Click the Erase All Content & Settings button on the window again to start the process. 
    erase all content and settings on Mac
  4. Reconnect to the Bluetooth accessories if asked and choose a language.
  5. Choose a Wi-Fi network when asked.
  6. Click Restart when you see "Your Mac is activated" on the screen. (what to do if you see "Failed to activate device" on your MacBook)
  7. Follow the on-screen setup guide to set up your Mac. 

    If you are preparing to sell or give away this Mac, skip the setup instructions after the device restarts.
  8. Your Mac will restart and display the Hello setup assistant screen when done.

Want to factory reset your M1 Mac, follow: How to factory reset your M1 Mac?

Method 2: Factory Reset Mac Manually (Intel or Older macOS)

If your Mac runs macOS Big Sur, Catalina, or earlier, or is an Intel-based MacBook, it does not have a reset button. To completely wipe a MacBook, you need to enter macOS Recovery Mode, erase the startup disk, and reinstall macOS.

Step 1: Enter macOS Recovery Mode

  1. Start by booting your Mac into macOS Recovery Mode. The way you do this depends on your device.
  2. Press the power button to start your Mac and immediately press down the Command + R  keys together before your Mac chimes. 
  3. Release the keys until you see the Apple logo, and connect the Mac to the network if it isn't connected to a known network automatically.
  1.  

If everything goes correctly, you'll see the macOS Utilities window. This screen confirms that you've successfully entered Recovery Mode and can proceed with resetting your Mac.

Step 2: Erase the startup disk in Disk Utility

Once you're in Recovery Mode, the next step is to erase your Mac's startup disk

  1. (If your MacBook is stuck in Recovery Mode, read the full guide to fix it on Apple Report.)
  1. Choose Disk Utility and click Continue in the macOS Utilities window.
    Disk Utility in Mac recovery mode 
  2. Click View and choose Show All Devices to list the internal hard drive and all its volumes on the sidebar.
  3. Select the entire internal hard drive (the top-level drive on the sidebar) and click Erase from Disk Utility's toolbar.
  4. Name the volume and leave the format as it is. Use GUID Partition Map as Scheme. (APFS: for macOS High Sierra and later; Mac OS Extended (Journaled): for macOS Sierra or earlier.)
    erase startup disk to factory reset Mac in macOS Mojave
  5. Click Erase.

You can go to the top Apple menu, click Disk Utility, and click Quit Disk Utility, but don't restart the Mac yet because you need to reinstall macOS in the macOS Utilities window.

Step 3: Reinstall macOS

After you have erased all content and settings, you cannot just sell, trade in, or give away your Mac notebook with a blank hard drive. The new user might encounter a flashing Mac folder with a question mark on the screen when he or she starts up the Mac because no OS is installed for loading up.

To reinstall macOS, select Reinstall macOS in the macOS Utilities window in Recovery Mode and then follow the onscreen instructions to install a fresh copy of macOS on your Mac.

reinstall macOS

Read to know how to clean reinstall macOS from macOS Recovery mode, including clean reinstalling the original version, the current version, or the latest compatible version of macOS.

The macOS reinstallation typically takes half to an hour, and your screen will show multiple process bars or other indicators. After macOS is installed, you'll be asked to select your country or region. If you want to pass on the Mac to another owner after you factory reset it, you can shut it down at this point. If you will keep this Mac, follow the setup assistant to set up your Mac.

Common Mistakes to Avoid

There are a few common mistakes that can cause problems during a factory reset. Ensure you avoid them.

  • ❌ Not backing up data before reset 
  • ❌ Forgetting to sign out of Apple ID (Activation Lock issue) 
  • ❌ Erasing the wrong disk in Disk Utility

Conclusion

Factory resetting a Mac may sound complicated, but the process becomes straightforward when you follow the right steps. The key workflow is simple: back up your data, erase the Mac, reinstall macOS, and then verify that everything has been properly reset.

Among these steps, backing up your data and verifying the results are the most important. A reliable backup ensures you don't lose important files, while proper verification confirms that your Mac is clean, secure, and ready for its next use, whether that's a fresh start for yourself or a smooth handoff to a new owner.

This article is also helpful when you need to factory reset your MacBook Pro, MacBook Air, iMac, Mac mini, and Mac Pro.

Also read:

[Tutorial]How to Recover Data After Factory Reset Mac

How to Factory Reset MacBook Pro/Air without Password or Apple ID?

FAQs

QCan I factory reset a Mac without Apple ID?
A

Yes, you can factory reset a Mac without entering an Apple ID in some cases, but it depends on how the device is configured. On newer Macs with a T2 security chip or Apple Silicon, Apple uses a feature called Activation Lock, which is tied to the Apple ID used on the device. This feature is automatically enabled when Find My Mac is turned on.

If Find My Mac is enabled, the Mac will remain linked to that Apple ID even after a reset. This means that during setup, you’ll be required to enter the original Apple ID and password to activate the device. Without those credentials, you won’t be able to complete the setup process.

To avoid this issue, it’s important to sign out of your Apple ID and disable Find My before resetting the Mac, especially if you’re planning to sell or give it away.

QCan I reset a Mac without a password?
A

If you don’t have the login password, you can still reset a Mac by using macOS Recovery Mode. This method allows you to bypass the user account and directly erase the startup disk.

By booting into Recovery Mode, you can access Disk Utility to erase the disk and then reinstall macOS. However, if the Mac is still linked to an Apple ID with Activation Lock enabled, you’ll still need the Apple ID credentials during setup.

So while a password isn’t always required to reset the Mac, account-related restrictions may still apply.

QHow long does a factory reset take?
A

The time it takes to factory reset a Mac can vary depending on several factors. In general, the entire process takes anywhere from 30 minutes to a few hours.

Using 'Erase All Content and Settings' is usually the fastest method and may complete within 15–30 minutes. A manual reset, which includes erasing the disk and reinstalling macOS, typically takes longer—especially if macOS needs to be downloaded from the internet.

Factors such as your internet speed, the Mac model, and the size of the storage can all affect the total time required.