Should You Use Windows 11 Compressed Memory or Add Physical RAM
- 15 steps
- Needs administrator rights
- Includes a restart or sign-out
Windows 11 compressed memory is a built-in feature that shrinks inactive data inside your RAM so your PC stays responsive when physical memory runs low. Instead of pushing background apps out to the slow page file on your drive, Windows squeezes that data into less space on your memory sticks.
Physical RAM is the hardware: memory modules installed on your motherboard. Compressed memory is a software feature that saves space without opening your case. If your PC has a free memory slot, adding RAM is always the better fix. Compression is the free stopgap that keeps things running smoothly until you are ready to buy an upgrade. It is on by default in both Windows 11 Home and Pro.
Yes, use Windows 11 memory compression first, but add physical RAM whenever your PC has a free memory slot, because it is the better fix. Compression is built into Windows 11 Home and Pro, costs nothing and needs no hardware changes. It only stretches your current memory, though, so it cannot replace real RAM for heavy gaming or large workloads.
How 🪟 Windows 11 Memory Compression Works
Memory compression takes idle background data and stores it in a reserved part of your RAM. When you stop using an app, Windows shrinks the app’s inactive data. That frees up active memory without any hardware change.
Here is what happens, step by step. Windows finds pieces of data that have not been touched for a while and compresses them to a smaller size. It keeps the compressed data in a special area of RAM. When you click back to that app, Windows expands the data to its normal size. This takes milliseconds, so you rarely notice it.
The feature has several clear benefits:
- It reduces how often your computer has to use the slow hard drive for virtual memory.
- It keeps your system running smoothly even when you have many apps open.
- It works automatically in the background, so you never have to manage it.
It is not magic, though. Compressing and decompressing data costs a small amount of processor time. On very old or weak computers, that extra work can cause a slight stutter. On modern processors the cost is tiny and you will not feel it during everyday work.
Memory Compression vs. Adding Physical RAM
Which option is right depends on how you use your PC and what your hardware allows. Here is a direct comparison of the two approaches.
Memory Compression:
- CostFree. It is built into Windows 11.
- InstallationNone. You do not need to open the case or touch any hardware.
- LimitationIt can only stretch your current memory so far. With 8 gigabytes of RAM, compression helps, but it cannot turn 8 gigabytes into 32 gigabytes of gaming headroom.
Adding Physical RAM:
- CostYou have to buy new memory sticks.
- InstallationYou need to open your laptop or desktop and insert the new modules. Some modern laptops have the memory soldered to the board and cannot be upgraded at all, so check your model before you buy anything.
- BenefitYour PC gets real, physical room. Apps keep their own dedicated space and do not have to share it or be compressed.
Task Manager shows the memory speed and how many slots are in use (see the Task Manager steps later in this guide). Buy modules of the same type and compatible speed as the ones already installed. Also check your motherboard or laptop manual for the maximum RAM it supports.
How to Check Your Memory Compression Status Using PowerShell
You can check whether memory compression is on by running a status command in PowerShell with administrator rights. The steps below take a couple of minutes.
- Click the Start button on your taskbar.
- Type PowerShell in the search box. Windows PowerShell should appear in the results.

PowerShell - Right-click Windows PowerShell in the results and choose Run as administrator.
- Click Yes if a User Account Control window asks whether you want to allow this app to make changes to your device. A blue PowerShell window should open.
- Type the memory status command in the PowerShell window and press Enter.
- Look through the output for the MemoryCompression line. If it says True, memory compression is on. If it says False, it is off.
If you want to change the setting, open an administrator PowerShell window again as described above. Then follow these steps:
- Click the Start button, type PowerShell, right-click Windows PowerShell, and select Run as administrator.
- Click Yes on the security prompt.
- To turn memory compression on, type the following command and press Enter:Code
Enable-MMAgent -mc - To turn memory compression off, type the following command and press Enter:Code
Disable-MMAgent -mc
If the command is rejected with an access error, the window is not running as administrator. Close it and reopen it with Run as administrator. To undo a change, run the opposite command.
Restart your computer after changing this setting so the change takes full effect. The restart also restarts the background services that manage system maintenance, so you do not need to restart any service by hand.
Without compression, Windows starts writing inactive data straight to the page file on your drive as soon as physical RAM runs short. That sudden switch to drive storage causes stuttering, freezing, and slow response when you switch between windows. It is worse on a hard disk than on an SSD.
If your PC has a small amount of RAM, such as 4 or 8 gigabytes, leave memory compression enabled. Turning it off on a low-memory system will almost certainly make daily multitasking feel slower.
How to Tell If You Need More Physical RAM
Task Manager is the quickest way to tell whether you need more RAM. Its memory page shows how full your RAM is and how much of it is compressed.
- Press Ctrl+Shift+Esc to open Task Manager.
- If the window looks small and simple, click More details at the bottom. The full Task Manager should open.
- Open the Performance page. In the newer Windows 11 Task Manager it is in the left-hand sidebar. In older builds it is a tab at the top of the window.
- Click Memory in the left-hand list. A memory graph and a set of numbers appear.
- Check the In use (Compressed) figure and the usage percentage at the top right. Also note the Speed and Slots used values if you plan to upgrade.
Watch these numbers while you do your normal work, not while the PC is idle. If memory usage regularly sits between 80% and 95%, your PC is hitting its physical RAM limit and compression is working overtime to cope. More physical RAM will give you immediate relief in that case. If usage stays well below that range, an upgrade will likely not change much.
Summary
Windows 11 memory compression helps your PC run smoothly by shrinking idle background data, but it is not a permanent fix for heavy multitasking. The built-in feature is free and automatic, and you should leave it on in almost every case. If your system constantly runs out of memory, adding physical RAM is still the best long-term solution.
Have a question about this guide?
Answered by AI from this guide. Good questions may be added to this page — please don't include personal details.
Did this guide fix your problem?
About the Author
Richard
Tech Writer, IT Professional
Richard is a writer at Geek Rewind who turns complex IT tasks into clear, step-by-step guides. He draws on years of hands-on experience in system administration and enterprise IT operations, focusing on Windows, Linux and WordPress: the problems people actually run into, and the fixes that work. His server and WordPress guides come from systems he runs himself. Richard builds and maintains the platform behind Geek Rewind, from its Ubuntu servers and Nginx configuration to its custom WordPress plugins. Many new tutorials start with readers' questions, and he's always glad to answer them in the comments.
No comments yet — be the first to share your thoughts!