A CMOS battery keeps your computer's internal clock and settings alive when the power is off

Your computer has a small battery inside called a CMOS battery (Complementary Metal-Oxide-Semiconductor battery). Its job is straightforward: it powers a tiny chip that stores your computer's date, time, and hardware settings even when you unplug the machine or the power goes out. Without it, your computer would forget these details every time you shut down.

The CMOS battery is not the same as your laptop's main battery or your desktop's power supply. It is a separate, coin-shaped cell—usually a CR2032, the same type you might find in a watch or calculator—mounted directly on the motherboard. It draws almost no power, which is why it lasts for years.

When your computer is off, the CMOS battery keeps the real-time clock ticking and preserves settings like boot order, hard drive detection, and system time. The moment you power on, your computer reads these stored settings and uses them to start up correctly. If the CMOS battery dies, your computer can still run, but it will lose track of the date and time, and sometimes it will fail to recognize connected hardware.

Key Takeaways

  • A CMOS battery is a small coin-cell battery on your motherboard that keeps your computer's clock and settings alive when powered off.
  • The most common CMOS battery is a CR2032 cell, which typically lasts three to ten years depending on how often your computer is powered down.
  • When a CMOS battery fails, your computer will show a wrong date and time after restart, and may display error messages about missing hardware or boot failures.
  • Replacing a CMOS battery is a straightforward task for desktop computers but may require professional help on laptops, depending on the model.

How the CMOS battery powers your computer's memory

The CMOS chip itself uses very little electricity—measured in microamps—so a small battery can power it for years. Think of it as a tiny backup generator for one specific job: keeping the clock running and the settings stored.

Your computer's BIOS (Basic Input/Output System) or UEFI firmware reads the CMOS data every time you start up. This data tells the computer what time it is, which hard drive to boot from, how much RAM is installed, and dozens of other hardware details. If the CMOS battery is dead, the BIOS cannot read this information, so it either uses default settings or displays an error message asking you to reset the date and time manually.

The CMOS battery does not power your computer while it is running. Your power supply or main battery does that. The CMOS battery only works when the computer is off or in sleep mode, maintaining the clock and settings in the background.

Signs that your CMOS battery is failing or dead

A dying CMOS battery usually shows clear warning signs. The most obvious is that your computer's date and time reset to a default value—often January 1, 2000, or the date the computer was manufactured—every time you restart. You will notice this when ready after powering on, before the operating system even loads.

You may also see error messages during startup, such as "CMOS checksum error" or "CMOS battery low." Some computers will refuse to boot until you enter the BIOS setup and manually set the date and time again. On laptops, you might notice that the computer no longer recognizes a hard drive or other internal hardware, even though nothing has been physically removed.

If your computer is several years old and you have never replaced the CMOS battery, it is likely nearing the end of its life. Most CMOS batteries last between three and ten years, depending on how often the computer is powered down and how much the battery is being drained by the motherboard.

How to replace a CMOS battery in a desktop computer

Replacing a CMOS battery in a desktop is straightforward if you are comfortable opening the case. First, shut down your computer completely and unplug the power cable. Wait a few seconds, then press the power button once to discharge any remaining electricity. This step is important for your safety and the safety of the motherboard.

Open the computer case by removing the side panel—usually held by two or three screws or thumb screws. Locate the CMOS battery on the motherboard. It is a round, silver coin-cell battery, typically about the size of a dime, sitting in a small plastic holder. Note which side is facing up (usually the positive side faces up), then gently press down on the clip holding the battery in place until the battery pops out.

Take the old battery to an electronics store or pharmacy to find the correct replacement—CR2032 is the standard, but check your motherboard manual to be sure. Insert the new battery with the same side facing up as the old one, and press down until the clip snaps into place. Close the case, plug in the power, and restart your computer. The BIOS should now show the correct date and time.

Replacing a CMOS battery in a laptop

Laptop CMOS batteries are harder to reach because they are soldered or glued to the motherboard, and the motherboard itself is buried under the keyboard, trackpad, and other components. On some newer laptops, the CMOS battery cannot be replaced at all without replacing the entire motherboard.

If your laptop is showing CMOS battery failure signs, check your laptop's service manual or contact the manufacturer to find out whether the battery is user-replaceable. Many laptops require disassembly by a technician, which can cost between $100 and $300 depending on the model. For older laptops where the CMOS battery is accessible, the process is similar to a desktop—power down, open the case, locate the battery, and swap it out—but you will need to remove more components to reach it.

If your laptop is still under warranty or you are not comfortable disassembling it, take it to a repair shop. A technician can replace the battery quickly and verify that the motherboard is otherwise healthy.

What happens if you ignore a dead CMOS battery

A dead CMOS battery will not prevent your computer from running, but it will cause problems that get worse over time. Your computer will lose the correct date and time every time you restart, which can break software that relies on accurate timestamps—including security certificates, file backups, and system logs. Some programs may refuse to run if the system date is too far in the past.

You may also see boot errors or hardware detection failures, especially if your BIOS settings have been reset to defaults. In rare cases, a dead CMOS battery can trigger a "no boot device found" error if the BIOS forgets which drive to boot from.

The longer you wait to replace the battery, the more frustrating these issues become. Replacing it is inexpensive—a CR2032 battery costs between $3 and $8—and takes less than ten minutes on a desktop. It is worth doing sooner rather than later.

Frequently Asked Questions

Can I use any CR2032 battery as a replacement?

Yes, a standard CR2032 battery works in most desktop computers and many laptops. However, check your motherboard manual or the battery holder itself to confirm the model number before buying. Some older or specialized computers use different battery types, and using the wrong one could damage the motherboard.

Will replacing the CMOS battery erase my files or passwords?

No. The CMOS battery only stores hardware settings and the system clock, not your files, passwords, or operating system data. Your hard drive and all its contents remain untouched. However, you may need to re-enter your BIOS password if you set one, because the BIOS settings are reset to defaults when the battery dies.

How often do I need to replace a CMOS battery?

Most CMOS batteries last three to ten years. If your computer is powered down frequently or left unplugged for long periods, the battery may last longer. If you use your computer constantly, it may drain faster. You will only need to replace it when it fails, which you will know because your date and time reset after every restart.

Is it safe to replace the CMOS battery myself?

Yes, on a desktop computer it is safe if you follow basic precautions: power down completely, unplug the machine, press the power button to discharge electricity, and avoid touching other components on the motherboard. On a laptop, the process is riskier because you have to disassemble more of the machine. If you are not confident, a technician can do it safely for a reasonable cost.

What if my computer still has problems after I replace the CMOS battery?

If the date and time now stay correct but you still see boot errors or hardware detection failures, the problem may be elsewhere on the motherboard. A technician can run diagnostics to check for other hardware issues. If the date and time still reset after replacement, you may have installed the battery incorrectly or purchased the wrong battery type—remove it and check the orientation and model number.