I still remember the first time I decided to wipe my Mac — part excitement, part panic. Whether you’re upgrading to a newer model, handing your Mac down to someone else, or just want that fresh-start feeling, resetting Mac to factory settings is the smartest move you can make. It’s not just about clearing files, it’s about protecting your data and leaving your Mac in an out-of-box state for the new owner — clean, secure, and ready for its next chapter.
If you’ve been wondering how to factory reset a MacBook, MacBook Pro, MacBook Air, or iMac, don’t worry — it’s easier than it sounds. Depending on your macOS version and chip, the process looks a little different, but this guide will walk you through every step to restore MacBook to factory settings safely and confidently.
The ultimate guideline to factory reset MacBook Pro
Before you start, take your time to prepare MacBook for the factory reset. It includes backing up data and finding out what Mac you have and what macOS version it runs.
1. Back up your data
When you factory reset MacBook, all the information on your hard drive is wiped off. That’s why to save valuable files and data, you need to create a backup. This is like cloning your hard drive so you can keep having access to needed files.
You can, of course, back up files and apps manually by copying everything to an external drive or iCloud. However, a much faster and more secure way to back up is with Mac’s built-in software — Time Machine. It allows you to recover individual files and restore an entire hard drive in case of a catastrophe.
But here’s the thing: prior to using Time Machine, make sure to clean up your Mac. You don’t want to back up all the junk it contains, do you? Plus, a backup will go faster and more smoothly if your Mac is not cluttered.
For a quick cleanup, we personally like using specialized applications. The app that works for me is CleanMyMac. It removes large and old files, useless apps, caches, and system junk in a few clicks.
Here’s how to use it:
- Get your free CleanMyMac trial.
- Open the app and click Scan.
- Click Run.
Once you’ve cleaned up your Mac, enable Time Machine backup:
- Go to the Apple menu in the top left corner of your screen and choose System Preferences or System Settings > General.
- Select Time Machine.
- Click the Select Disk button. Or click Add Backup Disk and follow the on-screen instructions to set up the disk if you haven’t done it before.
- Choose the disk you’d like to use as a Time Machine backup, then click Use Disk.
That’s it!
Now, your first backup may take a while, depending on how many files you have. But don’t skip this step — the backup will allow you to restore all your data in case something goes wrong when you restore MacBook to factory settings.
2. Check your Mac’s main info
Now that you’ve backed up your Mac, it’s time to check what Mac you have. The easiest way to do it is to go to About This Mac from the main Apple menu. There, look at the year and macOS version.
If you have a Mac newer than 2018 and running a macOS version later than Monterey, you’ll run Erase Assistant to restore Mac to factory settings. Otherwise, you’ll follow instructions from a 6-step guideline we also provide below.
How to wipe a MacBook with Erase Assistant
If you have a newer Mac with macOS Monterey and later, resetting it to factory settings is easy, thanks to Erase Assistant. Opening it, however, varies across different macOS versions.
For macOS Ventura and later (Sonoma, Sequoia, Tahoe):
- Open System Settings.
- Go to General > Transfer or Reset > Erase All Contents and Settings.
For macOS Monterey:
- Open System Preferences.
- From the menu bar, click System Preferences > Erase All Contents and Settings.
Now, all you have to do is enter your admin credentials and follow the on-screen instructions. Erase Assistant will do the following:
- Sign you out of all Apple services.
- Turn off Activation Lock and Find My.
- Erase all contents and settings.
- Uninstall any apps you have installed.
- Erase all volumes.
- Erase all user accounts along with their data.
- Unpair all Bluetooth devices (in macOS Ventura).
How to reset MacBook without Erase Assistant
If you have a MacBook older than 2018 or running Big Sur or an older macOS version, follow the steps below one by one.
Step 1: Sign out from iCloud
Sign out of iCloud to make sure that any remnants of the cloud data, such as bookmarks, notes, reminders, etc., are not visible to a new user.
Follow the 3-step formula to turn off iCloud:
- Choose Apple menu > System Preferences.
- Select Apple ID, then select Overview in the sidebar.
- Click Sign Out.
If you’re running macOS Mojave or earlier, go to the Apple menu > System Preferences and choose iCloud. Then click Sign Out.
Step 2: Sign out from iMessage
Before you restore MacBook to factory settings, remember to sign out of iMessage.
This time, an easy 4-step formula to help you do that:
- Open up Messages.
- Click Messages in the menu bar in the top left corner of your screen.
- From the drop-down menu, choose Preferences.
- Click iMessage, then click Sign Out.
As simple as that!
Step 3. Reset NVRAM
NVRAM (non-volatile random-access memory) is a type of memory your Mac uses to store certain settings, such as your selected startup disk, sound volume, screen resolution, and the last kernel panic. Resetting NVRAM will restore certain features you might have changed previously:
- Shut down your Mac.
- Start up Mac and press and hold Option-Command-P-R for 20 seconds, then release.
Step 4: Boot into recovery mode
Steps for booting into recovery mode vary for Intel-based and Apple silicon Macs.
For an Intel-based Mac:
- Go to Apple menu > Restart.
- Immediately press and hold Command+R.
- Don’t release the keys until you hear Mac’s startup sound or until the Apple logo appears.
For a Mac with Apple silicon:
- When turning on your Mac, press and hold the Power button.
- Keep it pressed until you see startup options.
- Click the Gears icon (Options) and hit Continue.
- You may be asked to select a user and enter their administrator password. Follow on-screen instructions and press Next after any action you take.
Step 5: Wipe Mac hard drive
If you plan to sell or give away your Mac, you need to erase your Mac’s startup disk. The startup disk is built into your MacBook. Its default name is Macintosh HD.
- After booting into recovery mode, choose Disk Utility in the Utilities window.
- Select your built-in startup disk, “Macintosh HD.”
- Click Erase at the top of the Disk Utility window and enter the next details:
Name: Macintosh HD
Format: APFS or Mac OS Extended (Journaled)
5. Click Erase Volume Group. You may need to enter your Apple ID for confirmation.
When the process is complete, select other internal volumes in the sidebar and press the “—” button to delete them. Then, quit Disk Utility.
Now, your Mac will restore to factory settings and reboot. You can now reinstall macOS.
Step 6: Reinstall macOS
Mission accomplished! You’ve reformatted your hard drive and reset your Mac to factory settings. Now you can reinstall your operating system. Simply click Reinstall macOS from the Utilities menu. Confirm that you really want to do it, then follow the instructions on the screen.
Once the macOS is installed, a setup assistant will appear. However, if you are not going to keep your Mac, it would be better to quit the setup process and let the new owner enter all the necessary information. Hold down the Command-Q keys and then choose Shut Down to turn off your Mac but leave it waiting for a new user.
How to factory reset MacBook (Pro, Air, iMac) without a password
To erase the data and reinstall macOS yourself, you need an admin password. If you’re not able to access it, don’t worry. Keep reading to learn how to factory reset your Mac without a password.
Before you start the process of factory resetting the MacBook, make sure your Wi-Fi and broadband connection are working properly. The process below uses Apple’s Internet Recovery to reinstall macOS. If you are concerned that the connection might fail, it’s a good idea to create a bootable USB installer. You can find out how to do that here.
- Boot your Mac into recovery mode. How you boot in recovery mode depends on the type of Mac you have. Follow the process for your Mac below.
Turn off your Mac. Press and hold Command and R and then press the power button. Release Command and R when you see the Apple logo or you hear a chime. You should see the macOS Utilities window after a few seconds.
Intel-based Mac
Turn off your Mac. Press and hold the power button until you see the startup options screen. Click Options, then Continue. You should eventually see the macOS Utilities window.
Mac with Apple silicon
- Once your Mac has booted in recovery mode and you can see the macOS Utilities screen, choose Disk Utility.
- When Disk Utility opens, choose your Mac’s boot disk in the sidebar. It will be the topmost drive in the sidebar, probably called Macintosh HD. Make sure to choose the disk and not the volume beneath it.
- Click Erase in the toolbar. Give the disk a name and format it as APFS.
- Click Erase.
- When you see a message saying the disk has been successfully erased, quit Disk Utility.
- From the macOS Utilities screen, choose Reinstall macOS.
- Follow the instructions to reinstall macOS.
- Reinstallation may take quite a while. Once it’s complete, your Mac will restart and will go into set-up mode as if it were a new Mac. From there, you can follow the on-screen instructions to create a new admin user account and set up the MacBook the way you want it.
That’s all. Now you know how to wipe a MacBook. It is clean and ready for a fresh start. So, you can proceed with restoring it from Time Machine if you continue using it.
Frequently asked questions
Why do I need to reset a Mac to factory settings?
The most common reason for wiping a MacBook is to prepare it for selling or giving away so that no personal data or files are shared with a new owner.
How to perform a factory reset?
There are two ways to restore Mac to factory settings: either run Erase Assistant for newer Macs and macOS versions or follow the steps outlined in this article for older Mac computers and macOS versions. The only difference between the two is that Erase Assistant does all the prep steps for you, so you only have to reinstall macOS as the final step.
Can I perform a factory reset without a password?
You can, but you might encounter limitations such as not being able to back up data.
Do you need to turn off FileVault to do a factory reset?
Complete factory reset covers erasing your startup disk (described in Steps 5 and 6), which will make the recovery of your data impossible. Therefore, there is no need to turn off FileVault, as your data can’t be accessible in any readable form after you erase the drive.
Which version of macOS will be installed during factory reset?
For Intel-based Macs:
- If you use ⌘ + R at startup : Reinstalls the most recent macOS that was on your Mac.
- Option + ⌘ + R: Upgrades to the latest macOS compatible with your Mac.
- Shift + Option + ⌘ + R: Reinstalls the macOS version your Mac originally came with.
For Apple Silicon (M1, M2, M3) Macs:
- Automatically reinstalls the latest macOS version that was running on the device.
What is Activation Lock and why does it matter?
Activation Lock is a security feature built into macOS (and iOS) through Find My. If you’re selling or giving away your Mac, you must turn off Find My Mac and sign out of your Apple ID before factory resetting. Otherwise, the new owner will be locked out and unable to use the device.
What is the difference between hard reset and factory reset?
Hard reset (or force restart) simply reboots your Mac. It’s a quick fix when your system freezes or becomes unresponsive. Factory reset, on the other hand, erases everything from your Mac — all your data, settings, and apps — and reinstalls macOS. It’s used when you’re selling, giving away, or starting fresh with your Mac.
What should I see on screen after successful factory reset?
After a successful factory reset, your Mac will restart and display a setup screen that welcomes you and guides you through initial settings like language, Wi-Fi, and signing in with an account — just like when it was brand new.