Mac Randomly Shuts Down

You finally did it—you put your phone down, fired up your Mac to start working, only for your Mac to keep shutting down. And it’s not the first time. Your Mac randomly shuts down on a regular basis now, so you’ve finally had enough and Googled what to do—which is why you’re here. You’ve come to the right place.

 

You’re not alone, and it’s not just your Mac. Many users find that their iMac or MacBook keeps shutting down unexpectedly. The good news is that our team of macOS experts has been digging into this issue to find the most effective fixes for you. Here are 14 you should try.

 

Before we begin

 

When your Mac switches off randomly, it’s usually a sign that something isn’t quite right with your device. MacKeeper’s Antivirus is a smart cybersecurity solution that rids your Mac of malicious software to get it back to running at its best.

 

MacKeeper works in real-time, identifying viruses as soon as they appear, removing them before they cause any harm. This optimizes your Mac, reducing the likelihood of random shutting off.

 

Here’s how to use MacKeeper’s Antivirus:

  1. Download MacKeeper on your Mac
  2. When MacKeeper opens, click Antivirus in the sidebar
  3. Click Next, then follow the on-screen steps to enable real-time protection
  4. Select Start Scan to identify viruses on your Mac
  5. If any malware is found, click Quarantine to block and delete it.

Why does your Mac keep shutting down?

To identify why your Mac suddenly shuts down, let’s look at common causes for this error. It could because of one or a number of the problems below:

  • An older software version. Running an older version of macOS, which may have bugs or security flaws, can cause an array of performance issues on your Mac, including unexpected shutdowns
  • Viruses and malware. It’s common for computers, including iMac, MacBook, and Mac Mini, to get infected with malware, and you need to prevent it by keeping your Apple device clean and performing regular checkups
  • Problematic apps and software. This typically includes apps that are downloaded from outside the App Store, or older apps that haven’t been updated for a while
  • Peripheral device malfunction. Peripheral devices that aren’t compatible with your Mac can also lead to it turning off unexpectedly on a frequent basis.

14 ways to fix if your MacBook randomly shuts down

When your MacBook keeps shutting down, you shouldn’t assume that it’s a hardware issue that will result in an expensive repair bill. Before you take your machine into Apple to be fixed, here are 14 fixes to eliminate your problem:

  1. Check the power connection
  2. Complete a proper shut down
  3. Boot into safe mode
  4. Check your Mac for malware
  5. Reset your SMC settings
  6. Overheating
  7. Reset the PRAM
  8. Reset the NVRAM
  9. Uninstall apps
  10. Inspect Mac’s ventilation
  11. Customize Mac’s sleep settings
  12. Reconnect the battery
  13. Update or reinstall macOS
  14. Contact MacKeeper’s Premium Services.

1. Check the power connection

Although it may seem too obvious, you would be amazed how often a bad power connection is the cause of a Mac turning off by itself. That’s why checking your power cable is one of the first steps you should take.

 

Here’s what to do:

  1. Turn off the power to your Mac to prevent any injuries
  2. Ensure the power plug is properly connected to the wall
  3. Ensure the other end of the cable is properly plugged into your Mac
  4. Check the cable for any signs of damage or wear.

2. Complete a proper shutdown

Sometimes, properly shutting down fixes common glitches that can cause your MacBook to keep turning off. Follow the steps below to shut your Mac down correctly:

  1. Start by switching your Mac on again if it appears to be off
  2. Close any apps you’ve opened, ensuring you save your documents first
  3. Click on the Apple logo in the top-left corner of the screen and select Shut Down
  4. Ensure your machine has properly powered off by checking the display and fans are inactive.
Click on Apple menu and select Shut Down option from the drop-down menu

After a proper shut down has been completed, you can turn your Mac on again and continue using it as normal to see if your issue persists.

 

Is your Mac refusing to shut down? Learn how to force shut down a Mac that won’t turn off.

3. Boot into safe mode

