Batteries age faster when they sit at 100 percent for hours. On a phone that charges overnight on the nightstand, that’s most nights. Since the iPhone 15, Apple lets you tell the phone where to stop, and I think it’s one of the most useful settings nobody opens.
The setting is called Charge Limit, and it’s here:
Settings > Battery > Charging
You pick a value from 80 to 100 percent in steps of 5. Set it to 80 and the iPhone stops charging around there. If the charge drops more than 5 percent while it’s still plugged in, it tops up again. Your iPhone may also suggest a limit, such as 95 percent, based on how you charge.
My example is the iPhone 17: on a normal day I don’t come close to emptying it, so 80 percent overnight is plenty, and I’d leave it there. On a travel day you just slide it back to 100 before bed.
Two things to know. With any limit under 100 percent, the iPhone will occasionally charge to 100 anyway, so its estimate of how full the battery is stays accurate. That’s normal, not a bug. And Optimized Battery Charging, the older feature that learns your routine and holds at 80 percent until just before you get up, only works when the limit is at 100. So you choose one or the other: a fixed limit you control, or the smart one that guesses your alarm. This only applies to the iPhone 15 and later; older models have just Optimized Battery Charging under Battery Health & Charging.
Further reading: About Charge Limit and Optimized Battery Charging on iPhone (Apple Support)
Going deeper: Guide: Immich on Unraid, back up the photos on your iPhone automatically