A laptop that dies sooner than it used to may have a tired battery, or just one greedy app. This screen helps tell which.
System Settings > Battery > Battery Health > (i)
It shows Normal or Service Recommended. The info button gives more detail, on supported models including Maximum Capacity, the capacity compared with when the battery was new. Service Recommended means it holds less than it should or is not working normally. You can keep using the Mac in the meantime.
For reference, Apple designs these batteries to keep up to 80 percent of their original capacity at the maximum cycle count under normal conditions. So a number somewhat below 100 on an older machine is ordinary wear.
I’d check this before buying or selling a used laptop, since it takes ten seconds and the seller can’t argue with it. If the health is fine and the runtime still isn’t, look at Activity Monitor’s Energy tab for the app doing the damage.
Apple also advises against trusting third party battery apps over the system’s own reading. And the percentage moves a little over time, so don’t fret over a single point. A swollen case or a trackpad that no longer clicks properly is a reason to stop and get it looked at, whatever the screen says.
Further reading: About battery health management in Mac laptops with Apple silicon, Check the condition of your Mac laptop's battery