How to avoid killing your MacBook / Laptop battery

Jul 23, 2019
Last update: Sep 22, 2020
~ 4 min

As of May of 2020 this is no more relevant! macOS 10.15.5 finally addressed this issue by not charging the battery to 100% depending on battery temperature, health and so on 🚀🚀🚀

There are a lot if misleading wisdom out there about batteries (e.g. it is ok to leave your laptop plugged in). The reasons behind it are pretty interesting and not at all trivial. If you want to know why: keep reading.

TLDR; Jump to the solution

Photo by israel palacio on Unsplash

The worst situation is keeping a fully charged battery at elevated temperatures.

Batteries are consumable items. This means the degrade over time and loose their ability to store energy. We will see how and why this happens and how to combat it.

Why do batteries degrade?

In theoretical chemistry your battery should be able to last forever. But in the real world of course that’s not possible. There are 2 main killers for batteries:

  1. Heat
  2. Cycles (Especially above ~80%)

Killer #1: Heat

With heat the internal materials of the battery start to loose their chemical form and therefore their capacity. Below is a table that illustrates how batteries react to temperature exposure.

Estimated recoverable capacity when storing Li-ion for one year at various temperatures.

Temperature40% charge100% charge
0°C98% (after 1 year)94% (after 1 year)
25°C96% (after 1 year)80% (after 1 year)
40°C85% (after 1 year)65% (after 1 year)
60°C75% (after 1 year)60%
(after 3 months)

As we can see, a heated battery basically is a lost cause, especially when fully charged.

Unfortunately there is little we can do for the heat issue since the thermal design of our Laptop is fixed and the manufacturer will choose where to place the battery and if and how to cool it.

Killer #2: Cycles

Over this one we have much more control. A cycle varies in definition, but basically it is a discharge, followed by a charge.

Why are cycles bad? Well whenever we move electrons around our battery either by using it or while charging, the chemical material is subjected to wear. Why exactly this happens is beyond my understanding of chemistry, so I won’t try to explain it since I would probably do it wrong.

What I can tell you is how to charge and use your battery in the correct manner:

  1. Ideally leave your battery between 30% and 80%
  2. Don’t charge over 80% if not strictly required for a long trip or so.

Don’t believe me, trust the data

Capacity loss as a function of charge and discharge bandwidth. Source

As we can observe above, all the tested bandwidth that regularly charged to a full 100% degraded the fastest. Don’t do that.

Part of the problem is that as you can see in the graphic below is that while the first 80% of the capacity is charged easily and quick, the last 80% to 100% have an exponential curve. Those last percentages are really taxing on the battery because you are trying to stuff the last electrons inside an almost full battery. Imagine you stuffing a last bag into an almost full garbage. You will need to push it.

Making matters worse, the battery will heat up during the last steps of charging because of the strain that is undergoing. This only adds to the problem, since as we learned above heat is incredibly bad for capacities.

Charging graph for Lithium Batteries.
Graph by – Colorised by Android Authority

This is also the reason because electric vehicles only charge up to 80%. It increases the lifespan of the battery significantly. On the other hand, consumer products like laptops and phones are more about selling you maximum battery life. What they don’t tell you is how quick that advertised battery life is going to last after 6 months of usage.

Myth: It’s ok to keep you laptop plugged in

This is a misconception that arose in recent years. While it is not completely wrong, it overlooks some important aspects.

What is true? Modern laptops and phones don’t overcharge the battery and will switch to using only the powered cable as the source. However at some point the battery will dip below 97% and the laptop will start charge it again to 100%. Assuming you use your laptop for work the whole day, this will happen multiple times daily. It will break it.


For MacBooks (magsafe):

Put a piece of paper/cloth on your middle connector of your MacBook Magsafe charger whenever your laptop plugged in for long periods.

How-To protect the battery with Magsafe chargers

Update: I tried new methods, the one that seems the most practical is to use a little piece of tape that you can bend in front of the connector when needed.

Updated method with tape

Put a piece of tape on your middle connector. For simplicity you can just cover 3 pins and leave the 2 outside pins (does not matter which side) free.
Now you can easily switch between loading the battery or just working on power whenever your laptop plugged in for long periods.

Same method, just with tape. Much easier to use.
Status of battery after modification

This will prevent your laptop from using and charging your battery while using it for a whole day.
Credits for the hack:

Laptops with removable batteries:

Simply remove the battery when using laptop for long periods. This will prevent the heat of the laptop being transferred to the battery and it won’t charge over and over again to 100%.