1. Open Command Prompt as administrator.
2. Run: powercfg /batteryreport
3. It saves battery-report.html and shows the file location. Open it in a browser.
4. Compare "Design capacity" with "Full charge capacity". If full charge is below about 60 percent of design, the battery is worn.
5. "Battery usage" and "Capacity history" show how it changed over time.
Laptop plugged in but not charging?
Try a different socket and the original charger, check the charger's light, and update the BIOS from the manufacturer's site. Some laptops have a battery care setting that stops charging at 60 or 80 percent: check the manufacturer's app (Lenovo Vantage, Dell Power Manager, MyASUS).