Memory compression in Windows is a feature that stores part of your RAM’s contents in a compressed form instead of writing it to the slower page file on your disk. When your system runs low on physical memory, Windows compresses older or less-used pages in RAM, freeing up space for active apps. You see the effect in Task Manager under Performance > Memory, where a value like “In use (Compressed)” appears. This article explains what memory compression is, how it works, how to check it, and when it helps or hurts performance.
Formula
The calculator above estimates how much of your used memory is compressed and how much physical RAM that compression saves. The key formula is:
Compressed % of used = (Compressed memory / Used memory) × 100
Where:
- Compressed memory (GB) – the amount of RAM currently holding compressed pages (shown in Task Manager).
- Used memory (GB) – total RAM in use by all processes, including compressed pages.
The “Estimated RAM saved” assumes a typical compression ratio of 2:1 (compressed data takes half the original size). That’s a common average for mixed data, but actual ratios vary from 1.5:1 to 3:1 depending on content.
Worked Example
Using the default values: total RAM = 16 GB, used = 12 GB, compressed = 2 GB.
- Compressed % = (2 / 12) × 100 = 16.7%
- Estimated RAM saved = 2 GB × 0.5 = 1 GB
So with 2 GB of compressed memory, you’re effectively getting 1 GB of extra free RAM (because those 2 GB of pages would otherwise occupy 4 GB uncompressed). The calculator shows 16.7% and 1 GB respectively.
Background: Why Windows Compresses Memory
Before Windows 10 version 1507 (released in 2015), when RAM ran low, Windows would move unused pages to the page file on your hard drive or SSD. That process is called “paging” or “swapping.” Reading from disk is hundreds of times slower than reading from RAM, so heavy paging causes noticeable lag. Memory compression was introduced to reduce that disk traffic. Instead of writing pages to disk, Windows compresses them in RAM. Compression uses CPU cycles, but compressing and decompressing is still much faster than disk I/O. The feature is part of the Memory Manager and works automatically; you don’t need to enable it.
How Memory Compression Works
Windows maintains a list of memory pages that are not actively used. When the system needs more free RAM, it compresses those pages and stores them in a special area called the compression store. When an app needs the data again, Windows decompresses it on the fly. The compression algorithm is similar to LZ77, which is fast and works well on typical data. The compression store lives in the system process (shown as “System” in Task Manager). The amount of compressed memory appears in the Performance tab under “In use (Compressed)”.
Key points:
- Compression happens only when memory pressure is high.
- Compressed pages are still in RAM, so they’re faster than disk.
- If compression isn’t enough, Windows still writes to the page file.
- You can’t disable compression in Windows 11; it’s always on.
How to Check Memory Compression in Windows
To see compression activity:
- Press Ctrl + Shift + Esc to open Task Manager.
- Go to Performance tab and select Memory.
- Look for “In use (Compressed)” – for example, “8.5/16 GB (1.2 GB compressed)”.
You can also use Resource Monitor (resmon.exe) and check the “Hard Faults/sec” counter. A high rate of hard faults means the system is paging to disk, which compression is supposed to reduce. If you see a large compressed value (e.g., 4 GB on a 16 GB system), that’s normal under heavy load.
Common Problems and Misconceptions
One common misconception is that memory compression slows down your PC because it uses CPU. In reality, compression is fast and only happens when you’re low on RAM. The CPU cost is usually negligible compared to the speed penalty of disk paging. Another misconception is that you can “turn off” compression to free up CPU. In Windows 10 and 11, there’s no official setting to disable it. Some third-party tools claim to disable it, but they often cause instability or force more disk paging, which is worse.
A real problem is when compression becomes excessive. If you see compressed memory consistently above 50% of your used memory, your RAM is too small for your workload. The system is spending CPU cycles compressing and decompressing constantly, which can cause stuttering. The solution is to close unused apps or add more RAM, not to disable compression.
Memory Compression vs. Page File
Memory compression and the page file serve different purposes. Compression keeps data in RAM, while the page file moves data to disk. Compression is faster but uses CPU. The page file is slower but frees up RAM completely. Windows uses both: it compresses first, and only if memory pressure continues does it write to the page file. That’s why you might see a large page file even with compression enabled. In practice, compression reduces the frequency and size of disk writes, which extends SSD life and improves responsiveness.
When Memory Compression Helps or Hurts
Memory compression helps when you have a moderate memory shortage and your disk is slow (especially HDD). It helps on laptops with limited RAM because it reduces disk activity, saving battery. It hurts when your CPU is very old or slow, because compression adds load. It also hurts when you have plenty of free RAM – but in that case, compression rarely activates. If you’re a gamer with 16 GB RAM and a game uses 14 GB, compression may cause minor hitches. In that scenario, closing background apps or adding RAM is better than blaming compression.
Frequently Asked Questions
Is memory compression bad for my SSD?
No, it’s actually good. Compression reduces writes to the page file, which prolongs SSD life. The CPU cost is minimal, and the trade-off is favorable.
Can I disable memory compression?
There is no official way in Windows 10 or 11. Some registry hacks exist, but they are unsupported and can cause problems. It’s better to add more RAM or reduce memory usage.
Why does Task Manager show “Compressed” memory?
That’s the amount of RAM currently holding compressed pages. It’s part of the “In use” value. It doesn’t mean extra RAM is being used; it means some used RAM is compressed.
How much compression is normal?
On a typical system with 8-16 GB RAM, seeing 1-2 GB compressed under load is normal. If it’s consistently above 4 GB, you likely need more RAM.
Does compression affect gaming performance?
It can, if your RAM is maxed out. The compression/decompression adds latency. However, the alternative (disk paging) is worse. If you notice stutters, reduce background memory usage or add RAM.
What is the difference between compressed and cached memory?
Cached memory is unused RAM that holds recently accessed files for quick reuse. Compressed memory is used memory that’s been squashed to free up space. They are different: cache is free, compressed is in use.
Related
Formula used
in mem | Total RAM | GB | 16 | 1 | 1024 in used | Currently used | GB | 12 | 0 | 1024 in comp | Compressed memory | GB | 2 | 0 | 1024 out pct | Compressed % of used | % | comp / used * 100 | 1 out saved | Estimated RAM saved | GB | comp * 0.5 | 1
Each line is one input (in, sel, list) or one result (out: label, unit, formula, decimals). How the calculators work
Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.
More in this bed
- Fix 0x80070005 DISM Error & the 0x800070005 Typo
- Fix Access Denied Adding Shared Printer in Windows 10
- How to Play Minesweeper: Rules, Tips, and Winning Strategy
- Browser SQL Sandbox for Games: Build Guide
- Snapchat Face Swap: Step-by-Step Guide
- Fix a Computer Chair Height Adjuster: Step-by-Step