How to clear RAM on Mac

Asya Karapetyan
Content marketer, who specializes in Mac how-to guides
June 16, 2023
7 minutes to read

There are situations when you do not have enough RAM memory for a good Mac performance. In this case, you need to clear RAM as soon as possible. In this article, we will share three methods of how to free up RAM on Mac to make your system run fast.

Contents:

  1. What is RAM
  2. What is using RAM on computer
  3. How much RAM do you need
  4. How to check RAM usage on Mac
  5. How to clear RAM on Mac
  6. How to reduce RAM usage on Mac

Before we start, let’s see how easy it is to get more RAM with Memory Cleaner:

Video Tutorial – How to get more RAM

What is RAM

RAM (Random Access Memory) is a type of memory that is used to store data of running applications and system processes. In short, RAM is a temporary workspace on your hard drive where currently being used apps and processes are kept.

What is using RAM on Mac

Every program and system process on the computer needs RAM to work smoothly. Even when you quit recently active apps, the system keeps inactive RAM of them during some period of time. Inactive RAM is reserved in case you want to open the program again. If it happens, the system does not need to reallocate memory that accelerates performance speed. If you do not re-open the program, after a while the memory of the inactive program will be freed or relocated.

How much RAM do you need

The more programs your system is running, the more memory you’ll need. Just like with a hard drive space, the amount of RAM you need for your Mac depends on the tasks you do on your computer, for example, for gaming, surfing the Internet or for working with high memory consuming apps, such as video or photo editing programs. For regular everyday tasks, 16GB RAM is enough.

How to check memory usage on Mac

On macOS, Apple provides a built-in app called Activity Monitor which can help you check RAM usage on your Mac and how much memory each application or its separate processes use on your system. Here’s how to check RAM usage:

  1. Open Activity Monitor. You can find it in the Applications folder or in the Launchpad.
  2. Switch to the Memory tab.
  3. You will see the list of all active processes of your apps and the memory volume they use.
  4. At the bottom of the window, you will see the box panel showing the total RAM usage on your Mac.

Activity Monitor window
With Activity Monitor, you can also check CPU usage on your Mac. For this, switch to the CPU usage tab.

How to clear RAM on your Mac

If you are facing a slow Mac performance or RAM issues, for example, you often get a notification that “Your system has run out of application memory,” then probably your RAM is being used to the max. In this case, you should clear RAM on Mac. Read on to learn three ways how to free up RAM on your computer.

Clearing RAM with Terminal

Follow these steps to clear RAM using the Terminal app:

  1. Run Terminal – the default app on every Mac.
  2. searching for terminal app in launchpad

  3. Enter the following command: sudo purge
  4. The system will ask you to enter the admin password to confirm the operation.
  5. Terminal app window

  6. After being entered the password inactive memory space will be cleared.

Pros and Cons of clearing RAM with Terminal

Pros: You use a standard method without any additional software.

Cons: Freeing up the process in such a way definitely slows down your system. You also have to re-open Terminal and enter the lines once again, as well as the administrator password. Firstly, it is not convenient, secondly, if the system is already slowing down, opening another app takes time.

Clearing RAM with Script Editor

If you use old versions of macOS, such as High Sierra or El Capitan, you can use Script Editor to clear RAM. This method is a bit difficult since you usually need to be a computer geek and have some basic knowledge of development, but don’t be afraid. With our tutorial, everything is simple.

Here is how to clear RAM with Script Editor:

  1. Launch the Script Editor app – another Mac default program.
  2. Enter the following text:

      display dialog “Free inactive RAM?” buttons {“Cancel”, “OK”} with icon 2 with the title “Freeing RAM” default button 2
      set buttonAnswer to the button returned of the result
      if buttonAnswer is “ОК” then
      say “Freeing RAM. Wait please.”
      tell application “Terminal”
      do shell script “purge”
      quit
      end tell
      say “Done!”
      end if
  3. After press Command(⌘)+S and save your script. Choose the application format instead of Script.
  4. AppScript app window with a script

  5. Each time you want to clean the RAM, run this script file.

Pros and cons of clearing RAM with Script Editor

Pros: Once you create a special script app, you do not need to write commands in Terminal every time.

Cons: You still have to launch the app each time you have to clean up RAM, which is also not convenient.

Clear RAM with Memory Cleaner

Use the special app to free up inactive RAM on your computer – Memory Cleaner. The application is free and allows you to automatically clean up inactive memory and speed up your Mac.

Steps for clearing RAM with Memory Cleaner:

  1. Launch Memory Cleaner. The app will constantly be active from the toolbar on your desktop, displaying the used memory.
  2. Memory Cleaner window in the menu bar

  3. Enable the option to automatically free up RAM.
  4. Settings to free up RAM

And that’s all! The app will automatically clear RAM each time you quit large apps, your memory usage gets high volume or there is a low CPU usage on your Mac.

Pros and Cons clearing RAM with Memory Cleaner

Pros: Once you launch the app, you need to do nothing to free up RAM. The app can clean the RAM automatically. The best thing is that the application is free.

Cons: You need to install additional software.


How to clear RAM on your Mac

If you want to reduce memory usage on your Mac, try these tips:

Quit unused applications
You can use Activity Monitor or Memory Cleaner to check how much memory your apps use and close memory-consuming apps or apps you don’t use.

Clear your desktop
Having too many files and icons on your desktop can slow down your Mac and consume memory. We recommend moving the files into other folders in Finder.

Disable login items
Login items are programs that start automatically when you turn on your Mac. Some of them may use a lot of memory and slow down your Mac. You can disable login items by going to System Settings → Users & Groups → Login Items. Uncheck automatically running your apps at Mac login.

Run a memory cleaner
Use Memory Cleaner from Nektony, which allows you to automatically clean inactive RAM when it’s needed. You can configure how often RAM cleaning will start depending on the memory pressure on your Mac.


To sum up: How to quickly free up RAM on a Mac

Now you know the ways of freeing up RAM on your Mac computer. Use any of the provided methods for cleaning RAM on your Mac and speed up your system. If you still face slow Mac performance, check other tips on how to fix a slow Mac.



FAQs

Why is my Mac RAM so full?
Can you increase Mac RAM?
Is 8 GB RAM good?
Scroll to Top