If you have ever opened Activity Monitor, clicked the Memory tab, and wondered what the "Compressed" number means, you are not alone. It sits right below "App Memory" and "Wired Memory", often showing gigabytes of something you never asked for. Most people assume it is a problem. It is not.
This post explains, in plain English, what memory compression actually is, why macOS does it, how much it helps, and what the Activity Monitor numbers are really telling you. There is nothing alarming here. By the end you will understand why high compressed memory on a busy Mac is a sign of a healthy system, not a struggling one.
What does compressed memory actually do?
Your Mac's RAM holds everything currently running: open apps, browser tabs, background processes, cached files. RAM is fast, but it is finite. When it starts filling up, macOS has two options: write some of that data to your storage drive (called swap), or compress it and keep it in RAM.
Compression wins almost every time. A compressed page still lives in RAM, which means it can be retrieved in microseconds. Writing to disk, even on a fast SSD, is orders of magnitude slower. So when macOS sees that an app you opened twenty minutes ago is sitting idle, it compresses those memory pages in place. Same data, smaller footprint, still instantly available if you switch back.
The trade-off is a small burst of CPU work. Compressing takes a moment; so does decompressing when you return to that app. But the time cost is tiny compared to the alternative. A read from compressed RAM is still vastly faster than a read from swap on disk.
Why does macOS compress memory?
The goal is to delay or avoid swap entirely. Swap is what macOS writes to your storage drive when it truly runs out of RAM. On modern SSDs, swap is tolerable, but it is never as smooth as real RAM. Compression extends how long your Mac can operate entirely within RAM before swap becomes necessary.
Apple introduced memory compression in OS X Mavericks in 2013. Before that, macOS had to reach for disk sooner. Since Mavericks, a Mac under memory pressure compresses first, swaps second. In practice, many workloads that would have caused heavy swap usage on older Macs now resolve entirely through compression. You never feel it. You just notice that your Mac stays responsive longer than you might expect given its specs.
It is also worth knowing that compression is not something macOS does reluctantly. It is a deliberate, aggressive strategy. If RAM is filling up, macOS compresses early and often, which is why Activity Monitor can show a significant "Compressed" number even when your Mac feels perfectly fast. That is the system doing its job well, not struggling.
Is compressed memory bad?
No. This is probably the most important sentence in this post: high compressed memory is a sign macOS is stretching your RAM further, not a sign that anything is wrong.
Think of it like this. Imagine you have a wardrobe and you vacuum-seal some jumpers you are not wearing right now. The wardrobe looks fuller, but you have actually made more usable space, and you can still get those jumpers out quickly when you need them. That is exactly what macOS is doing with inactive memory pages.
The number to watch if you are worried about memory is not "Compressed". It is memory pressure. A green pressure graph means your Mac is managing memory comfortably, even if the Compressed row looks large. Yellow or red pressure, combined with growing swap, is the signal that something actually needs attention.
You can check both in Activity Monitor. Open it, click Memory, and look at the graph at the bottom. Apple's own Activity Monitor guide uses memory pressure, not the Compressed number, as the indicator for whether your Mac needs more RAM. That framing is deliberate.
How much memory does compression save?
Typically 40 to 60 percent per compressed page, though the exact ratio depends on what is in those pages. Text, code, and structured data compress very well. Pages full of already-compressed content, like images or video, compress far less. macOS uses a fast compression algorithm optimised for speed over maximum ratio, which is why decompressing feels instant in practice.
In real terms: if you have 8 GB of RAM and macOS compresses 3 GB of inactive pages down to 1.5 GB, you effectively have 1.5 GB of breathing room that would not otherwise exist. On a machine where every gigabyte matters, that is meaningful. It is one reason Apple Silicon Macs with 8 GB of unified memory often feel more capable than you might expect from the raw number.
Which brings us to the Apple Silicon difference. On Apple Silicon Macs, memory compression is faster than on Intel because the chips include dedicated efficiency cores that handle background tasks like this. Those cores compress and decompress without competing with whatever you are doing in the foreground. On Intel Macs, the same cores running your apps also handle compression overhead, so the trade-off is slightly more noticeable under a heavy load. Both systems compress. Apple Silicon does it more quietly.
One final thing worth saying: you cannot turn compression off. It is built into the macOS kernel and there is no setting for it. Even if there were, you would not want to. Without compression, your Mac would reach for swap much sooner, and swap, even on a fast SSD, is noticeably slower than compressed RAM. Compression is the right answer to a full memory situation. If you are seeing virtual memory warnings or heavy swap usage alongside your compressed memory number, that is worth investigating. The Compressed row on its own is not.