As others have said, keep the battery in the 80%-30% range. Use the `batt` CLI tool to hard limit your max charge to 80%. Sadly, if you're already down to <2hrs, this might not make sense for you. Also prevent it being exposed to very hot or cold temps (even when not in use)
I type this from an M3 Max 2023 MBP that still has 98% battery health. But admittedly it's only gone through 102 charge cycles in ~2 years.
(use `pmset -g rawbatt` to get cycle count or `system_profiler SPPowerDataType | grep -A3 'Health'` to get health and cycles)
> I type this from an M3 Max 2023 MBP that still has 98% battery health.
That's amazing. I have an early 2023 M2 Max MBP that mostly charges in desktop mode, which limits to 80%. I just looked in battery health and it says 82%. Damn! :(
For giggles, earlier today I asked Apple how much they'd give me for this machine if I traded it in on a brand new $5K M5 Max equivalent. $825. Ouch. I think I will keep it for a few more years. 96GB is enough memory to do anything I want, and it's been such a great performer that it's easily my favorite MacBook ever. I do wish the battery weren't so degraded though.
For anec-science, here goes: