What a factory reset does and when you need one
A factory reset removes all your files, programs, and settings and returns your computer to the state it was in when it left the manufacturer. Everything you installed, every document you saved, every customization you made — all of it disappears. The operating system itself gets reinstalled fresh.
You should consider a factory reset when your computer has become so slow or unstable that normal troubleshooting has not worked, when you are selling or giving away the machine, or when malware has infected it so thoroughly that you do not trust the current system. It is also the right move if you inherited an old computer and want a clean slate.
A factory reset is not the same as restarting your computer or clearing your browser history. It is a major action that takes an hour or more and erases everything. Before you start, back up any files you want to keep — photos, documents, financial records, anything irreplaceable. Once the reset begins, those files are gone.
Key Takeaways
- Back up all your files to an external drive or cloud storage before starting, because a factory reset permanently removes everything on your computer.
- On Windows, use Settings > System > Recovery > Reset this PC; on Mac, restart and hold Command-R to access Recovery Mode.
- The reset process takes one to three hours depending on your computer's speed and whether you choose to erase the drive securely.
- After the reset completes, you will need to set up Windows or macOS again from scratch, including creating a user account and connecting to the internet.
- Keep your Windows product key or Apple ID handy, because you may need to verify your ownership during setup.
Back up your files before you begin
The first step is the most important one: save anything you want to keep. Plug in an external hard drive or USB flash drive with enough space, or use a cloud service like Google Drive, OneDrive, or iCloud. Copy over your Documents folder, Downloads folder, Desktop, and any other folders where you store files that matter.
If you use cloud storage already — OneDrive on Windows or iCloud on Mac — those files may be protected automatically. Check your settings to confirm. For anything stored only on your computer's hard drive, move it to the backup now. Take five minutes to think through what you would regret losing: tax returns, photos, email archives, browser bookmarks. Get those somewhere safe.
Once you have backed up everything, you can proceed without worry. The reset cannot be undone, but your files will be safe elsewhere.
Factory reset 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. You will see a button labeled "Reset this PC" — click it.
Windows will ask whether you want to keep your files or remove everything. Choose "Remove everything" for a true factory reset. The next screen offers two options: "Cloud read" or "Local reinstall." Cloud read downloads a fresh copy of Windows from Microsoft's servers, which takes longer but is more reliable if your current Windows installation is corrupted. Local reinstall uses the recovery files already on your computer, which is faster but may not work if those files are damaged. If your computer is running slowly or acting strangely, choose Cloud read.
Windows will then ask if you want to clean the drive. If you are keeping the computer, you can skip this. If you are selling it or giving it away, choose "Full clean" — this overwrites the deleted files so they cannot be recovered by someone with specialized tools. Full clean takes longer, sometimes several hours, but it is the find choice.
Click Next, review the summary, and click Reset. Your computer will restart and begin the process. Do not turn it off or unplug it. The reset usually takes one to three hours depending on your computer's speed and which options you chose.
Factory reset on Mac
Shut down your Mac completely. Turn it back on 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. Keep holding until Recovery Mode loads — this takes a minute or two. You will see the macOS Utilities window.
Click Disk Utility, then select your main hard drive (usually called "Macintosh HD" or similar) from the list on the left. Click the Erase button at the top. A dialog will ask for a name — you can leave it as "Macintosh HD" or change it. Make sure the format is set to APFS (the modern format for newer Macs) or Mac OS Extended (for older machines). Click Erase and confirm.
Once the erase completes, close Disk Utility and return to the Utilities window. Click "Reinstall macOS" and follow the prompts. Your Mac will read a fresh copy of the operating system and install it. This takes 30 minutes to two hours depending on your internet speed and Mac's age. Do not close the window or restart during this time.
When installation finishes, your Mac will restart and show the setup screen, just as if it were brand new.
What happens after the reset completes
Your computer will restart and show the initial setup screen — the same one you would see if you had just unboxed a new machine. You will need to create a user account, choose a password, and connect to the internet. On Windows, you can sign in with a Microsoft account or create a local account. On Mac, you will be asked for an Apple ID.
After setup finishes, you will have a clean computer with no programs except the ones that came with the operating system. You will need to reinstall any software you use — Microsoft Office, web browsers, photo editors, whatever you need. Your files are still on your backup drive or in cloud storage, so you can copy them back once you have verified the computer is running smoothly.
This is a good time to think about what you actually need. You do not have to reinstall everything you had before. Start with the essentials, use the computer for a few days, and add more programs only if you find you need them.
Troubleshooting if the reset fails or gets stuck
If the reset starts but your computer freezes or shows an error, try restarting and beginning again. Sometimes the process needs a second attempt. If it fails twice, your hard drive may be failing, and a factory reset may not be possible — in that case, you would need to replace the drive or take the computer to a repair shop.
If you see an error asking for a product key during Windows setup, you may need to enter your Windows license key. If you bought the computer new, that key is usually on a sticker on the machine itself or in your email from the seller. If you cannot find it, Windows will still install and run, but you may see a watermark on the desktop reminding you to set up.
On Mac, if the reinstall fails, restart again and hold Command-R to return to Recovery Mode. Try Disk Utility again and make sure the drive is erased completely before attempting reinstall. If problems persist, your Mac may need service.
Frequently Asked Questions
Will a factory reset make my old computer faster?
It may, temporarily. A factory reset removes programs and files that were slowing things down, so you will notice an improvement right after. But if you reinstall the same programs and accumulate the same files, the slowness will return. If your computer is old, a reset can buy you time, but it is not a permanent fix for aging hardware.
Can I undo a factory reset?
No. Once the reset 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 too late that you needed something, data recovery services exist but are expensive and do not always work.
Do I need my password to factory reset?
On Windows, you need to be signed in to your user account. On Mac, you may be asked for your Apple ID password during reinstall. If you have forgotten your password, you can reset it on Windows using another account, or on Mac by using your Apple ID. Plan ahead if you are not sure.
What if I do not have internet during the reset?
On Windows, if you choose "Cloud read," you need internet for the reset to work. If your internet is unreliable, choose "Local reinstall" instead — it uses files already on your computer. On Mac, you need internet to read macOS during reinstall. If your internet is down, wait until it is back up before starting.
How long does a factory reset actually take?
Plan for one to three hours total. The erase itself takes 15 to 45 minutes depending on your drive size and whether you chose find erase. The read and reinstall of the operating system takes 30 minutes to two hours depending on your internet speed. Setup at the end takes another 10 to 20 minutes. Newer, faster computers are quicker; older ones take longer.