How To Schedule Your Mac To Shut Down Or Sleep

Your Mac is perfectly capable of going to bed without being reminded three times, offered a glass of water, or promised “five more minutes.” With the right settings, you can make it sleep after inactivity, shut down at a specific time, wake before your workday, or follow a repeating weekly power schedule.

The confusing part is that macOS handles two different ideas in two different places. System Settings controls what happens after your Mac sits unused for a while. Terminal handles clock-based schedules, such as sleeping every night at 11:00 p.m. or shutting down every weekday at midnight. Apple’s current guidance uses the built-in pmset command-line utility for scheduled startup, wake, sleep, restart, and shutdown events.

This guide explains both approaches, provides copy-ready commands, and covers the small but important limitations that can make a schedule appear broken.

Sleep, Display Sleep, and Shutdown Are Not the Same

Before changing anything, decide what you actually want your Mac to do.

Display sleep

Display sleep turns off the screen while the computer may continue running. Downloads, file transfers, exports, and background jobs can continue. This is useful when you want to reduce screen power without interrupting work.

System sleep

System sleep places the Mac in a low-power state. The machine remains turned on, but most activity pauses and waking is much faster than starting from a full shutdown. Apple notes that sleep consumes far less energy than normal operation while allowing a quick return to work.

Shutdown

A shutdown closes macOS and powers down the computer. The next session requires a full startup, and applications must reopen. Shutdown makes sense for a shared office Mac, a machine used only during business hours, or a desktop that should not remain active overnight.

For most MacBook owners, scheduled sleep is more convenient than a nightly shutdown. For fixed-location Macs that run on predictable hours, a combined wake-and-shutdown schedule can be excellent.

Method 1: Make Your Mac Sleep After Inactivity

If your goal is “sleep when I stop using it,” you do not need Terminal. Use System Settings instead.

Set inactivity timers on a MacBook

  1. Open the Apple menu and choose System Settings.
  2. Select Lock Screen in the sidebar.
  3. Find Turn display off on battery when inactive.
  4. Choose a time, such as 5, 10, or 15 minutes.
  5. Set a separate value for Turn display off on power adapter when inactive.
  6. Open Battery, click Options, and make sure Prevent automatic sleeping on power adapter when the display is off is disabled if you want the whole Mac to sleep.

Set inactivity timers on a desktop Mac

  1. Go to Apple menu > System Settings > Lock Screen.
  2. Choose when the display should turn off after inactivity.
  3. Open Energy in the sidebar.
  4. Turn off Prevent automatic sleeping when the display is off if you want the computer to enter system sleep.

Apple separates display timers from deeper sleep behavior, so a black screen does not always mean the Mac itself is asleep. Battery options appear on laptops, while desktop models use the Energy panel.

Method 2: Schedule Sleep or Shutdown at a Specific Time

For an exact clock-based schedule, use Terminal. Terminal is not inherently dangerous; it is merely extremely literal. Think of it as a talented assistant who will follow your instructions precisely, including the typo you confidently entered at 1:00 a.m.

Open Terminal

Press Command-Space, type Terminal, and press Return. You can also find it in Applications > Utilities.

Check the current power schedule

This command does not change anything. It displays repeating and one-time power events already stored on the Mac. Run it before and after making changes.

Schedule your Mac to sleep every night

The following example puts the Mac to sleep at 11:00 p.m. every day:

The day codes are:

  • M: Monday
  • T: Tuesday
  • W: Wednesday
  • R: Thursday
  • F: Friday
  • S: Saturday
  • U: Sunday

Time uses the 24-hour HH:MM:SS format. Therefore, 9:30 p.m. is 21:30:00, and midnight is 00:00:00.

Schedule a weekday shutdown

To shut down at 10:30 p.m. Monday through Friday, enter:

After pressing Return, Terminal requests an administrator password. The cursor will not move and no dots will appear while you type. That is normal, not evidence that your keyboard has developed trust issues.

