What a clean install means and why you might do it

A clean install is erasing your entire hard drive and installing Windows from scratch, rather than upgrading over your existing system. It removes all your programs, files, and settings — so you start with a blank machine. This is different from an upgrade, which keeps your old files and programs in place.

People do clean installs for a few reasons: your computer has slowed down over years of accumulated programs and settings changes; you're selling or giving away the machine and want to wipe it completely; you've had a serious malware infection and want to be certain it's gone; or you're moving to a newer version of Windows and want a fresh start rather than carrying old baggage forward.

The downside is that you lose everything — every program, every file, every setting — unless you back them up first. The upside is that a clean install often makes an older machine feel noticeably faster, because you're not running years of background processes and startup programs you forgot about.

Key Takeaways

  • Back up all your files to an external drive or cloud storage before you start, because a clean install erases everything on your computer.
  • You need a Windows installation file on a USB drive or DVD, which you can download free from Microsoft's website using another computer.
  • During installation, you will be asked to choose which drive to erase and install Windows on — choose carefully, because this step cannot be undone.
  • After Windows installs, you will need to reinstall all your programs and restore your files from your backup.
  • Keep your Windows product key (a 25-character code) or your Microsoft account login handy, because you will need it to activate Windows after installation.

Back up everything before you begin

The first step is the most important: copy all your files to somewhere safe. This means documents, photos, videos, music — anything you want to keep. Use an external hard drive, a USB flash drive, or cloud storage like OneDrive, Google Drive, or Dropbox. If you have a lot of files, an external hard drive is faster and more reliable than uploading everything to the cloud.

Don't just back up your Documents folder. Check your Desktop, Downloads, Pictures, Videos, and Music folders. If you use programs that store files in unusual places — like music production software or design tools — back those up too. You can also export settings from programs you use frequently (like browser bookmarks, email accounts, or browser extensions) so you don't have to set them up again from scratch.

Test your backup by opening a few files from the backup location to make sure they copied correctly. This takes five minutes and can save you from discovering too late that your backup didn't work.

Create a Windows installation USB drive

You need a way to install Windows on your blank computer. Microsoft provides a free tool called the Windows Media Creation Tool that lets you download Windows and put it on a USB drive. You'll need another computer (a friend's, a family member's, or a library computer) to create this drive, because your own computer won't have Windows on it once you start the clean install.

Go to microsoft.com/software-download/windows and download the Media Creation Tool. Plug in a USB drive that is at least 8 GB (a flash drive works fine). Run the tool, select "Create installation media for another PC", choose your language and Windows version, and let it download Windows and write it to the USB drive. This takes 20 to 40 minutes depending on your internet speed.

When it's done, label the USB drive clearly so you don't accidentally use it for something else. Keep it safe — you'll need it to start the installation process.

Find your Windows product key or Microsoft account

Windows needs to be activated after installation, which means proving you own a license. You'll need either a product key (a 25-character code that looks like XXXXX-XXXXX-XXXXX-XXXXX-XXXXX) or the login information for the Microsoft account you used to buy Windows.

If you bought Windows as part of a new computer, the product key might be on a sticker on the machine itself, in the documentation that came with it, or in a confirmation email. If you bought it from Microsoft directly, check your email or your Microsoft account page. If you're not sure, you can use a free tool like Belarc Advisor to scan your current Windows installation and find the product key before you erase everything.

Write down your product key or make sure you know your Microsoft account email and password. You'll need it during or immediately after installation.

Boot from the USB drive and start the installation

Plug the USB drive into your computer and restart it. As it's starting up, you need to tell it to boot from the USB drive instead of the hard drive. This usually means pressing a specific key during startup — often F12, F2, Esc, or Del, depending on your computer's manufacturer. You'll see a message on the screen telling you which key to press, or you can look up your computer model online.

Once you've pressed the right key, you should see a boot menu. Select the USB drive (it might be labeled something like "USB Device" or have the brand name of your USB drive). The Windows installation screen will appear.

If your computer won't boot from the USB drive, restart and try a different key. If nothing works, your computer might have a security setting preventing USB boot — search online for "[your computer model] boot from USB" to find the specific steps.

Choose which drive to erase and install Windows on

The installer will ask you to choose a drive to install Windows on. If you have only one hard drive, there will be only one option. If you have multiple drives, choose carefully — this is the drive that will be completely erased. Double-check the drive size and name to make sure you're erasing the right one.

If the installer shows multiple partitions (sections) of the same drive, select all of them and delete them. This ensures the entire drive is wiped clean. Then select the unallocated space and install Windows there. Windows will automatically create the partitions it needs.

Once you click next, the erasure begins. There's no undo button after this point. If you have any doubt, stop and restart your computer to go back and check your backup.

Complete the installation and set up Windows

Windows will copy files to your drive and restart several times. This takes 15 to 30 minutes. Don't unplug the USB drive or restart the computer manually — let it finish on its own.

When the installation is complete, you'll see the Windows setup screen. You'll be asked to choose your language, create a user account, and set a password. You can use a Microsoft account (which syncs settings across devices) or a local account (which only exists on this computer). Either works fine.

Next, Windows will ask for your product key or Microsoft account to activate. Enter it now. If you don't have it yet, Windows will let you skip this step and activate later, but you should do it within 30 days.

Reinstall programs and restore your files

Once Windows is set up and activated, you have a blank computer. Now you need to put your files and programs back. Start by restoring your files from your backup — plug in your external drive or log into your cloud storage and copy your files back to the appropriate folders.

Then reinstall your programs. Go to each program's website and download the installer, or use the Microsoft Store for apps like Spotify, VLC, or Slack. This is actually a good time to uninstall programs you no longer use — you don't have to reinstall everything you had before.

Windows Update will automatically download and install security updates in the background. Let this finish before you do anything else — it can take an hour or more on a fresh install. You can check the status by going to Settings > Update & Security > Windows Update.

Frequently Asked Questions

Can I do a clean install without losing my files?

Only if you back them up first. A clean install erases your entire drive, so you must copy your files to an external drive or cloud storage before you start. After Windows is installed, you copy them back.

What if I don't have a product key?

If you bought Windows with your computer, the key is tied to your Microsoft account or hardware. During setup, choose "I don't have a product key" and sign in with your Microsoft account instead. Windows will activate automatically if you own a license.

How long does a clean install take?

The Windows installation itself takes 15 to 30 minutes. Creating the USB drive takes 20 to 40 minutes. Reinstalling programs and restoring files depends on how much you have — it could be an hour or several hours. Plan for a full afternoon or evening.

Will a clean install make my computer faster?

Often yes, especially if your computer is several years old. You're removing years of accumulated programs, startup items, and settings changes. However, if your hardware is very old or failing, a clean install won't fix that — the slowness will come back.

Can I go back to my old Windows installation if something goes wrong?

No. Once you erase the drive and install Windows, the old installation is gone. This is why backing up your files first is so important. If the new installation has problems, you can restart from the USB drive and try again, but you cannot recover the old system.