Why does my iPhone shut off at 20% battery without warning and then turn itself back on at 11%?
If your iPhone shuts off at 20% and comes back on at a lower percentage with no low-battery warning, the battery is most likely worn out. A battery that can't hold a charge can't report its level accurately. On a newer phone, that means a defective battery. Either way, have Apple or an Authorized Apple Service Provider service it.