How to Format a Mac Hard Drive: Step-by-Step Guide
In this article
Formatting a Mac hard drive erases everything on it and prepares it with a fresh file system so your Mac can read and write to it. You do this when you are repurposing an external drive, fixing a drive that has become corrupted or unreadable, or preparing a drive for a specific use such as Time Machine backups or a Windows PC. Before you start, back up any data you want to keep: formatting is destructive and there is no undo. You will need the drive itself, a Mac running a reasonably current version of macOS, and a stable power source. The built-in Disk Utility app handles the whole process.
What You'll Need
- The hard drive you want to format, connected to your Mac (USB, Thunderbolt, or internal if you are formatting a secondary internal drive).
- A Mac with Disk Utility (included with macOS).
- A backup of any files on the drive you want to keep, stored on a different drive.
- For a boot drive or a drive containing your only copy of macOS, a macOS installer USB or internet recovery access.
Step-by-Step
- Back up your data. Copy anything you need from the drive to another location. Once you format, the data is gone unless you have a backup.
- Connect the drive. Plug it in and make sure it appears on your desktop or in Finder. If it does not appear, try a different cable or port before continuing.
- Open Disk Utility. Go to Applications > Utilities > Disk Utility, or use Spotlight (Command + Space) and type "Disk Utility". Menu labels can differ slightly by macOS version, but the core layout is the same.
- Show all devices. In Disk Utility, click the View button (or the View menu) and choose "Show All Devices". This reveals the physical drive as well as its volumes, which matters for a clean format.
- Select the drive, not just the volume. In the sidebar, click the top-level entry for the physical drive (usually the manufacturer name and capacity). Selecting only the volume underneath can leave the partition scheme untouched.
- Click Erase. The Erase button is in the toolbar at the top of the Disk Utility window.
- Choose a name and format. Enter a name for the drive. For Format, pick APFS for modern Macs and SSDs, or Mac OS Extended (Journaled) for older Macs and traditional hard drives. If you need the drive to work on both Mac and Windows, choose exFAT. For a Time Machine backup drive, APFS is the current default on newer macOS versions.
- Choose a scheme. Click Scheme (or Partition Map) and select GUID Partition Map for Intel Macs and most uses. Apple Silicon Macs use APFS and the scheme is typically set automatically, but GUID is the safe choice for external drives that will also connect to other computers.
- Confirm the erase. Click Erase, then confirm. Disk Utility will wipe the drive and create the new file system. This usually takes seconds for a small drive and longer for large or slow drives.
- Verify the result. When it finishes, click Done. The drive should appear in the sidebar with its new name and format. Open Finder and check that you can copy a test file to it.
Common Mistakes
- Erasing the wrong drive. Double-check the name and capacity before you click Erase. Disk Utility does not ask for confirmation beyond a single dialog, and there is no recycle bin for a formatted drive.
- Selecting the volume instead of the physical drive. This can leave the old partition layout in place. Always choose the top-level device entry when you want a full wipe.
- Choosing the wrong format. APFS is best for SSDs and current macOS, but older Macs and some accessories may not read it. exFAT is the cross-platform choice, but it lacks journaling and is more prone to corruption if the drive is unplugged during writes.
- Formatting a drive that contains your only macOS installation. If you erase the startup disk, the Mac will not boot until you reinstall macOS. Keep a bootable installer or use internet recovery.
- Unplugging during the erase. Interrupting the process can leave the drive in an unreadable state. Wait for Disk Utility to report success.
Tips
- Use a short, simple name with no special characters to avoid path issues in some apps.
- For external SSDs, APFS is the better choice on modern macOS; for spinning hard drives used with older systems, Mac OS Extended (Journaled) is still fine.
- If you plan to use the drive for Time Machine, let Time Machine format it instead: open System Settings > General > Time Machine, choose the drive, and let macOS prepare it. That avoids mismatched settings.
- After formatting, eject the drive properly before unplugging it to reduce the risk of corruption.
- Keep a note of the format you chose. If you later move the drive to a Windows PC, you will need exFAT or a third-party driver for APFS.
Troubleshooting
If the drive does not appear in Disk Utility, try a different cable or port, and check that the drive has power (some desktop drives need an external power adapter). If it appears greyed out, the Mac may not be able to read its current format; selecting the physical device and erasing usually resolves this. If Erase fails with an error, run First Aid on the drive from Disk Utility's toolbar, then try again. First Aid can repair minor directory issues but cannot fix failing hardware. If the drive makes clicking or grinding noises, stop using it and replace it; formatting will not fix mechanical failure. If you accidentally erased the wrong drive, stop using that drive immediately and restore from your backup. Data recovery software may help if there is no backup, but success is not guaranteed. If the Mac will not boot after formatting the startup disk, start up in macOS Recovery (hold Command + R on an Intel Mac, or press and hold the power button on an Apple Silicon Mac) and reinstall macOS.
Frequently Asked Questions
Does formatting a hard drive delete everything?
Yes. Formatting erases all files on the drive and creates a new, empty file system. Back up anything you need first.
What format should I choose for an external drive?
APFS for modern Macs and SSDs, Mac OS Extended (Journaled) for older Macs, and exFAT if you need to use the drive on both Mac and Windows.
Can I format a drive without Disk Utility?
Disk Utility is the built-in tool and the recommended method. Some third-party tools exist, but they are not necessary for a standard format.
Will formatting fix a corrupted drive?
It can fix file system corruption because it creates a fresh file system. It cannot fix physical damage such as bad sectors or mechanical failure.
How long does formatting take?
Usually seconds to a few minutes for a quick erase. A secure erase that overwrites data takes much longer and is not needed for most personal use.
Can I recover data after formatting?
Only if you have a backup. Without one, recovery is uncertain and depends on whether the drive has been written to since formatting.