Skip to content
ASLبشمهندس عسلAGENT / 101
HomeWorkToolsNotesAboutStart a project

OPEN FOR SELECTED COLLABORATIONS / 101

Bring the system that needs an answer.

Send a project briefEmail Ahmed

اسأل. تعلّم.

ابنِ. اختبر.

© 2026 AHMED IBRAHIM ASLبشمهندس عسلEGYPT / SYSTEMS ENGINEER / AGENT 101
Back to Tools

ESP32 Battery Life & Power Estimator

Estimate idealized battery life from repeating operating phases.

Answer first

How long will an ESP32 battery last with active and sleep duty cycles?

Enter usable battery capacity plus sleep, active, and optional Wi-Fi current and duration. The estimator calculates average current, energy per cycle, cycles per day, duty cycle, and idealized runtime. Use measured current for your actual board and include regulator loss, battery aging, temperature, self-discharge, cutoff voltage, and radio retries before planning deployment.

BATTERY

Valid range 0 to 50,000 mAh

How much of the rated capacity is usable before cutoff voltage - derating for age, temperature, and discharge curve.

SLEEP

Valid range 0 to 100,000 µA

Valid range 0 to 604,800 s

ACTIVE

Valid range 0 to 1,000 mA

Valid range 0 to 60,000 ms

WI-FI

Valid range 0 to 1,000 mA

Valid range 0 to 60,000 ms

Estimate, not a measurement: this assumes constant battery-side current in each phase. Real battery life varies with regulator losses, battery age, temperature, self-discharge, voltage limits, and radio behavior.

ESTIMATED BATTERY LIFE
73 days
Approximately 2.4 months
Show the math
  1. Usable capacity: 2000 mAh × 100% = 2000 mAh
  2. Active phase draw: 120 mA × 0.50s = 0.0167 mAh
  3. Wi-Fi phase draw: 140 mA × 2.00s = 0.0778 mAh
  4. Sleep phase draw: 0.0100 mA × 300s = 0.000833 mAh
  5. Total per cycle: 0.0953 mAh over 302.5s
  6. Cycles until exhausted: 2000 mAh ÷ 0.0953 mAh = 20,991 cycles
  7. Total runtime: cycles × cycle length ÷ 3600 = 1763.8 hours
AVERAGE CURRENT
1.13 mA
ENERGY PER CYCLE
0.0953 mAh
Sleep: 0.9%Active: 17.5%Wi-Fi: 81.6%
CYCLES/DAY
286
ACTIVE TIME
0.17 %

Design guide

Use the result with engineering context

Technical content reviewed September 15, 2026

When this tool is useful

  • Comparing firmware duty cycles before building a battery prototype
  • Seeing whether sleep, sensing, or radio activity dominates each cycle

What the result includes

  • Estimated runtime, average current, cycles per day, and active-time percentage
  • A phase-by-phase energy estimate for sleep, active work, and Wi-Fi

What the model does not guarantee

  • The model assumes the entered phase currents remain constant and repeat predictably
  • It does not model battery discharge curves, regulator quiescent current, startup peaks, temperature, aging, retries, or self-discharge automatically

Worked approach

Measure the phases that dominate

Begin with datasheet values to compare architectures, then measure the complete board during sleep, startup, sensing, processing, and transmission. Replace estimates with measurements and rerun the same duty cycle.

Common decisions

Questions engineers ask

Why is a development board worse than a bare ESP32 module in sleep?

USB converters, regulators, LEDs, dividers, pull resistors, and attached modules can keep drawing current while the ESP32 sleeps. Measure the complete board rather than using the chip number alone.

Does battery capacity in mAh stay constant for every load?

No. Available capacity depends on chemistry, discharge rate, temperature, age, cutoff voltage, and the load profile. Use a conservative usable-capacity percentage and the battery datasheet.

How should I model Wi-Fi reconnection?

Measure the current and duration across multiple real reconnections, including failed attempts. Use a representative or conservative value rather than the shortest successful trace.

Related build evidence

Fall Detection System

This portable sensing prototype connects hardware, vision development, and an interface. It provides adjacent system evidence and does not claim a measured runtime equal to this calculator's estimate.

See the project

Apply it to real hardware

Need a battery budget for a portable IoT prototype?

Share the battery, board, sensors, radio schedule, wake triggers, regulator, and target service interval. Measurements can replace assumptions as the prototype develops.

Discuss the system
Ahmed Ibrahim Asl
Behind the workbenchAhmed Ibrahim Asl

Embedded Systems & IoT R&D Engineer

From a calculation to a working prototype.

I build embedded firmware, connected hardware, and the interfaces that make them usable. Explore the projects behind this workbench, or tell me what you need to build.

See embedded & IoT projects ↗Discuss a project ↗Read engineering notes ↗