โ† Back to Electronics

Battery

โš  Batteries cannot be discharged to 0 V โ€” this permanently damages the cell. Enter only the usable capacity: Li-Ion / LiPo โ‰ˆ 80% of rated mAh (cut-off 3.0โ€“3.2 V/cell), Lead-acid โ‰ˆ 50%, NiMH โ‰ˆ 80%, Alkaline/primary Li โ‰ˆ 90%.
%
LDO โ‰ˆ 75โ€“85%, boost/buck โ‰ˆ 85โ€“95%, direct โ‰ˆ 100%

Load current

Common battery types โ€” click to use

TypeNominal VTypical capacityChemistryCommon use

Tips & notes

Why use efficiency factor?

Voltage regulators waste energy. An LDO from 9V to 3.3V operates at only ~37% efficiency โ€” most energy becomes heat. Buck converters are 85โ€“95% efficient. The efficiency factor adjusts effective capacity accordingly.

Sleep mode matters

  • An ESP32 active draws ~80โ€“240 mA โ†’ weeks on 18650
  • ESP32 deep sleep โ†’ ~10 ยตA โ†’ months or years on 18650
  • Wake every 60s for 100ms: avg โ‰ˆ 0.013 mA โ€” huge difference
  • Use the Active + Sleep mode tab to model this

Real-world derating

  • Cold temperatures reduce effective capacity (Li-Ion -20% at 0 ยฐC)
  • High discharge rates reduce capacity (Peukert effect)
  • Battery aging: expect 20โ€“30% capacity loss over 2โ€“3 years
  • Multiply result by 0.7โ€“0.8 for a conservative estimate

Cut-off voltage & Depth of Discharge (DoD)

Every battery chemistry has a minimum safe discharge voltage. Going below it causes irreversible capacity loss or cell failure โ€” even a single deep discharge can render a Li-Ion/LiPo unusable.

  • Li-Ion / Li-Po: cut-off 3.0โ€“3.2 V/cell โ†’ use max 80% of rated capacity (some BMS protect at 2.5 V but capacity below 3.0 V is negligible and damages cycle life)
  • Lead-acid (SLA/AGM): max 50% DoD for long cycle life; 80% DoD possible but shortens lifespan significantly
  • NiMH / NiCd: cut-off ~1.0 V/cell โ†’ ~80% usable capacity
  • Alkaline (primary): can discharge to ~0.8 V/cell โ†’ ~90% usable for most devices
  • CR2032 / primary Li (Li/MnOโ‚‚): ~2.0 V cut-off โ†’ ~90% usable, self-discharge limits shelf life more than DoD

Formula

t = (C ร— ฮท) / I

where:
t = runtime [hours]
C = capacity [mAh]
ฮท = efficiency factor
I = average current [mA]

For sleep cycles:
I_avg = (I_act ร— T_act + I_slp ร— T_slp) / (T_act + T_slp)