keepcalculator

06 Numbers and Powers

How Long Has My Mac Been On? Check Uptime

Card No. 06·87916 · Updated · Standard formula, shown below

To see how long your Mac has been on, open Terminal and run uptime — the first number it prints is the hours (or days) since your last boot. For example, uptime showing 3 days, 4:52 means your Mac has been running continuously for 3 days and 4 hours 52 minutes. This article explains the command, how to read its output, and several other ways to find your Mac’s uptime, plus what that number actually tells you about your system.

What “Uptime” Means on a Mac

Uptime is the total time elapsed since the Mac last completed a boot process — that is, since you last turned it on, restarted it, or it recovered from a forced shutdown. It does not count time spent in sleep or with the display off; those periods are included in the uptime counter because the kernel (the core of macOS) never stops running during sleep. The system simply pauses most activity and resumes when you wake it.

This distinction matters: a Mac that sleeps overnight still shows the same uptime the next morning. Only a restart, shutdown, or crash resets the counter. So “how long has my Mac been on” really means “how long since the last boot,” not “how long since I last touched it.”

How to Check Uptime with the Terminal

The most direct method is the uptime command in Terminal (found in Applications → Utilities). Here’s what to do:

  1. Open Terminal.
  2. Type uptime and press Return.
  3. Read the output. It looks like this:
14:23:11 up 3 days,  4:52,  2 users,  load average: 1.20, 0.85, 0.64

The fields mean:

  • Current time (14:23:11) — the time the command was run.
  • Up (3 days, 4:52) — the uptime: 3 days and 4 hours 52 minutes.
  • Users (2 users) — how many user sessions are active (including GUI and SSH sessions).
  • Load average — the average number of processes waiting to run over the last 1, 5, and 15 minutes. Lower is better; on a modern Mac, anything under 4–5 is usually fine.

If the uptime is less than an hour, the output will show minutes only, like up 42 mins. If it’s less than a day, it shows hours and minutes, e.g., up 5:10.

Using Activity Monitor to See Uptime

If you prefer a graphical interface, Activity Monitor (in Applications → Utilities) shows the same information. Open it, click the System tab (or the CPU tab in older macOS versions), and look for the Time since boot or Uptime entry. It displays the same value as the Terminal command, so you can use whichever you find easier.

Note that Activity Monitor also shows the load average and the number of threads and processes, but the uptime field is what you want for this question.

Why Would You Want to Know Your Mac’s Uptime?

There are several practical reasons to check uptime:

  • Troubleshooting — If your Mac has been acting sluggish or an app is misbehaving, a long uptime suggests that a restart might clear up temporary issues (like memory leaks or accumulated cache).
  • Verifying a restart — After you install a macOS update or manually restart, a quick uptime confirms the system actually rebooted.
  • Diagnosing crashes — If your Mac shut down unexpectedly, the uptime will reset. If you see a very short uptime, that tells you the last boot happened recently, which can help you correlate with a crash log.
  • Monitoring servers or remote Macs — If you manage a Mac that runs continuously (as a media server, for example), uptime tells you how stable it has been.

For most everyday users, uptime is simply a curiosity — but it’s also a quick health check.

Common Misconceptions About Uptime

One frequent misunderstanding is that a high uptime is always good. In reality, a Mac that has been on for weeks may accumulate minor issues, such as memory pressure or system caches that grow stale. Apple’s macOS is designed to run for long periods, but a periodic restart is often recommended after major updates or if you notice slowdowns.

Another misconception: closing the laptop lid or putting it to sleep does not reset uptime. Sleep is a low-power state, but the kernel stays alive, so the clock keeps ticking. Only a full shutdown (and subsequent boot) resets it. If you shut down your Mac every night, your uptime will always be under a day.

Also, note that uptime does not show the exact time of the last boot — it only shows the duration. To see the precise boot time, use the sysctl command:

sysctl -n kern.boottime

This prints something like { sec = 1700000000, usec = 0 } — the sec value is a Unix timestamp (seconds since January 1, 1970). You can convert it with a date command, but the uptime output is usually sufficient.

How to Interpret Uptime for Troubleshooting

When you see a high uptime, it’s worth asking: “Is my Mac running well?” If you’re experiencing problems, here’s a quick guide:

  • Uptime of days or weeks — If you have issues (slow performance, apps crashing, high memory pressure), a restart is a safe first step. It clears temporary files and resets the kernel state.
  • Uptime of minutes — If your Mac rebooted recently without you doing it, that indicates an unexpected shutdown (power failure, kernel panic, or forced restart). Check the system logs (in Console.app) for panic reports.
  • Uptime of hours — Normal for a daily-use machine that was shut down overnight.

Remember that macOS is generally stable, and a long uptime (even months) is not inherently bad. But if you’ve never restarted since a major macOS update, a reboot can help apply all changes fully.

Alternatives to the Terminal

Besides Terminal and Activity Monitor, there are a few other ways to get uptime:

  • System Information — Hold Option and click the Apple menu, then choose System Information. Under the Software section, you’ll see “Time since boot” (in some macOS versions). This is the same value.
  • Third-party menu bar apps — Several utilities display uptime in the menu bar, but they all read the same system data. There’s no need to install anything unless you want constant visibility.
  • Command who -b — In Terminal, who -b shows the last boot time in a human-readable format (e.g., system boot Mar 12 14:23). This is often clearer than the raw timestamp from sysctl.

All these methods pull from the same kernel counter, so they will always agree.

Frequently Asked Questions

Does sleeping reset my Mac’s uptime?

No. Sleep (closing the lid, or selecting “Sleep” from the Apple menu) pauses most activity but does not shut down the kernel. The uptime counter continues. Only a full shutdown or restart resets it.

Why does my Mac show a very high uptime even though I shut it down?

If you shut down through the Apple menu, the system fully powers off and uptime resets on the next boot. If you see a high uptime, you likely didn’t actually shut down — you may have just closed the lid or the display turned off. Check your Energy Saver settings to see if “Prevent automatic sleeping” is enabled.

Can I see uptime without using Terminal?

Yes. Activity Monitor shows “Time since boot” under the System tab, and System Information (with Option+Apple menu) also displays it. Both are graphical and require no commands.

What is a “good” uptime for a Mac?

There is no fixed good or bad value. Macs can run for months without issue. However, if you’re troubleshooting a problem, a restart is a common first step, so a high uptime is not a badge of honor — it’s just a fact.

Does uptime affect performance?

Not directly. macOS manages memory and processes well over long uptimes, but some third-party apps may leak memory or leave stale caches. If you notice slowdowns, restarting often helps regardless of uptime.

How do I check the exact time my Mac booted?

Use who -b in Terminal. It prints the system boot time in a readable format, e.g., system boot Mar 12 14:23. Alternatively, sysctl -n kern.boottime gives a Unix timestamp that you can convert.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →