What a factory reset does and when you need one
A factory reset erases everything on your computer — all your files, programs, settings, and accounts — and reinstalls the original operating system that came with the machine. It returns your computer to the state it was in the day you bought it, before you installed anything or created any files.
You might need a factory reset if your computer has slowed to a crawl despite removing programs, if it has a virus or malware that won't go away, if you are selling or giving it away, or if you want to start completely fresh. It is one of the most thorough ways to fix a computer that has become unstable or cluttered over years of use.
A factory reset is not the same as restarting your computer or clearing your browser cache. Those are quick fixes that keep your files and programs intact. A factory reset removes everything and starts over.
Key Takeaways
- A factory reset erases all your files, programs, and settings, so back up anything you want to keep before you start.
- On Windows, you use Settings > System > Recovery > Reset this PC; on Mac, you use System Settings > General > Transfer or Reset.
- The process takes 30 minutes to several hours depending on your computer and internet speed, and your computer will restart multiple times.
- After the reset completes, you will need to sign in with your Microsoft account (Windows) or Apple ID (Mac) and reinstall your programs.
- If you cannot access your computer at all, you may need to use a recovery USB drive or take it to a technician.
Back up your files before you start
Before you reset, copy everything you want to keep to an external drive, cloud storage, or another computer. A factory reset deletes all your documents, photos, videos, emails, and any other files stored on your computer. Once the reset is complete, those files are gone and cannot be recovered.
The fastest way to back up is to use your computer's built-in backup tool. On Windows, open Settings, go to System > Backup, and choose "Back up now" to save to an external drive or cloud storage. On Mac, open System Settings, go to General > Time Machine, and turn it on with an external drive connected.
If you use cloud storage like OneDrive, Google Drive, or iCloud, make sure your important files are synced to the cloud before you reset. That way they will be there when you sign back in after the reset.
How to factory reset on Windows
On Windows 10 or 11, open Settings by pressing the Windows key and typing "Settings," then click the app that appears. Go to System (the first option on the left), then scroll down and click Recovery.
Under "Recovery options," click the button that says "Reset this PC." Windows will ask whether you want to keep your files or remove everything. Choose "Remove everything" for a full factory reset. Then choose whether to reinstall Windows from the cloud or from a local file — cloud is usually faster if your internet is stable.
Windows will show you a summary of what will happen, ask you to confirm, and then begin the reset. Your computer will restart several times during the process. Do not turn it off or unplug it. The whole process usually takes 30 minutes to two hours depending on your internet speed and how much data is on your drive.
When the reset finishes, your computer will ask you to sign in. Use your Microsoft account email and password. If you do not have a Microsoft account, you can create one during setup or sign in with a local account instead.
How to factory reset on Mac
On a Mac running macOS 13 (Ventura) or later, click the Apple menu in the top left corner and choose System Settings. Click General on the left side, then scroll down and click "Transfer or Reset."
Click the "Erase All Content and Settings" button. Your Mac will ask you to sign in with your Apple ID and password — this is required to erase the drive. After you sign in, click "Continue" and confirm that you want to erase everything.
Your Mac will restart and begin erasing the drive. This process usually takes 15 to 45 minutes. When it finishes, your Mac will restart again and show the setup screen, just like when it was new. Sign in with your Apple ID to restore your settings and apps from iCloud backup if you have one.
If you have an older Mac running an earlier version of macOS, the process is different. You will need to restart your Mac in Recovery Mode by holding Command and R while it starts up, then use Disk Utility to erase the drive and reinstall macOS from the Recovery menu.
What to do if your computer will not start or let you sign in
If your computer is so damaged or infected that it will not start normally or let you sign in, you cannot use the built-in reset tools. Instead, you will need to create a recovery USB drive on another computer and use that to reset your machine.
On Windows, read the Windows Installation Media Creation Tool from Microsoft's website on a working computer, plug in a blank USB drive, and follow the tool's steps to create a bootable recovery drive. Then plug that drive into the broken computer, restart it, and choose to boot from the USB drive. You will see the Windows setup screen and can choose to reinstall Windows from there.
On Mac, you can create a bootable macOS installer on a USB drive using another Mac. read macOS from the App Store, plug in a USB drive, open Terminal, and use the command line to create the installer. This is more technical than the Windows process, so if you are not comfortable with Terminal, a technician can do it for you.
After the reset: reinstalling programs and restoring your setup
After your computer restarts and you sign in, you will have a clean operating system with no programs except the ones that came with it. You will need to reinstall everything you use.
Start with the programs you use most often. Go to the Microsoft Store (Windows) or App Store (Mac) and search for each one, or read them from the publisher's website. If you paid for software, you may need to sign in with your account to reinstall it without paying again.
If you backed up your files to cloud storage, sign in to that service and read your files back to your computer. If you used a local backup drive, plug it in and copy your files back. Do this slowly — do not restore everything at once, because you want to make sure your computer is running smoothly before you add back all your old data.
Adjust your settings as you go: desktop background, display brightness, keyboard and mouse settings, and any other preferences you had before. This takes time, but it also gives you a chance to clean up and not restore settings you did not actually like.
Signs that a factory reset might not be the answer
A factory reset fixes most software problems — viruses, malware, corrupted files, and years of clutter. But it will not fix hardware problems like a failing hard drive, a broken screen, or a damaged power supply. If your computer is physically damaged, a reset will not help.
If your computer is very old and was slow even when new, a reset might make it slightly faster but will not transform it. An old computer with an older processor and limited memory will still be slow after a reset because the hardware itself is the limit.
If you are not sure whether your problem is software or hardware, try the simpler fixes first: restart your computer, uninstall programs you do not use, clear your browser cache, and run a malware scan. If those do not help and your computer is still slow or crashing, then a factory reset is worth trying.
Frequently Asked Questions
Will a factory reset remove a virus or malware?
Yes, a factory reset removes almost all viruses and malware because it erases the entire drive and reinstalls a clean operating system. However, if the malware is on an external drive or in cloud storage, it will still be there. After you reset, be careful what you restore from backups — scan external drives with antivirus software before copying files back.
Can I undo a factory reset after it is done?
No, a factory reset cannot be undone. Once it completes, your files are gone unless you backed them up beforehand. This is why backing up before you start is so important. If you realize you made a mistake after the reset, a data recovery service might be able to recover some files, but it is expensive and not may provide to work.
How long does a factory reset take?
A factory reset usually takes 30 minutes to two hours on Windows and 15 minutes to one hour on Mac, depending on your internet speed, how much data is on your drive, and how old your computer is. Older computers and slower internet connections take longer. Your computer will restart multiple times — do not turn it off during this process.
Do I need my password to factory reset?
Yes, you will need your Microsoft account password (Windows) or Apple ID password (Mac) to start the reset. This is a security feature to prevent someone else from erasing your computer without permission. If you forgot your password, you can reset it on Microsoft's or Apple's website before you start the factory reset.
What if I want to sell my computer after the reset?
After the factory reset completes, do not sign in with your account. Instead, shut down the computer and give it to the new owner. They will see the setup screen and can create their own account. If you do sign in, remove your account from the computer before handing it over: on Windows, go to Settings > Accounts > Other people and click your account, then choose "Remove"; on Mac, go to System Settings > General > Users and Groups, click the lock to unlock it, select your account, and click the minus button.