To see how long your computer has been on, the fastest method for Windows users is to open the Task Manager and check the Up time under the Performance tab. For macOS users, the quickest way is to open the Terminal and type the command uptime. These methods provide the exact duration since the system last performed a full boot sequence, which is critical for diagnosing performance lag or determining if a pending update has actually been applied.
Knowing your system's uptime is more than just a curiosity; it is a vital troubleshooting step. Many users believe they have shut down their computers, but modern operating systems often use "Fast Startup" or "Sleep" modes that preserve the kernel state. This means the system clock for uptime continues to run even if the screen was off. If your computer feels sluggish or a specific driver is malfunctioning, checking the uptime reveals whether a true restart is necessary to clear the system memory and reset hardware states.
What You'll Need
- A computer running Windows (10 or 11) or macOS.
- Administrative access to the machine (required for some advanced command-line queries).
- A keyboard and mouse to navigate the interface or enter commands.
Step-by-Step
Method 1: Windows Task Manager (Visual Method)
- Press
Ctrl + Shift + Escon your keyboard to open the Task Manager directly. Alternatively, right-click the Taskbar and select Task Manager from the menu. - If the Task Manager opens in a small window with just a list of apps, click More details at the bottom to expand the full view.
- Click on the Performance tab located at the top of the window. Note that labels may differ slightly depending on your version of Windows; in Windows 11, these tabs may appear as icons on the left sidebar.
- Ensure that CPU is selected from the list of hardware components on the left.
- Look at the bottom of the CPU graph area. You will see a label titled Up time. The time is displayed in the format
Days:Hours:Minutes:Seconds.
Method 2: Windows Command Prompt (CMD)
- Press the Windows Key, type
cmd, and press Enter to open the Command Prompt. - Type the following command exactly as shown:
systeminfo | find "System Boot Time"and press Enter. - The system will take a few seconds to scan your configuration. It will then return a single line showing the exact date and time the computer last booted up.
- To calculate the total duration, subtract this boot time from the current time.
Method 3: Windows PowerShell
- Right-click the Start button and select Windows PowerShell or Terminal.
- Enter the following command:
(get-date) - (gcim Win32_OperatingSystem).LastBootUpTimeand press Enter. - PowerShell will return a detailed list including Days, Hours, Minutes, and Seconds. The Days field is the most important for identifying long-term uptime.
Method 4: macOS Terminal
- Press
Command + Spaceto open Spotlight Search. - Type
Terminaland press Enter to launch the command-line interface. - Type the word
uptimeand press Enter. - The output will show the current system time, how long the computer has been running (e.g.,
up 3 days, 2:14), the number of users currently logged in, and the load average for the last 1, 5, and 15 minutes.
Method 5: macOS System Information
- Click the Apple Menu in the top-left corner of your screen.
- Hold down the Option key on your keyboard. You will notice that "About This Mac" changes to System Information.... Click it.
- In the sidebar on the left, navigate to the Software section.
- Look for the Time since boot entry in the main window. This provides the elapsed time since the last full restart.
Common Mistakes
One of the most frequent mistakes Windows users make is confusing "Shut Down" with a full system reset. Since the introduction of Fast Startup in Windows 10 and 11, clicking "Shut Down" actually saves the state of the OS kernel to the disk to allow for faster booting next time. Because the kernel never truly stopped, the uptime clock does not reset. If you see an uptime of 15 days even though you shut down your PC every night, this is why. To truly reset the uptime, you must select Restart instead of Shut Down.
Another common error is typing commands into the wrong terminal. For example, trying to run a PowerShell-specific command (like gcim) inside the standard Command Prompt (CMD) will result in an "is not recognized as an internal or external command" error. Always ensure the header of your window matches the command you are using.
On macOS, some users mistake the "Sleep" state for a reboot. When a Mac enters sleep mode, the system remains active in a low-power state. The uptime command tracks the time since the last cold boot or restart, not since the lid was opened. If you only ever close your laptop lid, your uptime could potentially reach several months.
Tips
For Windows users who frequently need to check uptime for server management or stability testing, creating a desktop shortcut for the PowerShell command can save time. You can create a new shortcut and enter powershell.exe -noexit -command "(get-date) - (gcim Win32_OperatingSystem).LastBootUpTime" as the location. This allows you to see your uptime with a single double-click.
If you are troubleshooting a computer that feels slow, check the uptime first. If the uptime is over 7 days, a restart is the first recommended step. This clears the RAM, terminates zombie processes that may be leaking memory, and ensures that all pending security patches are fully integrated into the system kernel.
On macOS, if you want a more human-readable version of the boot time rather than just the duration, you can use the command sysctl kern.boottime. This will provide the exact timestamp of the last boot, which is helpful if you are trying to correlate a system crash with a specific event in your logs.
Troubleshooting
If the Task Manager Up time field is missing or blank, first ensure you are in the Performance tab and have CPU selected. If it still doesn't appear, try restarting the Task Manager process or checking for Windows Updates, as certain system glitches can cause performance counters to fail. In these cases, the Command Prompt method (systeminfo) is a more reliable fallback because it queries the system registry directly rather than relying on the Task Manager's real-time monitor.
If you receive an "Access Denied" error when running systeminfo or PowerShell commands, it is likely because your user account does not have the necessary permissions to query system-level hardware information. To fix this, right-click the Command Prompt or PowerShell icon and select Run as Administrator. Enter your password when prompted, and the command should execute successfully.
If the uptime command on macOS returns an unexpected result (such as a very short time when you know the computer hasn't been restarted), check if the system suffered a kernel panic or an automatic reboot due to a power failure. You can check the Console app under Reports to see if there are any "Panic" logs that indicate the system crashed and restarted itself without your knowledge.
Frequently Asked Questions
Why does my uptime not reset after I shut down my PC?
This happens because of Windows Fast Startup. This feature saves a snapshot of the OS kernel to the hard drive during shutdown. When you turn the PC back on, it loads that snapshot instead of starting from scratch. Only the Restart command forces a complete kernel refresh and resets the uptime clock.
Does a high uptime cause my computer to slow down?
Not directly, but it increases the likelihood of performance issues. Over time, applications may have small memory leaks, and system caches can become fragmented. A high uptime often means the system hasn't had a chance to clear these issues, which can lead to sluggishness.
Is there a way to see uptime without using a command?
Yes. On Windows, the Task Manager (Performance tab > CPU) provides this visually. On macOS, the System Information tool (accessed via Option + About This Mac) shows the time since boot in the Software section.
Will restarting my computer delete my open files?
Restarting will close all open applications. Any unsaved work in documents or browsers will be lost unless the application has an auto-save feature. Always save your work before performing a restart to reset your uptime.
Can I see the uptime of a remote computer on my network?
Yes, if you have administrative credentials for that machine. On Windows, you can use PowerShell with the Get-CimInstance command targeting a remote computer name, provided that Remote Management (WinRM) is enabled on the target machine.
Does sleep mode reset the uptime clock?
No. Sleep mode (and Hibernate mode) pauses the system state but does not terminate the operating system session. The uptime clock continues to track the time since the last full boot, regardless of how many times the computer entered or exited sleep mode.