Estimate how long a project or device will run on a battery. Enter the battery's capacity in mAh or Wh, the current the device draws and a usable-capacity factor — batteries rarely deliver 100% of their rating — and get the runtime in hours or days. For devices that sleep between bursts, add the active time and sleep current and the calculator averages them. It is an estimate, and it runs in your browser.
| Battery | Capacity |
|---|---|
| CR2032 coin cell | ~220 mAh |
| AAA alkaline | ~1,000 mAh |
| AA alkaline | ~2,500 mAh |
| 18650 Li-ion | 2,500–3,500 mAh |
| 9 V alkaline | ~550 mAh |
Because you will not get it. The device cuts off before the cell is empty, capacity drops with age and cold, and high currents deliver less than the rating. 70–85% is a realistic planning figure.
Enter the percentage of time the device is active and its sleep current. The calculator works out the average current, which is what sets battery life.
No. It assumes a constant average current and ignores the discharge curve, temperature and self-discharge. Treat it as a planning estimate.
Switch the capacity to Wh and enter the nominal voltage; the calculator converts it. The conversion is watt-hours × 1,000 ÷ voltage, so a 3.7 V, 7.4 Wh battery is 2,000 mAh.
No. It is arithmetic in the page.
Runtime is the charge you can actually draw from the battery divided by the average current the device takes. A capacity given in watt-hours is first converted to milliamp-hours by multiplying by 1,000 and dividing by the nominal voltage. The usable charge is the rated capacity in milliamp-hours multiplied by a usable fraction, defaulting to 80%, because a battery rarely delivers its full rating: the device's cut-off voltage stops it before the cell is truly empty, capacity falls with age and cold, and high discharge rates deliver less than the low rate the rating was measured at. For devices that sleep between bursts of activity — sensors, remotes, data loggers — the average current is the active current weighted by the share of time spent active plus the sleep current weighted by the rest, which is usually what dominates battery life. The result is reported in hours and in the most readable unit, from minutes up to years. It is an estimate built on constant-current arithmetic; it does not model the discharge curve, self-discharge over long periods or temperature, so a figure in years should be read with self-discharge in mind. Everything is computed in the page.