Schedule a one-time shutdown

To schedule a shutdown for July 15, 2026, at 11:30 p.m., use:

One-time dates use MM/DD/YY, followed by 24-hour time. The date must be in the future.

Schedule wake and shutdown together

A practical office schedule might wake the Mac at 7:30 a.m. and shut it down at 11:00 p.m. on weekdays:

Enter both repeating events in one command. A later pmset repeat command can replace the existing repeating schedule, so adding wake first and shutdown later may leave you with only the second instruction.

How to Cancel a Mac Sleep or Shutdown Schedule

To clear the repeating schedule, run:

Then confirm the result:

To remove one-time scheduled events, you can use:

Always verify afterward. A five-second check is easier than wondering why your Mac enthusiastically powers down during a late-night presentation.

The Most Important Scheduled Shutdown Limitation

A scheduled shutdown is not a remote kill switch. According to Apple, the Mac must be awake and you must be logged in at the scheduled time. If the Mac is already sleeping or nobody is logged in, the scheduled shutdown will not occur.

That limitation creates a common trap: someone schedules sleep at 10:45 p.m. and shutdown at 11:00 p.m., then wonders why the shutdown never happens. The Mac went to sleep first, so it was not awake when the shutdown event arrived.

Choose either sleep or shutdown for the same nightly routine, or schedule a wake event shortly before shutdown if there is a genuine reason to use both. Keep in mind that unsaved documents, active dialogs, installations, backups, and applications requesting attention can also complicate a normal shutdown. Save important work and test the schedule before relying on it.

Useful Schedules for Different Mac Users

For a home MacBook

Use inactivity sleep rather than a fixed shutdown. Set the display to turn off after 5 to 10 minutes on battery and allow the Mac to sleep naturally. This gives you better battery behavior without forcing a full startup every morning.

For a Mac mini in an office

A weekday wake-and-shutdown schedule is a natural fit. Wake at 7:30 a.m., shut down after closing time, and leave weekends untouched. The computer is ready before staff arrive and is not running needlessly all night.

For a media or file server

Be careful with automatic sleep. Network access, shared files, media streaming, and backups may require the Mac to stay available. The Wake for network access option can allow brief wake-ups for shared services, but behavior depends on the hardware and network configuration.

For overnight backups or exports

Do not schedule sleep at the exact time a backup begins. Give the task a generous completion window. A safer plan is to wake before the backup, run the job, and schedule sleep later. Computers are excellent at automation but remain surprisingly poor at guessing whether your 400-gigabyte transfer is “basically done.”

How to Keep Scheduled Sleep Secure

Sleep saves energy, but it should also lock your session. Open System Settings > Lock Screen and set Require password after screen saver begins or display is turned off to the delay you prefer. Apple recommends requiring authentication after wake to protect information while the Mac is unattended.

Mac laptops also use safe sleep, which saves the current state of open apps and documents to internal storage. If battery power is lost during sleep, macOS can restore that saved state when the machine wakes.

Why Your Mac Does Not Sleep on Schedule

If the command appears correct but the Mac stays awake, work through these checks.

1. Verify the schedule

Confirm the event type, days, and time. Pay special attention to 24-hour formatting and the system time zone.

2. Check for processes keeping the Mac awake

Open Activity Monitor and inspect active processes. Backups, media playback, indexing, downloads, external disks, and poorly behaved utilities can interfere with sleep.

3. Review network and sharing settings

File Sharing, Printer Sharing, remote access, and network wake options may keep the computer available or wake it again. Disable services you do not need.

4. Disconnect accessories temporarily

A malfunctioning USB or Thunderbolt device can prevent sleep or immediately wake the machine. Disconnect accessories one at a time to identify the troublemaker.

5. Update and restart macOS

Apple recommends checking sleep settings, network access, sharing services, background activity, Spotlight indexing, and connected devices when sleep or wake behavior is unexpected. Updating macOS, using safe mode for diagnosis, and restarting can also resolve power-management problems.

