keepcalculator

06 Numbers and Powers

Prevent Mac Automatic Sleep: Full Guide

Card No. 06·13858 · Updated · Standard formula, shown below

To prevent your Mac from automatically going to sleep, open System Settings (or System Preferences on older macOS), go to Battery (or Energy Saver), and set the sleep timer to Never for both battery and power adapter. This stops the display and system from sleeping on their own, though you can still put the Mac to sleep manually with a keyboard shortcut or menu command.

Why Macs Sleep by Default

Apple ships every Mac with power management enabled to save energy and extend battery life. The default sleep timers vary by model and macOS version, but typically the display turns off after 10–15 minutes of inactivity and the whole system sleeps shortly after. This behavior is controlled by a combination of the display sleep timer, the system sleep timer, and a feature called Power Nap that wakes the Mac briefly for background tasks.

Sleep is not the same as turning off the display. When the display sleeps, the Mac itself keeps running—apps stay open, downloads continue, and the processor stays active. When the system sleeps, the Mac suspends most activity, saves the current state to memory (and sometimes to disk), and uses very little power. Understanding this distinction matters because many users only want to stop the display from turning off, not the entire system.

How to Change Sleep Settings on macOS

The exact steps depend on your macOS version. For macOS Ventura and later:

  1. Open System Settings from the Apple menu ( > System Settings).
  2. Click Battery in the sidebar.
  3. Click the Options button (or look for “Prevent automatic sleeping on power adapter�).
  4. Set the “Turn display off on battery� and “Turn display off on power adapter� sliders to Never.
  5. Toggle on Prevent automatic sleeping on power adapter if you want the system to stay awake while plugged in.

For macOS Monterey and earlier:

  1. Open System Preferences.
  2. Click Energy Saver (on laptops, you’ll see two tabs: Battery and Power Adapter).
  3. Drag the “Turn display off� slider to Never.
  4. Check Prevent computer from sleeping automatically when the display is off (on laptops, this appears under the Power Adapter tab).

On desktop Macs (iMac, Mac mini, Mac Pro), the Energy Saver pane is simpler—just one slider for display sleep and a checkbox for “Prevent automatic sleeping when the display is off.�

Using the caffeinate Command

If you need to keep the Mac awake temporarily—say, while running a long download or presenting—you can use a built-in terminal command called caffeinate. It’s a command-line utility that prevents the system from sleeping for a specified time or until you stop it.

  • caffeinate -d – prevents the display from sleeping.
  • caffeinate -s – prevents the system from sleeping (on AC power).
  • caffeinate -t 3600 – stays awake for 3600 seconds (1 hour) and then exits.
  • caffeinate -i – prevents idle sleep (works with -s for full effect).

To stop it, press Control+C in the terminal. You can also combine flags, e.g., caffeinate -d -t 1800 keeps the display awake for 30 minutes. This is handy for one-off situations without changing your system settings permanently.

Third-Party Apps and Alternatives

Several free utilities offer more granular control than the built-in settings. Amphetamine (from the Mac App Store) is a popular choice—it adds a menu bar icon that lets you trigger “awake� sessions with a single click, set timers, and even keep the Mac awake while specific apps are running. KeepingYouAwake is a lightweight open-source alternative with similar functionality. These apps essentially use the same caffeinate mechanism under the hood but provide a user-friendly interface.

If you prefer not to install anything, the built-in settings are usually sufficient. However, third-party tools are useful when you need to keep the Mac awake only during certain activities, like when an external display is connected or while a particular app is in the foreground.

Common Problems and Misconceptions

A frequent misconception is that setting the display to “Never� also prevents the system from sleeping. That’s not true—the system can still sleep even if the display stays on. On laptops, you must also disable the system sleep timer or enable “Prevent automatic sleeping on power adapter.� On desktops, the checkbox “Prevent automatic sleeping when the display is off� does exactly that.

Another issue: if your Mac still sleeps after you’ve set everything to “Never,� check these:

  • Power Nap – This feature can wake the Mac, but it shouldn’t cause sleep. However, if you’ve disabled sleep, Power Nap won’t run—so it’s not the culprit.
  • Schedule – In Energy Saver settings, there’s an option to schedule startup, wake, or sleep. If a schedule is set to “Sleepâ€� at a certain time, it will override your “Neverâ€� setting.
  • Battery percentage – On laptops, macOS may force sleep when the battery reaches a critical level (usually below 2%). You can’t disable that—it’s a safety feature.
  • Clamshell mode – If you close the lid on a laptop, it will sleep regardless of settings unless you have an external display and input device connected. That’s hardware behavior, not a setting.

Comparing Sleep Settings Across Mac Models

Desktop Macs (iMac, Mac mini, Mac Pro) and laptops (MacBook Air, MacBook Pro) have slightly different options. Desktops have a single Energy Saver pane with a display sleep slider and a checkbox for preventing automatic sleep. Laptops have separate tabs for Battery and Power Adapter, allowing different behavior when on battery vs. plugged in. For example, you might want the display to sleep after 5 minutes on battery but never on power adapter.

Apple Silicon Macs (M1, M2, M3) handle sleep a bit differently—they wake almost instantly and use very little power in sleep, so many users don’t mind the default settings. However, if you’re running a server or need the Mac to respond to network requests, you’ll want to disable sleep entirely. Note that even with sleep disabled, the Mac can still enter a low-power state if the display is off and the system is idle, but it won’t suspend the CPU.

Impact on Energy and Hardware

Leaving a Mac awake 24/7 increases electricity consumption and generates more heat, which can reduce the lifespan of internal components like the battery and SSD. On laptops, running on battery with the display always on will drain the battery quickly. If you need the Mac to stay awake for long periods, it’s best to keep it plugged in and consider using a cooling pad if it runs hot.

On the other hand, frequent sleep/wake cycles can also cause wear, but modern SSDs and memory are designed to handle it. For most users, the default sleep settings are a good balance. Only disable sleep if you have a specific need, and remember to re-enable it when you’re done to save energy.

Frequently Asked Questions

Why does my Mac still sleep after I set “Never�?

Check the schedule in Energy Saver settings—if you have a “Sleep� schedule set, it will override your manual settings. Also, on laptops, make sure you’re changing the settings for both Battery and Power Adapter. If you’re using a third-party app, it might be conflicting with the system settings; try quitting it.

Does disabling sleep damage my Mac?

No, but it can increase heat and energy use. The Mac is designed to run continuously, but high temperatures over long periods can reduce component lifespan. If you’re leaving it on 24/7, ensure proper ventilation and keep it on a hard surface.

Can I set a custom sleep time like 30 minutes?

Yes, in Energy Saver settings you can drag the slider to any interval between 1 minute and 3 hours, or choose “Never.� The slider is not continuous—it jumps in increments—but you can also use the pmset command in Terminal for precise values (e.g., sudo pmset -a displaysleep 30).

What’s the difference between display sleep and system sleep?

Display sleep turns off the screen but keeps everything running. System sleep suspends the Mac, saving power and stopping most activity. You can set them independently. If you only want the screen to turn off but the Mac to stay awake, set display sleep to your desired time and disable system sleep.

Will disabling sleep affect my network connections or downloads?

If the system sleeps, network connections can drop and downloads may pause. If you disable sleep entirely, they continue uninterrupted. However, if you only disable display sleep, the system can still sleep, so to keep downloads active you need to prevent system sleep as well.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →