What a factory reset does and when you need one
A factory reset erases everything on your Mac — all files, apps, settings, and accounts — and reinstalls a fresh copy of macOS. After the reset completes, your Mac boots up as if it just came from the store, with no personal data remaining.
You might reset your Mac before selling it, giving it away, or troubleshooting serious software problems that won't respond to other fixes. The process is permanent and cannot be undone, so back up anything you want to keep before you start.
On newer Macs with Apple Silicon chips (M1, M2, M3, and later), the reset process is different from older Intel-based Macs. Both paths are covered below.
Key Takeaways
- Back up your entire Mac using Time Machine or another method before you begin, because a factory reset permanently deletes all your files.
- Apple Silicon Macs (M1 and newer) use macOS Recovery and Erase All Content and Settings, while Intel Macs use Disk Utility within Recovery Mode.
- You will need your Apple ID and password to complete the reset on newer Macs, or you will be locked out of your own device.
- The reset process takes 20 minutes to over an hour depending on your Mac model and drive size, and your Mac will restart several times.
- After the reset finishes, your Mac will boot to the setup screen as if brand new, and you can choose not to restore from a backup.
Back up your Mac before you start
Before you erase anything, create a complete backup of your Mac. The fastest method is Time Machine, Apple's built-in backup tool. Plug in an external drive, open System Settings, go to General > Time Machine, click "Add Backup Disk", select your external drive, and let it run. A full backup typically takes one to several hours depending on how much data you have.
If you do not have an external drive, you can back up to iCloud instead. Go to System Settings > [Your Name] > iCloud and turn on iCloud Drive, then let your files sync. This is slower for large amounts of data but works if you have the storage space.
Write down your Apple ID and password before you proceed. You will need them to complete the reset and to sign back in afterward. If you have forgotten your password, reset it at iforgot.apple.com before you start the factory reset.
Factory reset on Apple Silicon Macs (M1, M2, M3, and newer)
Shut down your Mac completely. Press and hold the power button until you see "Loading startup options" on the screen, then release. You will see a window with your available startup disks and a gear icon labeled "Options".
Click "Options", then click "Continue". You will be asked to sign in with your Apple ID. Enter your Apple ID email and password, then click "Next". Your Mac will load Recovery Mode.
Once in Recovery Mode, you will see a menu of tools. Click "Erase Mac" (or "Erase All Content and Settings" on some macOS versions). A window will appear asking you to confirm. Click "Erase" again. Your Mac will ask for your Apple ID password one more time — this is a security step to prevent someone else from erasing your Mac without permission. Enter it and click "Erase".
Your Mac will now erase the drive and reinstall macOS. This takes 20 to 60 minutes. Your Mac will restart multiple times during this process — do not turn it off. When it finishes, you will see the macOS setup screen, and your Mac is ready to use as new.
Factory reset on Intel-based Macs
Shut down your Mac completely. Turn it back on and immediately press and hold Command + R until you see the Apple logo or a spinning globe. Release the keys. Your Mac will load Recovery Mode, which may take a few minutes.
Once Recovery Mode loads, you will see a menu of tools. Click "Disk Utility", then click "Continue". In the Disk Utility window, select your main drive (usually named "Macintosh HD" or similar) from the list on the left. Click the "Erase" button at the top.
A dialog box will appear. Give your drive a name (you can use "Macintosh HD" or any name you prefer), make sure the format is set to "APFS" (or "Mac OS Extended" if your Mac is very old), and click "Erase". Disk Utility will wipe the drive. This takes a few minutes.
Close Disk Utility. You will return to the Recovery Mode menu. Click "Reinstall macOS" (or "Reinstall OS X" on older Macs), then click "Continue". Follow the on-screen prompts, agree to the terms, and select the drive you just erased. macOS will download and install. This takes 30 to 90 minutes depending on your internet speed. Your Mac will restart several times — do not turn it off. When it finishes, you will see the setup screen.
What to do after the reset is complete
When your Mac boots to the setup screen, you have a choice: set it up as a new Mac, or restore from your backup. If you are selling or giving away your Mac, choose "Do Not Transfer" or "Set Up as New Mac" and skip the restore step. If you are keeping your Mac, you can restore from your Time Machine backup or iCloud backup to get your files and settings back.
If you restore from backup, your Mac will take time to copy files back from the backup drive or download them from iCloud. Do not unplug the backup drive or lose internet connection during this process. Once restoration is complete, your Mac will have all your files, apps, and settings back, but with a fresh macOS installation underneath.
Troubleshooting a stuck reset
If your Mac gets stuck during the reset and does not progress for more than an hour, force it to shut down by holding the power button for 10 seconds, then try again from the beginning. If it gets stuck at the same point twice, your drive may have a hardware problem. In that case, take your Mac to an Apple Store or authorized repair shop.
If you see a message saying "This Mac is locked to your Apple ID" or "Activation Lock is on", you will need to sign in with the Apple ID that was used to set up the Mac. If you do not remember that password, go to iforgot.apple.com to reset it, then try the factory reset again.
Frequently Asked Questions
Can I factory reset my Mac without losing my files?
No — a factory reset erases everything. That is why you must back up first. After the reset finishes and your Mac boots to the setup screen, you can restore from your backup to get your files back, but the reset itself is permanent.
Do I need internet to factory reset my Mac?
Yes. Your Mac needs to download a fresh copy of macOS during the reset, which requires an internet connection. If you do not have Wi-Fi, connect an Ethernet cable through a USB adapter. The download is several gigabytes, so a wired connection is faster.
What if I forget my Apple ID password before I reset?
Go to iforgot.apple.com and reset your password before you start the factory reset. You will need it to sign in during the reset process on Apple Silicon Macs, or you will be locked out of your own device after the reset completes.
How long does a factory reset take?
The entire process usually takes 45 minutes to 2 hours, depending on your Mac model, drive size, and internet speed. Your Mac will restart several times — this is normal. Do not turn it off or unplug it during the reset.
Can I sell my Mac after a factory reset without worrying about my data?
Yes. A factory reset permanently erases all your personal data. The new owner will see only the macOS setup screen when they turn it on. Make sure you have removed your Apple ID from the Mac before handing it over, or they will not be able to use it without your password.