Keeping your gadgets charged is easy in the short term. Just keep an eye on their battery level and plug them into the wall when it gets low. But keeping your gadgets’ batteries healthy in the long run is a much more complicated proposition. The lithium-ion batteries we have in virtually all of our gadgets are chemically destined to degrade over time, holding less charge than they used to, and blowing through what little they have faster then before. It’s impossible to stop this process, but it is possible to slow it.

To find out the best ways to postpone the inevitable, we talked to Isidor Buchmann, CEO and founder of Cadex Electronics and main contributor to extremely in-depth and invaluable online resource Battery University, about how exactly you should treat your batteries in a perfect world, what you can do to maximize their life.

So brace yourself, because here’s what you’re probably doing wrong.

You’re always charging it up to 100%

It may put your mind at ease when your smartphone’s battery reads 100 percent charge, but it’s actually not great for the battery. “A lithium-ion battery doesn’t like to be fully charged,” Buchmann says. “And it doesn’t like to be fully charged and warm.”

Electric vehicles, with batteries are required by various regulations to have a minimum operational life on the order of several years, make that prospect more feasible than it is for your phone by using drastically oversized batteries that are purposefully designed to never be full. “You’ll typically charge to about 80 percent and discharge down to about 20,” Buchmann says. “In that mid-range use, you get far more cycles than if you fully charged and discharged as we do on our cellphones.”

If you’re on a device that runs iOS 13, you’re in luck because Apple’s new Optimized Battery Charging option allows you to do exactly this, and if you can stomach the being less than 100 percent in the morning, you should absolutely turn it on. Unfortunately, barring phones that start incorporating much bigger batteries along or software settings to ensure that they stop charging before their batteries are actually, literally full, it’s next to impossible to ensure that your iPhone is never at 100 percent unless you are constantly staring at it while it’s on the charger. That said, if you can avoid getting full to the brim on a regular basis, the practice will pay dividends in the long run. “If you can live with an energy band of about 60 percent instead of 100 percent,” Buchmann says, “you can easily double the battery life.”

You’re letting it get too close to zero

Charging your battery all the way up is less than ideal, and to make matters worse, so is discharging it down to zero. While older nickel-cadmium batteries did have a “memory” that could be disrupted by anything other than a full cycle from full to empty, your modern lithium-ion battery abhors both extremes. So, in a perfect world, your battery never goes below 20 percent, and also never above 80 percent.

The good news is that lithium-ion batteries like to be charged in short spurts, so plugging in for five percent here and 10 percent there is not only fine, but advisable. Cycling your phone from 100 percent, down to zero, and back up has a very limited utility in that it can “recalibrate” a battery if it’s doing strange things like dying out of nowhere when it claims to be decently charged, says Buchmann. “But other than that, it’s not advised to fully cycle lithium-ion.”

You’re letting it get too hot

The most stressful thing that can happen to your phone’s battery during regular use is not, in fact, being discharged, or even being empty. “The combination of full charge and warm actually causes more stress than usage,” Buchmann warns. “If you’re in a car in the summer, don’t put it on the dashboard. Put it on the floor, or in the shade.”

Circumstances where your phone or laptop are fully charged and extremely hot should be relatively rare and, as such, relatively avoidable. Don’t leave your fully-charged phone in the summer sun! Perhaps the most dangerous recurring heat-and-charge combination is a laptop that is always plugged in and prone to running hot, in which case investing in a cooling stand may be a smart move in case you ever want to use your laptop away from its tether.

While you might reasonably think this means bad news for wireless chargers which often generate a fair bit of waste heat as they juice up your gadgets, the chemistry actually gets a little bit more complicated: lithium-ion batteries don’t like to be hot when they’re full but recent studies on vehicle batteries suggest they do like to be warm while they charge and discharge, so your wireless charger is at least probably not terrible for your battery’s health.

“For charging and discharging, the battery likes to be warm. Between 25 and 40 degrees Celsius (77-104 F),” Buchmann says. “But in storage, the battery should be cool, maybe 15 or 10 degrees Celsius (59-50 F).” Monitoring these temperatures constantly is a tall order and probably not remotely feasible, but you can find apps that will take note of your batteries temperture and warn you if it hits extremes, which will at least help you avoid the worst scenarios.

After reading all this, you’re worrying about it too much

It’s good to know the battery basics so you can avoid the worst pitfalls, but it’s also important to not fall into the trap of trying to be perfect. In the end, a lot of this is completely out of your hands. Despite the fact that lithium-ion batteries power a lot of our everyday life, the science of exactly how they function in practice is very much still in development, with new nuances still being uncovered. And much of the emerging science comes from tests on huge multi-cell vehicle batteries, which are similar but not identical to the single-cell battery in your phone. On top of that, your day-to-day charging usage experience is so riddled with variables that it’s pretty much impossible to confirm whether or not you’re doing things right.

Lastly, but perhaps most importantly, your phone is not going to last forever, and not even super-humanly good battery treatment is going to change that. A screen replacement that’s just slightly too expensive to be worth it for your aging phone or outdated processor that can’t handle the latest software is all but destined to end your phone’s usable life even if the battery doesn’t. And until or unless the companies that make phones start designing them to survive a much, much longer lifespan, there’s not a whole lot you can do as the end user.

Just like your battery’s charge is a resource that you spend for the convenience of checking your phone, consider your battery’s overall lifespan as a resource you’ll need to spend wisely to preserve your own sanity. It’s up to you to decide what safeguards are worth the trouble.

“Why have a perfectly good battery when the glass is broken or the phone becomes obsolete?” Buchmann asks. “It all sort of harmonizes together to come to an end.” You’ll never prevent it, but armed with what you know now, maybe you’ll be able to postpone it a little bit longer.