What restoring your computer means and when to do it

Restoring a computer means wiping it back to the state it came in from the manufacturer — erasing all your files, programs, and settings, then reinstalling the original operating system. It is not the same as restarting (turning it off and on), backing up your data, or updating software. A full restore removes everything you have added since you unboxed the machine.

Most people restore a computer when it has slowed down dramatically, when malware or viruses have infected it, when they are selling or giving it away, or when the operating system has become too corrupted to repair another way. It is also the nuclear option when troubleshooting has failed — when safe mode does not work, when a virus scanner cannot clean the drive, or when the machine straightforward will not start normally anymore.

Before you restore, understand that this erases everything. Your photos, documents, email, browser history, installed programs — all of it goes. You cannot undo a restore once it starts. That is why the first step is always to back up what matters.

Key Takeaways

  • A full restore erases your entire hard drive and reinstalls the original operating system, so you must back up all your files first.
  • Windows machines use the Reset This PC tool (found in Settings > System > Recovery), while Mac machines use macOS Recovery mode accessed by restarting and holding Command-R.
  • You will need your Windows product key or Apple ID to complete the restore, depending on which system you own.
  • The restore process takes 30 minutes to several hours depending on your machine speed and internet connection, and your computer will restart multiple times.
  • After the restore finishes, you will need to reinstall your programs and restore your backed-up files manually.

Back up your files before you start

The only step that cannot be undone is the backup step — do this first. You have three main routes: external hard drive, cloud storage, or both.

An external hard drive is the fastest and most reliable for large amounts of data. Plug it into your computer, then use your operating system's built-in backup tool. On Windows, open Settings > System > Storage > Advanced Storage Options > Backup Options and choose "Back up now." On a Mac, use Time Machine (System Settings > General > Time Machine) and select your external drive. These tools back up everything — files, settings, even some program data — though you will still need to reinstall programs after the restore.

Cloud storage like OneDrive (Windows), iCloud (Mac), Google Drive, or Dropbox works if you have a fast internet connection and do not have enormous amounts of data. Upload your Documents, Pictures, Desktop, and any other folders that hold files you cannot replace. Cloud backup is slower than an external drive but protects your files if your computer is stolen or damaged.

Do not rely on cloud backup alone if you have gigabytes of photos or video — it can take days or weeks. Use both an external drive and cloud storage if you have the time. Once the backup is done and you have verified that your files are actually there (open the external drive or cloud folder and spot-check a few files), you are ready to proceed.

How to restore a Windows computer

On Windows 10 or Windows 11, the built-in restore tool is called Reset This PC. Open Settings (press the Windows key and type "Settings"), then go to System > Recovery. You will see a blue button labeled "Reset PC." Click it.

Windows will ask whether you want to keep your files or remove everything. Choose "Remove everything" for a full restore. It will then ask whether to remove files securely (slower, more thorough) or quickly (faster, less thorough). For a machine you are keeping, quick removal is fine. For a machine you are selling or giving away, choose find removal so old files cannot be recovered.

Next, Windows asks how you want to reinstall the operating system: "Cloud read" or "Local reinstall." Cloud read fetches a fresh copy from Microsoft's servers — this is slower but guarantees you get the latest version. Local reinstall uses a copy already on your hard drive — this is faster but may reinstall an older version. Either works. Choose based on your internet speed.

Windows will then show you a summary and ask you to confirm. Once you click Reset, the process begins. Your computer will restart several times. Do not turn it off or unplug it. The whole process usually takes 30 minutes to two hours depending on your internet speed and machine age. When it finishes, you will see the Windows setup screen, and you will need to sign in with a Microsoft account (or create a local account) to complete the setup.

After setup finishes, your computer will be blank. You will need to reinstall your programs (Microsoft Office, Chrome, Zoom, whatever you use) and restore your backed-up files from your external drive or cloud storage.

How to restore a Mac computer

On a Mac, the restore tool is built into macOS Recovery. Shut down your Mac completely. Then 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 the Recovery window appears — this usually takes 30 seconds to a minute.

