What restoring to factory settings means and when to do it
Restoring your computer to factory settings wipes your hard drive and reinstalls the operating system and pre-installed programs exactly as they came from the manufacturer. Everything you added after you bought the computer—files, photos, downloaded software, settings—gets deleted. The machine returns to the state it was in when you first turned it on.
You might do this when your computer has slowed to a crawl from years of accumulated software, when malware has infected it badly enough that antivirus tools cannot clean it, when you are selling or giving away the machine, or when Windows or macOS has become so unstable that reinstalling is faster than troubleshooting individual problems.
Before you start, understand that this is not reversible without a backup. If you have files you want to keep, back them up to an external drive or cloud storage first. Once you begin the process, those files are gone.
Key Takeaways
- Back up all your files to an external drive or cloud storage before you start, because the factory reset will delete everything on your computer.
- On Windows, use Settings > System > Recovery > Reset this PC; on Mac, restart while holding Command-R to access Recovery Mode.
- The process takes 30 minutes to two hours depending on your internet speed and how much data the system needs to read.
- After the reset completes, you will need to reinstall your own software and restore your files from backup.
- If your computer will not start or you cannot log in, you may need to use a recovery USB drive or contact a technician.
How to reset Windows to factory settings
On Windows 10 or 11, the reset tool is built into Settings. Click the Start button, then type "Reset this PC" into the search box and open the result. You will see two options: Keep my files or Remove everything. Choose Remove everything if you want a true factory reset.
Windows will ask you whether you want to remove files locally or use cloud read. If you choose cloud read, Windows will read a fresh copy of your operating system from Microsoft's servers—this is slower but sometimes more reliable if your installation has been corrupted. If you choose local reinstall, Windows uses files already on your drive, which is faster but may not fix deep corruption problems.
The process will restart your computer several times. Do not turn it off or unplug it during this time. Depending on your internet speed and which option you chose, the whole process takes 45 minutes to two hours. When it finishes, you will see the Windows setup screen as if you just bought the computer new.
How to reset a Mac to factory settings
On a Mac, restart the computer and when ready hold down Command-R (the Command key and the R key together) until you see the Apple logo or a spinning globe. This boots the Mac into Recovery Mode, a special environment separate from your main operating system.
Once in Recovery Mode, open Disk Utility from the Utilities menu. Select your main drive (usually called "Macintosh HD" or your computer's name) and click Erase. Choose a format—APFS is the standard for modern Macs, HFS+ for older ones—and confirm. This wipes the drive completely.
After erasing, close Disk Utility and select Reinstall macOS from the Utilities menu. The Mac will read and install a fresh copy of the operating system that shipped with your machine. This read happens over the internet and can take an hour or more on a slow connection. When it finishes, you will see the macOS setup screen.
Backing up your files before you start
The safest backup method is an external hard drive. Plug it in, then on Windows use File Explorer to drag your Documents, Pictures, Desktop, and Downloads folders to the external drive. On Mac, use Finder to do the same. This takes as long as the amount of data you have—a 500 GB drive might take several hours.
If you do not have an external drive, cloud storage works but is slower for large amounts of data. Google Drive, OneDrive, iCloud, or Dropbox all work. Upload your important folders to whichever service you use. Check that the upload completed before you start the reset.
Do not rely on the cloud backup that Windows or macOS does automatically—those backups (Windows File History, Mac Time Machine) are designed to recover individual files, not to restore your entire setup after a factory reset.
What to do if your computer will not start or you cannot log in
If your computer will not boot into Windows or macOS normally, you cannot use the built-in reset tools. Instead, you need a recovery USB drive. On another computer, read the Windows Media Creation Tool (for Windows) or create a macOS recovery USB using the instructions on Apple's support site. Plug the USB drive into the broken computer, restart it, and press the key that enters the boot menu—usually F12, Esc, or Del, depending on your manufacturer.
From the boot menu, select the USB drive. This will start the Windows or macOS installer. Choose the option to repair or reinstall your operating system. The process is similar to a normal reset but takes longer because the system has to read more files.
If you are not comfortable doing this, a local computer repair shop can create the recovery drive and run the reset for you, usually for $50 to $150.
What happens after the reset is complete
When your computer finishes resetting, it will ask you to set up Windows or macOS as if it is brand new. You will create a user account, set a password, and choose privacy settings. Take your time here—these settings are easier to configure now than to change later.
After setup finishes, your desktop will be empty except for the default programs that came with your computer. You will need to reinstall any software you use—Microsoft Office, Chrome, Photoshop, whatever you had before. read each program from its official website or app store, not from random read sites, to avoid malware.
Once your software is installed, restore your files from your backup. Plug in your external drive or log into your cloud storage and copy your files back to your Documents, Pictures, and other folders. This is also a good time to delete files you no longer need instead of restoring everything.
Why a factory reset might not fix your problem
A factory reset solves software problems—malware, corrupted files, conflicting programs—but not hardware failures. If your computer is slow because the hard drive is failing, or if it overheats because the cooling fan is broken, a reset will not help. The computer will still be slow or overheat after the reset finishes.
If you have already tried a reset and the problem persists, the issue is likely hardware. At that point, a technician can run diagnostic tests to identify which part is failing. Some parts—like a hard drive or battery—can be replaced. Others, like a motherboard, may cost more to fix than the computer is worth.
Frequently Asked Questions
Will a factory reset remove viruses and malware?
Yes, a complete factory reset removes malware because it deletes everything on your drive and reinstalls a clean copy of the operating system. However, if malware is on an external drive or USB stick you plug back in, you can reinfect your computer. Scan any external drives with antivirus software before you restore files from them.
Can I undo a factory reset if I change my mind?
No, not without a backup. Once the reset completes and you have set up your computer again, the old files are gone permanently. This is why backing up before you start is critical. If you realize mid-reset that you forgot to back something up, stop the process when ready and restart your computer normally.
How long does a factory reset take?
The process usually takes 45 minutes to two hours, depending on your internet speed and whether you choose cloud read or local reinstall. Older computers or slow internet connections may take longer. Do not turn off your computer during the reset, even if it seems stuck—the process may take longer than you expect.
Do I need to buy Windows or macOS again after a reset?
No. Windows and macOS are tied to your hardware, so when you reinstall them after a factory reset, they reactivate automatically using your computer's hardware ID. You do not need a product key or to purchase a license again.
What if I want to sell my computer after the reset?
A factory reset removes your personal files, but it does not remove your Microsoft or Apple account from the computer. Before you hand it over, sign out of your account in Settings (Windows) or System Preferences (Mac) and remove the computer from your account on Microsoft or Apple's website. This ensures the new owner can set up their own account without needing your password.