When your MacBook goes off on its own halfway through working on it, it’s often bad third-party software that is the cause. Booting your Mac into safe mode, which prevents third-party software from running at startup, will help you establish if that’s the problem.

 

Booting into safe mode on an Apple Silicon (M1, M2, or M3) Mac:

  1. Shut down your Mac by clicking the Apple logo then selecting Shut Down
  2. With your Mac off, press and hold the power button until “Loading startup options” appears
  3. Select your startup disk
  4. Press and hold the Shift key, then click on Continue in Safe Mode.
Click on Apple menu and select Restart option from the drop-down menu

Booting into safe mode on an Intel Mac:

  1. Restart your Mac via the Apple menu
  2. Press and hold the Shift key until the Apple logo appears on the screen
  3. Log in to your Mac.

If you’re unsure about what type of Mac you have, check out Apple’s guide to find out.

4. Check your Mac for malware

If your Mac stopped working suddenly, it could be hidden and potentially dangerous malware that is making it unstable. You can scan for malware and remove it by using the antivirus utility built into MacKeeper:

  1. Download MacKeeper on your Mac
  2. Click on Antivirus in the sidebar
  3. Select Next then follow the instructions onscreen to enable real-time protection
  4. Click Start Scan to identify any viruses on your Mac
  5. If any infections are found, click Quarantine to block and remove them.
MacKeeper on Mac shows the built-in antivirus utility. Click the Next button to start enabling real-time protection, then follow the steps onscreen.
Step 1. Select Antivirus > Next, then follow the steps onscreen
MacKeeper on Mac shows the antivirus utility. Click the Start Scan button to identify and then remove any malware on your machine.
Step 2. Click Start Scan to find any viruses on your Mac

There are more ways to remove malware from your iMac, Mac mini, or MacBook. Follow our guide to removing malware from your Mac to learn more.

5. Reset your SMC settings

Your Mac’s System Management Controller (SMC) is a chip that manages the key functions of your computer, including power. When your MacBook turns off randomly, resetting the SMC can fix power problems.

 

 

Here’s how to reset your SMC settings on an Intel MacBook:

  1. Shut down your device via the Apple menu
  2. Press and hold the Shift + Control + Option/Alt keys on the left side of your keyboard
  3. While holding all three keys, press and hold your Mac’s power button for 10 seconds
  4. Release all keys, then press the power button to turn on your Mac.
Mac keyboard shows the keys to reset the SMC on your Intel Mac. Hold down Shift + Control + Option/Alt on the left side of your keyboard for 10 seconds to begin with.
Step 1. Hold down Shift + Control + Option/Alt for 10 seconds
Mac keyboard shows the keys to reset the SMC on your Intel Mac. After holding down Shift + Control + Option/Alt for 10 seconds, release the keys then press the power button on your Mac.
Step 2. After 10 seconds, release the keys then press power

In contrast, here’s how to reset your SMC settings on an Intel MacBook with Apple T2 chip:

  1. Shut down your Mac via the Apple menu
  2. Press and hold the Control + Option keys on the left side of your keyboard
  3. Press and hold the Shift key on the right side of your keyboard
  4. Keep holding all keys for 7 seconds, then press and hold the power button as well for another 7 seconds
  5. Release all keys, then press the power button to turn on your Mac.
Mac keyboard shows the keys to press to reset SMC on an Intel MacBook with T2 chip. Hold down the Control + Option keys on the left side of the keyboard to begin with.
Step 1. Hold Control + Option on the left side of your keyboard
Mac keyboard shows the keys to press to reset SMC on an Intel MacBook with T2 chip. Hold down the Control + Option keys on the left side to begin with, then press the Shift key on the right side of the keyboard.
Step 2. Hold Shift on the right side of your keyboard
Mac keyboard shows the keys to press to reset SMC on an Intel MacBook with T2 chip. After holding the keys for 7 seconds, press and hold your Mac's power button for 7 seconds, then release it.
Step 3. After 7 seconds, hold power for another 7 seconds

