Estimate runtime
The basic battery life formula
For a constant current load the calculation is straightforward. A 3,000 mAh cell driving 150 mA continuously gives 20 hours in ideal conditions. If you only expect to use 80% of the nominal capacity before the device shuts down, the estimate becomes 3,000 × 0.8 ÷ 150 = 16 hours.
That 80% figure is an engineering assumption, not a universal rule. The usable portion depends on the discharge cutoff voltage, the chemistry and the load profile. A device that shuts down at 3.4 V will leave more energy in a lithium-ion cell than one that runs down to 3.0 V.
Duty-cycled and wireless devices
Many products do not draw a steady current. A wireless sensor might sleep at 20 µA, wake to measure at 5 mA for 10 ms and transmit at 40 mA for 30 ms, once every minute. In that case you need the time-weighted average current over one complete cycle:
Use the average, not the peak, in the runtime formula. Measure it with a power analyser or a current logger over several real operating cycles; datasheet typical values often assume ideal conditions.
Why real runtime is shorter
- Discharge rate. High current reduces the delivered capacity of most chemistries, especially alkaline and lithium primary cells.
- Temperature. Below 0 °C, available capacity drops sharply. Above 45 °C, self-discharge increases.
- Converter efficiency. If a buck or boost regulator sits between the battery and the load, divide the runtime by its efficiency — a 90% efficient converter costs 10% of your runtime.
- Age and cycle life. Rechargeable cells lose capacity with cycles and calendar time. Design to end-of-life capacity, not beginning-of-life.
- Cutoff voltage. The device stops working before the cell is completely empty.
mAh is not energy
Ampere-hour measures charge; watt-hour measures energy. A 2 Ah cell at 3.7 V stores roughly 7.4 Wh, while a 2 Ah cell at 12 V stores about 24 Wh. When comparing batteries with different voltages, or when sizing a system with a regulator, compare watt-hours instead of milliamp-hours.
Geefook supplies batteries, battery holders and charging ICs for industrial and consumer designs. If your calculation points to a cell with a long lead time, send us the part number and we will check stock and alternatives.
Frequently asked questions
How is battery life calculated?
Divide capacity in mAh by average current in mA. Apply a usable-capacity factor if the device shuts down before full discharge.
How long does a 5000 mAh battery last?
At 100 mA about 50 hours, at 10 mA about 500 hours, assuming ideal conditions and a 3.7 V cell with no conversion losses.
Is a higher mAh rating always better?
Usually longer runtime, but higher capacity cells can be larger, heavier and slower to charge. Check the physical and charge-current constraints.