The classic sign of a dying CMOS battery is a PC that shows the wrong date and time, or has lost its BIOS settings, every time it is switched on after being fully unplugged. The fix is replacing the coin cell on the motherboard, which on most desktops is a 3 V CR2032 that takes a few minutes to swap.
Quick test: shut down, unplug the power cable for a few minutes, start the PC and enter the BIOS setup. If the clock there has reset or the settings are back to defaults, the battery is the likely cause.
What the CMOS battery does
The motherboard has a real-time clock (RTC) and a small store of BIOS/UEFI settings. While the PC is plugged in, even switched off, they run on standby power from the power supply. The coin cell takes over only when there is no power at all: the cable unplugged, a power strip switched off, or a power cut. When the cell is flat, the clock stops and the settings fall back to defaults the moment the power goes.
CMOS battery symptoms
Dell lists the symptoms of CMOS battery failure as:
- An incorrect or slow system date and time in the BIOS.
- Loss of BIOS settings when the computer is powered off.
- A "time-of-day clock stopped" error message.
- A prompt to set the time and date when you power on.
Other messages depend on the firmware. Lenovo's servers, for example, log W.305000A : An invalid date and time have been detected. RTC Date and Time Incorrect.
The knock-on effects are what people usually notice first:
- Certificate errors in the browser on every HTTPS site, because a date far in the past makes valid certificates look as if they are not valid yet.
- Settings you changed in the BIOS revert: a memory profile, fan curves, a disabled onboard device, the boot order. If you had enabled XMP, the RAM drops back to its default speed.
- The PC won't boot from the right drive, or Windows won't load, because a setting like the boot mode reverted. Dell notes that lost BIOS settings "may prevent the computer from loading the operating system".
Is it the battery or Windows time sync?
A clock that is wrong only right after the PC has been without power points to the battery. A clock that drifts or jumps while the PC is running and online points to time synchronisation instead. On Windows, check what the clock is syncing from (this command does not need admin rights):
w32tm /query /status
Example output from a PC that has not synchronised:
Leap Indicator: 3(not synchronized)
Stratum: 0 (unspecified)
Precision: -23 (119.209ns per tick)
Root Delay: 0.0000000s
Root Dispersion: 0.0000000s
ReferenceId: 0x00000000 (unspecified)
Last Successful Sync Time: unspecified
Source: Local CMOS Clock
Poll Interval: 10 (1024s)
Source: Local CMOS Clock with Last Successful Sync Time: unspecified means Windows is relying on the hardware clock alone. Any error in the RTC, including one left by a flat battery, stays until a sync succeeds. In Settings, under Time & language, Date & time, make sure "Set time automatically" is on and click "Sync now". From an administrator Command Prompt, w32tm /resync does the same; Microsoft documents it as telling the computer to "resynchronize its clock as soon as possible".
If time sync works but the clock is wrong again after every power cut or unplugging, it is the battery.
How to replace a CMOS battery in a desktop
This follows Dell's desktop procedure, which matches most desktop boards. Check your own motherboard or PC manual for the battery's location; finding your motherboard model helps you get the right one.
- Note your BIOS settings first if you changed any (photos of each screen work). Removing the battery erases them.
- Shut down and unplug the power cable. Dell then says to press and hold the power button for 10 to 15 seconds to drain residual power.
- Ground yourself with an anti-static wrist strap or by touching unpainted metal on the case.
- Find the coin cell on the motherboard, using the manual's board diagram. It may be hidden under a graphics card.
- Release it. Most holders have a small metal latch; push it aside and the battery pops up. Dell says to use a plastic scribe and "do not use any kind of metal object to pry the battery", and to support the holder so it doesn't break.
- Insert the new battery the same way round. On a CR2032 "the flat side of the battery is always positive (+)", and it normally faces up. Dell says to use a brand-new battery, never a used one.
- Close the case, reconnect power and start the PC. You will be prompted to set the date and time; enter the BIOS, set them, restore any settings you noted, and save.
Dispose of the old cell as your local authority directs for batteries.
Laptops are different
Many laptops have a coin cell too, but it is often under other parts, on a short cable, or a different size. Dell's laptop article doesn't give a universal procedure; it sends you to your model's manual (search it for "CMOS battery" or "coin-cell battery") and repeats the same cautions: use a plastic pry tool, note the orientation, replace with the same battery type. If the manual shows no separately replaceable cell, a repair service is the safer route.
If the problem continues after a new battery
- Check the new cell is seated and the right way up, and that it is actually new; old stock can be partly drained.
- Confirm the time zone in Windows. A clock that is wrong by exactly a whole number of hours is a time-zone setting, not a battery.
- Update the BIOS/UEFI. Lenovo's guidance for its RTC error is: reset the date and time; if it comes back after a reset, replace the battery; if it continues, check for a firmware update or service bulletin.
- If settings still won't stick with a new battery and current firmware, the fault is likely on the board (the battery holder or the RTC circuit), which is a repair job.
Frequently asked questions
- How long does a CMOS battery last?
- Dell puts it at usually around 2 to 3 years, depending on usage and environment. Treat that as a rough guide: the battery only matters when the PC has no mains power, so the first sign of a weak cell often appears after a long period unplugged.
- Can a dead CMOS battery stop a PC from booting?
- It can. Dell notes that losing BIOS settings may prevent the computer from loading the operating system, for example when the boot mode, boot order or storage controller setting reverts to a default that doesn't match how Windows was installed. Re-enter the correct settings in the BIOS after replacing the battery.
- Will replacing the CMOS battery delete my files?
- No. The battery only keeps the real-time clock and the BIOS settings. Your files are on the SSD or hard drive, which doesn't need the battery. Replacing it resets the clock and BIOS settings, nothing else.
- What battery does a PC motherboard use?
- Most desktop motherboards use a 3 V CR2032 lithium coin cell, which Dell confirms for its desktops. Check the markings on the old battery before buying. Some laptops use a different cell or one on a short cable, so check the model's service manual.