Mac Shutdown Timer

Ever fallen asleep while your Mac kept running all night? A Mac shutdown timer turns off your MacBook automatically, so you don’t have to. And while you’re tidying up, MacKeeper’s Safe Cleanup clears junk files in one click—select the button below to keep your Mac fast and clean.

System Requirements: macOS 10.11 or later

More than 60 Million Downloads

i

AV-TEST certified

i

Notarized by Apple

i

AV-TEST is an independent lab that checks the effectiveness of antivirus apps against real malware samples.

The notarization by Apple is a security measure to check if software is free from malicious components.

Trustpilot is an independent digital platform that hosts insightful and honest consumer reviews.

Mac Shutdown Timer
Written By   Yana Khodun
Published: October 12, 2026

Can you set a shutdown timer on Mac?

Yes, you can set a shutdown timer on Mac, and you’ve got a few ways to do it. Which one fits depends on your macOS version, since every Macintosh handles power management a little differently over the years.

 

Here are your main options:

  • Terminal — a built-in app that runs the shutdown command
  • Shortcuts or Script Editor — turn a timer into a one-click button
  • Third-party apps — a simple choice if you’d rather skip commands
  • Graphical scheduling — older macOS versions tuck it into the Mac power settings

On newer releases, Apple moved these Mac power settings around, so Terminal or an app is usually the way to go. There’s more than one route to shutdown Mac with timer settings, and we’ll walk through each below.

Shutdown timer, scheduled shutdown, and sleep timer—what’s the difference?

These names get mixed up a lot, so let’s clear them up. A countdown timer turns off your Mac after a set number of minutes, which is handy for a one-time shutdown like bedtime. A scheduled shutdown fires at an exact clock time instead, so it’s the pick for a single planned shutdown.

 

A recurring schedule goes a step further and powers your Mac down on the days and times you choose, ideal for a regular routine. A sleep timer is the odd one out—it pauses your Mac in low-power sleep mode rather than turning off the screen and display, so it suits short breaks.

 

It also helps to know your hibernate vs sleep on Mac options, since each low-power state treats your battery and open work differently.

How to prepare your Mac for an automatic shutdown?

Save your work first—an automatic shutdown can quit apps with unsaved changes. A little prep keeps a scheduled shutdown from catching you off guard, and clearing clutter on a slow Mac beforehand frees up space so everything runs cleanly.

 

Run through this quick checklist first:

  • Save open files and documents.
  • Quit apps you don’t need running.
  • Check that any downloads or updates have finished.
  • Plug in the power adapter for a long countdown timer.
  • Double-check the specific time you set.

A note from our experts: 

 

To minimize the risk of an automatic shutdown, we recommend keeping your Mac clean by keeping only the files you really need and regularly deleting clutter. This goal is easier to achieve with the cleaning solution on your side, and MacKeeper’s Safe Cleanup is exactly what you need to quickly and safely remove cache, logs, and other junk files.

 

To try using MacKeeper’s Safe Cleanup, do the following:

  1. Download MacKeeper.  
  2. Install and open the app.  
  3. Choose Safe Cleanup and click Start Scan.
  4. Wait until the app finishes its scan, then pick the files you want to delete.
  5. Select the Clean Junk Files option to remove clutter from your Mac.

 

MacKeeper's Safe Cleanup window on a MacBook, with Safe Cleanup picked in the sidebar and the Start Scan button ready to clear junk files.
Step 1. Go to MacKeeper > Safe Cleanup and Start Scan
MacKeeper's Safe Cleanup scanning a macOS system, showing 1.22 GB of junk found across logs and caches while the Stop Scan button stays active.
Step 2. Wait until the scan is finished
MacKeeper's Safe Cleanup results on an iMac, listing logs, caches, and trash with every box checked and the Clean Junk Files button highlighted.
Step 3. Check all setup and proceed with Clean Junk Files

How to set Mac shutdown timer with Terminal?

Terminal is your Mac’s built-in command line, and it’s the reliable way to put shutdown timer on Mac. If you’ve never run something in Terminal on Mac before, don’t worry—you’ll paste one line and press Return. Looking for a Mac set timer to shut down option? Terminal is the closest built-in tool—just do this:

Open it from Applications > Utilities, or press Command + Space and type Terminal.  

Finder Applications window on a MacBook, Utilities folder open and Terminal selected to launch the shutdown timer command-line tool on macOS.
Method 1. Open Terminal from Finder > Applications > Utilities
Close-up of an Apple keyboard with the Command and Space keys pressed together to open Spotlight and find Terminal for a Mac shutdown timer.
Method 2. Press Command+Space
Spotlight search bar on macOS showing the Terminal app result highlighted, ready to open and set a Mac shutdown timer with a typed command.
Then type “Terminal” and hit Enter

Below, I’ll walk you through three approaches—a countdown, a one-time timer, and a recurring schedule—so you can pick the one that suits you.

