
Originally published July 17, 2019, updated for June 2024.
No battery lasts forever. If you’ve had your laptop for a couple years, there’s a good chance the battery doesn’t last as long as it used to. Here’s how to check your battery’s long-term health in Windows and macOS.
Check Your Battery Health in Windows
Windows doesn’t make this information as easily accessible as, say, the iPhone does, but you can still find it with a simple command from Windows’ PowerShell or Command Prompt terminals. Click the Start menu, search for “PowerShell” or “Command Prompt” and right-click on the icon to select “Run as Administrator”. Then type the following command and press Enter:
powercfg /batteryreport /output "c:\batteryreport.html"
Powercfg is a tool included with Windows 7 and above. The command will generate a report and save it to the drive C:. If you are unable to access Admin rights, you can abbreviate the command which will lead to the file being saved to your home directory.
powercfg /batteryreport
In case you get an 0x422 error running the command, check whether the “Diagnostic Policy Service” in services.msc (Windows Services Manager) is disabled. It has to be enabled for the command to function.
The report is a simple HTML file, so just double-click it to view the contents. Scroll down to the Battery Capacity History section, and view the last entry in the list. You’ll see the full charge capacity on the left, in mWh, and the battery’s initial capacity on the right. On my laptop, the battery can currently hold about 45,007 mWh of its original 48,944 mWh capacity, which means it has about 91% of its health left. Not too shabby!



You can also scroll all the way down to the bottom of the document to see what Windows estimates your battery life to be in hours, though this obviously depends on a lot of factors (like whether you’re browsing the web, watching videos, or playing games), so don’t take it at face value.
If your battery’s health has degraded to the point where you’re cursing yourself every time it drops to zero, you can restore its original longevity by replacing the battery. You can buy replacement batteries in the iFixit parts store for a number of Windows laptops. Depending on the model of your laptop, these can range anywhere from $30 to $120, which is a small price to pay for getting a few more years out of a multi-hundred-dollar computer. Once you’ve got your battery, check out our free laptop repair guides for instructions on how to perform the swap.
Check Your Battery Health on a Mac
MacBook users are presented with two ways to gauge the status of their battery. Please note that the steps and information available might differ for Macs that run older versions of macOS than Sonoma (macOS 14).
To quickly check your battery health, click the Apple logo in the upper left corner of your screen, select System Settings, and then select Battery. You can also access the battery settings via the battery icon in the menu bar. The battery settings will indicate a status of either “Normal” or “Service Recommended,” with the latter indicating component degradation. MacBooks with Apple Silicon chips will even provide a percentage of battery capacity relative to when it was new.



To get the exact cycle count, use the System Information application in macOS. You can access System Information by searching for it using Spotlight or by finding it in the Utilities subfolder of the Applications folder. After opening it, scroll down to “Power” in the left sidebar and select it.

