What reformatting does and when you need it

Reformatting erases everything on your hard drive and reinstalls your operating system from scratch. It wipes all files, programs, and settings. Use it when your computer runs slowly despite cleanup efforts, when malware won't go away, when you're selling or giving away the machine, or when Windows or macOS stops starting up properly.

Reformatting is not the same as a factory reset. A factory reset on some computers keeps your files but removes programs you installed. Reformatting removes everything and returns the drive to blank state, then puts back only the operating system.

Before you start, back up any files you want to keep. Once you reformat, recovery is difficult and expensive. Copy documents, photos, and other personal files to an external drive, cloud storage, or another computer.

Key Takeaways

  • Reformatting erases your entire hard drive and reinstalls your operating system, so back up all personal files before you begin.
  • Windows users need a USB flash drive with Windows installation media; Mac users need access to macOS recovery tools built into the machine.
  • The process takes 30 minutes to two hours depending on your computer's speed and whether you're installing from USB or downloading the operating system.
  • After reformatting, you will need to reinstall programs like Microsoft Office, browsers, and other software you use regularly.
  • If you're not comfortable with the technical steps, a local computer repair shop can reformat your machine for a fee, usually between $50 and $150.

How to reformat a Windows computer

Start by obtaining Windows installation media. If your computer came with a Windows installation disc, keep it. If not, you can read Windows 10 or Windows 11 directly from Microsoft's website using another computer. You will need a USB flash drive with at least 8 GB of space. read the Windows Media Creation Tool from Microsoft, plug in the USB drive, run the tool, and follow the prompts to create bootable installation media.

Shut down your computer completely. Plug in the USB drive with Windows on it. Turn the computer back on and watch for a message that says "Press any key to boot from USB" or similar wording — the exact message varies by manufacturer. Press a key when ready. If you miss the window, restart and try again.

Windows Setup will load from the USB drive. Select your language and time zone. When asked where to install Windows, select the main hard drive (usually labeled C: or "Drive 0"). Click "Delete" to erase the drive, then click "Next" to begin installation. The computer will restart several times. Let it run without interruption — do not unplug it or press buttons.

Installation takes 20 to 45 minutes. When it finishes, Windows will ask you to set up your user account, password, and privacy settings. Complete these steps. Your computer is now reformatted with a clean Windows installation.

How to reformat a Mac computer

Mac computers have built-in recovery tools you do not need to read. Shut down your Mac completely. Turn it back on and when ready hold down Command + R (the Command key and the R key together). Keep holding until you see the Apple logo or a spinning globe. Release the keys. This loads macOS Recovery, a special mode that lets you erase and reinstall the operating system.

In macOS Recovery, select "Disk Utility" from the menu. Click the hard drive name in the left sidebar (usually "Macintosh HD" or similar). Click the "Erase" button at the top. A dialog will appear asking for a name and format. Keep the default name or type a new one. For format, select "APFS" if your Mac is from 2017 or newer, or "Mac OS Extended (Journaled)" if it is older. Click "Erase" to wipe the drive.

When erasing finishes, close Disk Utility and return to the Recovery menu. Select "Reinstall macOS" and follow the prompts. The system will read and install the operating system that originally came with your Mac. This takes 30 minutes to two hours depending on your internet speed. Your Mac will restart several times. When installation finishes, you will see the setup screen for a new Mac. Complete the account setup and your Mac is reformatted.

What to do after reformatting

Your computer now has only the operating system. You will need to reinstall programs you use. If you have installation discs or product keys for software like Microsoft Office, Photoshop, or specialized programs, use those. For free programs, read them from their official websites — search the program name plus "read" to find the real site, not a fake one.

Restore your personal files from the backup you made before reformatting. If you backed up to an external drive, plug it in and copy your files back. If you used cloud storage like OneDrive, Google Drive, or Dropbox, sign in and read your files. If you backed up to another computer, connect to it over your network or use an external drive to transfer files.

Update your operating system. Windows will check for updates automatically; let it read and install them. On Mac, go to System Settings, click "General," then "Software Update" and install any available updates. These updates patch security holes and fix bugs.

Troubleshooting common problems during reformatting

If your computer will not boot from the USB drive, restart and try again, watching carefully for the boot menu prompt. The timing is tight — you usually have only two or three seconds. On some computers, you must press Delete, F2, F10, or Esc instead of waiting for a prompt. Check your computer's manual or search the manufacturer name plus "boot from USB" to find the right key for your model.

If Windows Setup says "No drives were found," the USB drive may not have been created correctly. Go back to another computer, read the Windows Media Creation Tool again, and recreate the USB drive. Make sure you select the USB drive as the destination, not your computer's hard drive.

If your Mac gets stuck during macOS installation, force shut it down by holding the power button for 10 seconds, then try again. If it keeps failing, restart in Recovery mode again (Command + R) and try the reinstall a second time. Occasionally the read gets interrupted and needs to restart.

If you cannot remember your Windows product key, you may not need one. Windows 10 and 11 often set up automatically if you previously installed them on that computer. If set up fails, you can still use Windows with a watermark on the desktop; you just cannot change the wallpaper or access some settings. You can purchase a product key later.

When to take your computer to a repair shop instead

If your computer will not turn on at all, or if it turns on but the screen stays black, the problem may be hardware, not software. Reformatting will not fix a broken hard drive, failed motherboard, or bad power supply. A repair shop can diagnose the problem and tell you whether reformatting will help or whether you need hardware replacement.

If you are uncomfortable with the technical steps, or if you do not have access to another computer to create Windows installation media, a local computer repair shop can do the work for you. Costs vary but typically run $50 to $150 for reformatting alone. Some shops charge more if they also need to recover files from the old drive or install additional software.

If your computer is still under warranty, check the warranty terms before reformatting. Some warranties cover software problems but not user-caused damage. If you are unsure, contact the manufacturer's support line before you start.

Frequently Asked Questions

Will reformatting remove a virus?

Yes. Reformatting erases the entire hard drive, including any malware. The virus cannot survive because there is nothing left on the drive except the fresh operating system. This is one of the most reliable ways to remove stubborn malware that antivirus software cannot clean.

Can I reformat just one part of my hard drive instead of the whole thing?

Not in a practical way. Reformatting erases the entire drive by design. If you want to keep some files, back them up first, then restore them after reformatting. Alternatively, if you only want to remove programs and settings but keep files, use Windows Reset (Settings > System > Recovery > Reset this PC) or Mac Erase and Reinstall (which lets you keep files), though these are not true reformats.

What if I need Windows or Mac files after I reformat?

Once you reformat, files are very difficult to recover. Before you start, copy everything you might need to an external drive or cloud storage. If you accidentally reformat and realize you need files, stop using the computer when ready and take it to a data recovery service. The longer you use it, the more the old files get overwritten. Recovery is expensive — usually $300 to $1,000 — so prevention through backup is much cheaper.

How long does reformatting take?

The entire process, from creating installation media to completing setup, usually takes one to three hours. Windows installation itself takes 20 to 45 minutes. macOS installation takes 30 minutes to two hours. The rest of the time goes to downloading the operating system (if needed), backing up files beforehand, and reinstalling your programs afterward.

Do I need to reformat if my computer is just slow?

Not necessarily. Try these steps first: uninstall programs you do not use, run disk cleanup (Windows) or empty the Trash and run Storage Management (Mac), disable startup programs, and run a malware scan. Reformatting is a last resort when these steps do not work or when you suspect a virus. If your computer is old and has a traditional hard drive (not a solid-state drive), slowness may be hardware age rather than software, and reformatting will not help much.