How to Clear RAM on Mac, and What Really Frees Memory
On this page
Quick answer: Open Activity Monitor, click Memory and look at the Memory Pressure graph. If it is green, there is nothing to clear. If it is yellow or red, quit the apps using the most memory, often a web browser, or restart your Mac. The purge command only empties the disk cache, not the memory apps are using.
Tested on: MacBook Air M1 with 16 GB of memory, macOS 27.0.1, on 22 November 2026. I measured memory with the
memory_pressure,sysctl,topandpscommands, read thepurgemanual page on the same Mac, and checked Apple's Activity Monitor guide.
First, check whether you need to clear anything
A Mac that shows most of its memory "used" is not necessarily short of memory. macOS keeps recently used files in spare memory so they open faster, and it compresses memory before it runs out. The number that tells you whether there is a problem is memory pressure.
- Press Command-Space, type Activity Monitor and press Return.
- Click the Memory tab.
- Look at the Memory Pressure graph at the bottom.
Apple's guide explains the colours. Green means your Mac is using its memory efficiently. Yellow means it might eventually need more. Red means it needs more memory than it has. Apple also says that free or unused memory does not necessarily make a Mac faster.
So if the graph is green, clearing memory will not help. If it is yellow or red, keep reading.
What my Mac showed
You do not need Activity Monitor to check. These Terminal commands only read numbers and change nothing:
memory_pressure | tail -1
sysctl vm.swapusage
top -l 1 -o mem -n 10 -stats command,mem
This is what my 16 GB MacBook Air reported while I wrote this, with Chrome, Claude and a few other apps open:
| Measure | On my Mac |
|---|---|
| Memory installed | 16 GB |
System-wide memory free (from memory_pressure) | 35% |
| Memory held compressed | about 8.2 GB |
Swap in use (from sysctl vm.swapusage) | 15.1 GB of 16 GB |
Swap files on disk, in /System/Volumes/VM | 16 files, 17.2 GB |
Biggest user (from top) | Google Chrome |
Swap is memory that macOS writes out to your disk when RAM is full. 15 GB of it on a 16 GB Mac means this Mac has been asking for more memory than it has.
The cause was easy to find: Chrome's 134 processes added up to 8.4 GB. That total overcounts memory the processes share, so treat it as an upper limit.
The fix here is not a cleaner. It is fewer browser tabs.
Ways to free memory that work
These are the only things that free memory apps are holding. Each is built into macOS.
- Quit the apps you are not using. In Activity Monitor's Memory tab, click the Memory column to sort by it. The top of the list is where the memory goes. Quit those apps normally, so they can save your work.
- Close browser tabs and windows. Every tab can hold its own memory. On my Mac the browser was the largest user by far.
- Restart your Mac. A restart empties memory completely and starts swap again from nothing. It is the bluntest fix, and it works.
- Stop apps opening at login. Apps that start with your Mac keep using memory all day. Open System Settings and search for Login Items to see and remove them.
Use Force Quit only for an app that has stopped responding. It skips the app's own chance to save your work.
What the purge command really does
Many guides tell you to run sudo purge to "clear RAM". The command's own manual page on my Mac says something narrower. It forces the disk cache to be flushed and emptied, and it states that it does not affect memory apps have allocated.
Read it yourself with man purge. In practice, purge empties the files macOS keeps in memory to speed up disk access. The memory your apps are using stays exactly where it was. macOS then refills the cache as you work.
Purge needs an administrator password, so I did not run it for this test. It is safe, but it is not a way to give apps more memory. Purgy's own Free inactive memory option in the menu bar runs this same command, so it has the same limit, and I would rather tell you that than oversell it.
Do RAM cleaner apps help?
A cleaner app can only do what macOS allows: empty caches like purge does, or quit apps for you. It cannot free memory an app is still using without closing that app.
Emptying the cache can make a busy Mac briefly slower, because the cached files have to be read from disk again. Apple's own point stands: free memory is not the same as a faster Mac.
When more memory is the real answer
If memory pressure is yellow or red most of the time, even after you quit apps, your work needs more memory than the Mac has. Apple's guide says red means the computer needs more RAM.
Apple also explains how to check whether your Mac's memory can be upgraded. Hold Option, choose Apple menu > System Information, then Memory. If there is no "Upgradeable Memory" section, the memory cannot be upgraded. That is the case for Macs with Apple silicon, where memory is part of the chip.
Questions about clearing RAM on Mac
These come up most.
Is high "Memory Used" bad?
No. macOS deliberately puts spare memory to work, for example to keep recently used files ready and to compress memory instead of writing it to disk. Memory pressure is the number that tells you about a problem.
Is swap bad for my Mac?
A little swap is normal. A lot of it, with yellow or red pressure, means the Mac is short of memory for what you run. Swap also takes up disk space while it is in use: 17.2 GB on mine.
Does clearing RAM make my Mac faster?
Only if memory pressure was the problem, and then quitting apps or restarting is what helps. Otherwise, according to Apple, free memory does not necessarily improve performance.
Watch memory from the menu bar
Purgy's menu bar panel shows live CPU and memory, memory pressure and the apps using the most, each with a Quit button. Its Monitor System Health screen shows the same in more detail. That makes it quick to quit the right app without opening Activity Monitor.
To see how much memory each app uses in more detail, read how to check RAM usage on Mac. Swap files also count toward System Data in Storage settings, which this guide explains. You can try Purgy with the free trial.