The basic formula
runtime (h) = capacity (mAh) × usable fraction ÷ load (mA) mAh = Wh × 1000 ÷ volts mA = W × 1000 ÷ volts
Use the battery’s nominal voltage when converting between watts and amps: 3.7 V for a Li-ion cell, 12 V for a lead-acid battery, 1.2 V for NiMH.
Usable capacity
- Lead-acid: only about 50% if you want it to last many cycles.
- Lithium iron phosphate (LiFePO4): 80–90%.
- Li-ion / LiPo: 80% is a safe planning figure; a protection circuit cuts off before empty.
- Alkaline: capacity falls sharply at high current — fine for remotes, poor for motors.
If the load goes through a boost converter or inverter, also allow for its efficiency, typically 80–95%.