Sleepimage on Mac, explained.
It's a single file macOS writes when your Mac goes to sleep, and it's one of the first big files people find when they go looking. Here's what it does, how big it gets, and why it's not worth deleting.
The short version
/private/var/vm/sleepimage is where macOS saves a copy of memory when your Mac sleeps, so nothing is lost if the battery runs out. On the MacBook Pro this page was written on, it was 2 GB. Deleting it gains nothing: macOS writes it again the next time the Mac sleeps. The only way to keep it gone is to change hibernatemode, which trades away that safety net.
What is sleepimage on a Mac?
When a Mac sleeps, it keeps memory powered so it can wake in a second. Laptops also write a copy of that memory to disk, in case the battery dies while the lid is closed. That copy is the sleep image. If power runs out, the Mac restores from it on the next start, with your apps and windows as you left them.
It lives at /private/var/vm/sleepimage. /var is a shortcut to /private/var, so pmset calls it /var/vm/sleepimage. It belongs to the system, only root can read it, and Finder doesn't show the folder unless you go looking.
| What | Default location | On one Mac |
|---|---|---|
| Sleep image | /private/var/vm/sleepimage | 2 GB, with 48 GB of memory |
| Swap files | /System/Volumes/VM | 20 GB, 19 files |
Sizes are from one MacBook Pro with an M4 Pro and 48 GB of memory, running macOS 26.6. The sleep image there was 2 GB. Swap is a different thing: memory macOS moves to disk while the Mac is awake. On recent versions of macOS it has its own volume, /System/Volumes/VM, and it shrinks after a restart.
Hibernatemode: how to check yours
Whether macOS writes a sleep image depends on one power setting. To see yours, run this in Terminal. It only reads the setting:
pmset -g | grep hibernatemode
ls -lh /private/var/vm/sleepimage
Apple's pmset manual lists three values:
- 0, the default on desktops. Memory isn't copied to disk, and a power cut while asleep loses whatever wasn't saved.
- 3, the default on laptops. Memory stays powered and a copy goes to disk too. The Mac wakes from memory unless power ran out.
- 25, true hibernation. Memory is written to disk and powered off: slower to sleep and wake, easier on the battery.
The MacBook Pro above reports hibernatemode 3, and standby 1, which means it also hibernates on its own after sleeping for a while.
Can you delete sleepimage?
You can, with administrator rights, but it doesn't reclaim anything for long. In mode 3 or 25, macOS writes the file again the next time your Mac sleeps, so the space comes back within the hour. Deleting it while it's in use is the risky part: if the Mac then loses power asleep, there's no image to restore from.
To keep it gone for good, you'd have to change the setting. The pmset manual says that to stop hibernation images completely, hibernatemode, standby, and autopoweroff all have to be 0. The manual itself says “please use caution” next to these settings. On a laptop, the cost is real: a flat battery in your bag means a cold start and any unsaved work gone. For 2 GB on a modern Mac, we don't think it's worth it, and this page doesn't give the commands to do it.
When it is worth a look. If your sleep image is many times bigger than 2 GB, check pmset -g for a hibernatefile someone moved, or a mode other than the default. Restoring the default is safer than deleting the file.
Why is sleepimage so big?
It has to hold what was in memory, so its size depends on your Mac and how much memory is in use. On the Apple silicon MacBook Pro above, it was 2 GB with 48 GB of memory. Older Intel Macs often had one close to the size of their memory, which is why forum threads talk about 8 or 16 GB files. Either way, it's usually not the biggest thing on your disk. Storage settings doesn't name it, so if you're hunting a big System Data number, local snapshots and simulators are better bets. How to clear System Data covers those.
Other folders that fill up without asking: iPhone backups, Messages attachments, and the rest on what's taking up space.
Disk Forecast and the sleepimage
Disk Forecast doesn't list the sleep image, and it won't offer to delete it. It scans your home folder, and /private/var/vm isn't in it. What it does show is the number that matters: your free space, checked every hour, and after 3 days, a forecast like “Full in ~41 days.” If a 2 GB file decides whether you make it to Friday, the forecast tells you weeks ahead. It's free.
Questions
What is sleepimage on Mac?
It's the file at /private/var/vm/sleepimage where macOS saves a copy of memory when the Mac sleeps. If the battery runs out while it's asleep, the Mac restores your apps and windows from it.
Can I delete sleepimage on my Mac?
You can, but it doesn't reclaim anything for long: macOS writes it again the next time the Mac sleeps. Stopping it for good means setting hibernatemode, standby, and autopoweroff to 0, which removes the safety net if the battery dies while asleep.
Why is my sleepimage file so big?
It holds a copy of memory, so it grows with how much memory your Mac has and uses. On an Apple silicon MacBook Pro with 48 GB of memory, it was 2 GB. Older Intel Macs often had one about the size of their memory.
How do I check my Mac's hibernatemode?
Run pmset -g | grep hibernatemode in Terminal. 0 is the desktop default, 3 is the laptop default, and 25 is full hibernation. The command only reads the setting.
Is sleepimage the same as swap?
No. Swap is memory moved to disk while the Mac is awake, and on recent macOS it lives on its own volume, /System/Volumes/VM. The sleep image is written when the Mac goes to sleep.
Related guides
Know before it's full.
Free. No account, no subscription.
macOS 14 or later · Apple Silicon and Intel · brew install --cask coreyhaines31/tap/diskforecast