Resolving unexpected MacBook restarts requires isolating variables one at a time by first disconnecting all nonessential peripherals and testing startup software in Safe Mode before attempting system repairs.
● Secure or recover missing data to a different healthy device before running Disk Utility First Aid or reinstalling macOS, as these deeper recovery steps can modify the source disk and overwrite accessible files.
● Apply the correct troubleshooting sequences for your specific hardware and software: Safe Mode and Apple Diagnostics require different startup actions for Apple silicon versus Intel Macs, and the automated Recovery Assistant requires macOS Tahoe 26 or later.
● Halt software repair attempts and seek hardware service if the restarts persist across Safe Mode and macOS Recovery environments, if Apple Diagnostics outputs a reference code, or if Disk Utility fails to detect the internal storage drive.
Ask AI for a summary
If your MacBook keeps restarting, first identify whether it is a normal restart, an unexpected restart after a kernel panic, or a restart loop that prevents you from reaching the desktop. Repeated unexpected restarts are commonly linked to installed software or connected devices, while a Mac that still restarts in Safe Mode or Recovery needs deeper storage or hardware checks.
The safest approach is to change one variable at a time. Disconnect nonessential accessories, update macOS and apps, test Safe Mode, then move to Recovery, Apple Diagnostics, Disk Utility, and macOS reinstallation only when the earlier checks do not isolate the cause. If important files are already missing or inaccessible, protect or recover them before disk repair, erasing, or other steps that can modify the source drive.
In This Article
-
- Fix 1. Disconnect External Devices and Test Again
- Fix 2. Update macOS and the Apps You Use
- Fix 3. Start in Safe Mode and Isolate Startup Software
- Fix 4. Use Recovery Assistant on macOS Tahoe 26 or Later
- Fix 5. Run Apple Diagnostics
- Fix 6. Run Disk Utility First Aid From Recovery
- Fix 7. Reinstall macOS Without Erasing Your Files
Part 1. Why Your MacBook Keeps Restarting
"My Mac keeps restarting" can describe several different failures, and each one needs a different first test. Start by observing what happens immediately before and after the restart instead of applying every fix at once.
Match the Restart Pattern to the Likely Problem
The restart pattern is often more useful than the Mac model itself. Use the table below to separate a normal system restart from an unexpected crash, a startup loop, a freeze, or a power-related shutdown.
| What you see | What it usually means | Best first action |
| The Mac restarts during a macOS update and shows a progress bar several times | This can be normal update behavior | Keep the Mac on power and allow the installation to finish |
| The Mac suddenly restarts and later says "Your computer was restarted because of a problem" | An unexpected system-level restart, commonly called a kernel panic | Note what app or device was in use, then isolate software and peripherals |
| The Mac keeps restarting before or just after login | A startup loop that can involve startup software, disk errors, or hardware | Disconnect accessories, try Safe Mode, then use Recovery if needed |
| The Mac freezes but never restarts | A hang or freeze rather than an automatic restart | Use the dedicated Mac crashing and freezing guide |
| The Mac powers off and stays off | A shutdown or power problem, not the same symptom as a restart | Check power, battery, thermal, and hardware conditions |
Apple's current guidance says unexpected restarts are usually caused by software installed on the Mac or by connected devices. If the restart happens every time the Mac tries to start, the Mac can eventually shut down instead. Apple's unexpected-restart guidance recommends checking software first, then peripherals and Apple Diagnostics.

