What could be causing my computer to get stuck in a turning on and off loop?

What could be causing my computer to get stuck in a turning on and off loop?
Recently, I’ve been experiencing a frustrating issue with my computer—it keeps getting stuck in an endless cycle of turning on and off. Every time I attempt to power it up, the computer starts booting and then, within a few seconds, it shuts down and restarts the process all over again. There’s no pattern to it; it just keeps looping through the same cycle without ever fully booting into the operating system. I’ve checked for obvious issues like power supply problems and overheating, but everything seems fine on the surface. I’m at a loss as to why this is happening and it’s becoming a real challenge to work on anything. Any insights into what might be causing this problem would be greatly appreciated.
8 Answers

Your computer might be overheating. Ensure the CPU fan is functioning properly and that the thermal paste on the CPU is appropriately applied. Dust buildup can also lead to overheating, so clean the cooler and heatsink thoroughly. Overheating often triggers automatic shutdowns that create a boot loop.

Software issues, such as corrupted system files, can cause this problem. Use installation media to attempt a repair of the operating system. If you suspect malware, employ a bootable antivirus tool to scan for infections that might be disrupting the boot process. In extreme cases, a system restore or factory reset may be necessary.

If you recently added new hardware, the power supply might not meet the system’s increased demand. Consider upgrading to a higher wattage PSU. Additionally, external peripherals like USB drives or printers could interfere with the boot process; disconnect these devices and attempt to restart the computer.