How to Fix a Mac that Randomly Shuts Off

Authored by: Support.com Tech Pro Team

1. Introduction

Sometimes you may experience your Mac to abruptly shut off while performing your daily tasks. This can be frustrating especially if it's happening repeatedly.

This guide will take you through some troubleshooting steps that may help fix this issue. The steps are listed in order, so start with the first one, see if that helps, and then continue with the next one if it doesn't.

What You'll Need:

  • No extra tools or supplies are needed.

-->

Before You Begin:

Extra instructions.

  • hyperlink

-->

iMac

2. Check the Mac's Power Connection

Make sure the Mac is powered up properly by checking the electrical connections.

  1. Make sure you are using a working electrical outlet. You can test another electric device, such as a lamp, with the same outlet. Bypass any power strips for troubleshooting purposes.
Lamp outline.
  1. Make sure the power connections to and from the Mac are proper. Choose the type of Mac you have below.
  2. MacBook
  3. There are two ways to power up a MacBook:
  4. Using the power supply without the extension cord:
MacBook being connected to power with power supply without extension cord.
  1. Examine the cable and connectors for visible damage. If they are damaged, they may need to be replaced.
  2. Make sure the power supply is firmly plugged into the power socket and power connector into the computer.
  3. Using the power supply with the extension cord:
MacBook being connected to power with power supply with extension cord.
  1. Examine all cables and connectors for visible damage. If they are damaged, they may need to be replaced.
  2. Make sure the power supply is firmly plugged into the power socket, the extension cord into the power supply and power connector into the computer.
  3. The power adapter shapes and way of connecting them have stayed the same over the years, however the connector types that plug into the computer have changed somewhat and can be of the following types:
  4. Magnetic T style
  5. Magnetic L style
  6. USB-C style

Different types of MacBook power connectors.
  1. iMac
  2. An iMac is powered up by plugging it in directly into a power socket.
iMac being connected to power.
  1. Examine the cable and connectors for visible damage. If they are damaged, they may need to be replaced.
  2. Make sure one end is firmly plugged into the back panel of the iMac and the other end into a power socket.
  3. Mac Pro
  4. A Mac Pro has an internal power supply included in the case.
  5. The power cable looks like below. Examine the cable and connectors for visible damage. If you find any damage, the cable may need to be replaced.
Mac Pro power cable.
  1. Make sure one end of the cable is firmly plugged into a wall outlet.
  2. Make sure the other end is firmly plugged into the power socket on the rear side of the case.
Power socket highlighted on rear side of Mac Pro.
  1. Mac Mini
  2. Mac Mini with internal power supply
  3. Some Mac Mini computers have an internal power supply:
  4. One connector (1) plugs into the computer
  5. The other connector (2) plugs into a power socket
Mac Mini being plugged into power.
  1. Examine all cables and connectors for visible damage. If they are damaged, they may need to be replaced.
  2. Make sure all connectors are firmly plugged in.
  3. Mac Mini with external power supply
  4. Other Mac Mini computers have an external power supply and plugs in like below:
  5. One connector (1) plugs into the computer
  6. The other connector (2) plugs into a power socket
  7. A third (3) connector plugs into the supply itself
Mac Mini being connected to power.
  1. Examine all cables and connectors for visible damage. If they are damaged, they may need to be replaced.
  2. Make sure all connectors are firmly plugged in.

3. Check the Computer's Ventilation

Computers heat up while they're running and their internal parts need to be cooled down and kept at a certain temperature to perform optimally. If the computer overheats it may result in it shutting down to prevent damage to its components. In worst cases, the components may also melt or get fried if the computer is kept running at a high temperature. To check whether your computer still has working fans, try the following:

  1. Look for any vents your computer may have: in the back, on the side or bottom.
Vents pointed out on read of desktop PC.

Vents pointed out on side of laptop.
  1. With the computer turned on, place your hand in front of the vents and feel if there is any air blowing.The longer the computer is turned on and the more complex the tasks it needs to perform, the warmer and stronger the air flow should be.
  2. Depending on your results, you will have three options:
  3. There is no air blowing – This could mean the fans are not working and the computer has no cooling.



  4. The air flow feels weak – The computer's fans may have dirt built up on and inside them which is causing them to slow down and not blow enough air to properly cool down the internal components. This can be fixed by cleaning up the outside and inside of the computer, and oiling up the fans.
  5. The air flow feels normal – This could mean the issue the computer is having is software related. There are a few different software fixes that may be attempted to resolve the issue.

4. Clean the Computer's Vents

If you had a computer for more then a few months, it is likely to have accumulated some dirt inside and out. Dust, grime, hair and other debris can build up on fans, heatsinks and other parts. Components can also come loose or become unseated over time. All these can affect a computers performance in a negative way.

Dust buildup inside a computer.

This is a generic method on how to clean the vents for any type of computer. If your computer looks differently than the one represented in the picture below, the steps you need to follow are exactly the same.

Using a compressed air duster is the best and most recommended way of cleaning a computers vents.

When blowing compressed air, keep the can upright at all times and never shake it to prevent the liquid refrigerant from leaking onto your electronics. Use short bursts of two or three seconds. When the can gets too cold to hold, set it down for a few minutes until it warms up again.

  1. Turn the computer off and unplug its power cable.
  2. Locate the air vents or other openings.
  3. Blow compressed air to clean up the vents or other openings.
Using gas duster to clean laptop vents.
  1. Once done, reconnect the power cable and turn the computer on to test it out.

If the Computer Is Still Overheating

5. Check for Updates

  1. Click the Apple menu, then click onApp Store.
Apple menu with App Store highlighted.
  1. Select Updates on the bar at the top.
App store menu bar with Updates highlighted.
  1. Any pending updates for your Mac will be listed here. Select Update All to apply these updates.

MacBook, MacBook Pro, and MacBook Air must have the power adapter plugged in to automatically download updates.

6. Reinstall macOS

  1. From macOS Utilities, select Reinstall macOS, click Continue.
macOS Utilities with Reinstall OS X option and Continue button selected. Screenshot.
  1. After the computer reboots, Click on Continue.
macOS Sierra reinstall screen with Continue button selected. Screenshot.
  1. Click Continue to verify your computer's eligibility.
Verify eligibility propmt with Continue selected. Screenshot.
  1. Click Agree to accept the Terms of Service.
macOS Sierra Terms of Service with Agree selected. Screenshot.
  1. Click Agree to confirm you agree with Terms of Service
macOS Sierra Terms of Service with Agree button selected. Screenshot.
  1. Select a Drive to install macOS on and click Install.
macOS Sierra installation prompt for which drive to install on. A drive is highlighted and Install button is selected. Screenshot.
  1. Install will now start and this will take some time. The computer will reboot during this process.