ESP32 Battery Life Calculator
Estimate runtime from your wake, radio, and deep-sleep cycle. See how much current each phase and the regulator draw from the battery.
Estimated runtime
Conservative −15%
Nominal
Optimistic +10%
- Cycle duration
- 3.3 V load average
- Battery input average
Battery current breakdown
| Component | Avg. mA | Share |
|---|
Formula and assumptions
- Cycle time = active seconds + TX seconds + sleep seconds. Load average = sum of each phase’s current in mA multiplied by its share of cycle time. Divide µA by 1,000 to get mA.
- Ideal battery current = load average × 3.3 V ÷ battery voltage. Battery input average = ideal battery current ÷ efficiency + regulator quiescent current in mA. Regulator overhead = battery input average − ideal battery current.
- Nominal hours = battery capacity × usable fraction ÷ battery input average. Days are 24 hours and months are 30 days. At zero input current, the model has no finite runtime estimate.
- The bounds multiply nominal runtime by 0.85 and 1.10, equivalent to varying usable capacity with current held constant. These are planning scenarios. The model assumes constant battery voltage and efficiency and excludes self-discharge. Include any board LEDs, peripherals, and leakage in the phase currents.
Preset sources and setup
- The presets use an example 2,000 mAh, 3.7 V battery and the default regulator settings. Timing is illustrative and the currents are chip or radio reference values. For your own board, enter measured phase averages.
- C3 BLE sensor. Wakes every 15 minutes, with 1 s at 28 mA (160 MHz CPU running, peripheral clocks enabled), 0.05 s of TX modeled at the 262 mA reported BLE peak, and deep sleep at 5 µA. ESP32-C3 datasheet · Espressif BLE power measurements
- S3 Wi-Fi logger. Wakes every 5 minutes, with 3 s modeled at the 88 mA HT20 receive peak, 0.5 s at the 283 mA HT20 MCS7 transmit peak, and deep sleep at 7 µA with RTC memory retained. ESP32-S3 datasheet, tables 5-7 and 5-10
- Continuous active bench test. Models a C3 running at 160 MHz with peripheral clocks enabled (28 mA) throughout a repeating 60 s interval. ESP32-C3 datasheet, table 5-8