A CMOS battery is the small lithium coin cell, usually a CR2032, mounted on a motherboard to power the real-time clock (RTC) and the battery-backed memory that stores firmware settings whenever the computer has no external power. In the field of motherboards and wider computer hardware, it is one of the few components designed to work while the system is completely off, which is why its failure shows up as a wrong clock or lost settings rather than as a crash.
The name is historical. Early PCs stored setup data in a separate CMOS RAM chip that lost its contents without power. Modern boards integrate that memory and the clock into the chipset or the Platform Controller Hub, yet the battery that keeps them alive is still called the CMOS battery.
How the CMOS battery keeps the clock and settings alive
The CMOS battery supplies a standby power rail to a tiny always-on domain of the motherboard, often labeled VBAT or the RTC well. That domain contains a 32.768 kHz crystal oscillator, the counting logic of the real-time clock and a small block of battery-backed SRAM, historically 64 to 256 bytes, that holds the date, time and selected configuration values.
Power switching is automatic. When the power supply is connected and switched on at the wall, the board feeds the RTC domain from the 3.3 V standby rail of the power supply, and the battery sits almost idle. When the computer is unplugged or the power supply switch is off, a diode or switching circuit hands the load to the coin cell. The current draw in this state is tiny, typically a few microamperes, so a single cell can last for years.
The following table lists the main elements of the battery-backed domain and their roles.
| Component | Function | Effect of battery failure |
|---|---|---|
| Real-time clock | Counts seconds, minutes, days and years | Clock resets to a default date |
| 32.768 kHz crystal | Provides the timing reference | Clock stops or drifts |
| Battery-backed SRAM | Stores time and some setup values | Settings revert to defaults |
| Intrusion and status bits | Record chassis opening or wake events | Flags are cleared or unreliable |
Battery types, voltage and service life
Almost every desktop motherboard uses a CR2032 lithium manganese dioxide cell, which is 20 mm in diameter, 3.2 mm thick and rated at a nominal 3 V with a capacity of roughly 220 to 240 mAh. Laptops and small form factor systems often use the same chemistry in a different package, such as a cell wrapped in shrink tubing with a two-pin connector.
Service life depends mainly on how long the system stays unplugged. A desktop that is always connected to mains power draws on the battery only during outages and moves, so the cell commonly lasts five to ten years or more. A machine stored without power for long periods drains the cell much faster. Self-discharge of lithium coin cells is low, about 1 percent per year, so shelf age matters less than load time.
The table compares the battery formats found in practice.
| Format | Typical use | Replacement method |
|---|---|---|
| CR2032 in socket | ATX, Micro-ATX and Mini-ITX desktop boards | Release clip and swap the cell |
| CR2032 with leads | Laptops and compact PCs | Unplug connector, fit new pack |
| CR2025 or CR2016 | Thin boards and embedded devices | Swap cell of matching size |
| Rechargeable ML-series cell | Some laptops and industrial boards | Replace with the same rechargeable type |
| Soldered cell or supercapacitor | Older or specialized hardware | Soldering or board service |
A crucial warning applies to the last two rows: a rechargeable cell must never be replaced with a primary CR-type cell, because the board charging circuit can force current into a non-rechargeable cell and cause leakage or swelling.
Symptoms of a failing CMOS battery
A weak CMOS battery announces itself through time and configuration loss after the system has been unplugged, not during normal operation. A healthy cell measures about 3.0 to 3.3 V; below roughly 2.5 V the RTC may stop keeping time, and many boards issue a firmware warning near that level.
| Symptom | Likely cause | Recommended action |
|---|---|---|
| Date resets to the firmware build year | RTC lost power while unplugged | Measure and replace the cell |
| Firmware settings revert to defaults | Battery-backed values were cleared | Replace the cell, then reconfigure |
| CMOS checksum error at startup | Stored data corrupted by low voltage | Replace the cell and save settings |
| Certificate and HTTPS errors in the browser | System clock far from the real date | Fix the battery, sync time |
| No symptom while plugged in | Standby rail is powering the RTC | Test after a full power disconnect |
Wrong time has real consequences beyond inconvenience. Kerberos authentication, TLS certificate validation and file timestamps all rely on a correct clock, so a dead cell can break domain logins or secure websites until the operating system synchronizes time over the network.
CMOS battery, clear CMOS and firmware storage compared
The CMOS battery is often confused with the firmware flash chip and with the clear CMOS procedure, but each plays a separate role. On modern UEFI boards, most setup options are saved in SPI flash memory, which is non-volatile and needs no battery; the RTC domain may hold only the clock and a small subset of values.
| Element | Needs battery power | What it holds or does |
|---|---|---|
| CMOS battery | It is the power source | Keeps the RTC and backed SRAM alive |
| RTC SRAM | Yes | Time, date and some legacy settings |
| SPI flash (UEFI) | No | Firmware code and most saved settings |
| Clear CMOS jumper or button | No | Resets settings to factory defaults |
| BIOS flashback button | No | Rewrites firmware from a USB drive |
Because settings may live in flash, removing the battery does not always reset a modern board. The reliable way to restore defaults is the clear CMOS jumper, a dedicated button, or the load defaults option in the firmware menu.
Replacing the battery safely
Replacement is simple on most desktops but should follow a controlled procedure to protect the board and preserve configuration.
- Record important firmware settings, such as XMP memory profiles, boot order and fan curves.
- Shut down, switch off the power supply and disconnect the mains cable.
- Ground yourself to limit electrostatic discharge before touching the board.
- Press the retaining clip and lift the old cell out without prying against nearby traces.
- Insert a fresh cell of the same type with the positive side up, then reconnect power.
- Enter firmware setup, set the date and time, restore settings and save.
On boards where the socket sits under a graphics card, the card usually has to be removed first. Laptops vary widely, and some require partial disassembly, so the service manual for the specific model is the safest guide.
Limitations and common misconceptions
- A dead CMOS battery rarely prevents booting on its own; most systems start with default settings and a wrong clock.
- Some boards with encrypted or password-protected firmware treat a reset as a security event, so expect prompts after replacement.
- Replacing the cell does not fix clock drift caused by a faulty crystal or by operating system time settings.
- Cheap or very old cells can arrive partially discharged; measuring voltage before installation avoids repeat work.
- Leaking coin cells are uncommon, but long-dead batteries in stored machines can corrode the socket.
In everyday language
Inside every desktop computer sits a battery about the size of a large coin. Its only job is to keep a tiny clock ticking and to remember a few settings while the computer is unplugged, much like the small battery in a car radio that keeps the station presets.
When this battery runs flat, the computer forgets the date and some of its settings each time it loses power. Swapping in a new coin cell, which costs very little, usually solves the problem in a few minutes.
Seen in the real world
An office IT technician receives a complaint about an eight-year-old desktop that shows January 1 of its firmware year every Monday morning. The cleaning staff switch off the power strip each Friday, so the machine spends the weekend without standby power. On Monday, the wrong date causes the browser to reject secure websites and the domain login to fail with a time mismatch.
The technician measures the CR2032 cell at 2.1 V, well below the healthy level of about 3 V. After replacing it, setting the clock and re-enabling the stored memory profile, the computer keeps the correct time through the next weekend. The fix takes ten minutes and costs about one dollar, and the technician adds battery checks to the maintenance plan for the other machines of the same age.