electronics
Battery Runtime Calculator

Estimate how long a battery pack lasts under a load: capacity in Ah/mAh plus load current in A/mA/uA, with an optional duty cycle or active/sleep time split and an optional sleep current. Shows the effective average current and an honest ideal-estimate label - real capacity varies with discharge rate (Peukert), temperature, age and cycles.
Battery and load
e.g. 2000mAh, 2Ah or 50mAh
e.g. 100mA, 0.5A or 250uA - the current while the device is active
e.g. 3.7, 3.7V or 12V - optional; adds a Wh energy figure
Units are typed as suffixes - '2000mAh', '100mA', '30s', '50%'. A steady load drains the battery at one constant current. Ideal estimate only - see the honest-limits note beside the result.
Estimated runtime
Enter the battery capacity and the load current - the ideal runtime solves live as you type.
An estimate, not a guarantee
- runtime = capacity / current assumes the battery delivers its full rated capacity at this load - real packs rarely do.
- Usable capacity varies with discharge rate - the Peukert effect, named for lead-acid - plus temperature, battery age and cycle count.
- Chemistry matters (Li-ion, LiPo, NiMH, lead-acid, alkaline) but is noted here, not modelled.
- No battery-management, charging or safety claims - this is sizing math, not a pack certification.
Enter the battery capacity and the load current - the ideal runtime solves live as you type.


