The CMOS battery keeps your computer's internal clock and settings alive when the power is off
The CMOS battery is a small coin-shaped battery inside your desktop computer or laptop that powers a chip called the CMOS (Complementary Metal-Oxide-Semiconductor). This chip stores your computer's basic settings: the date and time, boot order, hard drive configuration, and password settings. When you shut down your computer, the CMOS battery takes over so these settings don't vanish the moment the power cord is unplugged.
Without this battery, your computer would forget everything it knows about itself every time you turned it off. You'd see a blank or incorrect date when you restarted, lose custom boot settings, and potentially have trouble starting up at all. The battery is not powering your monitor, your fans, or anything else—just that one small chip that remembers who you are.
Key Takeaways
- The CMOS battery powers only the settings chip, not the whole computer, and lasts three to ten years depending on how often your computer runs.
- A dead CMOS battery shows itself through a wrong system date, lost BIOS settings, or a beeping sound at startup.
- Replacing the battery is a straightforward task on most desktops—you pop open the case, remove the old coin cell, and snap in a new CR2032 battery.
- Laptops are harder to open and may require professional help, though some models have the battery accessible without full disassembly.
How long a CMOS battery lasts
A CMOS battery typically lasts between three and ten years. The exact lifespan depends on how often your computer actually runs. If your desktop sits powered on most of the time, the battery drains slowly. If you shut down every night, the battery does less work and may last longer. Laptops that spend time in sleep mode or powered off drain the battery faster than always-on machines.
You don't need to replace it on a schedule—you replace it when it fails. A failing battery shows clear signs: your system date resets to 2000 or 2005 every time you restart, BIOS settings vanish, or you hear a single beep at startup (which is the computer's way of saying the CMOS checksum failed). Once you see these signs, replacement is straightforward.
What battery type to buy
Almost all desktop computers use a CR2032 battery, a coin-cell battery about the size of a dime. You can find them at any pharmacy, grocery store, electronics retailer, or online for a few dollars. Some older computers or specialty boards may use a CR2025 or CR2016, but CR2032 is the standard. Check your motherboard or your computer's manual to be sure, but CR2032 is the safe bet for most machines built in the last fifteen years.
Buy a name-brand battery if you can—Panasonic, Energizer, or Duracell—rather than an off-brand. The cost difference is small, and a reliable battery means you won't be opening the case again in six months. Avoid batteries that have been sitting on a shelf for years; buy from a store with regular turnover.
Replacing the CMOS battery on a desktop
On a desktop, the battery sits on the motherboard and is held in place by a small metal clip or socket. To replace it, shut down the computer completely, unplug the power cable, and wait a few seconds. Open the case—usually by removing two screws on the back panel. Ground yourself by touching a metal part of the case to discharge any static electricity that could damage the motherboard.
Locate the battery on the motherboard. It looks like a large silver coin. Gently pry it out using the clip or socket—it should pop out easily. Note which side faces up (usually the positive side is marked with a + symbol). Insert the new battery the same way, positive side up, and press down until the clip holds it in place. Close the case, plug in the power cable, and restart. Your computer should now remember the correct date and time.
The whole job takes five to ten minutes. If you're uncomfortable opening the case or if your computer is still under warranty, a computer repair shop can do it for you in under an hour, though you'll pay a service fee on top of the battery cost.
Replacing the CMOS battery on a laptop
Laptop replacement is harder because the battery is buried under the keyboard or other components. Some newer laptops have it accessible without full disassembly, but many require removing the motherboard or the entire bottom panel. If your laptop manual shows the battery location and says it's accessible, you can follow the same steps as a desktop—shut down, unplug, ground yourself, remove the old battery, and insert the new one.
If the manual doesn't show an straightforward path, or if you're not confident taking apart a laptop, a repair technician is the safer choice. Laptops have more fragile connectors and tighter spaces than desktops, and a slip can cause damage that costs far more than the repair fee. Most laptop repair shops charge between thirty and eighty dollars for the job, depending on the model.
Signs your CMOS battery is failing
The most obvious sign is a system date that resets to a default year (often 2000, 2005, or 2010) every time you restart. You set the date correctly, shut down, and when you turn the computer back on, it's wrong again. This happens because the CMOS chip can no longer hold the date without power.
A second sign is BIOS settings that vanish. If you've customized your boot order, disabled certain hardware, or set a password, and those changes disappear after a restart, the CMOS battery is likely dead. Some computers also emit a single beep at startup when the CMOS battery fails—this is the POST (Power-On Self-Test) alerting you to a problem. If you hear a beep and see a date error, the battery is almost certainly the culprit.
What happens if you ignore a dead CMOS battery
Your computer will still work, but with annoyances. The date will be wrong, which can confuse file timestamps and some programs that rely on accurate time. If you've set a BIOS password, it may be bypassed (which is a security issue if others have access to your machine). Some computers won't boot at all if the CMOS battery is dead and the BIOS is set to strict checking, though this is rare in modern machines.
The battery itself is not dangerous—it's not going to damage the computer or cause a fire. It's straightforward a power source for one small chip. Replacing it is cheap and quick, so there's no reason to live with the inconvenience. If you're not comfortable doing it yourself, any computer repair shop can handle it in minutes.
Frequently Asked Questions
Can I replace the CMOS battery while the computer is plugged in?
No. Always unplug the power cable first. Even with the computer off, the motherboard can have residual power. Unplugging removes that risk and protects both you and the motherboard from accidental damage.
Will replacing the CMOS battery erase my files or passwords?
No. Your files are stored on the hard drive or SSD, which are separate from the CMOS chip. The battery only powers the settings chip, not your storage. However, if you've set a BIOS password, it may be reset or bypassed when the battery is replaced, depending on your motherboard design.
What if I put the battery in backwards?
The battery won't make contact and the computer won't recognize it. You'll see the same date-reset error as before. straightforward remove it and flip it over so the positive side (marked with a +) faces up. No damage occurs from inserting it backwards.
Do I need to reset anything in BIOS after replacing the battery?
Usually no. Once the new battery is in place, the CMOS chip will hold your settings again. However, if you notice that custom BIOS settings have been lost, you may need to re-enter them. Check your computer manual for how to access BIOS setup—typically by pressing Delete, F2, or F12 during startup.
Is the CMOS battery the same as the battery in my laptop?
No. The CMOS battery is a small coin cell that powers only the settings chip. Your laptop's main battery (the one that powers the whole machine) is much larger and is a separate component. The CMOS battery is a backup for when the main battery is dead or the laptop is unplugged.