Your Mac goes black while you’re working, and you don’t know whether it will start again. When your Mac shuts down randomly, the next useful clue is what happens afterward.
A restart with an error message, a loss of power, and a sleeping display need different checks. Start by protecting your files, then follow the steps that match what you’re seeing.
TL;DR
For repeated shutdowns, back up if safe, check power and accessories, then follow the steps for the observed symptom.
- Update compatible software, then use the Safe Mode and Diagnostics instructions for your chip.
- A black screen alone does not show whether the Mac shut down, restarted, or slept.
- Stop using a physically damaged Mac or charger and arrange service; skip reset shortcuts that do not apply to your model.
Is Your Mac Restarting, Losing Power, or Sleeping?
A black screen alone doesn’t tell you that the Mac shut down. Note whether it starts again by itself, shows an error, or wakes when you press a key.
| What you notice | What it suggests | Where to start |
|---|---|---|
| It restarts and says it restarted because of a problem. | This points to a kernel panic, an error that forces macOS to restart. Software or connected hardware can cause it. | Start with updates, accessories, and Safe Mode. |
| It goes off and stays off until you press the power button. | Check the power supply and battery first. This symptom alone doesn’t identify a failed component. | Use the power checks below, then Diagnostics or service if it repeats. |
| The screen turns off during inactivity and wakes without starting up again. | This is more consistent with display sleep or system sleep. | Review sleep settings before treating it as a shutdown. |
| The screen stays black, but the Mac seems to be running. | A display or startup problem may need separate troubleshooting. | Follow Apple’s no-power guidance to distinguish a blank display from a Mac that won’t turn on. |
The restart message is the important clue for a kernel panic. If the display only sleeps, review sleep and wake settings. A Mac that remains unresponsive needs power and startup checks.
If the picture is frozen and the Mac is still on, use the frozen Mac guide. A freeze can require different steps from a sudden loss of power.
Before using startup shortcuts, choose Apple menu > About This Mac. A Chip or Processor label tells you whether you have Apple silicon or Intel. Note the macOS version too.
The MacBook model reference can help you identify an older laptop.
How to Troubleshoot a Mac That Shuts Down Randomly
1. Protect Your Files Before Making Changes
If there’s no physical damage and your Mac stays on reliably enough, save your work and make a Time Machine backup. Check that the backup has finished before moving to updates or recovery.
Our Mac backup guide covers the available options.
Time Machine setup can ask to erase the external drive. Don’t agree if it contains files you still need. Use another disk or preserve those files first.
Eject the backup drive before disconnecting it for the accessory check.
If the Mac repeatedly cuts out before a backup finishes, stop experimenting and tell the service provider that your files aren’t backed up.
Liquid exposure or physical damage takes priority over trying to recover a backup yourself.
- Record when it happened and whether you were on battery or connected to power.
- Note the app in use, connected accessories, and any restart message.
- Keep a note of changes made just before the problem began, such as an app update or a new dock.
2. Check the Power Source and Battery
Start here if the Mac turns off and stays off. Check that the power cable is secure, undamaged, and connected to a working outlet. Try another compatible adapter or cable if you have one.
These are Apple’s first power connection checks.
For a MacBook, note whether the shutdown happens only on battery, only while charging, or with both. That pattern is useful for service, but it doesn’t prove which part has failed.
If a dock supplies power, try the Mac’s compatible charger directly to remove the dock from the check.
On macOS versions with System Settings, choose Apple menu > System Settings > Battery and look at Battery Health. “Service recommended” can mean reduced capacity or a battery problem.
It’s a reason to arrange a check, rather than proof that the battery caused the shutdown.

On a desktop Mac, check its power cord and outlet too. If it uses an external display, make sure the display has power. A powered-off monitor can look like a Mac that has shut down.
Don’t keep bending a damaged cable to make it charge. Follow Apple’s hardware safety guidance and stop using damaged equipment.
3. Disconnect Accessories and Reconnect Them One at a Time
A drive, dock, printer, or its cable can contribute to unexpected restarts. Apple’s restart troubleshooting steps use disconnection to isolate the problem before assuming the Mac itself needs repair.
- Save your work, eject external storage, and choose Apple menu > Shut Down.
- Disconnect nonessential devices. On a desktop Mac, keep the display, keyboard, and mouse or trackpad connected. Keep the Mac connected to suitable power.
- Turn it on and use it normally for the length of time in which the problem would usually appear.
- If it stays stable, reconnect one device at a time and check again after each connection. If the problem returns, note that device and cable.

