Random iPhone shutdowns can result from software faults, heat, battery wear, low storage or hardware damage. Updating software, checking battery health and reducing heat are practical first steps.
An iPhone that powers off without warning may be responding to a software fault, excessive temperature, degraded battery, insufficient free storage or hardware damage. The pattern matters: shutdowns during demanding tasks can point to a different cause than repeated reboots while the phone is idle.
Start with low-risk checks. Update iOS and installed apps, review available space in Settings > General > iPhone Storage, and avoid prolonged direct sunlight or extended 4K recording and graphics-heavy gaming if the phone is hot. Extreme cold can also contribute to shutdowns, so let the device return toward room temperature.
Battery condition is especially relevant when shutdowns happen under load or at low charge. Settings > Battery > Battery Health provides a useful reference; a reading of 80 percent or higher is generally less concerning, while a phone that only turns on after being connected to power may need battery service or replacement.
If the problem continues after these checks, or began after a drop or other physical damage, Apple or an authorized service center can investigate internal faults. Some hardware problems may trigger defensive reboots without producing an obvious external symptom.