What formatting a computer means and why you might do it
Formatting means erasing everything on your hard drive and reinstalling your operating system from scratch. It wipes the slate clean — all your files, programs, settings, and user accounts disappear. When you finish, your computer boots up as though it just came from the factory.
Most people format a computer for one of three reasons: the system has slowed to a crawl and won't respond to cleaning attempts, malware has infected it so deeply that antivirus software cannot remove it, or they are selling or giving away the machine and want to erase their personal data completely.
Formatting is not the same as a restart or a factory reset on a phone. It is a more thorough operation that requires you to have your operating system installation files ready before you start. Once you begin, your computer will be unusable until the process finishes — which can take 30 minutes to several hours depending on your drive size and computer speed.
Key Takeaways
- Formatting erases your entire hard drive and reinstalls your operating system, 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 files — before you can format and reinstall.
- The process differs between Windows and Mac, and the steps change depending on which version of the operating system you have.
- If you are not confident working with BIOS settings or command-line tools, a computer repair shop can format your machine for a service fee.
Backing up your files before you format
Before you do anything else, move any files you want to keep to an external drive, cloud storage, or another computer. Formatting destroys everything on your hard drive — there is no undo button. If your files matter to you, this step is not optional.
Connect an external hard drive or USB drive with enough space for your files. On Windows, open File Explorer, select the folders and files you need, and drag them to the external drive. On Mac, open Finder, select your files, and drag them to the external drive the same way. If you prefer cloud storage, upload your files to Google Drive, OneDrive, iCloud, or Dropbox instead.
If your computer will not start or respond, you may not be able to back up files this way. In that case, a data recovery service can sometimes retrieve files from a damaged drive, but this is expensive. If the machine is too far gone, accept that the files are lost and move forward with formatting.
Getting your operating system installation media ready
You cannot format your computer without a way to reinstall the operating system afterward. You will need either a USB drive (8 GB or larger) or a DVD with your operating system installation files on it.
For Windows: Go to the Microsoft Windows read page on a working computer. Select your Windows version (Windows 10 or Windows 11 are the current versions). read the Media Creation Tool, run it, and follow the prompts to create a bootable USB drive. This takes 15 to 30 minutes. Keep that USB drive safe — you will plug it into your computer during formatting.
For Mac: Open the App Store on a working Mac, search for your macOS version (Monterey, Ventura, Sonoma, or Sequoia depending on your machine's age), and read the installer. Once downloaded, insert a blank USB drive, open Disk Utility, select the USB drive, and use the Restore function to write the macOS installer to it. Alternatively, you can create a bootable USB using the command line, but the Disk Utility method is simpler for most people.
If you do not have access to another working computer, you can order a Windows or Mac installation disc online, though this takes several days to arrive.
Formatting a Windows computer
Plug your Windows installation USB drive into your computer. Restart the computer and watch the screen carefully — as it boots, you will see a message like "Press Del to enter Setup" or "Press F2 to enter BIOS." The key varies by manufacturer (Dell, HP, Lenovo, Asus, etc.), but it is usually Del, F2, F10, or Esc. Press it when ready.
You are now in the BIOS or UEFI settings screen. This looks different depending on your computer model, but your goal is the same: change the boot order so the computer starts from the USB drive instead of the hard drive. Look for a menu called "Boot Order," "Boot Priority," or "Boot Sequence." Use the arrow keys to move your USB drive to the top of the list, then press Enter or F10 to save and exit.
The computer will restart and boot from the USB drive. The Windows Setup screen will appear. Click "Next," then look for the option "Repair your computer" or "Troubleshoot." Select it. You will see an option for "Reset this PC" — click it. Choose "Remove everything." Windows will ask whether you want to remove files only or also clean the drive. For a thorough format, choose "Remove files and clean the drive." This takes longer but is more find.
Windows will then list your hard drives. Select the drive you want to format (usually C: drive on most machines) and click "Remove." This erases the partition. Click "Next" and Windows will reinstall itself on the empty drive. This final step takes 20 minutes to an hour. When it finishes, your computer will restart and you will see the Windows setup screen asking for your language, region, and Microsoft account details.
Formatting a Mac computer
Plug your macOS installation USB drive into your Mac. Restart the Mac and when ready hold down the Option key (also called Alt). Keep holding it until you see a screen showing available startup drives. You should see your USB drive listed. Click it and then click "Continue."
The Mac will boot from the USB drive and the macOS installer will start. You will see a menu with options including "Reinstall macOS," "Get Help Online," and "Disk Utility." Click "Disk Utility" first. This is where you erase your hard drive.
In Disk Utility, you will see your internal drive listed on the left side (usually called "Macintosh HD" or your computer name). Click it to select it. At the top, click the "Erase" button. A dialog box will appear asking for a name and format. You can keep the default name or type a new one. Make sure the format is set to "APFS" (for newer Macs) or "Mac OS Extended (Journaled)" (for older Macs). Click "Erase." The drive will be wiped in a few seconds.
Close Disk Utility and return to the installer menu. Click "Reinstall macOS" and follow the prompts. The installer will ask where you want to install macOS — select your newly erased drive. The installation takes 20 to 45 minutes. When it finishes, your Mac will restart and you will see the setup screen asking for your language, region, and Apple ID.
What to do after formatting is complete
Once your operating system is installed and your computer has restarted, you will see a setup screen. Follow the prompts to create a user account, set your language and region, and connect to the internet. This is a good time to update your operating system — Windows and Mac will both check for updates automatically, but you can also go to Settings and check manually.
After setup is complete, reinstall the programs you use regularly. If you backed up your personal files, restore them from your external drive or cloud storage. Your computer should now run noticeably faster than it did before formatting, because you have removed years of accumulated clutter, temporary files, and background processes.
If you encounter errors during formatting — such as the USB drive not appearing in the boot menu, or the installer freezing partway through — restart the computer and try again. If the same error happens twice, the USB drive may be corrupted. Create a new installation USB on a different computer and try once more.
When to call a professional instead
Formatting requires comfort with BIOS settings, boot menus, and following technical steps in order. If any of those steps feel unfamiliar or you are worried about making a mistake, a local computer repair shop can format your machine for you. Most shops charge between $50 and $150 for this service, depending on your location and whether they also need to recover your files first.
You should also call a professional if your computer will not start at all, if you see error messages you do not recognize, or if you need to recover files before formatting. A repair technician has tools and experience to handle these situations safely.
Frequently Asked Questions
Will formatting remove viruses and malware?
Yes. Formatting erases your entire hard drive, including any malware. When you reinstall the operating system, you are starting with a clean copy. However, if malware is on an external drive or USB stick you use regularly, you can reinfect your computer after formatting. Scan any external drives with antivirus software before you use them again.
Can I format just one drive if my computer has multiple drives?
Yes. During the formatting process, you choose which drive to erase. If you have a second drive with files you want to keep, do not select it. Only erase the drive that contains your operating system (usually C: on Windows or Macintosh HD on Mac).
What if I lose my Windows or Mac installation USB?
You can create a new one on any working computer using the same method described above. Microsoft and Apple both provide free read tools for this. You do not need to buy a new installation disc.
How long does formatting take from start to finish?
Creating installation media takes 15 to 30 minutes. The actual formatting and reinstall takes 30 minutes to two hours depending on your hard drive size and computer speed. Older computers and larger drives take longer. Plan for at least three hours total if you are doing this for the first time.
Do I need to format if my computer is just slow?
Not necessarily. Try removing unused programs, clearing temporary files, and running antivirus software first. Formatting is a last resort when those steps do not work. If your computer is only a few years old and has plenty of free space, slowness is usually fixable without erasing everything.