Readers, I just had an interesting conversation with a laptop owner whose laptop is underperforming. During the conversation, this exchange took place:
I don't wanna wear out the battery by plugging it in.
Ah, okay, now I get it. I hate to tell you this, but here are the facts of battery life:
An intelligent laptop battery charger only charges the battery to about 80% in the long term (depending on the battery type), then maintains that charge level, neither adding to nor subtracting from the charge level. In the short term the charger provide 100% charge, but over a longer period, this charge level is allowed to decline.
When the laptop is plugged in, when it's in use, all the power comes from the charger, not the battery. So the battery, neither being charged nor discharged, has a very long life.
If the laptop is not plugged in when in use, the battery must provide all the operating power, and that power must be replaced periodically. This means the battery is constantly being charged and discharged, which substantially shortens the battery's life.
A battery's service lifetime is measured by how many charge/discharge cycles it can tolerate. If you want to wear out your battery, by all means force it to charge and discharge every day. The best way to destroy your laptop's battery is to use it without line power, then plug it in and force a recharge, every day.
If you do this, the computer manufacturers will love you, because you'll be replacing your laptops like clockwork, especially now that new-laptop batteries can't even be accessed/removed/replaced any more.
ADDENDUM: This is true for electric cars also:
Electric car battery life: how to preserve your battery : "A battery expert on a Tesla forum (with a PhD in electromechanical engineering) recommends keeping your state of charge between 15% and 90%, others 25%-75%, but advice varies. Some say 20%-80%, but fundamentally, the rule is don’t overcharge it or let it go completely flat."
One may ask what relevance electric car batteries have for laptop batteries. As it turns out, they're the same batteries, just more of them.
[ Removed background reference -- not really relevant, after all. ]
EDIT: clarification and other changes.