If you repeatedly see that exact restart message and want to interpret the panic report itself, use the dedicated Recoverit guide for Your computer restarted because of a problem. This page stays focused on the broader "MacBook keeps restarting" troubleshooting path so the two articles do not duplicate the same intent.
Common Causes on MacBook Air, MacBook Pro, iMac, and Mac Pro
The same core causes apply across MacBook Air, MacBook Pro, iMac, Mac mini, and Mac Pro, although desktop Macs can add more external hardware and expansion-device variables.
- Problematic apps, drivers, extensions, or login items: Software that loads at startup can trigger repeat restarts even when macOS itself is healthy.
- Outdated macOS or third-party software: Compatibility bugs can surface after an OS, driver, VPN, security, audio, display, or hardware-control component falls out of sync.
- External devices and docks: Storage drives, hubs, displays, audio interfaces, printers, cables, and adapters can introduce driver, power, or firmware conflicts.
- Startup-disk errors: Formatting or directory-structure problems can cause unexpected behavior or prevent the Mac from starting normally.
- Internal hardware faults: Memory, storage, logic-board, power, or other hardware problems become more likely when restarts continue across Safe Mode and Recovery or when Apple Diagnostics reports a reference code.
Because deeper repair steps can modify the startup disk, protect important files before you move from isolation tests into Disk Utility, reinstallation, or service.
Part 2. Protect Your Files Before Deeper Mac Repairs
A repeated restart is not automatically a data-loss event. If your files are still accessible, back them up normally. If files are already missing or inaccessible, treat data protection as a separate task before you run disk repair, erase a disk, or perform any other operation that can change the source.
Decide Whether You Need Backup or Data Recovery First
Use the current state of your Mac to choose the safest path. This keeps a restart problem from turning into avoidable data loss.
| Current state | Data action before repair |
| The Mac boots and all important files are present | Make a normal backup, then continue with the fixes below |
| The Mac boots, but files are missing, deleted, or inaccessible | Minimize writes and recover the important files before Disk Utility or reinstallation |
| The Mac will not stay booted, but the storage is still detectable from another working environment | Copy or recover critical data to a different healthy device before destructive repair |
| The internal storage is not detected, the Mac suffered liquid or impact damage, or the drive shows severe physical symptoms | Stop repeated software attempts and use Apple or a professional data-recovery service |
If your data is intact, skip directly to Part 3. If a restart loop has already left files missing or inaccessible, use the recovery workflow below before changing the source disk.
Recover Missing Files Before Disk Repair or Reinstallation
Recoverit belongs only in the data-loss branch of this problem. It does not stop kernel panics or repair failing hardware, but it can scan a detectable storage device for lost or inaccessible files before you proceed with higher-risk repair steps.
Step 1. Launch Recoverit on a working Mac or an unaffected storage location, then select the drive that contained the missing files.

Step 2. Start the scan and let Recoverit search the selected location. Avoid saving new files to the affected source while the scan is running.

Step 3. Preview the files you need, select them, and recover them to a different healthy drive or destination.

Important: No software can guarantee recovery after the original data has been overwritten. Software recovery also normally requires the storage device to be detected by macOS or another usable recovery environment. If the device repeatedly disconnects, makes unusual noises, has liquid damage, or is not detected at all, stop repeated scans and seek professional help.
Once important data is safe, continue with the troubleshooting sequence below and test after every change so you can identify what actually stopped the restarts.
Part 3. How to Fix a Mac That Keeps Restarting
Work from low-risk isolation tests toward deeper system repair. Do not apply several fixes at the same time, because you will lose the evidence that tells you which layer caused the problem.
Fix 1. Disconnect External Devices and Test Again
This is the best first test when a MacBook restarts while connected to a dock, external display, storage drive, hub, audio interface, printer, adapter, or other accessory. It is also especially relevant when a Mac Pro keeps restarting with external or expansion hardware attached.
Step 1. Shut down the Mac normally if possible. Do not unplug an external storage device while it is actively writing data.
Step 2. Disconnect nonessential peripherals. On a desktop Mac, keep only the display, keyboard, mouse or trackpad, Ethernet if needed, and power required for the test.

Step 3. Start the Mac and use it for long enough to reproduce the usual restart.
Step 4. If the Mac remains stable, reconnect one device at a time and retest after each connection. When the problem returns, test that device with another cable, port, power source, and current vendor software or firmware when available.
If the Mac still restarts with nonessential devices removed, leave them disconnected while you continue to the software checks.
Fix 2. Update macOS and the Apps You Use
Apple recommends using the latest macOS compatible with your Mac because updates include security, stability, and compatibility changes. Updating the affected app, driver, plug-in, VPN, security tool, or hardware utility is just as important as updating macOS itself.
Step 1. Choose Apple menu > System Settings > General > Software Update. On older macOS versions, the Software Update location can differ.

Step 2. Install the update or upgrade offered for that Mac. Keep a MacBook connected to power and do not close the lid while installation is in progress.
Step 3. Update the apps and drivers that were running when the restarts began. For software not installed through the App Store, use the developer's official updater or website.
Apple's current macOS update instructions note that Software Update offers only software compatible with the Mac model and that the Mac can restart several times during installation. Those update restarts alone are not evidence of a restart fault.
If Software Update itself is failing, use the dedicated Recoverit guide for a Mac that cannot update instead of mixing update-installation troubleshooting into this restart page.
Fix 3. Start in Safe Mode and Isolate Startup Software
Safe Mode is one of the strongest software-isolation tests because it prevents certain nonessential login items and extensions from loading, performs a basic startup-disk check, and clears some system caches. If the restarts stop in Safe Mode but return after a normal startup, focus on software that loads during login or startup.
Step 1. If you have a Mac with Apple silicon, shut it down. Press and hold the power button until startup options appear, select the startup disk, hold Shift, and click Continue in Safe Mode.

Step 2. If you have an Intel-based Mac, turn it on or restart it and immediately hold Shift until the login window appears.
Step 3. Use the Mac in Safe Mode long enough to see whether the restart repeats. If it stays stable, restart normally and open System Settings > General > Login Items & Extensions.
Step 4. Temporarily remove nonessential third-party items from Open at Login and review optional background items or extensions. Keep a record of what you change, restart normally, and restore items one by one until the problem returns.
Apple's current Safe Mode instructions explicitly use different startup procedures for Apple silicon and Intel Macs. This is why the old advice to simply hold Shift on every Mac is no longer complete.
If the Mac still restarts in Safe Mode, the next checks move outside the normal startup environment.
Fix 4. Use Recovery Assistant on macOS Tahoe 26 or Later
On macOS Tahoe 26 or later, Recovery Assistant can open automatically when the Mac encounters certain problems that prevent startup. This is especially relevant when a Mac keeps restarting before login and then enters a recovery screen on its own.
Step 1. If Recovery Assistant appears with the message that the Mac encountered an issue while starting, click Continue.

Step 2. Choose whether to send diagnostic data, unlock the startup disk with an administrator password if requested, and connect to a supported network if Recovery Assistant needs internet access.
Step 3. Let the process finish, review whether the device was recovered, no known issue was found, or Recovery Assistant could not recover it, then choose Restart Mac.
Apple documents Recovery Assistant for macOS Tahoe 26 or later. If it cannot resolve the startup problem, Apple directs users toward startup-disk repair or macOS reinstallation.
If Recovery Assistant does not appear, is not available on your macOS version, or cannot resolve the loop, continue with a hardware diagnostic and startup-disk check.
Fix 5. Run Apple Diagnostics
Apple Diagnostics can help identify problems with internal hardware components. It is most useful when the Mac keeps restarting after peripherals are disconnected, when Safe Mode does not change the behavior, or when you suspect a hardware problem.
Step 1. Shut down the Mac, disconnect nonessential devices, and place it on a hard, flat, stable surface with good ventilation.
Step 2. On Apple silicon, press and hold the power button until startup options appear, then press and hold Command-D until the Mac restarts. On an Intel Mac, turn it on and immediately hold D; Apple lists Option-D as an alternative when D does not start Diagnostics.
Step 3. Follow the onscreen diagnostic prompts. On macOS Tahoe 26 or later, you may be able to choose the relevant diagnostic; on earlier versions, the testing flow differs.

Step 4. Record any reference codes. Use those codes when you contact Apple or an authorized service provider instead of assuming a clean test rules out every hardware problem.
The current Apple Diagnostics procedure separates Apple silicon and Intel startup instructions, correcting the older one-size-fits-all advice to hold D on every Mac.
If Diagnostics does not identify the cause and the internal drive is still detectable, check the startup disk next.
Fix 6. Run Disk Utility First Aid From Recovery
Disk Utility can find and repair errors in a Mac storage device's formatting and directory structure. Because Apple recommends having a current backup before First Aid, do not place this step ahead of data protection when important files are already inaccessible.
Step 1. Start in macOS Recovery and open Disk Utility. If you need model-specific Recovery startup instructions, see the Recoverit guide to start a Mac in Recovery Mode.
Step 2. In Disk Utility, choose View > Show All Devices.

Step 3. For the startup device, start with the last volume in the sidebar and run First Aid. Then move upward, running First Aid on the remaining volumes and volume group, each container, and finally the physical device.
Step 4. Quit Disk Utility and restart the Mac after the checks finish. If First Aid reports errors it cannot repair, do not immediately erase the disk if you still need data from it.
Apple's current Disk Utility repair order also notes that a storage device missing from the Disk Utility sidebar can indicate a device or Mac that needs service.
If the disk is readable and First Aid completes but the restart loop continues, reinstalling macOS is the next software-level escalation.
Fix 7. Reinstall macOS Without Erasing Your Files
A standard macOS reinstallation from Recovery is different from erasing the startup disk. Apple states that reinstalling macOS from Recovery does not remove your apps or personal data, although you should still back up first whenever possible.
Step 1. Start the Mac in macOS Recovery. On Apple silicon, shut down and hold the power button until startup options appear, then choose Options. On an Intel Mac, restart and hold Command-R for the local Recovery system.
Step 2. Choose Reinstall macOS from the Recovery utilities window, then click Continue.

