Illustration of a battery cell beside four gauges labelled SOC (state of charge), SOH (state of health), SOE (state of energy) and SOP (state of power)
A battery management system estimates four states from three measurements.

A battery can’t tell you how full it is. There is no sensor inside a lithium-ion cell that reads “62 %”. Everything a battery management system (BMS) reports about the state of a battery, from the percentage on a dashboard to the remaining range of an electric truck, is an estimate built from three measurements: current, voltage and temperature. This post explains what those estimates are, how a BMS calculates them, and why some batteries, LFP in particular, make the job much harder.

Key takeaways

  • A BMS estimates four main states: state of charge (SOC), state of health (SOH), state of energy (SOE) and state of power (SOP).
  • Most BMSs combine coulomb counting with a voltage-based correction. That works well when voltage changes clearly with charge, and poorly when it doesn’t.
  • LFP (lithium iron phosphate) cells have a flat voltage curve and voltage hysteresis, so voltage says little about SOC across most of the range.
  • Physics-based models, such as a P2D electrochemical model reformulated to run on a BMS microcontroller, track what is happening inside the cell instead of fitting a curve to its outside.

What are SOC, SOH, SOE and SOP?

Diagram: current, voltage and temperature measurements feed the BMS microcontroller, which estimates SOC (how full), SOH (how aged), SOE (energy left) and SOP (power available now)
A BMS measures only current, voltage and temperature. Every state it reports is an estimate built from those three signals.

State of charge (SOC)

SOC is the battery’s fuel gauge: how much of its usable charge is left, as a percentage of its current capacity. 100 % is full and 0 % is empty.

State of health (SOH)

SOH describes how much the battery has aged. It is usually given as today’s capacity as a percentage of the capacity when new. A pack at 80 % SOH holds four-fifths of the charge it held on day one. Rising internal resistance is the other half of ageing, because it limits power.

State of energy (SOE)

SOE is like SOC but counts energy (watt-hours) instead of charge (amp-hours). It matters because the energy you get out depends on voltage, and voltage falls as the battery empties. Range estimates and energy trading in grid storage both rely on SOE.

State of power (SOP)

SOP is how much power the battery can deliver or accept right now, for the next few seconds, without breaking a voltage, current or temperature limit. A vehicle uses SOP to decide how hard it can accelerate or how fast it can regenerate; a charger uses it to decide how fast to charge.

How does a BMS estimate state of charge?

Coulomb counting

The simplest method adds up the current flowing in and out over time, like metering every litre of fuel pumped into a tank and burned. It is smooth and responsive, but it has no memory of where it started and it inherits every error in the current sensor. A current sensor that reads 2 % high makes the SOC estimate drift by 2 % of every amp-hour that passes through it, and the error never corrects itself.

Chart: over several charge and discharge cycles, a coulomb count from a current sensor that reads high drifts further from the true state of charge
Coulomb counting on its own: a small current-sensor error builds up with every cycle. Illustrative; the drift is exaggerated so it is visible.

Voltage-based correction

To stop that drift, a BMS checks the count against voltage. When the battery has rested, its open-circuit voltage (OCV) maps to SOC through a lookup table. While it is working, many BMSs run an equivalent-circuit model (a few resistors and capacitors that mimic the cell’s response) with a Kalman filter, which blends the coulomb count with what the voltage suggests.

This only works if voltage carries information about SOC.

Why is SOC estimation hard on LFP batteries?

LFP is now the default chemistry for heavy-duty vehicles, buses and grid storage because it is safe, long-lived and low-cost. It is also the hardest common chemistry for state estimation, for three reasons:

  1. A flat voltage curve. Across most of its range, an LFP cell’s voltage barely moves. On a heavy-duty truck pack we tested, the average cell voltage changed by only 38 mV between 70 % and 40 % SOC. A few millivolts of measurement error is worth several points of SOC.
  2. Hysteresis. At the same SOC, an LFP cell rests at a different voltage depending on whether it was last charged or discharged. A lookup table can’t know which.
  3. Current-sensor drift. Because voltage can’t correct the count through the flat middle, the coulomb count carries the estimate, along with all of the current sensor’s error. Automotive Hall-effect sensors drift by roughly 1.4 to 3.4 % over temperature and lifetime.
Chart: NMC open-circuit voltage rises steadily with state of charge, while LFP stays almost flat between the steep ends, with separate charge and discharge branches; between 40 and 70 percent the test pack changed by only 38 mV
Why voltage helps on NMC but not on LFP. Through the flat middle of the LFP curve, and with separate charge and discharge branches, voltage says little about state of charge. Illustrative curves; the 38 mV figure is from our test pack.

