How-to7 min readBy the Mac Ninja team

How to Clear RAM on Mac: 7 Steps That Take Under 10 Minutes

Clear RAM on a Mac in under 10 minutes: find memory hogs in Activity Monitor, sleep Chrome tabs, trim login items, restart, and keep memory pressure low.

Laptop with a glowing RAM module above it and a green memory pressure gauge on screen

To clear RAM on a Mac, open Activity Monitor, quit the apps and browser tabs using the most memory, turn off login items you do not need, and restart the Mac. That takes under 10 minutes and brings memory pressure back to green on almost any Mac running macOS 26 Tahoe, macOS 15 Sequoia or macOS 14 Sonoma.

This guide walks through those steps in order, tells you what you should see at each step, and covers the optional Terminal command that clears cached memory. The last part explains how to keep RAM clear afterward, because the honest truth is that a manual cleanup lasts only until you open your usual tabs and apps again.

Before you start: the number that actually matters

Most people try to clear RAM because the Mac feels sluggish, and they look at how much memory is "used." That number is misleading. macOS deliberately fills spare RAM with cached files so apps open faster, so a Mac with little free memory is often perfectly healthy.

The figure to watch is Memory Pressure, the graph at the bottom of Activity Monitor's Memory tab:

  • Green: memory is fine. Clearing RAM will not make the Mac noticeably faster.
  • Yellow: macOS is compressing memory to cope. You may feel small delays when switching apps.
  • Red: the Mac is swapping to disk heavily. This is when beachballs and stutters appear, and clearing RAM helps the most.

Also note Swap Used in the same panel. A few hundred megabytes is normal; several gigabytes means the Mac has been short of memory for a while. If you want a full walkthrough of every number in that panel, see How to Check RAM Usage on Mac.

How to clear RAM on Mac in 7 steps

Step 1: Open Activity Monitor and find the biggest users (1 minute)

  1. Press Command-Space, type Activity Monitor and press Return. You can also find it in Applications > Utilities.
  2. Click the Memory tab at the top.
  3. Click the Memory column header so the largest processes sit at the top.

What to expect: browsers usually dominate the list, often as many entries named Google Chrome Helper (Renderer), Safari Web Content or similar. You will also see WindowServer and kernel_task. Those two belong to macOS; leave them alone.

Step 2: Quit apps you are not using (2 minutes)

Closing a window with the red button often leaves the app running in the background. To free its memory, quit it properly:

  1. Switch to the app and press Command-Q, or right-click its Dock icon and choose Quit.
  2. If an app will not respond, press Option-Command-Escape to open Force Quit Applications, select it and click Force Quit.
  3. In Activity Monitor, you can also select a process and click the Stop button (the octagon with an X) in the toolbar, then choose Quit or Force Quit.

What to expect: the Memory Pressure graph drops within a few seconds. Do not force quit processes you do not recognize; quitting WindowServer, for example, logs you out.

Step 3: Deal with browser tabs (2 minutes)

Every open tab keeps its own process in memory, so tabs are the most common reason RAM fills up.

  • Chrome: choose Window > Task Manager (or the three-dot menu > More Tools > Task Manager). Sort by Memory footprint, select the heaviest tabs and click End process. The tab stays open and reloads when you click it.
  • Chrome Memory Saver: open Chrome Settings > Performance and turn on Memory Saver so inactive tabs are discarded automatically.
  • Safari: close tabs you do not need. To keep them for later, choose Bookmarks > Add Bookmarks for These Tabs first.

What to expect: with 30 or more tabs open, this single step often frees more memory than everything else combined.

Step 4: Turn off heavy browser extensions (1 minute)

Extensions run in every window and some keep their own processes alive. In Chrome, go to chrome://extensions and toggle off anything you do not use daily. In Safari, open Safari > Settings > Extensions and untick the ones you can live without.

What to expect: a smaller but steady saving, and fewer helper processes in Activity Monitor.

Step 5: Trim login items (2 minutes)

  1. Choose Apple menu > System Settings > General > Login Items & Extensions (on Sonoma it is called Login Items).
  2. Under Open at Login, select apps you do not need at startup and click the minus button.
  3. Under Allow in the Background, switch off helpers for apps you rarely use.

What to expect: nothing changes immediately. The benefit shows after the next restart, when fewer apps load into memory.

Step 6: Restart the Mac (2 minutes)

Choose Apple menu > Restart and untick "Reopen windows when logging back in" so every app does not reload at once.

What to expect: Swap Used returns to zero and Memory Pressure starts green. This is the most thorough way to clear RAM on a Mac.

Step 7 (optional): Clear cached memory with Terminal (30 seconds)

If you cannot restart right now, open Terminal (Applications > Utilities) and run:

sudo purge

Enter your admin password when asked. The command flushes the disk cache that macOS keeps in RAM.

What to expect: Cached Files in Activity Monitor drop sharply, but Memory Used barely moves, because purge does not touch memory that apps are actively holding. macOS refills the cache as you work, so treat this as a quick reset, not a fix.

What each step frees, and how long it lasts

StepWhat it freesHow long the result lasts
Quit unused appsAll memory those apps heldUntil you reopen them
Unload or close browser tabsOften the largest share of used memoryUntil tabs are reloaded or new ones opened
Disable extensionsSmall, steady savingsPermanent while disabled
Trim login itemsMemory used by startup apps and helpersPermanent
RestartEverything, including swapHours to days, depending on habits
sudo purgeCached files onlyMinutes

