Wondering how long a battery will power your project or gadget? This calculator estimates the runtime from two numbers: the battery capacity in milliamp hours and the average current your device draws in milliamps. Divide capacity by current draw and you get the ideal runtime in hours, but real batteries never deliver their full rating, so the tool also applies a realistic efficiency factor to give a practical estimate. It converts the result into hours, and days where useful, so you can plan how often you will need to recharge or swap cells. This is handy for sizing a battery for a microcontroller build, an LED strip, a portable speaker or a sensor node. Enter your capacity, your load, and an efficiency you trust, then read both the theoretical and realistic runtime instantly. Everything runs locally in your browser.
It divides the battery capacity in mAh by the device current draw in mA to get the number of hours before the battery is flat.
Batteries rarely deliver their full rated capacity under load, so the tool gives an ideal figure that you should derate for temperature, age and cutoff voltage.
Yes, for low-current devices it converts the hours figure into days so long-running gadgets are easier to read.
Wondering how long a battery will power your project or gadget? This calculator estimates the runtime from two numbers: the battery capacity in milliamp hours and the average current your device draws in milliamps.
Yes. Battery Life Calculator is completely free, with no sign-up and no usage limits.
Yes. Battery Life Calculator runs in any modern web browser. There is nothing to download or install.
Yes. Battery Life Calculator runs entirely on your device in your browser, so nothing you enter is uploaded to a server.
Link this tool from a README, doc or site. The badge links back to this page.
[](https://yourhack.ai/battery-life-calculator)