What’s keeping your Mac awake, and how to let it sleep

A Mac stays awake when an app asks it to, by holding what macOS calls a power assertion. To see which app it is, open Activity Monitor, click Energy, and look at the Preventing Sleep column.

Find it in Activity Monitor

  1. Open Activity Monitor (in Applications ▸ Utilities).
  2. Click the Energy tab.
  3. If there’s no Preventing Sleep column, choose View ▸ Columns and turn it on.
  4. Click the column’s header to sort the Yes rows to the top.

Quit that app, or finish what it’s doing (end the call, pause the music), and the Mac can sleep again.

Find it in Terminal, with the reason

Activity Monitor tells you who. Terminal also tells you why, and for how long. Open Terminal and run:

pmset -g assertions

The first part is a summary: PreventUserIdleSystemSleep 1 means something is keeping the Mac awake, and PreventUserIdleDisplaySleep 1 means something is keeping the display on. The second part, Listed by owning process, names each process, how long it has held on, and the reason it gave, often in plain words such as “Playing audio”.

To see recent sleep and wake times:

pmset -g log | grep -e " Sleep " -e " Wake "

Common reasons a Mac won’t sleep

  • A video call or meeting app, sometimes even after the call has ended.
  • Music or video playing, including a browser tab.
  • A download, sync or backup still running.
  • caffeinate, a command that keeps a Mac awake. Scripts and apps use it, and it’s easy to forget one running in Terminal.
  • Sharing and network settings. Screen Sharing, File Sharing or Wake for network access can keep a Mac awake or wake it.
  • Its own settings. On a desktop Mac, check System Settings ▸ Energy; on a laptop, System Settings ▸ Battery ▸ Options, for Prevent automatic sleeping settings.

A Mac that sleeps, then wakes up

If the Mac goes to sleep but wakes again by itself, something is waking it, not keeping it awake. In Terminal, pmset -g log | grep -i "wake reason" lists recent wakes and why. Common causes are network access from another device (Wake for network access in System Settings ▸ Battery ▸ Options or Energy), Bluetooth devices such as a mouse, and scheduled maintenance such as Power Nap.

After you find the app

Quit it when you don’t need it awake, or look in its settings: many apps that play media or sync have an option to let the Mac sleep. If the culprit is caffeinate from a script you forgot, find it in Activity Monitor and quit it, or press Control-C in its Terminal window.

If Preventing Sleep is No for everything and pmset -g assertions lists nothing but macOS itself, the Mac is free to sleep, and it’s a setting that keeps it awake:

  • Prevent automatic sleeping when the display is off, in System Settings ▸ Energy on a desktop Mac or Battery ▸ Options on a laptop (on power only).
  • Turn display off when inactive, in System Settings ▸ Lock Screen, set to Never. The Mac can’t idle-sleep while its display is kept on.
  • Sharing services, such as File Sharing, Screen Sharing or Media Sharing, which keep the Mac reachable for other devices.

The display sleeps but the Mac doesn’t

These are two separate things. The display turns off after the time in Lock Screen; the Mac itself sleeps only once nothing holds it and its own settings allow. A Mac with a dark screen can still be wide awake, downloading, backing up or playing music. pmset -g assertions tells you which: PreventUserIdleDisplaySleep is the screen, PreventUserIdleSystemSleep is the Mac.

Is it bad if my Mac doesn’t sleep?

Not for the Mac: macOS and its hardware are made to run for days. It costs power, and on a laptop it costs battery and warmth in a bag. An app that keeps the Mac awake when you didn’t want it to is worth finding, because it may also be using the processor while you’re away.

Why does my Mac wake up at night?

Usually because something asked it to: another device reaching it over the network, scheduled maintenance, a Time Machine backup, or a Bluetooth device. Run pmset -g log | grep -i "wake reason" the next morning to see each wake with its reason. If it’s network access, set Wake for network access to Never or Only on Power Adapter in Battery ▸ Options (or Energy on a desktop). If it’s a mouse or keyboard, move it or turn it off at night.

Why won’t my MacBook sleep with the lid closed?

A MacBook connected to power, an external display and an external keyboard or mouse stays awake with the lid closed on purpose: that’s closed-display mode, and the Mac keeps working on the external screen. Unplug the display, or put it to sleep from the Apple menu, and it sleeps.

Should I sleep my Mac or shut it down?

Sleep is fine every day: it uses very little power, and the Mac picks up where you left off. Restart now and then, such as after an update or when the Mac has been on for weeks and feels slow, because a restart clears what has built up while it ran.

Doing this with Brello

Brello is a Mac app we make. Its Health page shows what’s keeping your Mac awake: each app, in its own words, and for how long. Then it says when your Mac will sleep once they let go, such as “Then it sleeps after 10 minutes without use.” Health works on any Mac with macOS 14 or later.

With Brello PI’s agent, ask “why won’t my Mac sleep?”: Brello PI names the app and what it’s doing, and offers to quit it for you, asking first. The agent needs a Mac with Apple silicon, macOS 27 and Apple Intelligence.

Checked on macOS 27.0.1, November 2, 2026. Menu names can change with a macOS update.

Sources: Set sleep and wake settings for your Mac (Apple Support); pmset(1), the manual page.

In Brello’s help: Mac Health, Change settings by asking.