power

Calculates battery runtime and energy capacity given cell capacity in mAh, nominal voltage, and average current draw. Accounts for real-world discharge efficiency (Peukert-adjacent derating) to produce effective capacity, total energy in Wh, and runtime in hours and days. Useful for IoT sensor node planning, portable device design, UPS hold-up estimation, and solar battery bank cycling analysis. Outputs feed into solar_sizing (battery_kwh) and ups_runtime (battery_wh) for system-level calculations.

post/api/battery_life

Request

  • Base URL: https://calc.engineer
  • URL: https://calc.engineer/api/battery_life
  • Auth: none declared

Request body

capacity_mahnumber required

Battery capacity in milliamp-hours (mAh)

voltagenumber

Nominal battery voltage (V), default 3.7 for Li-ion

current_draw_manumber required

Average current draw in milliamps (mA)

efficiencynumber

Discharge efficiency factor (0-1), accounts for conversion losses and derating, default 0.85

Response

Computed result for battery_life

toolstring required
versionstring required
computed_atstring date-time required

Changes

No recorded changes to this operation across all 1 revision of this API.