TopMac
Guides

How to Clear RAM on Mac, and When You Don't Need To

You rarely need to clear RAM on a Mac. Check Memory Pressure in Activity Monitor, then quit the apps using the most memory, or restart, if it is yellow or red.

By the TopMac team · December 2, 2026 · 6 min read

There is no button that clears RAM on a Mac, and most of the time you don't need one. macOS puts spare memory to work on purpose and reuses it when apps need room. If the Mac really is short of memory, what helps is quitting the apps that use the most, or restarting.

Before doing either, check whether memory is the problem at all.

How memory works on a Mac

A Mac that shows most of its memory in use is working as designed. Apple's Activity Monitor guide says it directly: having free or unused memory does not necessarily make a computer faster, and macOS gets its best performance by using and managing all of the memory it has.

Open Activity Monitor and click the Memory tab, and the bottom of the window breaks memory into these parts:

LabelWhat it means
Physical MemoryHow much RAM the Mac has
Memory UsedHow much of that RAM is taken, broken down in the three rows below
App MemoryWhat your apps are using
Wired MemoryWhat macOS itself must keep in RAM. Apps can't have it
CompressedMemory macOS has squeezed down so that more fits in RAM
Cached FilesFiles held in spare memory to speed things up
Swap UsedStartup disk space macOS uses to shuffle idle data out of RAM and back in

Two of these explain why "clearing" memory is rarely useful.

Cached Files is memory that would otherwise sit idle. It stays cached until something else needs the space, and it helps apps reopen faster in the meantime. Emptying it by hand only takes that benefit away.

Compressed is macOS making room by itself. As the Mac approaches its memory limit, memory held by inactive apps is compressed so that active apps get more.

So a high Memory Used figure is not a warning. The thing to watch is Memory Pressure.

Check memory pressure before you do anything

  1. Press Command-Space, type Activity Monitor and press Return.
  2. Click the Memory tab.
  3. Look at the Memory Pressure graph at the bottom of the window.

The colour tells you where you stand:

  • Green: memory is being used well. There is nothing to clear.
  • Yellow: an early warning. The Mac may need more RAM at some point.
  • Red: the Mac doesn't have enough RAM for what you are asking it to do.

Apple says the graph reflects how much memory is free, how fast the Mac is swapping, and how much is wired or holding cached files, which makes it a better guide than any single number.

If the graph is green and the Mac is still slow, memory is probably not the cause. Look at the CPU tab instead, which our guide to the task manager on a Mac walks through.

What actually frees memory

If the graph is yellow or red, these are the things that make a difference, in the order to try them.

Quit the apps using the most memory

  1. In the Memory tab, click the Memory column heading so the largest users are at the top.
  2. Save your work, switch to each app near the top that you can do without and press Command-Q.
  3. Watch the Memory Pressure graph for a minute to see whether it settles.

Closing a window is not the same as quitting. If there is still a small dot under the app's icon in the Dock, it is still open and still holding memory.

If a web browser is near the top, close the windows and tabs you are not using and watch the list to see whether they were the cause.

An app that won't quit can be forced. See how to force quit on a Mac, and expect to lose unsaved changes in that app.

Restart the Mac

  1. Save your work.
  2. Choose Restart from the Apple menu.
  3. Deselect "Reopen windows when logging back in" if you don't want everything to open again.
  4. Click Restart.

A restart closes every app and background process, so anything that was holding on to memory lets go of it. If you leave that box selected, the same apps come back, and so does much of the memory use.

Cut down what opens at login

Apps that open by themselves at login use memory from the moment you start.

  1. Open System Settings and click General in the sidebar.
  2. Click Login Items & Extensions.
  3. Select an item you don't need at login and click the Remove button below the list.

The same screen lists apps allowed to run in the background, each with a switch. Our guide to Mac startup apps covers both lists in detail.

Keep some disk space free

Swap lives on the startup disk, and Apple lists a startup disk without enough free space as one of the causes of a slow Mac. To see how much is free, open System Settings, click General, then click Storage. If you are close to full, see how to clear System Data on a Mac.

What not to bother with

RAM cleaner apps

Apps sold as RAM cleaners promise to free up memory. By Apple's own account a bigger free number is not the goal: unused memory does not necessarily make a Mac faster, cached files are there to help, and macOS already compresses and reuses memory as it fills.

A cleaner also can't change how much memory your apps need. These apps are rarely needed, and we don't recommend one here.

The purge command

You may see advice to run purge in Terminal. Its manual page on macOS describes it as a tool for performance analysis that empties the disk cache to imitate the state of a freshly started Mac. The same page says it does not touch memory that apps have allocated.

In other words, it empties a cache that macOS will fill again, and leaves the memory your apps are holding where it was.

Chasing a low Memory Used number

If the graph is green, quitting apps to see a smaller number achieves nothing, and the apps then have to load again from scratch.

When the real answer is more RAM

If memory pressure stays yellow or red during normal work, even after a restart and with only the apps you need open, the Mac has less RAM than your work calls for.

To find out whether your Mac's memory can be upgraded:

  1. Hold the Option key and choose System Information from the Apple menu.
  2. Under Hardware, click Memory.
  3. Look for Upgradeable Memory in the Memory Slots pane.

If there is no Memory Slots pane, your Mac's memory can't be upgraded. The practical choices are then to run fewer heavy apps at once, or to choose more memory the next time you buy a Mac.

Apple's pages on checking whether your Mac needs more RAM and viewing memory usage are the source for the memory terms used here.

Frequently asked questions

How do I check RAM usage on a Mac?

Open Activity Monitor and click the Memory tab. The list shows memory per app, and the bottom of the window shows Memory Pressure, Physical Memory, Memory Used, Cached Files and Swap Used.

Does restarting a Mac clear RAM?

Yes. A restart closes every app and process, so memory is handed out again from a clean start. It fills up again as you reopen apps, which is normal.

Do I need a RAM cleaner app for my Mac?

Rarely. macOS manages memory by itself, and Apple says free memory does not necessarily improve performance. If Memory Pressure is green, there is nothing for a cleaner to fix.

Why is my Mac using so much memory with few apps open?

macOS fills unused memory with cached files to speed things up, and keeps some wired for the system. That is normal. Judge by the Memory Pressure graph, not by Memory Used.