How to check battery health
On an iPhone, go to Settings, then Battery, then Battery Health. Many Android phones show battery information under Settings, Battery or Device care, though not every brand shows a health figure. On Windows laptops, a battery report can be created from the command prompt, and on a Mac, battery condition appears in System Settings under Battery.
If your device shows a health figure well below what it was when new, and you notice the drop in daily use, replacement is worth considering.
A swollen battery is a safety issue
If the screen is lifting, the back cover is bulging or the laptop no longer sits flat, the battery is probably swelling. Stop charging it, keep it away from heat and do not press on it or try to remove it yourself. Get it to a repairer soon. Heat makes swelling worse, so do not leave the device in a parked car in summer.
Make the new battery last
Heat is the biggest enemy of a battery. Avoid charging under a pillow or in direct sun, and take off a thick case if the phone gets hot while charging. Many phones and laptops now offer an optimised charging setting that slows the last stretch to full, which helps battery life over time.