"Swap Used" in Mac: What Is It and How to Clear Swap Memory

Clare Weaver
Last updated: Dec 1, 2023

This guide covers what "Swap Used" in Mac Activity Monitor is, explains why it might be large, and provides steps on how to clear it. Check it out now.

Have you ever noticed the "Swap Used" space on your Mac? It tends to increase when your memory is full. If you're curious about what it is and how to reduce its space, keep reading this post – we have answers to all these questions.

"Swap Used" in Mac: What Is It and How to Clear Swap Memory

What Does "Swap Used" Mean in Mac?

The term "Swap Used" indicates the amount of swap memory currently in use on your Mac.

So what is swap memory?

Swap memory, also known as virtual memory, is a part of your Mac's storage space reserved for temporarily holding data that would normally be stored in RAM (Random Access Memory).

How to Check "Swap Used" on Mac

Here are two methods to check the size of "Swap Used" on your Mac.

Method 1. Via Activity Monitor

  1. Open Activity Monitor.
  2. Switch to the Memory tab.
  3. Below the processes list, you'll see a graph depicting your physical memory, memory used, cached files, and swap used.
Check Swap Used on Mac with Activity Monitor

Method 2. Via Terminal

  1. Open Terminal via Spotlight or Finder.
  2. Copy and paste the command sysctl vm.swapusage into the Terminal and press Return.
  3. The command will display details about your Mac's swap memory, including the total swap space, currently used space, and available space.
Check Swap Used Memory on Mac
Tip
Your total swap space is influenced by your macOS version and physical memory, and you don't have the option to set a default size for it.

Why Is My "Swap Used" Large?

The reason for a large "Swap Used" is that your physical memory is full, prompting your system to automatically swap those unimportant files to the startup disk to maintain smooth operation on your Mac.

Tip
The files swapped to the startup disk are called swap files. They can be found in the /private/var/vm directory.

Swap memory is automatically managed by the system, and you don't need to do anything. However, if your startup disk is nearly full, and you believe clearing the used swap space might be a solution, then follow the steps below.

How to Clear the "Swap Used" Space on Mac

1. Close Unused Apps

It's recommended to close any unnecessary applications to free up physical memory, potentially reducing the reliance on swap space.

2. Quit Resource-Hogging Processes

If you find there are resource-intensive applications or processes, quitting them might help free up swap space.

  1. Open Activity Monitor.
  2. Go to the Memory tab.
  3. Select memory-extensive apps and processes, then click the Quit button.
Force Quit Resource Hogging Procceses Mac

3. Force Free Up Inactive Memory

You can also let your macOS force free up inactive memory using the sudo purge command. This command is safe to use, but it may cause temporary slowdowns.

  1. Open Terminal.
  2. Type: sudo purge and press Return.
  3. Enter your administrator password and press Return.
Force Free Up Inactive Memory Mac

4. Restart Your Mac

A simple restart can help clear the swap space. When your Mac restarts, the operating system will reevaluate its memory needs.

5. Add More RAM

If you frequently find yourself needing to clear swap space, it may indicate that your system is running low on physical RAM.

Consider upgrading your RAM to provide more memory for your applications and reduce the reliance on swap space, offering a more effective and sustainable solution.

Bonus: 7 Tips to Free Up Memory (RAM) on Mac

Swap memory will be used when your Mac is running low on available RAM space. If adding more physical RAM is not an option, follow these tips to free up memory on your Mac:

Tip 1. One-click RAM optimization with BuhoCleaner.

DownloadFor macOS 10.10 and above
100,000+ Satisfied Users Worldwide
One Click RAM Optimization with BuhoCleaner

Tip 2. Disable unnecessary login items.

Tip 3. Organize and clean up your desktop.

Tip 4. Limit the number of open Finder windows.

Tip 5. Reduce the count of open browser tabs.

Tip 6. Remove unused extensions and plugins.

Tip 7. Uninstall apps that could potentially cause memory issues.

Final Words

Swap memory is crucial for maintaining system stability, and there's typically no need to clear it manually. However, if you still insist on doing so, follow the method provided above. For those seeking to free up more storage space, we highly recommend BuhoCleaner, a safe and professional cleaning tool designed specifically for Mac users.

Clare Weaver

Clare Weaver has been captivated by the world of Apple products since the launch of iconic iPhone in 2007. With a wealth of experience, Clare is your go-to source for iPhone, iPad, Mac, and all things Apple.