Schedule your Mac desktop computer to turn on or off
Schedule specific times for your Mac desktop computer to start up, shut down, go to sleep, or wake from sleep. You can do this if you want to be sure your Mac turns off when you aren’t working and turns on before you come to work.
On your Mac, choose Apple menu > System Preferences, click Energy Saver , then click Schedule.
Select the options you want to use.
Schedule a startup or wake time for your Mac: Select the “Start up or wake” checkbox. Choose a day or group of days from the pop-up menu, enter a time, then click Apply.
Schedule a sleep, restart, or shutdown time for your Mac: Select the “Sleep, restart, or shut down” checkbox and choose the appropriate option from the pop-up menu on the left. Choose a day or group of days, enter a time, then click Apply.
Click Restore Previous Settings to revert your changes and go back to the last schedule.
Your Mac must be awake and you must be logged in for it to shut down at the scheduled time. If you are not logged in or your Mac is in sleep, it won’t shut down.
Note: If you have any documents open with unsaved changes, your Mac might not go to sleep or shut down when scheduled.