If you have a desktop Mac, you can reset its SMC like this:

  1. Shut down your Mac via the Apple menu, then unplug the power cord
  2. Wait 15 seconds, then plug the power cord back in
  3. Wait 5 seconds, then turn on your Mac.

Resetting your SMC settings fixes a host of issues. For instance, it’s one of the ways to fix your Mac not turning on. However, it’s important to note that Apple silicon machines with an M1, M2, or M3 series chip don’t have a traditional SMC chip, so this step isn’t necessary.

6. Overheating

If your desktop Mac or MacBook randomly shuts off or shows a black screen when performing intensive tasks, it could be overheating. To prevent this, reduce strain on your Mac’s CPU by quitting processes that use too much power like this:

  1. Go to Finder > Applications > Utilities > Activity Monitor
  2. Click the CPU tab
  3. Quit the most CPU-intensive apps and processes (at the top) by clicking on each one, and clicking on the X at the top of the window. Click on Quit to confirm.
To free up RAM, open Activity Monitor, look for the apps that take most of the memory and close them

7. Reset the PRAM

Your Mac’s PRAM is a small amount of memory that stores key system settings, such as display resolution, startup disk selection, and time zone. Resetting it can fix certain glitches, and it’s easy to do.

 

Follow these steps if you have an Intel Mac:

  1. Shut down your Mac
  2. Turn on your Mac, then immediately press and hold the Option + Command + P + R keys
  3. Release the keys after 20 seconds and wait for your Mac to restart.
Mac keyboard shows the keys to press to reset PRAM on an Intel MacBook. Hold down Option + Command + P + R immediately after turning on your Mac.
Hold down Option + Command + P + R after turning on your Mac

If you have a Mac with Apple Silicon, it’s not necessary to reset the PRAM.

8. Reset the NVRAM

NVRAM is essentially the same thing as PRAM but in older Mac models with an Intel chip. To reset it, follow the same process outlined above for resetting PRAM.

9. Uninstall apps

Holding onto too many apps eats up your Mac’s storage space, which can cause your machine to become unstable and display a low storage warning. Fortunately, it’s easy to remove unwanted software using MacKeeper’s Smart Uninstaller:

  1. Download MacKeeper on your Mac
  2. Click on Smart Uninstaller on the left pane
  3. Select the Start Scan button
  4. After it’s done scanning your computer, select Applications
  5. Select all the apps you want to uninstall, then click Remove Selected.
MacKeeper on Mac shows the Smart Uninstaller tool for removing unwanted software. Click Start Scan to identify all applications installed on your machine.
Step 1. Select Smart Uninstaller, then click Start Scan
MacKeeper on Mac shows the Smart Uninstaller tool. To uninstall apps, select the ones you want to remove, then click Remove Selected.
Step 2. Choose apps to uninstall, then click Remove Selected

You can also use MacKeeper’s Safe Cleanup tool to remove other junk from your system: unused language packs, temporary log and cache files, and more. The more clutter you can clear from your machine, the smoother and more reliable it will be.

10. Inspect Mac's ventilation

If reducing CPU usage doesn’t prevent your Mac from overheating and repeatedly powering down, it’s probably not getting enough airflow, which means it’s time to check its ventilation. Here’s how to fix it:

  1. Ensure your Mac is upright and that it has space around it so that nothing can block its air vents
  2. With your Mac turned off and disconnected from the charger or power cord, use a soft brush to remove dust from its vents
  3. If you have a MacBook, avoid using it on a bed or soft surface where fabrics can restrict its airflow
  4. Don’t allow your Mac to sit in direct sunlight.

Note from our experts: If your Mac still overheats and switches itself off after performing these steps, it may be that the inside of your machine is clogged with dust, that your CPU needs fresh thermal paste, or that there’s an issue with your cooling system. We recommend taking your machine to Apple or an authorized service technician if you don’t have experience with repairing computers yourself.

11. Customize Mac’s sleep settings

If your MacBook randomly shuts off because of a battery issue, you might want to consider changing its sleep settings to conserve battery life. This can be particularly useful on older machines with degrading battery cells that don’t last very long in between charges.

 

