How to know MacBook Battery Cycle Count using Terminal Command

Help Save Code2care! 😢

I've lost 99% of my revenue to AdBlockers & AI. Your support could be the lifeline that keeps this passion project alive!

Buy Code2care a Coffee QR Code

Scan to Buy Me A Coffee and help me continue coding for you!


In order to know how many battery cycles you have completed on your MacBook, you can make use of ioreg command on the Terminal, but as this command will print out a lot of information, you can make use of the grep command to narrow down to just use the battery cycle as follows,

ioreg – show I/O Kit registry

% ioreg -r -c "AppleSmartBattery" | grep 'CycleCount" ='

"CycleCount" = 216

As you can see the above command outputted that I have completed 216 battery cycles on my Macbook.

know MacBook Battery Cycle Count using Terminal Command

This command can be handy when you are building an application or writing a script that needs this information..

You can download this article in various formats for your convenience. Choose from the options below:

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has a Masters Degree in Computer Science with over 15+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail: rakesh@code2care.org

Copyright Code2care © 2024 | Privacy Policy | About Us | Contact Us | Search