Memory

What is memory pressure on a Mac?

The short answer

Memory pressure is macOS's own measure of how hard it's working to fit everything into RAM. Green means it's coping, even if Memory Used looks nearly full. Yellow means it's compressing data to make room. Red means it's leaning on the startup disk, and your Mac slows down. Judge it over days, not one moment.

Memory pressure is the graph at the bottom of Activity Monitor's Memory tab, and it's the best single answer to "does my Mac have enough memory?" It doesn't measure how full your RAM is. It measures how hard macOS has to work to give every app the memory it asks for.

Green is good. Yellow means macOS is working to make room. Red means it has run out of room and is using the disk instead. This guide explains each color, what compressed memory and swap are, what to do about the "Your system has run out of application memory" message, and how to tell whether you really need more RAM.

Why high "Memory Used" is normal on a Mac

Open Activity Monitor's Memory tab and you'll probably see Memory Used close to your Physical Memory. That looks alarming. It isn't.

macOS treats empty memory as wasted memory. It keeps copies of files you've used recently in spare RAM, shown as Cached Files, so they open faster next time. When an app needs more memory, macOS drops some of that cache straight away and hands the space over.

So a Mac with very little free memory can be perfectly happy. Low free memory is what's supposed to happen. Memory pressure is the measure that tells you whether it has become a problem.

How to check memory pressure on a Mac

  1. Open Activity Monitor: 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 graph's height shows how much pressure there is, and its color shows what macOS is doing about it. It only covers the recent past, so one look tells you about right now, not about your week. For a tour of the rest of the window, see our guide on how to use Activity Monitor.

What green, yellow and red memory pressure mean

ColorWhat macOS is doingWhat you noticeWhat to do
GreenFitting everything in RAM. It may compress a little in the background.Nothing.Nothing, even if Memory Used looks full.
YellowCompressing a lot of data to make room, and it may start using swap.Usually little. Sometimes a short pause when you switch apps.If it stays yellow, quit apps and tabs you aren't using.
RedOut of room in RAM, so it keeps moving data to and from the startup disk.Beachballs, slow app switching, maybe the "run out of application memory" message.Save your work, quit the biggest app, then find out why.

A short trip into yellow while you open a huge file or export a long video is normal. What matters is where the graph sits most of the time while you do your usual work.

Compressed memory: squeezing instead of swapping

When RAM gets tight, macOS first compresses memory that hasn't been used recently. Compressed data takes up less room and stays in RAM, and unpacking it is much quicker than reading it back from a disk. Activity Monitor shows the total as Compressed at the bottom of the Memory tab. To see it per process, add the Compressed Memory column with View › Columns.

Several gigabytes of compressed memory is normal on a Mac that has been busy all day. It means macOS is doing its job. Compression only becomes a warning sign when it comes with a yellow or red graph and swap that keeps growing.

Swap memory on a Mac: how much is too much?

Swap is data macOS moves out of RAM and onto your startup disk to make room. Activity Monitor shows it as Swap Used.

Some swap is normal. After a few days without a restart, macOS moves data you haven't touched in a long time onto the disk, so RAM is available for what you're using now. You might see anything from a few hundred megabytes to a few gigabytes of swap with a green graph, and nothing feels slow. That's fine. On a Mac with a built-in SSD, light swapping is fast enough that you won't notice it.

Swap becomes a problem when it keeps growing while you work. If Swap Used climbs by several gigabytes over an afternoon and the pressure graph is yellow or red, your Mac is constantly shuffling data between RAM and disk. That's when the beachballs appear.

Swap is cleared when you restart. So a large figure after weeks without a restart is less worrying than the same figure an hour after one.

Swap lives on your startup disk. If that disk is almost full, macOS can't make more swap, which is one reason a Mac with a nearly full disk can run out of memory.

"Your system has run out of application memory": what to do

This message appears when macOS can't find room for more memory, in RAM or on the disk. It comes with a Force Quit Applications window, and macOS may pause some apps until you decide what to close. It looks worse than it is: your Mac is asking you to choose.

  1. Save your work in any app that still responds.
  2. Open Activity Monitor's Memory tab and click the Memory column to see which app is the biggest. It's often a browser, or an app that has been open for days.
  3. In the Force Quit Applications window, select that app and click Force Quit. Start with the biggest and stop once things recover.
  4. Check your free space in System Settings › General › Storage. If the startup disk is nearly full, swap has nowhere to grow, so move or delete large files you don't need.
  5. If your Mac still feels sluggish, restart it.

The message can appear even when the graph doesn't look red. One question about it on Ask Different is titled "'Your system has run out of application memory', but memory pressure is not even at 50%?" In that situation, look first for a nearly full startup disk, or a single app that grew very large very quickly.

What causes high memory pressure on a Mac

