1. Samsung: open the Samsung Members app, then Support, then Phone diagnostics, then Battery status.
2. Many phones show it under Settings, then Battery, then Battery health (or Battery information).
3. Testing menu: on many phones dialling *#*#4636#*#* opens a menu with Battery information.
4. Practical test: charge to 100 percent and use the phone normally. If it can't last most of a day, or it shuts down above 0 percent, the battery is worn.
5. Warning signs that need a battery replacement now: a swollen battery, a back cover lifting, or the screen being pushed up. Stop charging it and bring it in.