Allocation Unit: What It Is and How It Works
In this article
An allocation unit—also called a cluster—is the smallest amount of disk space a file system can use to store a file. If you save a 1 KB text file on a drive with 4 KB allocation units, the file occupies 4 KB on disk; the remaining 3 KB is wasted. This is why allocation unit size matters for storage efficiency and performance. The term is standard in computing and appears in operating system documentation, disk formatting tools, and file system specifications. It is not slang or informal; it is the precise technical name used by Microsoft, Apple, and Linux documentation, though “cluster” is the more common synonym in everyday technical writing.
Background: Where the Term Comes From
The concept dates to the early days of hard drives and file systems. Early file systems like FAT (File Allocation Table) needed a way to track which sectors belonged to which file. Instead of tracking every 512-byte sector individually, the file system groups sectors into allocation units. The term “allocation unit” appears in Microsoft’s documentation for FAT, NTFS, and exFAT. “Cluster” is used interchangeably in the same documentation and in Linux tools like mkfs. The word “allocation” simply means the act of assigning space, and “unit” is the standard term for a fixed quantity. There is no alternate or informal meaning; in storage contexts, it always refers to the minimum space a file can consume.
How Allocation Units Work
When you format a drive, the file system divides the available space into equal-sized allocation units. Each unit contains one or more consecutive sectors (usually 512 bytes or 4 KB each). The file system keeps a table or index that records which units belong to which file. When you write a file, the system allocates whole units, never partial ones. For example:
- A 1 KB file on a 4 KB unit drive uses 4 KB.
- A 5 KB file on a 4 KB unit drive uses 8 KB (two units).
- A 4 KB file on a 4 KB unit drive uses exactly 4 KB.
The wasted space between the file’s actual size and its allocated size is called “slack” or “internal fragmentation.” The larger the allocation unit, the more slack you get with small files, but the faster the file system can read and write large files because it has fewer units to track.
How to Choose the Right Allocation Unit Size
Most people never need to change the default. Windows, macOS, and Linux choose a sensible default (usually 4 KB for NTFS and APFS, 128 KB for exFAT on large drives). If you are formatting a drive manually, consider these factors:
- Small files (documents, code, photos): Use 4 KB to minimize wasted space.
- Large files (videos, disk images, backups): Use 64 KB or 128 KB to reduce overhead and improve speed.
- USB flash drives: 4 KB is fine for mixed use; 64 KB works well if you store only large files.
- SSDs: 4 KB is standard because the drive’s internal page size is typically 4 KB, which avoids read-modify-write penalties.
For the vast majority of users, the default is correct. Changing it can slightly improve performance for a specific workload, but it also increases slack if you later store small files.
Common Problems and Misconceptions
A frequent misconception is that a larger allocation unit makes the drive “faster” in general. That is only true for sequential access to large files. For random access to small files, a larger unit can actually slow things down because the drive reads more data than needed. Another issue is that some devices—like older digital cameras or car stereos—may not recognize a drive formatted with a non-standard allocation unit size. If you see “drive not recognized” after formatting, try the default size.
Another common problem is running out of space even though the total file sizes seem small. If you have thousands of tiny files, slack adds up. For example, 10,000 1 KB files on a 4 KB unit drive waste 30,000 KB (about 29 MB). That is rarely a concern, but on a small USB stick it can matter. You can check how much space is actually used by right-clicking the drive properties in Windows or using du in Linux.
Allocation Unit vs. Block Size
“Allocation unit” and “block size” are often used interchangeably, but there is a subtle difference. “Block” is a generic term for the smallest addressable unit in a storage device or file system. “Allocation unit” specifically refers to the unit the file system uses to allocate space. In practice, they are the same thing for most file systems. For example, NTFS uses 4 KB clusters, and you can call them allocation units or blocks. The term “block” is more common in Linux and Unix documentation, while “allocation unit” appears in Windows. There is no functional difference for the end user.
How to Check and Change Allocation Unit Size
To see the current allocation unit size on Windows:
- Open File Explorer, right-click the drive, and select Properties.
- Go to the General tab; the “File system” line shows the format (NTFS, exFAT, etc.).
- Open a Command Prompt as administrator and type
fsutil fsinfo ntfsinfo X:(replace X with the drive letter). Look for “Bytes per Cluster.”
To change the allocation unit size, you must reformat the drive. This erases all data, so back up first. In Windows, right-click the drive in File Explorer, select Format, and choose a size from the “Allocation unit size” dropdown. On macOS, open Disk Utility, select the drive, click Erase, and choose a format; macOS does not expose allocation unit size in the GUI, but you can use the command line diskutil if you know the exact parameters. On Linux, use mkfs with the -b option, for example mkfs.ext4 -b 4096 /dev/sdX. Always double-check the drive letter or device name—formatting the wrong drive destroys data.
If That Did Not Work
If you cannot format the drive or the allocation unit size seems wrong, try these steps in order:
- Close any programs that might be using the drive, including antivirus scans.
- Check the drive for errors using
chkdskon Windows orfsckon Linux. - Try a different USB port or cable if it is an external drive.
- If the drive still fails, it may be failing hardware; back up data immediately and consider replacing it.
Reformatting is the only way to change allocation unit size, and it is irreversible. If you are unsure, keep the default.
Frequently Asked Questions
What is the default allocation unit size for NTFS?
For drives up to 16 TB, the default is 4 KB. For larger drives, Windows may use 8 KB or larger. The exact default depends on the drive size and the formatting tool. You can check with fsutil as described above.
Does allocation unit size affect SSD lifespan?
Yes, indirectly. If the allocation unit is smaller than the SSD’s page size (usually 4 KB), the SSD may have to do extra read-modify-write operations, which increases write amplification. Using 4 KB units on modern SSDs matches the page size and minimizes this. Larger units (64 KB or more) can also increase write amplification because a single small write forces the SSD to rewrite a whole large block.
Can I change allocation unit size without losing data?
No. Changing the allocation unit size requires reformatting the drive, which erases all data. There is no safe way to change it in place. Some third-party tools claim to do it, but they are risky and not officially supported. Always back up before attempting.
Is a larger allocation unit better for video editing?
For very large video files, a larger unit (64 KB or 128 KB) can reduce file system overhead and improve sequential read/write speeds. However, the difference is often small compared to the drive’s own speed. If you store a mix of small and large files, 4 KB is a safer choice.
Why does my USB stick show less space than expected?
Part of the space is used by the file system itself (metadata, journal, etc.), and slack from allocation units also contributes. For example, a 32 GB stick formatted with 128 KB units will show slightly less usable space than with 4 KB units because there are fewer units but each file wastes more. The difference is usually small unless you have many tiny files.