Updated
How to See How Long Your iPhone or Mac Has Been On
By Sindre Sorhus, who makes the Actions app
With Actions
- Install Actions, and open it one time.
- In the Shortcuts app, make a new shortcut, and add the “Get Device Details (Extended)” action.
- Add the “Show Content” action, and run the shortcut.
The result shows “Uptime (with sleep)” and “Uptime (without sleep)” in days, hours, and minutes. The time with sleep is the time since the device started. The time without sleep is the time that it was awake.
To use only one value, tap the “Device Details” variable, and choose “Uptime (including sleep)” or “Uptime (not including sleep)”. Use the “Format Duration” action of Actions to make the value readable text. The same shortcut works on iPhone and Mac.
Get Actions
Additional actions for the Shortcuts app
Free
- Platforms
- macOS, iOS, visionOS
- Requires
- macOS, iOS, or visionOS 26 or later
- Category
- Utilities
- Released
- October 2021
- Privacy
- No personal data collected
- Updated
- June 2026
- Version
- 4.2.0
- Size
- 29 MB
- US App Store rating
- 4.8/5 (532 ratings)
Without an app
On a Mac, open the Terminal app, and run:
uptime
The text after “up” is the time since the Mac started, like “up 2 days, 15:28”. You can also open System Information (hold Option, and choose click “Software”, and read “Time since boot”. Both include the time in sleep. For the time without sleep, use Actions.