The pattern is clear: the steps that free the most memory are the ones that wear off fastest, because tabs and apps are exactly what you use all day.

Mistakes that waste time

  • Chasing free memory. A green Memory Pressure graph with little free RAM is normal. Clearing cache on a green Mac just makes macOS reload files from disk.
  • Running a RAM cleaner on a timer. Tools that purge memory every few minutes undo the cache macOS built on purpose. The Mac can feel slower, not faster.
  • Force quitting system processes. kernel_task often looks large because it manages memory and heat for the whole system. It is not a leak to kill.
  • Ignoring the disk. When the startup disk is nearly full, macOS has less room for swap and slows down regardless of RAM. Check Apple menu > System Settings > General > Storage.

If memory pressure is green and the Mac still feels slow, the cause is probably elsewhere. Why Is My Mac So Slow? ranks the other common causes with a fix for each.

Keeping RAM clear without closing your work

The manual routine works, but it asks you to give up the tabs and apps you actually need, and you have to repeat it every day or two. Mac Ninja automates the parts that wear off, and it never closes anything to do it.

What it does for you

  • Tabs sleep instead of closing. Tabs left untouched for 15 minutes (adjustable in Settings) are unloaded, sooner when memory is tight. They stay in the tab strip and reload when you click them. This works in Google Chrome, Brave, Microsoft Edge, Arc, Vivaldi, Opera, Comet, Dia, Chromium and Safari (Safari in Lite mode). The visible tab in each window, pinned tabs, tabs playing sound, incognito windows and sites you protect are skipped.
  • Native Chrome discarding. The optional free Mac Ninja Helper extension uses Chrome's own tab discarding, the same mechanism as Chrome Memory Saver.
  • Background apps are calmed, not killed. Foreground Boost moves apps that hog the processor or disk while you work into macOS's low-priority lane, and they get full speed back the instant you switch to them. Apps playing or recording audio are never slowed.
  • Leftover AI agent tabs. With the helper installed, tabs opened by AI browser agents such as Claude in Chrome in their own tab groups are closed after the whole agent session has been idle for 8 hours. You can change that or switch it off.

What you see

Right-click the ninja in the menu bar to open the dashboard: live rings for memory, the fast processor cores and how smoothly the front app is running, memory pressure over time, each browser's tabs, and apps that have sat idle for hours holding memory or whose memory keeps growing. Those come with a Quit item you click yourself; Mac Ninja never quits apps on its own. A Free Up Memory button runs the same built-in purge as Step 7, and "Why does my Mac feel slow right now?" explains the live numbers in plain English.

Who it is not for

Mac Ninja cannot make an old processor faster, and it cannot fix a nearly full disk beyond packing away apps you have not used in 60 days. If one app on its own needs more memory than your Mac has, the real fix is a Mac with more RAM. For 8 GB machines specifically, see MacBook Air Slow?

It has no account, no analytics and no tracking (privacy policy). Pricing is $9.99 a year or $24.99 once, both for up to 3 Macs, with a 7-day free trial and a 14-day money-back guarantee. See plans, or compare it with other tools in Best Mac Cleaner in 2026.

What to do next

  1. Open Activity Monitor now and check the Memory Pressure color. If it is green, your RAM is fine and you can stop here.
  2. If it is yellow or red, run Steps 2 to 6 above. The whole pass takes under 10 minutes.
  3. If memory fills up again within a day, download the free Mac Ninja trial and let it keep tabs asleep and background apps calm for a week. Setup help, including Chrome access, is on the support page.

For a broader checklist that goes beyond memory, read MacBook Running Slow? The Quick Check and 6 Fixes That Work.

Frequently asked questions

Is it safe to clear RAM on a Mac?

Yes. Quitting apps, closing or unloading tabs, restarting and running sudo purge are all safe and use standard macOS features. The only thing to avoid is force quitting system processes such as WindowServer or kernel_task. Save open documents before force quitting any app, since unsaved changes in that app can be lost.

Does restarting a Mac clear RAM?

Yes. A restart empties all memory and swap, so Memory Pressure starts green. Untick "Reopen windows when logging back in" in the Restart dialog, otherwise macOS reopens your apps and windows and much of the memory fills right back up. A restart every few days is a reasonable habit if you keep many apps open.

What does sudo purge do on a Mac?

It tells macOS to flush the disk cache it keeps in RAM. In Activity Monitor you will see Cached Files drop, but memory held by running apps is not touched. macOS rebuilds the cache as you work, so the effect lasts minutes. It needs an admin password and is rarely necessary on a healthy Mac.

Do RAM cleaner apps actually work?

Tools that only purge memory on a schedule give a brief drop in used memory that macOS quickly refills, and they can make apps reload files more often. Tools that unload idle browser tabs or lower the priority of busy background apps address what actually fills memory and causes stutters, so their effect lasts longer.

How much free RAM should a Mac have?

There is no target. macOS fills spare memory with cached files on purpose, so low free memory is normal. Judge by Memory Pressure: green means you have enough, yellow means macOS is compressing memory, and red means it is swapping to disk and you should clear RAM or reduce what is open.

Why is Google Chrome Helper (Renderer) using so much memory?

Chrome runs each tab, and many extensions, in its own renderer process, and Activity Monitor lists them all as Google Chrome Helper (Renderer). Lots of entries usually just means lots of tabs. Use Chrome's Task Manager under the Window menu to see which tab each one is, then end or unload the heaviest ones.

Published November 13, 2026. Spotted a mistake? Email support@macninjaa.com.