How the battery state of charge calculation works
State of charge (SOC) is the charge remaining as a share of the battery’s capacity. A shunt-based battery monitor measures current continuously and integrates it over time, adding charge when charging and removing it when discharging. This calculator does the same for one constant-current period.
Not all charge put in can be taken back out: a small share is lost to side reactions. The coulombic efficiency accounts for that when charging. Over many cycles small measurement errors accumulate, which is why monitors re-synchronise to 100 % when the battery reaches full charge.
Resting voltage is a poor SOC indicator for LiFePO4 because its voltage curve is very flat between roughly 20 % and 90 %; coulomb counting is more reliable for that chemistry.
Formula
- I
- average current (A)
- t
- duration (h)
- C
- capacity (Ah)
- η_c
- coulombic efficiency
Worked example
- A 100 Ah battery starts at 100 % and supplies 10 A for 3 hours.
- Charge removed: 10 × 3 = 30 Ah, so SOC = 100 % − 30 % = 70 % (70 Ah left).
- At the same 10 A it would be empty after another 70 ÷ 10 = 7 hours.
Assumptions and limitations
Assumptions
- Constant average current over the period.
- Capacity is the actual (not just rated) capacity of the battery.
Limitations
- Self-discharge, temperature effects and capacity fade are not modelled.
- Current-measurement errors accumulate over time in real monitors.
Frequently asked questions
How do I know my battery’s starting SOC?
After a full charge it is 100 %. Otherwise use your BMS or battery monitor reading. Open-circuit voltage after several hours of rest gives a rough estimate for lead-acid batteries.
Why does my battery monitor drift?
Small current-measurement errors and charge losses build up. Most monitors reset to 100 % when charging ends in the float or full state.
Related calculators
Battery Depth of Discharge Calculator
Depth of discharge, state of charge and remaining energy after a discharge.
Battery Runtime Calculator
How long a battery runs a load, including inverter efficiency and Peukert effect.
Battery C-Rate Calculator
C-rate, ideal charge/discharge time and power from current.
References and data sources
- BU-903: How to Measure State-of-charge — Battery University (Cadex Electronics)
- Guide for the Use of the International System of Units (SP 811) — NIST
Last reviewed: · Formula version 1.0.0 · Methodology