1. Electronics Tools
  2. Battery Life Calculator for Arduino & ESP32

Battery Life Calculator for Arduino & ESP32

Tell it how much your board draws awake and asleep and how often it wakes up: get the battery life, and what eats your charge.

18650ESP32zZ
Try

Battery

3.7 V · about 85% usable before the voltage drops too low · loses 2% a month on its own.

Awake

Asleep

Regulator and always-on parts

What the voltage regulator or a sensor uses even when the board sleeps: MCP1700 ≈ 1.6 µA, HT7333 ≈ 4 µA, AMS1117 ≈ 5 mA.

Battery and current

18650 Li-ion+Lasts about 71.8 days
1 µA1 mA1 Aavg 1.212 mA120 mA11.6 µAtime → (two and a half wake-up cycles)

Short tall spikes are the wake-ups; the flat floor is sleep. The dashed line is the average the battery really feels.

Battery life

71.8days

Average draw 1.212 mA — 1723 hours in total.

Where the charge goes

  • Awake94 %
  • Asleep< 1 %
  • Regulator< 1 %
  • Self-discharge6 %

Results

Average current
1.212 mA
Time awake
1 %
Usable capacity
2210 mAh
Total runtime
1723 h

Waking up costs 94% of the charge: wake less often or stay awake less — halving either almost doubles the life.

How low must sleep go?

Keep everything else as it is and see the sleep current needed for a target life.

1 year is out of reach even with zero sleep current: wake up less often, stay awake less or use a bigger battery.

Step by step

  1. D

    D = ton / T

    = 3 s ÷ 300 s = 1 %

  2. I

    Iavg = Ia × D + Is × (1 − D) + Iq

    = 120 mA × 0.01 + 10 µA × 0.99 + 1.6 µA = 1.212 mA

  3. C

    Cusable = C × usable

    = 2600 mAh × 85 % = 2210 mAh

  4. t

    life = Cusable ÷ (Iavg + C × self/730 h)

    = 2210 mAh ÷ 1.283 mA = 1723 h

Good to know

Use deep sleep

ESP32 deep sleep is ≈ 10 µA, an ATmega in power-down < 1 µA. delay() keeps the chip fully awake — it saves nothing.

Remove the power LED

A dev board's power LED alone draws 2–5 mA, more than the chip asleep. Desolder it, or cut its trace.

Pick a low-Iq regulator

AMS1117 regulators burn 5 mA doing nothing. MCP1700, HT7333 or XC6206 use a few µA.

Measure, don't guess

Put a multimeter in series on the µA range for sleep, mA for awake. Datasheet sleep figures are for the bare chip, not the board.

How the estimate works

A battery only feels the average current. Awake current times the share of time awake, plus sleep current for the rest, plus anything always on, gives the average: Iavg = Ia × D + Is × (1 − D) + Iq. Divide the usable capacity (a bit less than the label) by that average — plus the battery's own self-discharge — to get the life.

How to estimate your project's battery life

How battery life is calculated

life (h) = usable capacity (mAh) / average current (mA)

A battery-powered board is rarely awake all the time: it wakes up, measures, sends, then sleeps. What counts is the average current. The duty cycle is the share of time spent awake, so Iavg = Iactive × duty + Isleep × (1 − duty) + Iregulator.

The voltage regulator and other always-on parts (power LED, USB chip, sensor) draw current 24 hours a day. On many boards this quiescent current, not the microcontroller, decides the battery life: an AMS1117 alone draws about 5 mA.

A battery never gives its full rated capacity: the circuit stops before the battery is completely empty, and the battery also loses charge on its own. The calculator uses a usable share of 70% to 90% depending on the chemistry, and adds a monthly self-discharge.

Worked example: an ESP32 sensor on an 18650 cell

An ESP32 wakes every 10 minutes, stays awake 5 seconds at 80 mA, then sleeps at 10 µA. It runs from a 2 600 mAh 18650 cell (85% usable) through a low-quiescent regulator (5 µA).

  1. Duty cycle5 s / 600 s = 0.83%
  2. Average current80 mA × 0.0083 + 0.010 mA + 0.005 mA ≈ 0.68 mA
  3. Usable capacity2 600 mAh × 0.85 = 2 210 mAh
  4. Battery life (with self-discharge)2 210 mAh / 0.75 mA ≈ 2 940 h ≈ 4 months

About 4 months, and almost 90% of the charge goes to the awake time, so shortening it is the best lever. The same project behind an AMS1117 (5 mA quiescent) lasts only about 16 days.