Set countdown before your Mac shuts down

A countdown lets you set timer on Mac to turn off after a chosen number of minutes.

 

Here’s the quickest way to set one:

  1. Open Terminal.
  2. The command sudo shutdown -h +60 tells your Mac to power off in 60 minutes, so type it and swap 60 for the minutes you want.
  3. Press Return, enter your admin password, and press Return again (the password stays hidden as you type).

 

Terminal window on a MacBook with the countdown command sudo shutdown -h +60 typed to turn off the Mac automatically after 60 minutes.
Step 1. Type in Terminal sudo shutdown -h +60 and press Return
Terminal on an Apple computer prompting for the admin password after the sudo shutdown countdown command, with the hidden entry field waiting.
Step 2. Input your admin password and press Return
Terminal on macOS confirming the shutdown countdown, with the System going down at 15:38 message highlighted after the sudo shutdown command.
Step 3. Check the result

Shut down your Mac at specific time

Prefer a one-time shutdown at an exact clock time instead of a countdown? We’ve got you covered.

 

Set it in three quick steps:

  1. Open Terminal.
  2. The command sudo shutdown -h 2330 sets a shutdown for 11:30 PM, so type it using the 24-hour hhmm format.
  3. Press Return and enter your password to confirm.

 

Terminal window on a MacBook with sudo shutdown -h 2330 typed to schedule a one-time shutdown at the exact clock time of 11:30 PM on macOS.
Step 1. Type in Terminal sudo shutdown -h 2330 sets a shutdown for 11:30 PM
Terminal on an Apple laptop asking for the admin password after the sudo shutdown -h 2330 scheduled shutdown command, with a hidden entry field.
Step 2. Input your admin password and press Return
Terminal on macOS showing the scheduled shutdown confirmation, with System going down at 23:30 highlighted after the sudo shutdown command runs.
Step 3. Check the result

Schedule automatic shutdown on selected days

The pmset power-management command lets you Mac schedule a shutdown on a recurring schedule.

 

Set up your weekday routine like this:

  1. Open Terminal.
  2. The command sudo pmset repeat shutdown MTWRF 23:00:00 powers off at 11 PM on weekdays, where M, T, W, R, and F stand for Monday through Friday (R is Thursday, U is Sunday).
  3. Press Return and enter your password.

 

Terminal window on a MacBook with sudo pmset repeat shutdown MTWRF 23:00:00 typed to schedule an automatic weekday Mac shutdown at 11 PM.
Type in Terminal sudo pmset repeat shutdown MTWRF 23:00:00 and hit Return

An extra hint from our team: Recurring shutdowns can behave differently across recent Macs, so I’d test yours once before you rely on it.

How to check or cancel Mac shutdown timer?

Changed your mind? You can confirm a pending power event and cancel shutdown in a few seconds.

 

Take back control like so:

  1. Open Terminal.
  2. pmset -g sched lists any scheduled power event, so type it and press Return to see what’s coming up.
  3. sudo pmset repeat cancel removes a recurring schedule.
  4. sudo killall shutdown stops a countdown you started, since that command runs as a background process until it fires.

 

Terminal on an Apple computer with the pmset -g sched command typed to check any active scheduled shutdown timer currently set on the Mac.
Step 1. To check if the schedule is active type in Terminal pmset -g sched
Terminal on macOS listing repeating power events, with shutdown at 11:00PM weekdays only highlighted to confirm the scheduled shutdown timer.
Step 2. Check the result
Terminal window on a MacBook with sudo pmset repeat cancel typed to remove the recurring scheduled shutdown timer set earlier on the Mac.
Step 3. sudo pmset repeat cancel removes a recurring schedule
Terminal on an Apple laptop with sudo killall shutdown typed to stop and cancel a running shutdown countdown timer before it fires on macOS.
Step 4. sudo killall shutdown stops a countdown you started

How to create shutdown timer shortcut on Mac?

If you use the same timer often, a saved app turns it into a double-click.

 

We’ll build one with Script Editor:

  1. Open Script Editor from Applications > Utilities.  
  2. Choose New Document.  
  3. Type delay 1800 on the first line to tell the application System Events to shut down on the next 1800 seconds is 30 minutes.
  4. Choose File > Export, set the format to Application, and save it to your Desktop.
  5. Double-click the app whenever you want that timer. It may ask you to confirm the shutdown).

 

