What the CMOS battery does and why it fails
The CMOS battery is a small coin-shaped battery inside your computer that keeps your system clock running and stores basic hardware settings even when the power is off. When it dies, your computer will lose the time, forget which hard drives are installed, or fail to boot until you reset it. The battery typically lasts three to ten years depending on how often your computer runs.
You'll know it's failing when your system clock resets to an old date every time you restart, or when you see error messages about CMOS checksum failures or invalid configuration. Replacing it is one of the simplest repairs you can do yourself—it takes about ten minutes and costs between five and fifteen dollars for the battery itself.
Key Takeaways
- The CMOS battery is a small coin cell (usually CR2032) located on the motherboard inside your computer case.
- You must shut down completely, unplug the power cable, and wait a few seconds before opening the case to avoid electrical shock.
- The battery sits in a small plastic holder that you can pop out by hand or with gentle pressure from a plastic tool.
- After installing the new battery, your computer will ask you to reset the date and time on the first boot.
- If the problem persists after replacement, the motherboard itself may need professional diagnosis.
Gather your tools and materials
You need very little to replace a CMOS battery. Have a replacement battery on hand before you start—the most common type is a CR2032, but check your motherboard manual or take a photo of the old battery to confirm the model. You can find CR2032 batteries at any pharmacy, electronics store, or online retailer for a few dollars.
You'll also want a Phillips head screwdriver to open the case, a non-conductive mat or wooden surface to work on (to avoid static electricity damage), and optionally an anti-static wrist strap. If you have one, wear it clipped to a metal part of the case. A flashlight or phone light helps you see inside the case, especially if your workspace is dim.
Power down and open the case safely
Shut down your computer completely through the operating system—do not force it off. Once it has stopped, unplug the power cable from the back of the case. Wait at least ten seconds. This step is critical: even with the power off, the motherboard holds a small electrical charge that can damage components or harm you if you touch the wrong part.
Lay the case on its side on your work surface. Most desktop cases have two side panels held by thumbscrews or Phillips screws. Remove the screws and slide or lift off the panel that gives you the clearest view of the motherboard. You do not need to remove the entire case or disconnect any cables—just enough access to see the battery.
Locate and remove the old battery
Look for a small circular battery holder on the motherboard, usually silver or black plastic. It will be roughly the size of a dime and mounted flat against the board. The battery sits in a spring-loaded socket, so you do not need to unsolder or disconnect anything.
To remove it, press down gently on the edge of the battery with your finger or a plastic tool (a credit card or plastic spoon works). The battery will pop out toward you. If it does not move easily, do not force it—check that you are pressing on the edge of the battery itself, not the holder. Once it comes free, set it aside.
Install the new battery and reassemble
Take your new CR2032 battery and note which side faces up—the flat side with the number stamped on it should face toward you (the positive side). Slide the new battery into the holder at a slight angle, then press down gently until it clicks into place. You should hear or feel a small snap as the spring contacts engage.
Close the case panel and replace the screws. Plug the power cable back in and power on the computer. You will likely see a message asking you to enter the BIOS setup or reset the date and time. Follow the on-screen prompts to set the correct date and time, then save and exit. Your computer should now hold the correct time after restart.
What to do if the problem persists
If your computer still loses the time or shows CMOS errors after you install a new battery, the problem may not be the battery itself. The motherboard socket could be damaged, or the motherboard may have a deeper fault. In this case, stop and contact a repair technician or your computer manufacturer—further troubleshooting requires specialized equipment and knowledge.
If you are uncomfortable opening your case or unsure which battery to buy, a local computer repair shop can replace the CMOS battery for you in under an hour. The labor cost is usually modest, and the technician can also confirm whether the motherboard is otherwise healthy.
Frequently Asked Questions
Can I damage the motherboard by replacing the CMOS battery myself?
The risk is very low if you follow the steps: power down, unplug, wait, and touch only the battery and holder. The main hazard is static electricity, which you prevent by working on a non-conductive surface and wearing an anti-static strap if you have one. Avoid touching other components on the motherboard.
What if I install the battery backwards?
The battery holder is designed to accept the battery in only one orientation, so it will not fit if you try to insert it backwards. If it does not slide in smoothly, flip it over and try again. Do not force it.
How do I know which battery model my computer needs?
CR2032 is the standard for most desktop and laptop motherboards made in the last fifteen years. Check your motherboard manual if you have it, or take a photo of the old battery before you remove it and show it to a store clerk. The model number is printed on the battery itself.
Will replacing the CMOS battery erase my files or passwords?
No. The CMOS battery only stores the system clock and basic hardware settings. Your files, operating system, and saved passwords remain on your hard drive or SSD and are not affected by battery replacement.
How often do I need to replace the CMOS battery?
Most CMOS batteries last between three and ten years. You will only need to replace it when you notice the clock resetting or CMOS error messages appearing. There is no routine replacement schedule—you replace it when it fails.