How to Check Battery Capacity & Cycle Count from Command Line on Mac

Jan 3, 2024 - 1 Comment

Mac Terminal icon

Most Mac users will likely see battery stats in the menu bar of MacOS, and head to System Information to investigate cycle count, but some users who spend a lot of time at the command line may find it useful to be able to retrieve battery information from the Terminal.

One way to find battery life information is with the pmset command, but another approach uses the ioreg command, which is what we’ll cover here. By using ioreg, we will retrieve the current battery capacity, maximum battery capacity, and the cycle count of the battery on the Mac as well.

How to Get Battery Capacity & Cycle Count from Mac Command Line

From the Terminal, enter the following command string:

ioreg -l| grep -e "CurrentCapacity" -e "MaxCapacity" -e "CycleCount"

You will see something like this reported back:

"CurrentCapacity" = 97
"MaxCapacity" = 100
"CycleCount" = 54

Where, CurrentCapacity is the current battery charge, MaxCapacity is the maximum battery capacity, and CycleCount is the number of cycles the battery has up until this point.

Again, there are other ways to get battery information on the Mac, including using the GUI which is much more user friendly to the average Mac user, and the pmset command approach is maybe easier too, but it’s helpful to have more than one approach.


Related articles:

Posted by: Paul Horowitz in Mac OS

One Comment

» Comments RSS Feed

  1. Doc says:

    With several “Command line” Apps available for iPad, I wonder if there’s a way (or which App…) to duplicate this process in iPadOS.

Leave a Reply


Shop on and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks


iPhone / iPad



Shop on Amazon to help support this site