Common mistakes

  • Using the chip's deep-sleep figure for the whole board

    The ESP32 itself sleeps at about 10 µA, but a DevKit board with its regulator, power LED and USB chip still draws several milliamps. Measure the board, not the datasheet.

  • Forgetting the regulator

    An AMS1117 adds about 5 mA around the clock, 500 times the sleeping ESP32. Pick an LDO with a quiescent current of a few microamps for battery projects.

  • Expecting the rated capacity

    Capacity is measured at a low, steady current. High peaks (Wi-Fi transmissions reach 300 mA or more), cold weather and the cut-off voltage reduce what you really get.

  • Powering a project from a 9 V battery

    A 9 V battery holds only about 500 mAh, and a linear regulator wastes almost half of it as heat. Three AA cells or an 18650 last many times longer.

Battery life FAQ

Always on with Wi-Fi (about 100 mA on average): roughly a day. Waking every 10 minutes with a good regulator: several months. The awake time and the regulator's quiescent current make all the difference.

The Uno draws about 45 mA doing nothing, so a 500 mAh 9 V battery lasts around 8 hours. For long battery life use a bare ATmega328P or a Pro Mini with the power LED and regulator removed.

The share of time the circuit is awake. Awake 5 seconds every 10 minutes is 5 / 600 = 0.83%; the active current only counts for that share of the time.

Put a multimeter in series on the µA range once the board is asleep (it may reset when switching ranges). For the full profile with its peaks, a USB power meter or a dedicated current monitor works better.

Not reliably: a CR2032 holds about 220 mAh and its voltage collapses above about 15 mA, while Wi-Fi needs peaks of several hundred milliamps. It suits low-power chips and BLE sensors.

Free shipping

On orders over 5000DA

Easy returns

7-day hassle-free returns

Fast checkout

payments on delivery and fast shipping

24/7 support

We're here to help

Dzduino Online Store

Eempowering engineers, students, makers, researchers, and businesses with high-quality and innovative technical solutions.

  • Sales: store@dzduino.com
  • Store: +213 550 88 88 27
  • Sales: +213 550 88 88 29
  • Support: +213 550 88 88 37
  • 043 Cite Remila (Route du Port), Tigditt - Mostaganem

Shop

  • All Categories
  • Électronique & Développement
  • Tools & Equipements & DIY
  • Téléphonie & Communication
  • Fabrication & Prototyping
  • Computers & Networks
  • Power & Energy & Solar
  • Video Surveillance & Security systems
  • Educational, Scientific and Laboratory

Support

  • Track order
  • Orders
  • Account
  • Shipping & returns
  • Shipping calculator

Company

  • About
  • Contact us
  • Site map
  • Privacy
  • Terms

Stay in the loop

New stock, maker deals, and electronics tips — straight to your inbox.

© 2026 Dzduino Electronics, All Rights Reserved

TermsPrivacyShipping & returnsSite map
CIBBARIDI MobFawriPayCash

Related products

Boards, modules, and kits that pair with this tool.

View all
iMAX B6 Digital RC Lipo NiMH/ battery Balance Charger
DZD0002120

iMAX B6 Digital RC Lipo NiMH/ battery Balance Charger

DZD 7,500.00Out of StockOut of Stock
Universal charger 40W slim Mac Tech MT-140 PA
DZD0010940

Universal charger 40W slim Mac Tech MT-140 PA

DZD 2,400.00Out of StockOut of Stock
Wireless Charging Module - 5V 2A
DZD0021940

Wireless Charging Module - 5V 2A

DZD 2,900.00Out of StockOut of Stock
PWM 30A Dual USB Solar Charge Controller 12V 24V
DZD0023000

PWM 30A Dual USB Solar Charge Controller 12V 24V

DZD 3,000.00Out of StockOut of Stock
IMAX B3 Lipo Battery Balance Charger 20w
DZD0025241

IMAX B3 Lipo Battery Balance Charger 20w

DZD 2,000.00In StockIn Stock
Wireless Quick Charger Pad
DZD0029222

Wireless Quick Charger Pad

DZD 2,600.00In StockIn Stock
DC 12V To 5V 3A Power Adapter Supply Car Dual USB Charger
DZD0031810

DC 12V To 5V 3A Power Adapter Supply Car Dual USB Charger

DZD 1,500.00Out of StockOut of Stock
1S 3.7V 4.2V 4A BMS PCM Battery Protection Board 18650
DZD0042580

1S 3.7V 4.2V 4A BMS PCM Battery Protection Board 18650

DZD 400.00Out of StockOut of Stock
Free express shipping on orders over 10,000DA
SpecialSaleBlogPrint & CutLabContact usToolsNewLabNew