An improvement with accessories removed narrows the search. It doesn’t prove that the accessory is broken, because its cable or supporting software may also be involved.
Keep that device disconnected while you check compatibility or contact its maker.
4. Address Heat Without Guessing at a Failure Temperature
A warm case or a busy fan doesn’t by itself prove overheating. Use your MacBook on a stable, well-ventilated surface, away from bedding. Keep ventilation openings clear without pushing anything into them.
Apple’s temperature guidance explains normal warmth and when to seek help.
If an app is using heavy processing power, save its work and quit it normally, then see whether the warmth settles. Our MacBook overheating guide has related checks.
Don’t deliberately run a heavy workload to reproduce a shutdown on a suspect machine.
Activity Monitor can show CPU activity, but it doesn’t supply a simple “overheating” verdict. A third-party sensor reading also doesn’t establish a hardware fault. If warmth remains unusual during light use:
Contact Apple rather than relying on a universal temperature cutoff.
5. Update Software and Investigate the App Involved
Use this step when the Mac is safe to use and has stable power. Back up first, then install available compatible macOS and app updates.
Updates are part of Apple’s unexpected restart guidance, especially when the problem began after a software change.
- Choose Apple menu > System Settings > General > Software Update. On older macOS releases, search for Software Update if the layout differs.
- Install the offered compatible update and follow the prompts. Buttons may say Update, Upgrade, or Restart Now. Keep the Mac connected to power and let installation finish.
- Update the app involved through the App Store or its developer’s supported updater. Check compatibility for recently added plug-ins and extensions.

Software Update offers software compatible with your model. A blank screen or several restarts during installation can be expected.
If you’re checking an older Mac before an upgrade, use the macOS requirements reference alongside the offered updates.
If the problem happens around one app, open Applications > Utilities > Activity Monitor and choose CPU to inspect processor activity. The Memory and Disk tabs show different kinds of use.
A high CPU reading is a clue to workload, not proof of a crash or malware.


Quit a recognized app normally first. If it won’t respond, Option-Command-Esc opens Force Quit Applications. Force quitting can lose unsaved work, and terminating an unfamiliar system process can affect other apps.
Apple’s process quitting guidance explains the difference between Quit and Force Quit.

If macOS identifies a particular app as the cause and offers to move it to the Trash, follow that prompt and contact the developer. Don’t remove unrelated apps simply because they’re unused.
And don’t delete system files or logs as a general shutdown fix.
6. Use Safe Mode to Isolate Startup Software
Safe Mode prevents certain startup software from loading and performs basic checks. It can help narrow a software problem, but it doesn’t rule out hardware trouble.
Install updates and disconnect nonessential accessories first if you can.
For a Mac with Apple silicon:
- Shut down, then press and hold the power button until startup options appear.
- Select your startup disk, usually Macintosh HD.
- Hold Shift and click Continue in Safe Mode, then log in. You may be asked to log in again.
For an Intel-based Mac:
- Turn on or restart, then immediately hold Shift.
- Release Shift when the login window appears, then log in. You may need to log in again.

If you’re unsure which mode started, hold Option while opening Apple menu > System Information. Select Software and look for Boot Mode: Safe.
An Intel firmware password can prevent Safe Mode from starting, so follow Apple’s guidance if the keys don’t work.
Use the Mac in Safe Mode without trying to force a crash. Then restart normally. If the issue returns only during normal startup, investigate login items and recently added startup software.
Some features behave differently in Safe Mode, so missing audio or reduced graphics performance alone isn’t a new diagnosis.
The Safe Mode guide provides additional background. If the Mac still restarts in Safe Mode, continue to hardware checks and the recovery or service decision below.
7. Run Apple Diagnostics and Keep the Results
Apple Diagnostics checks internal hardware and may identify a component needing attention. It’s a hardware check, rather than a way to repair app software.
Shut down and disconnect external devices except the keyboard, mouse, display, Ethernet if used, and AC power. Put the Mac on a hard, flat, ventilated surface. Then follow the branch for your processor.
- Apple silicon: hold the power button until startup options appear. Release it when Options appears, then hold Command-D until the Mac restarts.
- Intel: turn on and immediately hold D. Release it at the progress bar or language prompt. If D doesn’t work, try Option-D at startup.
- Follow the onscreen instructions and write down any reference codes. On macOS Tahoe 26 and later, you may be asked to choose a specific diagnostic. Earlier versions run automatically.
Give those codes to the service provider. If Diagnostics reports no issue but shutdowns continue, keep your symptom notes and seek further help.
Don’t treat one result as a guarantee that every possible fault has been excluded. Our Apple Diagnostics guide expands on the test.
8. Use SMC or NVRAM Resets Only When They Apply
Repeated resets aren’t a maintenance routine. The System Management Controller manages power and thermal functions on Intel Macs.
Its reset procedure depends on whether the Mac has a T2 chip and whether it’s a laptop or desktop.
On Apple silicon, there’s no manual SMC key sequence to follow. With power connected, a normal restart or shutdown and power-on is all Apple specifies.
On Intel, use Apple’s exact model-specific instructions only if you still have a relevant power, charging, or thermal issue.
NVRAM stores settings such as volume, display resolution, startup-disk selection, and time zone. Consider resetting it on an Intel Mac only when a setting it stores isn’t behaving correctly.
It isn’t a general cure for random shutdowns.
For that limited Intel case, shut down, turn on, and immediately hold Option-Command-P-R for about 20 seconds. You may need to restore affected settings afterward. This shortcut doesn’t apply to Apple silicon.