A handful of things cause most cases.

  • Browser tabs. Every tab runs as its own process, such as a Safari web page or a Chrome tab. Tabs with video, web apps or endless feeds use the most. In Chrome, Window › Task Manager shows memory per tab, so you can close the heavy ones.
  • Apps built on web technology. Many chat, note and music apps run their own copy of a browser engine. Slack's helpers and Spotify are common examples, and each one adds up.
  • An app that leaks memory. Because of a bug, some apps keep growing for hours until you quit them. In one Hacker News thread, a commenter found that their screen saver process had grown to 40 GB.
  • Virtual machines and Docker. A virtual machine or Docker can hold on to the memory you gave it, even when it's idle. Give Docker 8 GB on a 16 GB Mac, and up to half your memory can be spoken for before you open anything else.
  • Big creative and developer work. Large photo libraries, 4K video, big audio sessions and large projects in Xcode need a lot of memory while they're open.
  • Too much at once on a small Mac. An 8 GB Mac copes well with a browser and a few apps. Add a video call and a big project, and it can turn yellow.

If your Mac is slow but the graph stays green, memory isn't the cause. Our guide to why a Mac is slow covers the other usual suspects.

How to find the app that keeps using more memory

A leak looks different from a busy app: its number only goes up, even when you aren't doing more in that app.

  1. Open Activity Monitor's Memory tab and choose View › All Processes.
  2. Click the Memory column so the biggest process is at the top.
  3. Note the top five numbers.
  4. Check again in an hour, without opening anything new.
  5. If one process has grown a lot and you haven't used it more, quit it and reopen it. If it grows again, update the app or tell its developer.

Helpers count too. If a process with an odd name is near the top, double-click it and check Parent Process to see which app started it, or look it up in our list of Mac processes.

Why apps that promise to empty your memory don't help

Some apps promise a faster Mac by emptying its memory. Mostly they push macOS to drop its Cached Files. That shrinks the Memory Used number for a moment, but it doesn't make any app need less memory, and macOS refills the cache as soon as you open files again. Your Mac can even be a little slower afterward, because it has to read those files from the disk again.

macOS already hands cached memory to apps the instant they need it, so there's nothing for these apps to do. Some of them also run all the time and use memory themselves. Even the purge command built into macOS, which empties the file cache, is meant for performance testing, not everyday use.

The real fixes are plain ones: close what you aren't using, quit apps that leak, and restart now and then.

Do you need more RAM? Look at days, not moments

One red spike doesn't mean you need a new Mac. A pattern does. Check memory pressure a few times a day for a week while you do your normal work.

You probably need more memory if:

  • The graph is yellow or red most of the time while you use your usual apps.
  • Swap Used grows by gigabytes every day, even after a restart.
  • You get beachballs when switching between apps you use all the time.

You probably don't if:

  • Memory Used is near your total but the graph is green.
  • Cached Files or Compressed is large.
  • Pressure turns yellow only when you open something unusually big.

On Apple silicon Macs, memory is part of the chip and can't be added later, so this check matters most before you buy your next Mac. Some older Intel Macs can be upgraded.

If you'd rather not check by hand, Clearpane's Memory screen gives a plain verdict, such as "You don't need more memory", worked out from seven days of memory pressure, and it can alert you when pressure turns red.

Questions people ask

Is yellow memory pressure bad on a Mac?

No. Yellow means macOS is compressing memory to make room, and most of the time you won't notice it. It's worth acting on only if it stays yellow for long stretches while you work, or turns red.

Is it normal for a Mac to use swap memory?

Yes. macOS moves data you haven't used in a while onto the disk, so some swap is normal, especially after days without a restart. It's a problem when swap keeps growing while the memory pressure graph is yellow or red.

How do I reduce memory pressure on my Mac?

Close browser tabs and apps you aren't using, quit any app that keeps growing in Activity Monitor's Memory tab, and give virtual machines less memory. Restarting clears swap and resets apps that leak.

Why does my Mac say it has run out of application memory?

macOS couldn't find room in RAM or swap for more memory. The usual causes are one app growing very large, too many heavy apps at once, or a startup disk too full for swap to grow.

Should I use an app to clear my Mac's memory?

No. macOS already gives cached memory to apps the moment they need it. Apps that empty memory only make the numbers look better for a moment, and can make your Mac slower while it reloads files.

How much RAM does my Mac need?

It depends on the apps you use. Watch memory pressure for a week with your usual work: if it stays green, you have enough, and if it's yellow or red most of the day, choose more memory for your next Mac.

Written by

Telman makes native Mac apps: Clearpane, Roost and Stepfinch. He wrote Clearpane's process guide, which explains more than 250 macOS processes in plain English, by checking each one against Apple's documentation and the programs themselves.