Here’s how to customize sleep settings:

  1. Open the Settings app on your Mac
  2. Select Battery
  3. Set your sleep options how you would like them and avoid using settings that cause battery drain, like allowing Power Nap (on Intel machines) to run when not connected to a charger.
Finder menu on Mac shows the System Settings option. Open System Settings to access your Mac's Battery options and customize sleep settings.
Step 1. Open the Settings app on your Mac
Settings app on Mac shows the Battery menu. Use the options here to customize sleep settings on your Mac.
Step 2. Select Battery to customize sleep settings

12. Reconnect the battery

If you’ve ever disconnected your MacBook’s battery, this will prevent it from running when it’s not connected to power, which means your MacBook just shuts off when the charger is disconnected. Follow the necessary steps to reinstall your battery inside your machine, depending on which model you have, ensuring that it’s properly secured in place.

 

Batteries are only user-removable on older MacBook models, so if you have a machine released in 2009 or later, you don’t have to worry about this. If your MacBook’s battery has degraded and needs to be replaced, this is a job that’s best carried out by Apple or another  authorized repairer.

13. Update or reinstall macOS

In many cases when your MacBook just turned off unexpectedly, the solution is as simple as installing the latest macOS update, which you can do like this:

  1. Open the Settings app on your Mac, then select General
  2. Click Software Update
  3. Wait for your system to find the latest update, then click Update Now. If your Mac has already downloaded and prepared the update in the background, the button will say Restart Now.
The Settings app on Mac shows the General section. Click Software Update to find out if there is an update available for your Mac.
Step 1. In Settings, select General > Software update
The Settings app on Mac shows the Software Update screen. If an update is available, click the Update Now or Restart Now buttons to install it.
Step 2. Click Update Now or Restart Now to install updates

14. Contact MacKeeper’s Premium Services

If you’ve tried all the fixes in this guide, and your Mac is still shutting down repeatedly, it may be time to seek help. You can contact Apple Support and then take your machine to your local Apple Store, or you can get immediate support at any time of the day from a MacKeeper tech expert.

 

Here’s how to use MacKeeper’s Premium Services:

  1. Open MacKeeper
  2. Select Premium Services in the sidebar
  3. Click the Chat Now button to get connected with an expert instantly
  4. Explain your issue in detail to get professional help quickly.
MacKeeper on Mac shows the Premium Services screen. Click Chat Now to get support from MacKeeper experts.
Step 1. Select Premium Services then click Chat Now
MacKeeper on Mac shows the Premium Services screen. Describe your issue in detail to get professional support.
Step 2. Explain your issue to get professional help

MacKeeper’s tech experts have tackled more than 1 million support cases and have an incredibly high satisfaction rating. To get the best support for your problem, try to be as detailed as possible when describing your issue. If you can, take note of what you’re doing on your Mac when it dies, which may help diagnose the problem.

How to prevent your Mac from suddenly shutting down  

Now that we’ve covered what causes a Mac to unexpectedly shut down, let’s put some measures in place to prevent it from happening again in the future.

1. Check your Mac’s battery

Our professional advice is to monitor your MacBook Pro’s battery regularly to ensure that it's still healthy. If your battery needs to be replaced, your Mac will tell you when you check its battery health in System Report.

 

Here’s how to check your MacBook’s battery health:

  1. Open the Settings app on your Mac, then select General
  2. Click System Report
  3. Click Power then check the condition of your battery under Health Information.
The Finder menu on Mac shows the System Settings option. Open System Settings to check your MacBook battery health.
Step 1. Open Settings on your Mac
Settings on Mac shows the General menu. Click About to access more information about your Mac.
Step 2. Click General > About
The Settings app on Mac shows the About menu in the General section. Click System Report to find out more about your Mac.
Step 3. Click System Report
System Report on Mac shows Power information for a MacBook. Check under Health Information to see battery health.
Step 4. Select Power, then look for Health Information

2. Review your Mac’s logs reports

Your Mac’s logs give you a detailed report about your Mac’s issues. Reading them can help you identify and act on those issues.

 

