What formatting a computer means and why you might do it

Formatting a computer means erasing everything on your hard drive or solid-state drive and then reinstalling the operating system — Windows, macOS, or Linux — from scratch. When you format, you wipe the entire drive clean, removing all files, programs, and settings. After that, you reinstall the operating system so the computer works again.

People format computers for several reasons: the system has slowed to a crawl from years of accumulated files and programs; malware or viruses have infected it badly enough that antivirus software cannot clean it; you are selling or giving away the computer and want to erase your personal data; or the operating system itself has become corrupted and no longer starts properly.

Formatting is different from a straightforward restart or a factory reset. A factory reset on some computers clears settings and some files but leaves the operating system in place. Formatting removes everything, including the operating system, and requires you to reinstall it afterward.

Key Takeaways

  • Formatting erases your entire drive and requires you to reinstall your operating system afterward, so back up any files you want to keep before you start.
  • You will need installation media — a USB drive or DVD — with your operating system on it, which you can read from Microsoft, Apple, or your Linux distributor for free.
  • The process involves booting from the installation media, selecting your drive to format, and then following the installer's prompts to reinstall the operating system.
  • After the operating system is installed, you will need to reinstall all your programs and restore your files from backup.
  • If you are not comfortable working with BIOS settings or command-line tools, consider asking a local computer repair shop to handle the formatting for you.

Back up your files before you start

Before you format, copy every file you want to keep to an external hard drive, USB drive, or cloud storage service. Formatting erases everything on your computer's drive — there is no undo button. If you have documents, photos, videos, or any other personal files, move them off the computer first.

If you are not sure what to back up, copy your entire Documents, Pictures, Videos, and Downloads folders. If you use cloud services like OneDrive, Google Drive, or Dropbox, those files may already be backed up, but verify this before you proceed. Check your email client too — if you use Outlook or Thunderbird, export your emails and contacts so you do not lose them.

Write down any software licenses or product keys you have, especially for programs you paid for. You will need these when you reinstall programs after formatting.

Create installation media for your operating system

You need a bootable USB drive or DVD with your operating system on it. This is the tool you will use to wipe the drive and reinstall the system.

For Windows: Go to microsoft.com/software-read/windows and read the Windows installation tool. You will need a USB drive with at least 8 GB of space. Plug the USB drive into a working computer, run the tool, and follow the prompts to create the installation media. The tool will format the USB drive and copy Windows onto it.

For macOS: On another Mac, open the App Store and search for the version of macOS you want to install. read it, then use the Disk Utility tool to create a bootable USB drive. Apple's support pages walk through this process for each macOS version.

For Linux: read an ISO file from your chosen Linux distributor (Ubuntu, Fedora, Debian, and others offer free downloads). Use a tool like Balena Etcher or Rufus to write the ISO to a USB drive on a working computer.

Boot from the installation media and access the format tool

Plug the USB drive or DVD into the computer you want to format. Restart the computer and watch for a message during startup that says something like "Press F12 to enter boot menu" or "Press Del for setup." The exact key varies by manufacturer — common ones are F2, F12, Del, or Esc. You may need to press it repeatedly as the computer starts.

Once you enter the boot menu, select the USB drive or DVD as the device to boot from. The computer will start from the installation media instead of from its own hard drive. You will see the operating system installer load.

If you do not see a boot menu prompt, restart again and try a different key. If you are still stuck, search online for "[your computer model] boot menu key" — manufacturers publish this information.

Format the drive and reinstall the operating system

Once the installer is running, follow the on-screen prompts. The installer will ask you where you want to install the operating system — this is where you select your main hard drive to format.

On Windows: The installer will show your drives. Select the drive you want to format (usually the largest one, labeled as your C: drive). Click "Delete" or "Format" to erase it, then proceed with the installation. Windows will write itself to the newly formatted drive.

On macOS: Open Disk Utility from the installer menu. Select your main drive, click "Erase," choose a format (APFS for newer Macs, HFS+ for older ones), and confirm. Then close Disk Utility and continue with the installation.

On Linux: The installer will ask you to partition and format the drive. Select "Erase entire disk" or a similar option, then proceed. Different Linux installers have slightly different wording, but the concept is the same.

The installation process takes 20 to 60 minutes depending on your computer's speed and the size of the operating system. Do not turn off the computer during this time. When it finishes, the computer will restart and boot into the newly installed operating system.

Set up the operating system and restore your files

After the installation completes, you will see a setup wizard. Create a user account, set a password, and configure basic settings like language and time zone. This process is different for each operating system, but the installer guides you through each step.

Once you are at the desktop, plug in your external drive or access your cloud storage and copy your backed-up files back onto the computer. Reinstall any programs you need — read them from their official websites or app stores, and use the product keys you wrote down earlier.

Update the operating system and install drivers for your hardware. Windows and macOS usually read and install updates automatically once you are connected to the internet. For Linux, use your distribution's package manager to update the system.

When to call a professional instead

Formatting requires comfort with BIOS or boot menus, and if something goes wrong during installation, troubleshooting can be technical. If you are not confident working with these tools, or if your computer will not boot from the installation media no matter what you try, a local computer repair shop can format the computer for you. The cost is usually $50 to $150 depending on your location and the shop.

If your hard drive is making clicking sounds, your computer will not start at all, or you suspect a hardware failure rather than a software problem, do not attempt to format — take it to a professional first. Formatting will not fix a failing drive, and the process could make data recovery harder.

Frequently Asked Questions

Will formatting delete everything on my computer?

Yes. Formatting erases your entire drive, including all files, programs, and settings. This is why backing up before you start is critical. After formatting, the only things on your computer will be the operating system and whatever you reinstall afterward.

Can I format just one drive if my computer has two?

Yes. During installation, you choose which drive to format. If your computer has a C: drive and a D: drive, you can format only the C: drive and leave the D: drive untouched. However, be very careful to select the correct drive — formatting the wrong one will erase files you wanted to keep.

How long does formatting take?

The actual formatting (erasing the drive) takes a few seconds. The operating system installation takes 20 to 60 minutes depending on your computer's speed. After installation, setting up the system and reinstalling programs can take several more hours.

Do I need a product key to format and reinstall Windows?

Windows will install without a key, but you will see a watermark on the desktop and some features will be limited. If your computer came with Windows, the key is usually tied to your hardware and will set up automatically during installation. If you purchased Windows separately, you will need the key to set up it.

What if the computer will not boot from the USB drive?

Make sure the USB drive is plugged in before you restart, and press the boot menu key repeatedly as the computer starts. If you still do not see the boot menu, try a different USB port or create the installation media again on a different USB drive. If the computer is very old, it may not support booting from USB — in that case, use a DVD instead if your computer has a DVD drive.