Step 3. Follow the onscreen installer. If asked to choose between Macintosh HD and Macintosh HD - Data, Apple instructs you to choose Macintosh HD.
Step 4. Allow the installation to complete without closing the lid or interrupting power. The Mac can restart and show a progress bar or blank screen several times during a normal reinstall.
Apple's current macOS reinstallation guide explains which macOS version Recovery installs on Apple silicon and Intel Macs. Do not convert this step into an erase-and-install unless you have separately protected your data and have a reason to erase the disk.
If a normal reinstall completes and the Mac still restarts under unrelated workloads with peripherals disconnected, the remaining evidence points more strongly toward hardware or a lower-level device problem.
Part 4. When Repeated Restarts Point to Hardware Service
Software troubleshooting has limits. A Mac that continues to restart after software isolation, Recovery testing, disk checks, and a standard macOS reinstall deserves hardware evaluation rather than an endless series of resets and cleaner utilities.
Stop Troubleshooting and Get the Mac Checked
These patterns are strong reasons to stop repeating software fixes and contact Apple or an authorized service provider.
- Apple Diagnostics reports a reference code: Record the code and provide it when arranging service.
- The Mac restarts in Safe Mode and Recovery: That reduces the likelihood that a normal login item alone is responsible.
- The internal storage is missing from Disk Utility: Apple notes that the Mac or storage device may need service when the device does not appear in the sidebar.
- The problem started after impact, liquid exposure, or a hardware modification: Do not keep stressing a potentially damaged system if important data is at risk.
- There are unusual noises, burning smells, extreme heat, or repeated power loss: Shut the Mac down and get it inspected instead of continuing scans or repair attempts.
- A standard macOS reinstall does not change the restart pattern: Persistent restarts after software isolation make hardware service a more appropriate next step.
Do not treat NVRAM resets, SMC resets, or third-party cleaning tools as universal cures for repeated restarts. Their relevance depends on the Mac architecture and the specific symptom, and they should not replace the current Apple-supported isolation sequence above.
Part 5. How to Reduce Future Mac Restart Problems
Once the Mac is stable again, a few maintenance habits make future restart problems easier to prevent and much easier to diagnose if they return.
Keep the Mac Stable After the Problem Is Fixed
Focus on compatibility, backups, and controlled changes rather than aggressive system-cleaning routines.
- Keep macOS and third-party software current: Update apps, drivers, plug-ins, and device utilities alongside macOS.
- Back up before major updates or repairs: A usable backup separates system troubleshooting from data-loss recovery.
- Add accessories one at a time: When installing a new dock, storage device, display adapter, PCIe card, or driver, test stability before adding the next change.
- Review login items periodically: Remove software you no longer use through the vendor's recommended uninstall method instead of deleting random system files.
- Keep useful free storage available: Low space can interfere with updates and normal system operations, even though low space alone does not prove why a Mac is restarting.
- Record the pattern if a restart returns: Note the time, app, connected devices, and whether the restart happens before login, after wake, during a specific workload, or only with one accessory attached.
The goal is not to eliminate every possible restart forever, but to keep your files protected and make the next failure easy to isolate without guesswork.
Conclusion
When a MacBook keeps restarting over and over, start with the restart pattern, not a long list of random resets. Disconnect external devices, update macOS and apps, compare normal startup with Safe Mode, and use Recovery Assistant when available. If the problem persists, run Apple Diagnostics and Disk Utility only after important data is safe, then reinstall macOS without erasing as the final software-level fix. A Mac that still restarts after those controlled tests should be evaluated for hardware service.
FAQ
-
Why does my MacBook keep restarting on its own?
Repeated automatic restarts are commonly linked to installed software, startup items, connected devices, startup-disk errors, or hardware problems. If you see "Your computer was restarted because of a problem," treat it as an unexpected system restart and isolate software and peripherals before moving to disk or hardware tests. -
Why does my MacBook Pro keep restarting over and over before login?
A restart loop before login can involve startup software, a damaged startup disk, an incomplete system state, or hardware. Disconnect nonessential devices first, then try Safe Mode. If the Mac cannot reach Safe Mode, move to macOS Recovery, Recovery Assistant on supported systems, Disk Utility, and Apple Diagnostics. -
Why does my MacBook Air keep restarting after an update?
A few restarts during an update can be normal. If the Mac continues restarting after installation should be complete, update third-party apps and drivers, disconnect accessories, and test Safe Mode. If files are missing after the failed update, protect the data before deeper repair. -
Should I reset NVRAM if my Mac keeps restarting?
Do not use NVRAM reset as a universal first fix. The procedure applies differently across Mac architectures, and Apple's current unexpected-restart guidance prioritizes software updates, Safe Mode, peripheral isolation, reinstallation, and Apple Diagnostics. -
Will reinstalling macOS stop constant restarts without deleting my files?
A standard reinstall from macOS Recovery can replace system software without removing your apps or personal data, but it is still important to back up first. If important files are already missing or inaccessible, recover them before any erase or other destructive disk operation. -
Can Recoverit stop a Mac from restarting?
No. Recoverit is a data-recovery tool, not a kernel-panic, hardware-repair, or restart-fix utility. It is relevant only when repeated restarts have already made files missing or inaccessible and the source storage can still be detected for recovery.