CMOS battery

On this page 8

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.

ComponentFunctionEffect of battery failure
Real-time clockCounts seconds, minutes, days and yearsClock resets to a default date
32.768 kHz crystalProvides the timing referenceClock stops or drifts
Battery-backed SRAMStores time and some setup valuesSettings revert to defaults
Intrusion and status bitsRecord chassis opening or wake eventsFlags are cleared or unreliable
Components powered by the CMOS battery

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.

FormatTypical useReplacement method
CR2032 in socketATX, Micro-ATX and Mini-ITX desktop boardsRelease clip and swap the cell
CR2032 with leadsLaptops and compact PCsUnplug connector, fit new pack
CR2025 or CR2016Thin boards and embedded devicesSwap cell of matching size
Rechargeable ML-series cellSome laptops and industrial boardsReplace with the same rechargeable type
Soldered cell or supercapacitorOlder or specialized hardwareSoldering or board service
Common CMOS battery formats

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.

SymptomLikely causeRecommended action
Date resets to the firmware build yearRTC lost power while unpluggedMeasure and replace the cell
Firmware settings revert to defaultsBattery-backed values were clearedReplace the cell, then reconfigure
CMOS checksum error at startupStored data corrupted by low voltageReplace the cell and save settings
Certificate and HTTPS errors in the browserSystem clock far from the real dateFix the battery, sync time
No symptom while plugged inStandby rail is powering the RTCTest after a full power disconnect
Typical symptoms and their causes

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.

ElementNeeds battery powerWhat it holds or does
CMOS batteryIt is the power sourceKeeps the RTC and backed SRAM alive
RTC SRAMYesTime, date and some legacy settings
SPI flash (UEFI)NoFirmware code and most saved settings
Clear CMOS jumper or buttonNoResets settings to factory defaults
BIOS flashback buttonNoRewrites firmware from a USB drive
Related storage and reset mechanisms

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.

  1. Record important firmware settings, such as XMP memory profiles, boot order and fan curves.
  2. Shut down, switch off the power supply and disconnect the mains cable.
  3. Ground yourself to limit electrostatic discharge before touching the board.
  4. Press the retaining clip and lift the old cell out without prying against nearby traces.
  5. Insert a fresh cell of the same type with the positive side up, then reconnect power.
  6. 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.