Battery Life Calculator

Estimate battery runtime for your project. Account for duty cycles and efficiency factors.

BatteryRuntimemAhPowerPortableIoT

Calculator

%

LDO: 70-90%, Buck: 85-95%, Direct: 100%

%

Time active vs sleep (100% = always on)

Battery Life (hours) = (Capacity × Efficiency) / (Current × Duty Cycle)

How to Use This Calculator

This battery life calculator estimates how long your device will run on a given battery based on current consumption, regulator efficiency, and duty cycle.

  1. Select or Enter Battery Capacity — Click a common battery or enter custom mAh
  2. Enter Load Current — The current your circuit draws when active
  3. Set Regulator Efficiency — Account for power conversion losses (100% for direct battery)
  4. Set Duty Cycle — Percentage of time the device is active vs sleeping
  5. Click Calculate — See estimated battery life in hours, days, or months

The Battery Life Formula

Battery life is calculated by dividing the battery's capacity by the average current draw, accounting for regulator efficiency and duty cycle.

Battery Life = (Capacity × Efficiency) / (Current × Duty Cycle)
Capacity
mAh or Ah
Efficiency
0-100%
Current
mA or µA
Duty Cycle
0-100%

Understanding Each Factor

  • Battery Capacity: Total charge storage, typically in milliamp-hours (mAh). A 2000mAh battery can deliver 2000mA for 1 hour, or 200mA for 10 hours.
  • Regulator Efficiency: How much battery power reaches your circuit. An 85% efficient regulator wastes 15% as heat.
  • Duty Cycle: The fraction of time the device is active. A device that sleeps 90% of the time has a 10% duty cycle.

Common Battery Types

BatteryCapacityVoltageBest For
CR2032225 mAh3VLow-power sensors, RTC backup
AAA1200 mAh1.5VRemote controls, small devices
AA2800 mAh1.5VGeneral purpose, medium current
18650 Li-ion2600 mAh3.7VHigh current, rechargeable
LiPo 1S500-2000 mAh3.7VDrones, wearables, IoT

Capacity Varies with Discharge Rate

Battery capacity ratings assume a specific discharge rate (often C/20). Drawing higher currents reduces effective capacity. A 2000mAh battery might only deliver 1800mAh at high discharge rates.

Optimization Tips

Reduce Active Current

  • Lower CPU clock speed when full speed isn't needed
  • Turn off unused peripherals (WiFi, Bluetooth, GPS)
  • Use hardware sleep modes during idle periods
  • Choose efficient voltage regulators (buck over LDO)

Implement Sleep Modes

  • Light Sleep: Quick wake-up, moderate power savings
  • Deep Sleep: Longer wake-up, significant power savings
  • Hibernation: Minimal power, requires full reboot

Optimize Duty Cycle

  • Send data in batches instead of continuously
  • Use interrupts instead of polling
  • Increase sleep intervals when possible
  • Use RTC wake-up instead of timer loops

Example: ESP32 Power Optimization

Active (WiFi TX)~240 mA
Active (CPU only)~30 mA
Light Sleep~0.8 mA
Deep Sleep~10 µA

Frequently Asked Questions

Why is my actual battery life shorter than calculated?

Several factors reduce real-world battery life: battery self-discharge, temperature effects, battery aging, peak current demands, and inrush currents during wake-up. Use the calculated value as an optimistic estimate and apply a safety factor of 70-80%.

What efficiency should I use?

Direct connection (no regulator): 100%
LDO regulator: (Vout/Vin) × 100, typically 60-80%
Buck converter: 85-95%
Boost converter: 80-90%

How do I measure actual current consumption?

Use a multimeter in series with the battery for average current. For sleep/wake cycles, use an oscilloscope with a current probe or a specialized power profiler (like Nordic PPK or Qoitech Otii).

Can I use this for rechargeable batteries?

Yes, the calculation works for any battery type. Note that rechargeable batteries have lower capacity than their ratings suggest after many charge cycles. Li-ion batteries typically retain 80% capacity after 300-500 cycles.

How does temperature affect battery life?

Cold temperatures reduce battery capacity significantly (up to 50% at -20°C). Hot temperatures increase self-discharge and accelerate battery degradation. Design for the expected operating temperature range.

Verify Your Component Selections

After calculating your component values, use Schemalyzer to verify your schematic design. Our AI-powered analysis catches common errors and suggests improvements.

Try Free Schematic Review