The battery is one of the most important parts of a laptop, but one that we often don't pay enough attention to. One of the most common questions users about it is whether they should keep the device plugged in all the time? Or should they wait until the battery runs out before connecting it to the charger?

To answer these questions, we first need to better understand how a computer.
Most laptop batteries are either lithium-ion or lithium-polymer. These batteries are designed to withstand many charge cycles. They cannot be overcharged, which means that once they are 100% charged, they stop charging. They stop receiving power, which is bypassed directly to the laptop's power supply. Therefore, having the charger will not harm your battery or make much of a difference in overall battery life. However, there are other critical factors that can affect it.
One key thing to remember is that there are some good practices that extend the life of your laptop battery. Every battery has a certain number of charge cycles, so charging your battery repeatedly will eventually damage its lifespan.
However, the most critical factor that can affect the lifespan of a battery is overheating. While having your laptop plugged in all the time may not harm its battery, you should also be aware of the excessive heating caused by the laptop's hardware.
Therefore, if your laptop's CPU/HDD temperature is around 40ºC and you want to use laptop , then it is a good idea to remove the battery from the device.
What should we ultimately do to improve battery life?
Since not all laptops have removable batteries, there is a simple method that can help you extend your battery life in a different way. According to tests conducted by Battery University, a battery charged to 100 percent will only last 300-500 recharge cycles. On the other hand, if charged to 70-80%, it can last 1000-2000 recharge cycles.
Therefore:
Avoid completely discharging your laptop after charging. The best thing you can do is try to keep the battery level between 40% and 80%.
Make sure your laptop is not overheating and that the cooling fan is working properly.
Remember, your laptop battery can't be "overcharged" and damaged by overcharging. It's smart enough to bypass charging energy.
