pipefittercalc

Battery life calculator

How long a battery runs a load, from its capacity and the current drawn, including devices that sleep between readings.

Battery life

How long a battery runs a load, including a load that sleeps between bursts.

How it is worked out

Run time = capacity × usable share ÷ average load current. The usable share allows for cut-off voltage, temperature and ageing; 70 to 85% is a fair figure for most cells. For a load that wakes and sleeps, the average current = (active current × active time + sleep current × sleep time) ÷ (active time + sleep time). Capacity falls at high currents, so treat a result for a load above about a fifth of the capacity per hour as optimistic.

How to use it

Enter the battery capacity in mAh from its label or datasheet and the current the device draws in mA. The usable share allows for the cut-off voltage, cold and age; 80% is a fair start. For a sensor that wakes, works and sleeps, add the active time, the sleep current and the sleep time and the calculator works out the average current.

The formula

Run time (hours) = capacity (mAh) × usable share ÷ load (mA). A 2,000 mAh pack at 50 mA with 80% usable runs 32 hours.

Typical capacities

BatteryTypical capacityRun time at 20 mA (80% usable)
CR2032 coin cell225 mAh9 h
AAA alkaline1,000 mAh40 h
AA alkaline2,500 mAh100 h
AA NiMH2,000 mAh80 h
9 V alkaline550 mAh22 h
18650 Li-ion3,000 mAh120 h
Phone power bank10,000 mAh400 h

Coin cells and alkaline cells deliver much less than their rating at high current: a CR2032 is rated at a fraction of a milliamp. Treat any result for a heavy load as optimistic, and check the maker's discharge curve.

These calculators do the arithmetic only. Check every measurement and cut before you make it, and follow the drawings, the code and the engineer of record for anything that carries pressure or load.