sodcalculator

10 Tech How-To

Mac Last OS Install & Battery Cycle Count

Guide 10-29829 · Updated · Step by step

To see when macOS was last installed on a Mac, open Terminal and run stat -f "%SB" /var/db/.AppleSetupDone — that shows the date the current system was first set up. To see the battery cycle count, click the Apple menu → About This Mac → More Info → System Report → Power, and look for “Cycle Count” under Battery Information.

Why These Two Pieces of Info Matter

Knowing when macOS was last installed helps you judge whether a sluggish Mac might benefit from a fresh OS install, or whether a recent upgrade caused new problems. The battery cycle count tells you how much the battery has been used, which is the single best predictor of when it may need replacement. Apple rates most modern MacBook batteries for 1,000 cycles, after which the battery is considered “consumed” and may not hold a charge as long. Older models (2010 or earlier) were often rated for 300–500 cycles.

How to Find the Last macOS Install Date

There are two common methods, each with a slightly different meaning:

  • Terminal command (most accurate): Open Terminal (Finder → Applications → Utilities → Terminal) and type stat -f "%SB" /var/db/.AppleSetupDone. This returns the date the Mac was first set up after the current macOS installation. If you’ve reinstalled macOS without erasing the disk, this date may still be from the original setup.
  • Finder folder date: In Finder, press Cmd+Shift+G and type /var/db, then look at the date on the .AppleSetupDone file. That’s the same file, but Finder shows it as a hidden file — you may need to press Cmd+Shift+. (period) to reveal hidden files.

If you want to know when the OS was last updated (not installed), check System Settings → General → Software Update — it shows the last update date, but not a full install date. For a more detailed history, you can run ls -l /var/db/.AppleSetupDone in Terminal to see the timestamp with seconds.

How to Find the Battery Cycle Count

On any MacBook or MacBook Pro with a built-in battery:

  1. Click the Apple menu (top-left) → About This Mac.
  2. Click More Info (or “System Report” on older macOS).
  3. In the System Information window, scroll to Power under the Hardware section.
  4. Look for Cycle Count under “Battery Information.”

On macOS Ventura and later, the path is: Apple menu → System Settings → General → About → More Info… → System Report → Power. The cycle count is also visible in third-party apps like coconutBattery, but the built-in report is always accurate.

What the Cycle Count Actually Means

A cycle count is not the number of times you’ve plugged in the charger. It’s the number of times the battery has used 100% of its capacity. For example, if you use 50% of the battery one day and charge it, then use 50% the next day, that counts as one cycle. Apple’s battery health management may slow charging after 1,000 cycles, but the battery can still work — just with reduced capacity. You can see the battery’s “Maximum Capacity” percentage in the same System Report; if it’s below 80%, the battery is considered worn and may need replacement.

Common Problems & Misconceptions

“My cycle count is low, so my battery is fine.” Not necessarily — a low cycle count doesn’t guarantee a healthy battery. Age and heat also degrade batteries. A 5-year-old Mac with only 200 cycles may still have reduced capacity. Check the “Maximum Capacity” percentage alongside the cycle count.

“I reinstalled macOS, but the date didn’t change.” That’s normal. The .AppleSetupDone file is only created during the initial setup after a clean install. If you reinstall over the existing system (without erasing the disk), the file stays intact. To force a new date, you’d need to erase the disk and install fresh.

“My Mac says ‘Service Recommended’ but the cycle count is low.” The battery may have a fault unrelated to cycles, or the system may detect a voltage issue. Apple’s threshold for service is often based on capacity, not just cycles.

How to Use This Information

If you’re buying a used Mac, the cycle count is a key negotiating point. A Mac with 1,000+ cycles may need a new battery soon, which costs around $129–$199 at Apple (depending on model). If you’re troubleshooting a Mac that’s slow, the install date can tell you whether a fresh OS install is worth trying. If the install date is years old and you’ve never done a clean install, a backup-and-erase-install can sometimes fix persistent issues.

For your own Mac, checking the cycle count once a year helps you plan for a battery replacement before it dies unexpectedly. Apple’s warranty covers battery defects for one year, but not normal wear.

Alternatives to the Built-In Tools

If you prefer a graphical interface, free apps like coconutBattery show cycle count, battery health, and even the install date of macOS (via the same system files). However, the built-in System Report is always accurate and doesn’t require installing anything. For the install date, you can also check the date on the /var/db folder itself, but that changes with system updates, so it’s less reliable.

Frequently Asked Questions

Does the cycle count reset after a battery replacement?

Yes. When a new battery is installed, the cycle count resets to 0. If you see a very low cycle count on an older Mac, it may have had its battery replaced. You can verify by checking the “Battery Health” and “Manufacture Date” in the System Report.

Can I see the last OS install date without Terminal?

Yes, but it’s less precise. In Finder, press Cmd+Shift+G and type /var/db, then look at the date on the .AppleSetupDone file. You may need to enable hidden files with Cmd+Shift+. (period). The date shown is the initial setup date, not the last reinstall.

Why does my Mac show a cycle count of 0 on a brand new battery?

That’s normal — the battery has never been used. It will start counting with the first discharge. If you see 0 on a used Mac, it likely means the battery was just replaced.

What is a good cycle count for a used Mac?

For a MacBook that’s 2–3 years old, under 500 cycles is typical. For a 5-year-old Mac, under 1,000 is acceptable. But always check the “Maximum Capacity” percentage — anything above 80% is generally fine.

Does the install date affect performance?

Not directly, but a very old install (e.g., 5+ years) may have accumulated clutter, outdated caches, or incompatible settings. A clean install can sometimes improve performance, especially if you’ve upgraded macOS multiple times without a fresh start.

Related

General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.

More in this bed

The whole Tech How-To bed →