Free tool · Works in your browser

ESP32 battery life calculator

How long will your ESP32 last on a battery, waking from deep sleep? Change the numbers and see the estimate, and where the energy goes. Typical values; your board will differ.
1
Which chip?
2
What powers it?
3
How often does it wake to do its job?
4
Does it use Wi-Fi on every wake?
Estimated battery life
About 9 months
Wi-Fi on every wake uses most of the battery.
What would help most
Use Wi-Fi once a day → about 2 years 3 months
Wake every hour instead of every 15 min → about 1 year 9 months
An estimate from typical values; your board and code will differ.
otalite (coming soon) will run your actual code against a virtual battery until it's empty, before each release.
How we estimate

How long will my ESP32 last on a battery?

We add up a typical day: the time your ESP32 spends awake doing its job, the time it keeps Wi-Fi up to connect and send, the rest of the day in deep sleep, the battery's own self-discharge, and a few OTA updates a year. Then we divide the battery's usable capacity by that daily total.
Each chip and battery choice fills in typical values from Espressif's datasheets and the battery's chemistry; open Advanced to change them. On most battery devices, Wi-Fi is the biggest cost, so how often a device connects matters more than anything else.
Deep sleep current depends on the whole board, not just the chip. An ESP32 chip sleeps on microamps, but many development boards draw far more asleep, through their voltage regulator, power LED and USB-UART bridge. Measuring your own board in deep sleep gives the one number that changes the answer most.