The practical result is a gauge that hedges. If the BMS can’t trust its SOC, it holds back a reserve, and on a large pack every point of SOC is kilowatt-hours the owner paid for but can’t use.

How physics-based state estimation works

A different approach is to model the cell itself. The pseudo-two-dimensional (P2D) model, introduced by Doyle, Fuller and Newman in 1993, describes a lithium-ion cell from the inside: how lithium moves through each electrode, through the electrolyte and into the particles of active material, and how fast it reacts at their surfaces. Its states are physical quantities, not fitted curve parameters, so they stay meaningful as the cell ages and as temperature changes.

Cross-section of a lithium-ion cell: negative electrode particles, separator and positive electrode particles, with lithium ions crossing the separator during discharge; the P2D model tracks lithium across the cell (x) and into each particle (r)
The P2D model follows lithium in two dimensions: across the cell, through the electrodes and the electrolyte, and into each particle of active material.

The P2D model has long been considered too heavy to run on a BMS microcontroller. BattGenie’s team has spent years reformulating it so that it solves in real time on automotive MCUs while keeping those physical states. In our BG_SOX estimator, the model works in a loop:

  1. Measure: read the current, voltage and temperature the BMS already collects.
  2. Predict: run the P2D model forward with the measured current and predict each cell’s voltage.
  3. Compare: subtract the measured voltage from the predicted voltage.
  4. Correct: use that difference to correct the model’s internal states, trusting voltage most where it actually carries SOC information (near empty and near full on LFP). A difference that keeps growing in one direction with charge throughput is the signature of a mis-scaled current sensor, so the gain is corrected too.
  5. Estimate: report SOC, SOH, SOE and SOP back to the BMS.
Loop diagram of the BG_SOX estimator around a physics-based P2D model: 1 measure, 2 predict cell voltage, 3 compare with measured voltage, 4 correct internal states and sensor gain, 5 estimate SOC, SOH, SOE and SOP
The BG_SOX loop runs every BMS time step on the measurements the BMS already takes.

Because the model describes the cell rather than one pack, the same parameters carry over to a new pack layout.

What accuracy is realistic?

On a 192S2P LFP heavy-duty truck pack, BG_SOX running on the pack’s own master BMS tracked a test cycler’s reference SOC with a root-mean-square error of 0.6 % over 47 hours of drive cycles and charges, and reached 0 % before the voltage cut-off in every full discharge. The full test report is in our white paper.

Current-sensor error is where the methods separate. In a 9.2-hour test on a 460 Ah LFP pack whose BMS read charge current up to 13 % high and discharge current up to 18 % low, coulomb counting alone ended 12.7 % off, and an equivalent-circuit model with a Kalman filter averaged 1.7 % RMS error. BattGenie’s physics-based estimator averaged 0.5 % and was never more than 2.0 % off. These figures come from BattGenie internal testing; that white paper is available on request.

Results: 0.6 percent RMS state-of-charge error over 47 hours on a 192S2P LFP truck pack; in a current-sensor test on a 460 Ah LFP pack, coulomb counting ended 12.7 percent off, an equivalent-circuit model with a Kalman filter averaged 1.7 percent RMS error, and BattGenie's physics-based estimator averaged 0.5 percent with a 2.0 percent maximum
Results from BattGenie testing. The pack validation is described in the BG_SOX white paper; the current-sensor results come from BattGenie internal testing.

Frequently asked questions

What is a good SOC accuracy for a BMS?

It depends on chemistry and use, but most automotive programs aim for an SOC error of a few percent or better across the operating range. On LFP, holding that through the flat middle of the curve is the hard part.

Can SOC be measured directly?

No. No sensor reads SOC inside a cell. It is always estimated from current, voltage and temperature, which is why the estimation method matters.

What is the difference between SOC and SOH?

SOC is how full the battery is today. SOH is how much the battery has aged, usually today’s capacity compared with its capacity when new.

Why does my LFP battery percentage jump near full or empty?

Through most of the range the BMS can’t correct its coulomb count with voltage, so errors build up. Near full and empty the voltage curve steepens, the BMS finally sees the error, and the percentage jumps to catch up.

Do physics-based models need new BMS hardware?

Not necessarily. BG_SOX runs as a software library on automotive microcontrollers such as NXP S32K3 and Infineon AURIX TC3xx.

Further reading

Share
LinkedIn