When you buy through our links, we may earn a commission. Learn more ›

How to Replace a Laptop Battery Safely

Short answer: First, confirm the battery is the problem by using the system's battery report. Then find the exact model and battery part number on the manufacturer's support page. If the service manual says the battery is user replaceable, back up your work, shut down, unplug the charger, and follow the manual. If the battery is sealed inside the chassis, do not pry it out; use the maker's authorized service path.

Confirm the battery is the problem

A battery that no longer holds charge can masquerade as a slow or unstable laptop. Before you buy a replacement, check the system's battery report and run the manufacturer's diagnostics. The battery health guide explains the reports you can generate in Windows and macOS.

Also compare the laptop against the official hardware requirements of the tools you run. Visual Studio Code's requirements page, for example, lists supported platforms and minimum hardware. If the laptop still meets those requirements and the battery report shows significant wear, a replacement is the likely fix.

If you are not sure whether your laptop can be opened at all, the upgradability guide explains the differences between serviceable and sealed designs.

  • Run the battery report before ordering a replacement.
  • Check the laptop's power settings for anything that might cause shutdowns.
  • Use the maker's diagnostic tool if one is available.
  • Compare the results with the requirements of the tools you use.

Find the exact battery and service manual

Search the manufacturer's support site for your laptop's model number, not just the brand. The service manual will tell you whether the battery is user replaceable and which part number to order.

Some manufacturers list the battery in the technical specifications. For instance, Apple's MacBook Air technical specifications page identifies a built-in 53.8-watt-hour lithium-polymer battery. Use that kind of official specification to match the battery type.

Knowing the processor generation can help you confirm the exact laptop model when the support page asks for it. Intel's naming guide explains suffixes such as H and U that appear in mobile processor names.

A service manual also tells you whether the battery is behind a removable cover or under the main panel, and it may include warnings about connector placement and screw torque.

  • Record the laptop model number and serial number.
  • Find the battery part number in the service manual or on the battery label if accessible.
  • Check the manufacturer's support page for a service video or PDF.
  • Never use a battery that is not listed as compatible for the exact model.

Prepare the workspace and back up

Back up your work before opening the laptop. Use the operating system's backup tools or an external drive, and confirm the backup is readable.

Shut down the laptop completely and unplug the charger and all cables. Work on a clean, dry, static-free surface. If the service manual asks you to remove the bottom cover, follow its order for removing screws.

If you are replacing a battery in a Mac laptop that you use for development, check that the macOS version on the laptop still meets the requirements for your build tools. Apple's Xcode system requirements page lists the supported macOS versions for each Xcode release, so you can decide whether a battery swap is worthwhile before investing time.

See the battery life guide for habits that affect battery health before and after replacement.

Remove the old battery and install the replacement

Open the laptop according to the service manual. Some batteries sit under a dedicated cover; others are under the main bottom panel or glued in place. Do not use excessive force. If the manual tells you to disconnect the battery connector first, do that before touching other components.

If the battery uses screws, keep them separated by location. If it uses adhesive strips, pull them in the direction described in the manual. Avoid bending or puncturing the cell.

Install the new battery in reverse order. Tighten screws to the manual's specification, but if the manual does not list a torque, use gentle pressure and stop when the screw is snug.

If the battery is sealed inside the chassis and the manual does not describe replacement, stop. Contact the manufacturer or an authorized service provider. Opening a sealed laptop without guidance can damage the case or the battery.

Before you open anything, check the warranty guide so you know what might affect coverage.

Dispose of the old battery and verify the new one

Do not throw a lithium-polymer battery in household trash. Follow local disposal rules or the manufacturer's take-back program.

After installation, plug in the charger and power on the laptop. Check the battery report again. The battery care guide has tips for keeping the new battery healthy.

If the laptop does not recognize the battery or the operating system reports a service warning, recheck the battery part number and reseat the connector. If a warning remains, use the manufacturer's diagnostics.

Signs and actions after a battery replacement
SymptomAction
Battery percentage drops quicklyRun the battery report and compare the full charge capacity to the design capacity.
Laptop shuts down when unpluggedReplace the battery if the report shows significant wear and the manual confirms the battery is user replaceable.
Laptop runs only when plugged inUse the service manual to find the compatible battery and check the connector before installing the new part.

What to pick for your work

If youPickBuying guide
You want a laptop you can repair yourselfLook for a model with a removable bottom panel and a published service manual.Best Laptop for Programming in 2026: 14 Picks by Specs
You carry your laptop to class and need something lightA lightweight ultraportable with a sealed battery and warranty service.Best Lightweight Laptops for Programming in 2026
You run Docker and virtual machines and cannot afford downtimeA higher-RAM model with a reliable service plan.Best Laptops for Docker and Virtual Machines in 2026: 14 Picks
You build iOS or macOS appsA MacBook from the current lineup with Apple service support.Best Laptops for iOS and macOS Development in 2026: 12 Apple Picks
You are a student who wants a dependable budget machineA model from a brand with clear support documentation.Best Laptops for Computer Science Students in 2026

Questions

How do I know if my laptop battery needs to be replaced?

Run the operating system's battery report and check the full charge capacity compared to the design capacity. If the report shows significant wear and the laptop shuts down when unplugged, a replacement may solve the problem.

Can I replace a battery that is built into the laptop?

Only if the manufacturer's service manual says so. Many thin laptops use sealed batteries that require authorized service. Attempting to pry one open can damage the laptop and the battery.

What happens if I use a non-genuine battery?

A battery that is not listed for your exact model may not fit, may charge incorrectly, or may not communicate with the laptop's battery management system. Use the part number from the service manual.

Do I need to unplug the laptop before replacing the battery?

Yes. Shut down the laptop, unplug the charger, and remove any cables. Follow the service manual's order, especially if it says to disconnect the battery connector before other work.

How do I find the right replacement battery?

Search the manufacturer's support site for your laptop model and look for the service manual or spare parts page. The manual lists the compatible part number.

Should I replace the battery myself or use authorized service?

Use the service manual as the deciding factor. If the manual has a clear user-replaceable procedure, you can do it carefully. If the battery is glued or the manual warns against opening, use an authorized service provider.

Why does my laptop not turn on after a battery replacement?

Check that the battery connector is seated and that the battery is the correct part. Plug in the charger and try the manufacturer's hardware diagnostic. If it still will not turn on, contact support.

Recent updates

  • : First published.

Sources

Related buying guides