9. Know When to Use Recovery or Arrange Service
Stop using the Mac or charger if it’s physically damaged, has been exposed to liquid, or has damaged power cables. Don’t keep restarting it to see whether the fault clears.
Apple’s repair and safety guidance directs damaged or malfunctioning hardware to Apple or an Apple Authorized Service Provider.
Arrange service if the Mac won’t turn on after power checks, cuts out before it can complete basic checks, reports a Diagnostics fault, or continues shutting down after accessories are removed.
Bring the adapter, symptom notes, and any reference codes that help describe the problem.
For a persistent software or kernel-panic problem after updates and Safe Mode, reinstalling macOS from Recovery can be a later step. Make a backup first and confirm that power is reliable.
A normal reinstall is designed to preserve apps and personal data, but it doesn’t replace a backup.
Don’t erase the disk as a routine part of this troubleshooting. If Recovery can’t see the disk, the Mac cannot stay powered on, or your backup is incomplete, get advice before proceeding.
Reinstallation won’t repair a damaged battery, cable, or other failed component.
How to Reduce Repeat Problems
Keep compatible software updated, use sound power cables, and give the Mac room for ventilation. When adding accessories or startup software, keep track of what changed so a returning fault is easier to isolate.
After each safe change, use the Mac normally for the period in which the shutdown used to occur. Record whether it happened again, then make the next change only if needed.
That gives you a more useful account for support than several changes made together.
Frequently Asked Questions
Why does my MacBook shut down with battery charge remaining?
A charge percentage alone doesn’t identify the cause.
Note whether it happens only on battery or also with a compatible charger connected, then check Battery Health.
Repeated power loss needs a hardware assessment even if the displayed percentage seems sufficient. See Apple’s battery condition guidance.
Does “Service recommended” mean I must stop using my Mac?
“Service recommended” alone doesn’t mean you must stop using the Mac. It can indicate reduced capacity or a battery problem, so arrange a check.
Physical damage or liquid exposure requires a separate safety decision and should take priority. See Apple’s battery condition guidance.
Can Activity Monitor tell me my Mac is overheating?
Activity Monitor shows resource use, including CPU activity, rather than a simple overheating diagnosis.
High CPU use can explain extra warmth, but it doesn’t establish why the Mac shut down.
Don’t use a single sensor reading as proof of hardware failure. See Apple’s temperature guidance.
Should I uninstall every unused app to stop shutdowns?
You don’t need to uninstall every unused app to troubleshoot shutdowns.
Focus on software linked to the event, such as an app identified by macOS or a recently added plug-in.
Use the developer’s removal instructions when a particular component is implicated. See Apple’s restart guidance.
Do random shutdowns mean my Mac has a virus?
Random shutdowns alone don’t establish a virus infection. Begin with power, accessories, updates, and the restart message.
A security scan is a separate check, and it doesn’t replace the power and hardware checks above. See Apple’s restart guidance.
Will reinstalling macOS delete my files?
A normal macOS reinstall from Recovery is designed to keep your apps and personal files.
Back up first anyway, especially on a Mac with unstable power.
Erasing the startup disk is a different action and isn’t part of the routine reinstall described here. See Apple’s reinstall instructions.
Can my Mac still need service if Apple Diagnostics finds nothing?
Your Mac may still need service if shutdowns continue after Diagnostics reports no issue.
Give the technician the circumstances, accessory list, and timing of each event.
A symptom that returns during everyday use deserves attention even without a reference code. See Apple’s Diagnostics guidance.
Affiliate disclosure: MacBook Journal may earn a commission when you buy through links on this page, at no extra cost to you.
How helpful was this article?
Your feedback helps us improve our guides.