TechBuzzPro

SD Card Allocation Unit Size: How to Choose

· 6 min read · Cameras & Drones

In this article
  1. Formula
  2. Worked Example
  3. What Is Allocation Unit Size?
  4. How It Affects Performance and Space
  5. How to Choose the Right Size
  6. Common Mistakes and Misconceptions
  7. File System Considerations
  8. Performance in Real Devices
  9. Frequently Asked Questions

This article explains what allocation unit size (also called cluster size) means for SD cards, why it matters, and how to pick the right value when formatting. You enter your card’s capacity and intended use, and the guidance below gives you a recommended range and the reasoning behind it.

in c | Card capacity | GB | 32 | 1
sel u | Main use | Photos/Videos=1, Documents=2, Mixed=3
out rec | Recommended allocation unit size | KB | if(u==1, max(32, min(128, c*4)), if(u==2, 4, 16)) | 0

Formula

The recommended allocation unit size (in kilobytes) is estimated as:

For photos/videos: max(32, min(128, capacity_GB × 4))

For documents: 4 KB (or 16 KB if the card is 64 GB or larger)

For mixed use: 16 KB

Where capacity_GB is the card’s size in gigabytes. The formula is a rule of thumb, not a hard standard – it balances wasted space against read/write speed.

Worked Example

Suppose you have a 32 GB SD card and you mainly store photos and videos. Using the default values:

  • Capacity = 32 GB, use = Photos/Videos
  • Recommended size = max(32, min(128, 32 × 4)) = max(32, min(128, 128)) = max(32, 128) = 128 KB

The calculator shows 128 KB as the recommendation. For a 64 GB card used for photos, the formula gives max(32, min(128, 256)) = 128 KB as well, since the cap is 128 KB.

What Is Allocation Unit Size?

When you format an SD card, the file system divides the storage into small blocks called clusters or allocation units. Every file, no matter how tiny, occupies at least one cluster. The allocation unit size is the size of each of these blocks.

Common sizes are 4 KB, 16 KB, 32 KB, 64 KB, and 128 KB. The default in most formatting tools is often 32 KB for cards larger than 2 GB, but that default is not always optimal for your specific use.

How It Affects Performance and Space

The choice is a trade-off between two things: wasted space and speed.

  • Smaller clusters (e.g., 4 KB): Less wasted space when storing many small files, but the card controller has to do more work to read/write a given amount of data, which can slow things down.
  • Larger clusters (e.g., 64 KB or 128 KB): Faster for large files because the controller handles bigger chunks at once, but each small file wastes the rest of its cluster. For example, a 5 KB file on a 64 KB cluster wastes 59 KB of space.

The difference is negligible for a handful of files, but if you store thousands of small documents, a larger cluster size can waste gigabytes of space.

How to Choose the Right Size

Match the cluster size to the average file size you store. Here are practical guidelines:

  • Photos and videos (large files, typically 5–100 MB): Use 32 KB, 64 KB, or 128 KB. Larger clusters improve write speed, which helps when recording video.
  • Documents, spreadsheets, and text files (small files, under 1 MB): Use 4 KB or 16 KB to minimize wasted space.
  • Mixed use (some photos, some documents): 16 KB is a reasonable middle ground.
  • Cards 64 GB and larger: The file system (exFAT) supports larger clusters, and the speed benefit of 128 KB is more noticeable.

If you are unsure, the default chosen by the formatting tool (often 32 KB) is usually safe for general use. You can always reformat later, but that erases the card.

Common Mistakes and Misconceptions

One common mistake is assuming a larger cluster size always makes the card faster. In reality, if you store many small files, the card may spend extra time reading multiple clusters per file, which can be slower than a smaller cluster size.

Another misconception is that the allocation unit size affects compatibility. It does not – the file system (FAT32, exFAT, NTFS) determines compatibility, not the cluster size. A card formatted with 4 KB clusters works in any device that supports that file system, just as a card with 128 KB clusters does.

Also, note that the cluster size is set at format time. You cannot change it without reformatting, which deletes all data on the card.

File System Considerations

The allocation unit size is tied to the file system you choose:

  • FAT32: Works with nearly all devices, but has a 4 GB maximum file size limit. Cluster sizes up to 32 KB are typical for cards up to 2 TB, but the 4 GB file limit makes it unsuitable for large video files.
  • exFAT: Designed for flash storage, supports files larger than 4 GB, and is the default for most SD cards 64 GB and larger. Cluster sizes can be up to 2 MB.
  • NTFS: Primarily for Windows internal drives, not recommended for SD cards because many cameras and other devices cannot read it.

For most modern SD cards, exFAT is the best choice, and the cluster size can be set within that file system.

Performance in Real Devices

Cameras, smartphones, and drones often have their own formatting routines that set a cluster size they are optimized for. If you format the card in your camera, it will use the camera’s preferred cluster size, which is usually fine.

If you format on a computer, you can override that. For example, a 128 GB card used in a 4K camera may benefit from 128 KB clusters to reduce write overhead. On the other hand, a 32 GB card used in a dashcam that writes continuously may be fine with 32 KB.

There is no single “best” size for all devices – the right choice depends on the device and the file sizes it produces. When in doubt, use the default from the device itself.

Frequently Asked Questions

Does allocation unit size affect speed?

Yes, but the effect is usually small. Larger clusters can improve write speed for large files because the controller handles bigger chunks. For small files, larger clusters can actually slow things down because the card may read extra data. The difference is often a few percent, not a dramatic change.

What is the default allocation unit size for SD cards?

It varies by formatting tool and card size. Windows’ default for a 32 GB card formatted as FAT32 is often 32 KB, and for exFAT on a 64 GB card it is often 128 KB. Many cameras and phones use their own defaults, which are typically 32 KB or 64 KB.

Can I change allocation unit size without losing data?

No. Changing the cluster size requires reformatting the card, which erases all data. You must back up your files first, then format with the new cluster size, then copy the files back.

Is a larger allocation unit size better for video recording?

Generally yes, because video files are large and written sequentially. A cluster size of 64 KB or 128 KB can reduce the number of write operations, which may help avoid dropped frames. However, the card’s speed class (e.g., U3, V30) matters more than cluster size for consistent video recording.

Does allocation unit size affect compatibility with my camera or phone?

No. Compatibility is determined by the file system (FAT32, exFAT, etc.), not the cluster size. Any cluster size within the file system’s supported range will work in a device that supports that file system.

What happens if I choose a cluster size that is too small?

You may see slightly slower performance for large files, and the card’s file system overhead increases because there are more clusters to manage. In extreme cases, very small clusters (like 512 bytes) can cause noticeable slowdowns, but 4 KB is usually fine for most uses.