Computer battery question

I’ve got a PC where the system clock seems to drift by up to ten minutes during the day. I’ve heard this can be because of a dying CMOS battery. Is that correct? If so, why is that? This PC is on basically all the time, running on AC power, so why does it need the CMOS battery to keep the correct time? Wouldn’t it need the CMOS battery only when it’s powered down?

Like all batteries, the CMOS battery will run down after a while. If you’ve had your computer for over four years, changing out the CMOS battery is not a bad thing. I changed mine when I started having problems related to lost configuration settings. Changed the battery and all is fine.

Yes, but if the PC is plugged in and on all the time, why does it need the CMOS battery to keep the correct time?

The clock drifting while powered on can be a software problem. Certain combinations of OS and applications can cause the soft clock to occasionally miss a tick and it adds up over time.

My downstairs server does this when I’m running certain heavy long term jobs.

For MS-Windows OSes, there are MS Knowledge Base articles about this but I have never found any to be helpful. Here’s a typical sample.

WHAT?
You have never had a power outage?
You are most fortunate among the unfortunate ones!
FYI the CMOS battery is to maintain the CMOS settings.
Live it up. Remove the CMOS battery and come back after you experience a power outage!

You see, they have these newfangled things called “uninterruptible power supplies”. They look like an overgrown power strip but have a big lead-acid battery in them, so that when\if the power supply gets cut off, the computer… keeps on working! The computer I’m typing this into right now has been on for over a year now (rebooted, sure; powered off, no)… so don’t be such a smart-ass…

As to the OP, almost ALL CMOS batteries are of the CR-2032 variety. You can buy them at Office Depot\Staples for around $1.99 or so. Certain brand names put their own “initials” in the partnumbers (Duracell’s version is DUR-2032, for example). Swapping it out takes around 2 minutes.

I’ve seen a dead battery make a PC clock drift, even the server in question had been powered on and tasking for 14 months.