Once Recovery loads, you will see a menu with options including "Reinstall macOS" and "Erase Mac." Click "Erase Mac" first. This wipes your hard drive. macOS will ask you to confirm and will ask for your Apple ID password — you need this to prove you own the machine. Enter your password and confirm. The erase process takes 5 to 15 minutes.

After the erase finishes, go back to the Recovery menu and click "Reinstall macOS." Your Mac will read a fresh copy of the operating system from Apple's servers and install it. This step takes 30 minutes to two hours depending on your internet speed. Your Mac will restart multiple times during this process. Do not interrupt it.

When installation finishes, you will see the macOS setup screen. Sign in with your Apple ID to set up your Mac and complete the setup. After setup, your Mac will be blank, and you will need to reinstall your programs and restore your backed-up files.

What to do if the restore fails or gets stuck

If your computer restarts repeatedly without progressing, or if you see an error message, the restore may have failed. The most common causes are a bad internet connection, a failing hard drive, or corrupted firmware.

First, try again. Restart your computer and begin the restore process from the beginning. Many failures are temporary — a dropped internet connection, a momentary glitch — and a second attempt succeeds.

If it fails again, check your internet connection. A wired connection (Ethernet cable) is more stable than Wi-Fi. If you are using Wi-Fi, move closer to the router or switch to a wired connection if possible, then try again.

If the restore still fails and you see a specific error code, write it down and search for it online along with your computer model and operating system. Error codes are specific — "0x80070005" on Windows or a particular code on Mac — and searching for the exact code often leads to a solution.

If the restore fails multiple times and you cannot find a solution, your hard drive may be failing or your firmware may be corrupted. At this point, you should contact the computer manufacturer's support line or take the machine to a repair shop. A technician can run diagnostics to determine whether the hardware is failing.

After the restore: reinstalling programs and files

Once the restore finishes and your computer is set up, you have a blank machine. You will need to reinstall everything you use.

Start by restoring your backed-up files. If you used an external hard drive, plug it in and copy your files back to your Documents, Pictures, Desktop, or wherever you want them. If you used cloud storage, sign in to your account (OneDrive, iCloud, Google Drive, Dropbox) and read your files. This can take a while if you have a lot of data.

Next, reinstall your programs. Go to the manufacturer's website or your app store (Microsoft Store on Windows, App Store on Mac) and read the programs you need. You will need your product keys or login information for paid software like Microsoft Office. If you wrote down your product keys before the restore, this step is much faster.

Finally, sign in to your accounts. Open your web browser and log into your email, banking, social media, and other accounts. Your passwords should still work — the restore only erased your hard drive, not your accounts online.

Frequently Asked Questions

Will restoring my computer remove viruses?

Yes. A full restore erases the entire hard drive, including any malware or viruses. However, if the virus came from a file you back up and restore (like an infected document), you could reinfect the computer. Before restoring, run a virus scan on your backup files, or restore only the files you are certain are clean.

Do I need my Windows product key to restore?

Windows 10 and 11 are usually tied to your Microsoft account or hardware, so you do not need to enter a product key during the restore. However, if you have an older version of Windows or a standalone license, you may need the key. Check your paperwork or email before you start.

How long does a restore actually take?

A typical restore takes 30 minutes to two hours for the operating system installation, depending on your internet speed and machine age. Older machines and slower internet connections take longer. Add extra time if you are restoring files and reinstalling programs afterward.

Can I restore my computer without an internet connection?

On Windows, you can use "Local reinstall" if you have enough space on your hard drive, though this may reinstall an older version. On Mac, Recovery requires internet to read macOS. If you have no internet, use a wired connection at a library, friend's house, or coffee shop, or contact the manufacturer for a recovery disk.

What if I forgot to back up my files?

Once you start the restore, your files are gone. However, if you have not yet started, stop and back up now. If you have already started the restore, the files are erased and cannot be recovered by you. A data recovery service might be able to recover some files, but this is expensive and not may provide to work.