APFS clones and du: why copied files seem to double your storage, tested with six copy methods

By the Zofle team · 15 November 2026 · 4 min read

APFS clone copies compared with plain copies

You duplicate a 200 MiB file and du says your folder doubled. Your free space says it did not. Both are telling the truth: on APFS a copy can share its data blocks with the original, and du counts every file as if it owned them. We tested six ways of copying a file on a scratch APFS volume to see exactly which ones take space.

The test setup

The boot volume's free space moves by tens of megabytes every few seconds, which would drown a small test. So we made a separate 1.2 GB APFS volume (hdiutil create -size 1200m -fs APFS -type SPARSE), put a 200 MiB random file on it, and read df -k on that volume after every copy. Nothing else writes there, so the numbers are exact.

bash
cp -c  orig.bin clone.bin     # clonefile(2)
cp     orig.bin plain.bin     # ordinary copy
ditto  orig.bin ditto.bin
rsync -a orig.bin rsync.bin
cat orig.bin > cat.bin
df -k /Volumes/CLONELAB       # read after each
How the copy was madeExtra space usedShares blocks with the original?
cp -c0 KByes, a clone
ditto0 KByes, a clone
cp (no flag)204,800 KB (200 MiB)no
rsync -a204,800 KBno
cat a > b204,800 KBno

Two surprises. Plain cp does not clone on this macOS version (27.0); you need -c. And ditto does, which matters because it is what many installers and scripts use. We did not test Finder's Duplicate here (it needed an Automation permission we could not grant in a script), so check it on your own Mac with the method below.

What du says

After the five copies there were six files of 200 MiB each, but only four of them held their own data (original, plain, rsync, cat); the other two were clones. The numbers:

MeasureValue
du -sk . for the folder1,228,800 KB (1.17 GiB)
Space actually used on the volumeabout 819,200 KB (800 MiB): original, plain, rsync and cat copies, plus the two clones for free
Gapabout 400 MiB that du counted twice

du and Finder's Get Info add up file sizes. They do not know which blocks are shared. The only honest number is free space on the volume, before and after.

What happens when a clone changes

A clone starts free, then pays only for what changes (copy on write). We overwrote 20 MiB in the middle of clone.bin:

ActionFree space change
Overwrite 20 MiB inside clone.bin-20,480 KB (only the changed part is new)
Delete clone.bin+20,480 KB back (only its own 20 MiB)
Then delete orig.bin0 KB: ditto.bin still shared those blocks

This is the part that trips people up. Deleting one of two clones frees almost nothing; space returns only when the last file sharing the blocks is gone. So deleting a big original while keeping its duplicates is useless, and deleting the duplicate you thought was the cost-free one may be too.

A real example: a 691 MB .git folder for 360 KB

For the Git article we cloned a 691 MB .git folder with cp -cpR to try git gc safely. Free space dropped by 360 KB, while du reported 691,168 KB. That is the same trick you can use before any risky cleanup: clone a folder in seconds, experiment, throw the clone away.

How to measure your own

  • Use df -k /path or Disk Utility's volume numbers before and after; do not trust folder sizes.
  • Quiet the Mac first (close Photos, Spotlight and Time Machine activity) or test on a small APFS image like above.
  • Clones only work inside one volume. Copying to an external drive always writes real data.
  • Backups and cloud sync see two separate files: a clone is free locally but full price when it is uploaded.

This is also why a folder can look larger than its volume's used space, as in APFS space sharing.

Zofle shows your Mac storage by category and lets you move big, old files to the Trash with Undo, so you can see what is worth the effort before you run any command.

Download Zofle for Mac

Sources and method

  • man cp (-c uses clonefile), man clonefile, man ditto.
  • Apple, About Apple File System (clones and copy-on-write).
  • Measured on 15 November 2026 on macOS 27.0 (Apple silicon) on a 1.2 GB scratch APFS volume; free space read with df -k after sync. The scratch image was ejected and deleted afterwards. Finder Duplicate was not tested.

Zofle Pro news

People signing up now will get Zofle Pro, with more features, for free when we launch it.

One email when it's ready. No spam, ever.