Step 1. Go to Finder > Applications
Finder Applications folder on an Apple computer with Script Editor highlighted in Utilities, ready to open and create a shutdown timer app.
Step 2. Open Script Editor from Utilities
Script Editor open dialog on a MacBook showing the New Document button, the starting point for writing a shutdown timer script on macOS.
Step 3. Select New Document
Script Editor on macOS with the AppleScript delay 1800 and tell application System Events to shut down code typed for a Mac shutdown timer.
Step 4. Input your code (delay may be a custom time)
Script Editor File menu open on a MacBook with Export highlighted to save the shutdown timer AppleScript as a double-click application.
Step 5. Go to File > Export
Script Editor export dialog on macOS with File Format set to Application and Desktop chosen to save the shutdown timer app on the Mac.
Step 6. Set the format to Application, and save it to your Desktop
The saved shutdown timer app icon on a MacBook Desktop, built in Script Editor and ready to double-click to start the automatic shutdown.
Step 7. Double-click the app whenever you want that timer
macOS shutdown confirmation dialog warning that unsaved changes may be lost, with the Shut Down button to run the shutdown timer app.
Step 8. Confirm the shutdown

Another recommendation from us: The Shortcuts app also works to create a shutdown timer shortcut on Mac. In this case, add a Wait action followed by a shutdown step for a menu bar button.

How to schedule shutdown through macOS settings?

Older macOS versions include a graphical power schedule, no commands needed. At the same time, we should remind that Apple removed this panel from most Macs in later versions, so it may not appear on yours. If you’re comparing Sonoma vs Tahoe, you’ll notice neither brings the old Schedule controls back—Terminal fills the gap.

 

On macOS Monterey and earlier, find it here:

  1. Open System Settings (or System Preferences on older releases).
  2. Select Battery, then Schedule.
  3. Turn on Sleep, Restart, or Shut Down, pick the days and specific time, and select Apply.

 

Apple menu open on a macOS Monterey MacBook with System Preferences highlighted to reach the Battery schedule and set an automatic shutdown.
Step 1. Go to Apple Logo > System Preferences
System Preferences window on macOS Monterey with the Battery icon highlighted to open the Schedule pane for an automatic Mac shutdown.
Step 2. Select Battery
Battery Schedule pane in macOS Monterey System Preferences with the start-up checkbox on and days and time set for a scheduled shutdown.
Step 3. Turn on Sleep, Restart, or Shut Down

How to use shutdown timer app on Mac?

A third-party shutdown timer app is a friendly alternative if you’d rather not touch Terminal. Most give you a slider or a clock and handle the rest.

 

Getting started takes three steps:

  1. Download the app from the developer’s site or the App Store.
  2. Open it and grant any permission it asks for.
  3. Set your minutes or specific time, then start the countdown timer.

 

Mac App Store page for the ShutdownBar shutdown timer app on a MacBook, showing its Utilities listing and screenshots before downloading.
Step 1. Download the app from the developer’s site or the App Store
ShutdownBar menu-bar timer on macOS with Now, 15 min, 30 min, and 1 h options to set a countdown before the Mac shuts down automatically.
Step 2. Set your minutes or a specific time

Before you install one, we suggest keeping a few things in mind:

  • Check that the app supports your macOS version.
  • Download only from a trusted source.
  • Read recent reviews first.
  • Prefer apps that ask for the fewest permissions.

Should you shut down your Mac or put it to sleep?

Both are fine—it mostly comes down to how soon you’ll be back. A shutdown gives your Mac a full reset, while sleep mode picks up right where you left off:

  • Bedtime or a full night away — a shutdown saves the most power
  • Short breaks or lunch — sleep gets you back in seconds
  • A long trip — shutting down is the tidy, low-drain choice
  • Finishing a long task — keep your Mac awake so a backup or download can complete

Still unsure whether to shut down or sleep MacBook each night? Either way, a restart now and then keeps things running smoothly.

Conclusion

You’ve now got several ways to set a Mac shutdown timer, so your MacBook can power off on its own instead of running through the night. On newer macOS versions, Terminal is the main built-in method, while a shortcut or a third-party app gives you a more visual, one-click approach.

 

And once your Mac is powering down on schedule, keep it running smoothly with MacKeeper’s Safe Cleanup. It clears caches, logs, and other junk in one click, freeing up storage without touching your personal files. Select the button to give your Mac a fast, clean start.

Use your Mac to the fullest! Sign up and get:
Effective tips on how to fix Mac issues
Reliable advice on how to stay safe online
Mac-world news and updates

Thank you!

You’ll love exploring your Mac with us.

Oops, something went wrong.

Try again or reload a page.

Here’s another sign you need to upgrade your macOS ASAP:

30% off your MacKeeper subscription

Сopy the code now and use it in the MacKeeper checkout after the upgrade.

Copy Code

Please be aware that this code cannot be combined with any other discounts, offers, or promotions.

Contents

Unlocked
PC

MacKeeper - your all-in-one solution for more space and maximum security.

Try Now

Read more

How to Share Audio on MacBook
How to Share Audio on MacBook
How to Add OneDrive to Mac Finder
How to Add OneDrive to Mac Finder
arrow

Run Application

step_1

Click Continue

step_2

Click Install

step_1

Your macOS version is lower than OS 10.11. We’d like to offer you MacKeeper 4 to solve the cleaning, privacy, and security issues of your macOS.