Here’s how to access logs reports on Mac:

  1. Open Finder on your Mac, then select Applications
  2. Open the Utilities folder, then double-click Console to run it
  3. Click Log Reports, then check the list for system errors.
Finder on Mac shows the Utilities folder. Open Console to access Log Reports, where you can see system errors.
Step 1. Open Console from Applications > Utilities
The Console app on Mac shows the Log Reports section. Check the list for system errors that can help diagnose common problems.
Step 2. Under Log Reports, check the list for errors

3. Minimize your Mac’s energy use

Saving energy is one of the most effective ways to get your Mac working optimally. To do this, follow the steps below:

  1. Put your Mac to sleep. Click on the Apple menu, and click on Sleep when you’re going to be away from your machine for a while
  2. Turn your display off. If you have a MacBook, close the lid when you’re not using it; if you have a Mac with an external display, press the power button on the display to turn it off
  3. Dim the display. Dim the brightness of your screen in darker environments by using the screen brightness keys on your keyboard
  4. Turn off Bluetooth and Wi-Fi. To turn off Bluetooth, click on the Bluetooth icon at the top of the screen, then toggle Bluetooth off; click the Wi-Fi icon, then toggle Wi-Fi off to disable it
  5. Disconnect unused devices and close unused apps. These are major energy consumers, so be sure to disconnect any accessories, like USB, that you don’t need. Quit every app that you aren’t using
  6. Customize your energy-saver settings. Go to Settings > Battery. Click on Battery in the left pane. Move the slider to one minute and check the boxes for dimming your display and Mac’s Power Nap feature
  7. Now click on Power Adapter and follow the same steps as above (select one minute on the slider and check all the boxes below it).
Click on Apple menu and select Sleep option from the drop-down menu
Step 1. Apple icon > Sleep
Click on Apple menu and select Lock Screen option from the drop-down menu
Step 2. Apple icon > Lock Screen
Turn off the Bluetooth option from the menu bar to save Mac's energy.
Step 3. Menu Bar > Bluetooth settings
Turn off the Wi-Fi option from the menu bar to save Mac's energy.
Step 4. Menu Bar > Wi-Fi settings
Battery settings opened from the System Preferences to minimize Mac's energy usage
Step 5. Battery Settings
Power Adapter opened from the System Preferences to minimize Mac's energy usage
Step 6. Battery Settings > Power Adapter

4. Calibrating your MacBook battery

Calibrating resets your battery so it can reach its full potential, which can help prevent your Mac from dying without warning. It’s more beneficial to older MacBook models, which don’t do it automatically. However, we’ll guide you through the process for both.

  • On newer MacBook models (post 2012):

Drain your battery to 0%, then charge it back up to 100%. This will successfully calibrate your battery.  

  • On older MacBook models (2006-2012):
  1. Charge your battery to 100%
  2. Continue charging it for two more hours
  3. Disconnect your MacBook Pro from the adapter and use it until the battery reaches 5%
  4. Wait for the battery to drain and for your device to shut down
  5. Leave it alone for five hours or overnight to completely drain the battery, and charge it to 100% again.

Random shutdowns can be easily fixed on Mac

At any given moment, your MacBook Pro (or any other Apple computer) might randomly shut down without notice. Fortunately, there are many fixes to the issue.

 

Hopefully, you won’t have to try all 14 fixes to diagnose and fix your issue, but there are three you should always carry out whenever your Mac unexpectedly dies: check the power connection, shut down your Mac properly, and update macOS.

 

More importantly, check your Mac for malware and other malicious viruses with MacKeeper Antivirus. In just a few clicks, it can find and quarantine any hidden dangers and get your Mac back to its best.

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

Mac shutting down randomly? Fix performance issues with MacKeeper.

Get it now
PC

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

Try Now

Read more

You Don’t Have Permission to Open the Application on Mac
You Don’t Have Permission to Open the Application on Mac
Mac Won't Wake Up
Mac Won't Wake Up
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.