FIXONIC
SellSavedMy Fixonic
Official iFixit API visual reference

How to determine Mac shutdown causes

This guide will show you how to determine why...

iFixit Library Mac OS X Very easy 2 minutes Guide 119528
Open the authorised source
Licensed iFixit integration

This attributed iFixit guide is displayed through Fixonic's recorded commercial API permission. iFixit remains the independent source and author of the procedure.

Guide overview

Before you begin

This guide will show you how to determine why exactly your Mac shut down or restarted using macOS's built-in logging.

Step 1

Open Terminal.app

  • Open Terminal.app
Step 2

Listing previous shutdowns

  • Copy and paste the following command in your Terminal window:
  • log show --predicate 'eventMessage contains "Previous shutdown cause"' --last 24h
  • The "24h" portion of the command can be changed to any number of hours, depending on how far back you need to see.
Step 3

Determining Shutdown Causes

  • The previous shutdown causes in the timeframe you selected will appear as a list.
  • Common shutdown causes include 5 which indicates a normal shutdown, 3 which indicates a hard shutdown (i.e. holding the power button), and 0 which indicates the power was disconnected.
  • A list of shutdown causes can be found here: Shutdown causes (from George Garside blog)