State of Charge

Simulation
Introduced by
Gregory Plett
Year
2004
Type
Estimation algorithm
Family
Battery Management

What does it do?

State of Charge (SOC) is the amount of energy available in a battery or energy storage system, expressed as a percentage of its current usable capacity.

Errors in SOC matter for safety: an overestimate can allow overcharging, and an underestimate can allow discharge beyond safe limits. Estimators combine current integration (coulomb counting) with voltage-based battery models, commonly through a Kalman-type observer such as the extended Kalman filter.

The intuition behind the method

SOC cannot be read directly from a cell, so it is inferred from measurable quantities: terminal voltage, current, and temperature. Coulomb counting integrates current over time to track the charge removed or added, but its accuracy depends on the current sensor, and small biases accumulate into a growing error. Voltage-based methods use the relationship between open-circuit voltage (OCV) and SOC, yet terminal voltage also depends on current through the internal resistance and is distorted by transient load changes. Kalman-type estimators combine the two: coulomb counting provides the prediction, and the difference between measured and predicted voltage corrects it.

History

Plett's 2004 paper applied extended Kalman filtering to battery management for lithium-ion packs in hybrid electric vehicles and is the source for the model-based EKF approach described here. The approach has since been applied in electric vehicles and renewable energy storage systems.

When to use it

Use SOC estimation whenever the state of charge must be known during operation, for example in electric vehicles, renewable storage systems, UPS units, portable electronics, and power tools, where overcharge and over-discharge must be avoided. A model-based observer such as the EKF is worth its added complexity when a usable equivalent-circuit model and OCV–SOC characterisation are available and the voltage measurement is reliable enough to correct drift. Do not rely on pure coulomb counting over long operating periods or where current sensing is noisy, because its error accumulates without correction. Where a battery model cannot be characterised, a coulomb-counting estimate reset at a verified full-charge reference may be the more practical choice, keeping the limits described under pitfalls in mind.

Limitations and considerations

  • It requires a battery model with an OCV–SOC curve and internal resistance; errors in these parameters propagate directly into the SOC estimate.
  • Model parameters change with temperature and ageing, so a fixed characterisation gradually diverges from the real cell.
  • Where the OCV–SOC curve is flat over part of its range, terminal voltage carries little information about SOC, so voltage-based corrections there are weak.
  • Sensor faults such as a stuck or open-circuit measurement can cause large errors that the filter may not flag quickly.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • The voltage mismatch feeds back into the estimate, so drift in current integration is corrected rather than accumulating indefinitely.
  • The filter's error covariance provides an uncertainty bound alongside the SOC estimate.
  • A systematic bias in the prediction can be partly corrected through the voltage residual, provided the battery model is adequate.
  • It uses sensors already common in battery systems: current, voltage, and temperature.

Applications

  • Battery management systems in electric vehicles
  • Hybrid electric vehicle energy management and powertrain control
  • Renewable energy systems with storage (solar+battery, wind+battery)
  • Uninterruptible power supplies (UPS) for critical loads
  • Portable device battery fuel gauges and charging optimization

How it works

How it works

1

Measure battery current (via a shunt resistor or Hall-effect sensor), terminal voltage (via an ADC), and temperature (via a thermistor). Characterise the OCV–SOC relationship from a discharge curve and the internal resistance R_0 used by the battery model.

2

Filter noise from the current and voltage measurements. Set an initial SOC from the previous operation (stored in non-volatile memory) or from an initial characterisation.

3

Apply coulomb counting with discharge current taken as positive, so that SOC(t) = SOC(t-1) − ∫I dt / Q_capacity: discharge lowers SOC and charge raises it. Q_capacity should be the current usable capacity rather than the nameplate value, because usable capacity falls with ageing and changes with temperature; using a nameplate value that no longer matches the cell introduces a systematic bias. During charging, include coulombic efficiency losses in the integral, otherwise the bias accumulates. Predict the terminal voltage with the battery model, V_pred = V_oc(SOC) − I·R_0, and compare it with the measured voltage V_meas.

4

Apply an Extended Kalman Filter (EKF) or another observer. The coulomb-counting update serves as the prediction step, and the voltage mismatch (V_meas − V_pred) is fed back through the filter gain to correct the SOC estimate and any systematic error. The EKF linearises the nonlinear OCV–SOC relationship around the current estimate.

5

Output the SOC estimate with its uncertainty bound. The reported SOC is only as reliable as the capacity, coulombic efficiency and OCV inputs behind it. Validate the estimator before relying on it: compare the estimate against a reference full charge–discharge cycle, inspect the voltage residual for persistent bias (a residual that keeps one sign over time indicates a model or sensor error), and check that the uncertainty bound stays well inside the margins set by the overcharge and over-discharge limits. Monitor for faults such as a stuck or open-circuit sensor; if the uncertainty becomes large, reinitialise the estimate or request manual calibration.

Common pitfalls

  • Using coulomb counting alone without voltage correction: sensor bias accumulates and the estimate drifts away from the true SOC.
  • Assuming a fixed OCV–SOC curve when it shifts with temperature and ageing.
  • Mis-tuning the noise covariances: a process-noise setting that is too low makes the filter trust the coulomb-counting prediction, so voltage corrections take effect slowly; a measurement-noise setting that is too low makes the filter follow voltage noise. Both should be checked against the actual sensor and model errors.
  • Neglecting temperature effects on open-circuit voltage, which can be significant in cold climates. Characterise OCV–SOC across the operating temperature range, or use temperature-dependent curves when temperature varies widely, and re-characterise periodically as the cell ages.

Frequently asked questions

Why can't I just use a fuel gauge from terminal voltage?

Terminal voltage changes with current (voltage drop across internal resistance) and temperature, so a single voltage measurement doesn't uniquely determine SOC. The relationship V(SOC) is also nonlinear and hysteretic. Combining voltage with integrated current (coulomb counting) provides much better accuracy.

What happens when coulomb counting drifts due to sensor error?

Sensor bias (shunt resistor drift, ADC offset) causes coulomb counting to gradually diverge from true SOC. The Kalman filter detects this as a growing mismatch between predicted and measured voltage and corrects the SOC estimate over time. Voltage-based correction can limit long-term drift, but only if the battery model is adequate; a poor model can mask or mislead the correction.

How often should I reinitialize SOC when the battery is fully charged or discharged?

Reset the estimate only at a point where SOC is known with confidence. A full charge, for example when the charger terminates in constant-voltage charging, can set SOC near 100 percent, but only if the cell is actually fully charged. Other endpoints, including discharge to the cutoff voltage, do not map to a fixed SOC, because the cutoff voltage depends on current, temperature and ageing; a reset there needs a validated reference and should be checked against the voltage residual. There is no fixed interval; the need depends on how far the estimate has drifted, which the voltage residual can indicate.

Related methods

Sources

  1. Plett, G. L. (2004). Extended Kalman filtering for battery management systems of LiPB-based HEV battery packs. Journal of Power Sources, 134(2), 252-261.

    Open DOI reference
  2. He, H., Xiong, R., & Fan, J. (2011). Evaluation of lithium-ion battery equivalent circuit models for state of charge estimation by an extended Kalman filter. Journal of Power Sources, 196(6), 3365-3373.

    Open publication reference