How to Format a Hard Drive for Mac: Step-by-Step
In this article
To format a hard drive for a Mac, open Disk Utility (Applications > Utilities > Disk Utility, or press Command-Space and type "Disk Utility"), select the drive in the sidebar, click Erase, choose a format such as APFS or Mac OS Extended (Journaled), pick a scheme such as GUID Partition Map, and confirm. That is the whole job in one sentence; the rest of this guide covers which format to pick, how to avoid wiping the wrong disk, and what to do when Disk Utility refuses to cooperate. Formatting erases everything on the drive and prepares it with a fresh file system the Mac can read and write, so back up anything you want to keep before you start. Menu labels can differ slightly between macOS versions, so if a name below does not match exactly, look for the closest equivalent.
What You'll Need
- A Mac running a reasonably current version of macOS (Disk Utility has shipped with every modern release).
- The drive you intend to format, connected directly if possible. A USB or Thunderbolt cable is more reliable than a hub for this.
- A backup of any data on the drive. Formatting destroys it, and recovery afterwards is difficult and never guaranteed.
- Patience for the confirmation dialogs. Disk Utility asks you to confirm before erasing, and it is worth reading those prompts.
Step-by-Step
- Back up the drive first. If the drive holds anything you care about, copy it to another disk or to a cloud service before continuing. If the drive is brand new or you genuinely do not need its contents, you can skip this.
- Connect the drive and wait for it to appear. Plug it in, then give the Mac a few seconds to mount it. If a "disk not readable" warning appears, click Ignore rather than Initialize, because Initialize can start an erasure before you have chosen the right settings.
- Open Disk Utility. Go to Applications > Utilities > Disk Utility, or use Spotlight (Command-Space) and type Disk Utility. You can also reach it from the Recovery environment if the drive is your startup disk, but for an external drive the normal app is fine.
- Show all devices. In Disk Utility, click the View button in the toolbar and choose Show All Devices. This reveals the physical drive as well as its volumes, which matters because erasing the physical drive is the cleanest way to start over.
- Select the correct drive. In the sidebar, click the top-level entry for your drive, not an indented volume beneath it. Check the capacity and the connection type in the info line to make sure you are not about to erase your Mac's internal disk.
- Click Erase. The Erase button sits in the toolbar at the top of the window.
- Name the drive. Type a name you will recognise. Avoid slashes and unusual punctuation, which can cause problems with some file systems.
- Choose the format. For a drive used only with modern Macs, pick APFS. For a drive you also use with older Macs or with Windows, pick Mac OS Extended (Journaled) or exFAT respectively. See the notes below for the trade-offs.
- Choose the scheme. Click Scheme (or Partition Map on older versions) and select GUID Partition Map. This is the correct choice for Intel and Apple silicon Macs and for drives you might later boot from.
- Confirm the erase. Click Erase, then wait. A large drive can take a while; a quick format of a multi-terabyte disk may still take minutes. Do not unplug the drive while the progress bar is moving.
- Verify the result. When Disk Utility reports success, click Done. The drive should appear in the sidebar with its new name and format, and it should mount on the desktop if you have that option enabled in Finder settings.
Choosing the Right Format
APFS is the modern Apple file system and the right default for any drive used with macOS High Sierra or later. It handles snapshots, encryption and fast directory operations well, and it is required if you want to install macOS on the drive. Mac OS Extended (Journaled), also called HFS+, is the older format; choose it only if you need compatibility with an older Mac or with a device that does not understand APFS. exFAT is the practical choice for a drive that moves between Macs and Windows PCs, because both systems read and write it natively, though it lacks journaling and is more vulnerable to corruption if the drive is unplugged mid-write. MS-DOS (FAT32) works almost everywhere but caps individual files at 4 GB, which rules it out for video work. Do not pick a Windows-only format such as NTFS unless you have third-party software, because macOS can read NTFS but not write to it by default.
Common Mistakes
The most damaging mistake is erasing the wrong disk. Disk Utility lists the internal startup drive alongside external ones, and the top-level entry for your Mac's SSD looks much like an external drive's entry. Always confirm the capacity and the connection before clicking Erase, and consider disconnecting backup drives you are not formatting. A second frequent error is erasing a volume instead of the physical drive, which leaves the old partition layout in place and can produce confusing results when you later try to resize. Third, people choose exFAT for a drive that will only ever touch Macs, giving up APFS features for no benefit. Fourth, some users unplug the drive during the erase because the progress bar seems stuck; that can leave the drive in an unreadable state and force a second format. Finally, formatting without a backup is irreversible in practice, and file recovery tools are hit-or-miss on a freshly formatted drive.
Tips
Use a direct cable connection rather than a hub or dock when formatting, since flaky connections are a common cause of failed erases. If you plan to use the drive for Time Machine, you do not need to format it manually in most cases; Time Machine can prepare the drive itself, and doing it by hand risks choosing settings that Time Machine then changes. For a drive that will hold sensitive data, Disk Utility offers a security options button during erase on some versions, letting you overwrite the disk; on solid-state drives this is largely unnecessary and adds wear, so a normal erase is fine. Name drives simply, keep a label on the physical disk, and eject properly from Finder before unplugging. If you format a drive for exFAT, test it by copying a large file to and from it before you rely on it for important work.
Troubleshooting
If the drive does not appear in Disk Utility at all, check the cable and port first, then try another cable. Open Disk Utility's View menu and make sure Show All Devices is selected, because a drive with an unreadable file system may only show at the device level. If Erase is greyed out, you have probably selected a volume that is in use or a disk that is read-only; select the physical drive instead. If the erase fails partway with an error, run First Aid on the drive from the toolbar, then try again. If First Aid cannot repair it, the drive may have hardware problems, and repeated attempts will not fix that. When a drive mounts but cannot be written to, check that it is not formatted as NTFS and that it is not locked in Finder's Get Info window. If the Mac refuses to mount the drive after formatting, try erasing it again with GUID Partition Map selected, since an Apple Partition Map on an Intel or Apple silicon Mac can cause exactly that behaviour. For a drive that was previously used in a RAID or by another operating system, erasing the top-level device rather than a volume usually clears the leftover metadata.
Frequently Asked Questions
Does formatting a hard drive delete everything on it?
Yes. Erasing in Disk Utility removes the file system and the data it indexed. Treat formatting as permanent and back up first.
Can I format a drive without erasing it?
No. Changing the format requires erasing. If you only want to remove files, delete them in Finder instead; that is not the same operation.
Which format should I choose for an external drive used with both Mac and Windows?
exFAT. Both operating systems read and write it without extra software, though it is less resilient to unsafe removal than APFS.
Can I format my Mac's startup drive?
Not while booted from it. You would need to start from macOS Recovery and use Disk Utility there, and you should only do this if you intend to erase and reinstall the system.
Why is the Erase button greyed out?
Usually because a volume rather than the physical drive is selected, or because the disk is in use or read-only. Select the top-level device and try again.
How long does formatting take?
A standard erase is usually quick, but large drives and slow USB connections can take several minutes. Do not disconnect the drive until Disk Utility confirms it is done.