What the motherboard battery does and why it fails
Your motherboard contains a small coin-shaped battery called a CMOS battery (Complementary Metal-Oxide-Semiconductor). This battery powers a tiny chip that keeps your computer's date, time, and basic hardware settings intact even when the machine is unplugged and powered off. Without it, your computer forgets these settings every time you shut down.
The battery typically lasts three to ten years depending on how often your computer runs and how warm it gets inside the case. You'll know it's failing when your computer repeatedly loses the correct date and time, or when it forgets which hard drives are installed. Some computers also show a CMOS checksum error message on startup.
Replacing the battery is one of the simplest motherboard repairs you can do yourself. The whole job takes about fifteen minutes and requires only a Phillips screwdriver and a steady hand. You do not need special tools or technical knowledge beyond basic safety precautions.
Key Takeaways
- The CMOS battery is a coin-shaped cell on your motherboard that keeps your computer's date and time settings when powered off.
- Before you start, unplug the computer completely and press the power button several times to discharge any remaining electricity.
- The battery clips into a socket on the motherboard and pops out with gentle upward pressure from a plastic tool or fingernail.
- Write down your current BIOS settings before removing the old battery, because your computer will reset them to factory defaults.
- The replacement battery (usually CR2032) costs two to five dollars and is available at any pharmacy, electronics store, or online retailer.
Gather your materials and prepare your workspace
You will need a Phillips head screwdriver (size #2 is standard), the replacement CMOS battery, and a static-safe workspace. The replacement battery is almost always a CR2032 — a 3-volt lithium coin cell about the size of a dime. You can buy one at a pharmacy, grocery store, electronics retailer, or online for two to five dollars. Buy it before you open the computer so you are not left waiting.
Set up your workspace on a non-carpeted surface if possible. A wooden table or tile floor is better than carpet, which can build up static electricity. If you must work on carpet, touch a metal part of the case occasionally to discharge static. Lay out your screwdriver, the new battery, and a small container for screws so you do not lose them.
Take a photo of your motherboard with your phone before you start. This gives you a reference image if you forget where a cable plugged in or which way a component faced. It takes thirty seconds and saves frustration later.
Power down and open the computer case safely
Shut down your computer normally through the operating system. Do not force it off by holding the power button. Once the screen goes dark, unplug the power cable from the back of the case — do not just turn off the power strip. This removes all electricity from the motherboard.
Press the power button on the front of the case five or six times. You will not hear the fan spin or see any lights, but this step discharges any remaining electrical charge stored in the motherboard's capacitors. It takes only a few seconds and is the most important safety step.
Remove the side panel of your case. Most cases have two or three thumbscrews on the back that you can turn by hand, or Phillips screws that take ten seconds with your screwdriver. Set the panel aside where it will not fall or get stepped on. You now have clear access to the motherboard.
Locate and remove the old CMOS battery
Look at your motherboard and find the CMOS battery. It is a round, silver coin about the size of a dime, sitting in a small circular socket. On most motherboards it is located near the edge of the board, often close to the RAM slots or the CPU. If you cannot spot it when ready, check your motherboard's manual or search online for "[your motherboard model] CMOS battery location" — manufacturers place it in different spots.
Once you have found it, look at how it sits in the socket. The battery has a small metal clip on one side of the socket that holds it in place. To remove the battery, gently push the clip away from the battery with your fingernail, a plastic spoon, or a plastic pry tool. Do not use a metal screwdriver, which can damage the socket or short-circuit the board. The battery will pop up slightly as the clip releases.
Lift the battery straight up and out of the socket with your fingers. Set it aside — you do not need to keep it, but some people recycle old batteries at electronics stores or pharmacies. Do not touch the metal contacts on the bottom of the new battery, and do not let the battery touch any metal parts of the case or motherboard before it is seated in the socket.
Insert the new battery and reassemble
Take the new CR2032 battery and orient it so the positive side (marked with a + or the manufacturer's logo) faces up, toward the top of the motherboard. This is the standard orientation for CMOS batteries. Gently place the battery into the empty socket and press down until you hear or feel a small click. The metal clip should snap back over the edge of the battery and hold it firmly in place.
Do not force the battery down. If it does not click into place with gentle pressure, lift it out and check that you have the correct orientation and that the socket is clean. A speck of dust or a bent clip can prevent the battery from seating properly. Once it clicks, the battery should sit flush with the socket and not wiggle or move.
Replace the side panel of your case and tighten the screws or thumbscrews. Plug the power cable back into the wall outlet and the back of the case. You do not need to press the power button yet — just plug it in and wait a few seconds for the motherboard to power up its CMOS chip.
Power on and reset your BIOS settings
Press the power button to start your computer. It will boot normally, but you will notice that the date and time have reset to a factory default (often January 1, 2000, or the date the motherboard was manufactured). This is expected and means the battery replacement worked.
Enter the BIOS setup by pressing the key shown on the startup screen — this is usually Delete, F2, F10, or F12 depending on your motherboard manufacturer. The screen will tell you which key to press. Once you are in the BIOS, navigate to the date and time settings and set them to the correct values. If you took notes on your settings before you started, now is the time to re-enter them.
Save your changes and exit the BIOS. Your computer will restart and boot into your operating system. The date and time should now be correct, and they should stay correct even after you shut down and unplug the computer. If the date and time reset again on the next startup, the new battery may not be seated properly — power down, unplug, and check that it clicked fully into the socket.
Troubleshooting if the battery does not hold a charge
If you replaced the battery and the date and time still reset every time you power off, the battery may not be making good contact with the socket. Power down, unplug the computer, and press the power button to discharge it. Remove the battery again and inspect the socket for bent metal clips or debris. Clean the socket gently with a dry cotton swab if you see dust.
Check that the replacement battery is actually a CR2032 and not a different size. Some older motherboards use CR2025 or other variants. If you bought the wrong size, it will not sit securely in the socket. Verify the part number on the battery packaging or ask the store where you bought it.
If the socket itself is damaged or the clip is bent beyond repair, the motherboard may need professional service. This is rare, but if the battery still does not hold after you have cleaned the socket and confirmed the correct battery type, contact a computer repair shop or the motherboard manufacturer for guidance.
Frequently Asked Questions
Can I damage the motherboard by replacing the CMOS battery myself?
The risk is very low if you follow the safety steps: unplug the computer, press the power button to discharge it, and avoid touching metal parts of the case while handling the battery. The biggest hazard is static electricity, which you prevent by working on a non-carpeted surface and touching the case occasionally. Millions of people replace this battery at home without damage.
What if I put the battery in upside down?
The battery will not click into the socket if it is upside down, so you will notice when ready. The positive side (marked with a + or a logo) should face up toward the top of the motherboard. If it does not click, lift it out, flip it over, and try again. No harm is done if you catch it before forcing it in.
Do I need to replace the battery if my computer keeps the correct time?
No. If your computer's date and time are correct and stay correct after you shut down and unplug it, the CMOS battery is working fine. You only need to replace it when the computer repeatedly forgets the date and time, or when you see a CMOS error message on startup.
How long does a new CMOS battery last?
A new CR2032 battery typically lasts three to ten years, depending on how often your computer runs and how warm the inside of the case gets. Computers that run constantly or sit in hot environments may need a replacement sooner. When the battery fails, you will see the same symptoms as before: the date and time reset after shutdown.
Can I buy a CMOS battery at any store?
Yes. CR2032 batteries are standard coin cells sold at pharmacies, grocery stores, electronics retailers, and online. They cost two to five dollars. If a store does not have them in stock, any pharmacy can usually order one for you, or you can buy one online and have it arrive within a few days.