Power Nap, Wake for Network Access, and Other Gotchas

Power-management features can make a sleeping Mac appear busier than expected. Power Nap allows certain background updates while the Mac sleeps, although Apple currently identifies the Power Nap option as an Intel-based Mac feature.

Wake for network access can wake a Mac when another device requests a shared resource. That is useful for a server and annoying for someone who expects absolute silence at night. Decide whether availability or uninterrupted sleep matters more for the machine’s role.

Also remember that closing a MacBook lid normally puts it to sleep, while choosing Apple menu > Sleep does the same manually. Keyboard shortcuts vary by keyboard type and whether the Mac has Touch ID.

Conclusion

To schedule your Mac to shut down or sleep, first match the tool to the goal. Use Lock Screen, Battery, and Energy settings for inactivity-based behavior. Use Terminal and pmset for exact daily, weekly, or one-time schedules.

The best routine is usually the simplest one. A MacBook benefits from sensible inactivity sleep. An office Mac mini may benefit from a weekday wake-and-shutdown pair. A server should prioritize network availability and carefully tested maintenance windows. Whatever you choose, verify it with pmset -g sched, save your work, and run a test before trusting the automation with anything important.

Practical Experience: Lessons From Real-World Mac Power Scheduling

The most useful lesson from practical Mac scheduling is that a command can be technically correct while the routine itself is poorly designed. Consider a freelance designer who wants a MacBook to shut down every night at 11:00 p.m. The command works, but the designer occasionally exports large video files after dinner. A rigid shutdown time becomes less of an energy-saving feature and more of a tiny digital landlord yelling, “Closing time!” In that situation, inactivity sleep is the better choice because it responds to actual use instead of the clock.

A desktop Mac in a reception area presents the opposite case. The machine is used from 8:00 a.m. to 6:00 p.m., nobody performs overnight work, and the schedule rarely changes. A weekday wake at 7:45 a.m. and shutdown at 6:30 p.m. can be remarkably convenient. Staff arrive to a ready computer, and the Mac does not spend the night illuminating an empty desk like a very expensive night-light. The key is leaving enough time after closing for cloud sync, updates, and end-of-day tasks.

Another common experience involves users who schedule both sleep and shutdown too close together. For example, sleep at 10:55 p.m. followed by shutdown at 11:00 p.m. sounds orderly, but it conflicts with Apple’s requirement that the computer be awake and logged in for the scheduled shutdown. The result is predictable once you know the rule: sleep succeeds, shutdown does not. Choosing one eventor designing a deliberate wake-before-shutdown sequenceproduces a cleaner routine.

Testing also reveals why pmset -g sched should become your favorite boring command. Repeating schedules can be replaced when a new repeating command is entered. A user may add a morning wake event on Monday, add a nightly shutdown event on Tuesday, and assume both now exist. Checking the schedule immediately exposes whether the pair was stored as intended. It is the command-line equivalent of checking that the front door actually locked instead of walking away while dramatically jingling the keys.

MacBooks introduce another practical consideration: mobility. A schedule created at home remains on the machine when it travels. A 10:30 p.m. shutdown that feels sensible at a desk may arrive halfway through a conference presentation in another time zone. Before traveling, changing work shifts, or beginning an overnight project, review or cancel the schedule. Also confirm the Mac’s date, time, and time-zone settings, because power events follow the system clock.

Finally, the best experience comes from treating automation as assistance rather than authority. Give backups time to finish. Keep important documents saved. Require a password after wake. Review network wake and sharing options. Test a new schedule during a low-risk evening, not five minutes before an important render, software deployment, or client call. Once those habits are in place, scheduled sleep and shutdown become pleasantly invisiblewhich is exactly what good automation should be.

Note: Terminal commands change system-wide power scheduling. Review every command before pressing Return, and confirm the result with pmset -g sched.

This site uses cookies to offer you a better browsing experience. By browsing this website, you agree to our use of cookies.