If you want more detailed information, you can compare its Cycle Count to the maximum number of cycles for your MacBook model, compare its Full Charge Capacity to the original size of your battery in mAh (check our parts store if you aren’t sure), or download an app like coconutBattery that presents this information in a much easier-to-read layout.
If your MacBook just isn’t holding the charge it once did, consider replacing the battery yourself. We sell replacement batteries for the MacBook Pro, MacBook Air, and other Mac machines along with the tools you’ll need to perform the job. We’ll even show you how to do it with our handy MacBook repair guides.
MacBook Air 13″ Early 2017 Battery Replacement
Use this guide to replace a faulty battery in…
A fresh battery can easily get you a few more years out of an aging device. And with batteries often costing less than $100 (or a bit more if you want the full “fix kit” with included tools), that’s a pretty great return on your investment—after all, most laptops cost hundreds or thousands of dollars and only last a few years before their batteries degrade.
crwdns2944067:032crwdne2944067:0
How about android? Any way to check it there, reliably?
Fixandinstall - crwdns2934203:0crwdne2934203:0
I’ve been told that there’s no official way on Android. A good option (which I started using recently myself) is an app called AccuBattery. The only downside is that it requires some time spent with the app on your phone before it can give you a good reading of your battery health.
Haig Karakashian -
Acer 15 Chromebook (but should work for any Chromebook.)
Ctrl+Alt+t to open a crosh window:
With charger plugged in, run “battery_test 1”. This will should give you a percent charged, that the battery is charging, and battery health percentage.
With charger unplugged, run “battery_test 30”. This runs the test for 30 seconds. Battery discharge should be low (0.01%).
Type “exit” to exit the crosh screen.
Vincent Dovydaitis - crwdns2934203:0crwdne2934203:0
This is very helpful. Thank you for posting this here! Kudos!
Stephen Joseph Cambal - crwdns2934203:0crwdne2934203:0
Very informative. Thanks for sharing.
Dima Simonishvili - crwdns2934203:0crwdne2934203:0
Very Helpful! Thanks.
Samuel Rojas - crwdns2934203:0crwdne2934203:0
This doesn’t work on my Acer Aspire 7560-416. I copied and pasted the command from the article so I know the command was right. Is there maybe a different command for an older Aser?
Carolyn Hardy - crwdns2934203:0crwdne2934203:0
Would it be better to keep a Mid-2015 MacBook Pro on its charger 24/7? I normally take it off the charger when it gets to 100%, and then recharge when it drops to 20%-30%. I’m worried about using up the battery’s cycle counts, it's already at 422, and I bought it new 23 months ago from Apple.
Frank Gee - crwdns2934203:0crwdne2934203:0
what about lignux
Meow Purr - crwdns2934203:0crwdne2934203:0
This is not working on my HP running Windows 11 home. Switches to app and immediately closes before running it.
Paul Bunce - crwdns2934203:0crwdne2934203:0
Everyone needs this info!
Though I'd suggest to change the command to
powercfg /batteryreport /output "batteryreport.html"
to match what the text says or just change the text to say that it outputs toC:\batteryreport.html
.Erwin Alva - crwdns2934203:0crwdne2934203:0
Does not work on Windows 10, using Command Prompt. Error:
C:\WINDOWS\system32>powercfg /batteryreport /output "c:\batteryreport.html"
Unable to perform operation. An unexpected error (0x10d2) has occurred: The library, drive, or media pool is empty.
Kevin Stark - crwdns2934203:0crwdne2934203:0
That means your device doesn't have a battery.
Yoni Israeli -
Or under Powershell: Same error:
PS C:\WINDOWS\system32> C:\WINDOWS\system32>powercfg /batteryreport /output "c:\batteryreport.html"
>> Unable to perform operation. An unexpected error (0x10d2) has occurred: The library, drive, or media pool is empty.
>>
Kevin Stark - crwdns2934203:0crwdne2934203:0
That means your device doesn't have a battery.
Yoni Israeli -
For Linux there is power statistics. (gnome-power-statistics).
ckblackm - crwdns2934203:0crwdne2934203:0
When I open the Command Prompt on my HP Pavilion laptop the default directory is
C:\Windows\System32
Then when I put in the powercfg command, I just get an error message.
Help please.
Keith Gooley - crwdns2934203:0crwdne2934203:0
What error message do you get?
Yoni Israeli -
On Linux with the KDE Plasma 5 desktop, it displays the health info as a percentage in the battery icon in the system tray. A battery with a short life will display a message like this example: "The capacity of this battery is 29%. This means it is broken and needs a replacement. Please contact your hardware vendor for more details."
You can also use the "acpi" command to display the current battery health status.
Running it with the '-i' switch will display the current capacity info, and if available, the temperature trip points. The below is an example on a Dell E7470:
peter@slatebook:~$ acpi -i
Battery 0: Discharging, 100%, 09:41:32 remaining
Battery 0: design capacity 7236 mAh, last full capacity 6678 mAh = 92%
For a full list of switches in the acpi command, use
man acpi
to get a short manual.Peter Low - crwdns2934203:0crwdne2934203:0
In Mac OS, you can click "Show battery status in menu bar" in the Energy Saver control panel. My battery status displays:
97% (battery charged icon)
Condition: Replace Soon
Battery is Charged
Power Source: Power Adapter
Apps Using Significant Energy
Brave Browser app
√Show Percentage
Open Energy Saver Preferences
Checking full information as described in the article shows that the 2008 MB Pro's battery has been through 312 of its rated 300 cycles and has a capacity of 3178 mAh compared to the standard 5300 mAh. This battery can be changed without tools, so the hard part is finding a good quality replacement at a price I can afford or justify given the limited OS upgradability.
PAB1130 - crwdns2934203:0crwdne2934203:0
Don't waste your time on this... the instructions are not up to date. Of course, we can see how that happens with the great and powerful Assle changing these things gratuitously at every opportunity.
Seamus - crwdns2934203:0crwdne2934203:0
A interesting idea but powercfg can't be found.
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.
C:\windows\system32>powercfg /batteryreport /output "c:\batteryreport.html"
Invalid Parameters -- try "/?" for help
C:\windows\system32>c:\powercfg /batteryreport /output "c:\batteryreport.html"
'c:\powercfg' is not recognized as an internal or external command,
operable program or batch file.
C:\windows\system32>\powercfg /batteryreport /output "c:\batteryreport.html"
'\powercfg' is not recognized as an internal or external command,
operable program or batch file.
Wayne Robey - crwdns2934203:0crwdne2934203:0
Hi Wayne Robey,
In Windows 7, the command works a bit different than described in the text. Instead of "powercfg /batteryreport /output "c:\batteryreport.html"", you might try the command "powercfg -energy" as described in the following Microsoft documentation: https://support.microsoft.com/en-us/topi....
Manuel Haeussermann -
powercfg /batteryreport
works for me on my HP notebook. I don't have admin rights, so the complete command as shown in the article produces an error.
With my command, batteryreport.html is saved to my home directory.
Ed. Floden - crwdns2934203:0crwdne2934203:0
Very informative, but is there any way to do this in
Ubuntu GNOME?
coolguy47 - crwdns2934203:0crwdne2934203:0
I figured this out myself-in the top left dropdown menu, click on power, then select power settings, and an application window will pop up showing the facts about the battery.
coolguy47 -
You can run gnome-power-statistics in the terminal if you don't have that GUI tool in your distro.
James Van Damme -
the battery needs charging but not working property
screen - crwdns2934203:0crwdne2934203:0
I had hoped you included information for Linux as well.
Especially since Linux very strongly aligns with the values you promote. It would only make sense to show inclusivity for Linux users. :)
Eudyptula - crwdns2934203:0crwdne2934203:0
You can use Windows Battery Report tool to do the same thing, except you don't have to put in the commands. It does it automatically!
Yoni Israeli - crwdns2934203:0crwdne2934203:0
Gee I love having an iPhone and Macbook Pro. So easy to check the battery health and cycle count.
I don't have to run a report and save it.
Why windows makes it so hard, it's ridiculous.
Cary B - crwdns2934203:0crwdne2934203:0
This report looks great but it is basically misleading and useless for some users.
I have a Lenovo W520 with a bad battery but this report does not detect it. When I pull out the power cord of my laptop and let it run on battery it dies in 75 seconds with no warning.
The report goes back to 2021, but it does not detect that I have had three different batteries in the laptop since then. It makes the report look like it is reporting on the same battery for all this time.
This command provides me with no reliable or accurate information.
Michael Walsh - crwdns2934203:0crwdne2934203:0