State of Charge (SOC): A Practical Automotive Engineering Guide

Introduction

State of Charge (SOC) is an estimate of how much charge remains available in a rechargeable battery relative to a defined reference capacity. It is commonly displayed as a percentage and is used by the Battery Management System (BMS), vehicle control functions, charging logic and the driver information system.

SOC is not measured directly by a single sensor. A BMS estimates it using electrical measurements, battery models, calibrated parameters and operating history. The estimate is affected by current-sensor accuracy, cell chemistry, temperature, ageing, usable-capacity limits, relaxation and model uncertainty.

A displayed SOC of 75% therefore does not mean that a sensor has directly measured 75% of the battery's chemical contents. It means the estimator's model indicates that approximately 75% of the defined usable charge window remains under its chosen reference and assumptions.

This guide explains the engineering methods used to estimate SOC, how they are integrated into an automotive BMS, and how the estimator is calibrated and validated.

1. What SOC represents

A simplified definition is:

SOC=QremainingQreference×100%SOC = \frac{Q_{\text{remaining}}}{Q_{\text{reference}}}\times 100\%

where:

  • QremainingQ_{\text{remaining}} is the estimated charge remaining within the defined operating window.
  • QreferenceQ_{\text{reference}} is the capacity used as the estimator's reference.

The reference capacity must be defined. Depending on the BMS design, it may represent a calibrated full-charge capacity, an estimated available capacity, or a capacity bounded by the vehicle's permitted upper and lower operating limits.

SOC is not the same as energy

Charge is commonly expressed in ampere-hours (Ah), while energy is expressed in watt-hours (Wh) or kilowatt-hours (kWh). Energy depends on voltage as well as charge:

E=∫V(Q) dQE = \int V(Q)\,dQ

Consequently, two batteries at the same SOC percentage do not necessarily contain the same amount of energy. Their capacity, voltage characteristics, temperature, ageing state and permitted operating window may differ.

SOC, SOH and SOP

ParameterMeaningTypical use
SOCState of ChargeRemaining charge estimate and energy management
SOHState of HealthIndication of battery ageing or condition
SOPState of PowerEstimate of allowable charge and discharge power under current conditions

These estimates are related but are not interchangeable. For example, a battery may have a high SOC but a reduced allowable discharge power because of low temperature, high temperature, voltage limits or an ageing-related constraint.

2. Where SOC estimation fits in a BMS

The BMS receives measurements from the battery pack and cell-monitoring electronics. It combines these measurements with battery parameters and estimator states to calculate SOC.

Rendering diagram...

The measurement and estimation chain commonly includes:

  1. Cell-voltage acquisition: cell-monitoring devices measure individual cell or cell-group voltages.
  2. Current acquisition: a shunt or Hall-effect sensor measures pack current.
  3. Temperature acquisition: sensors monitor selected cell, module or pack locations.
  4. Signal conditioning: the BMS checks plausibility, range, timing and sensor status.
  5. Estimation: the algorithm updates SOC using measured current and battery-model information.
  6. Correction and supervision: voltage-based or model-based corrections may reduce accumulated drift.
  7. Distribution: the resulting estimate is provided to vehicle functions, charging control, diagnostics and the driver display.

The exact architecture depends on cell chemistry, pack topology, sensing hardware, safety concept and vehicle requirements.

3. Coulomb counting

Coulomb counting, also called current integration or ampere-hour integration, estimates the change in battery charge by integrating current over time.

For a discrete-time implementation, a simplified discharge-positive equation is:

SOCk+1=SOCk−IkΔt3600Qusable×100SOC_{k+1}=SOC_k-\frac{I_k\Delta t}{3600Q_{\text{usable}}}\times100

where:

  • SOCkSOC_k is the previous SOC in percent.
  • IkI_k is measured battery current in amperes.
  • Δt\Delta t is the elapsed time in seconds.
  • QusableQ_{\text{usable}} is the reference usable capacity in ampere-hours.
  • Positive current is defined here as discharge.

The factor 3600 converts seconds to hours. This equation is an idealized update; a production estimator may use numerical integration, current filtering, efficiency maps, temperature-dependent capacity and additional correction logic.

Example calculation

Assume:

  • Initial SOC = 80%.
  • Usable reference capacity = 100 Ah.
  • Average discharge current = 20 A.
  • Duration = 30 minutes = 0.5 hours.

The discharged charge is:

Qused=20×0.5=10 AhQ_{\text{used}}=20\times0.5=10\text{ Ah}

The SOC reduction is:

ΔSOC=10100×100=10%\Delta SOC=\frac{10}{100}\times100=10\%

The idealized final SOC is therefore 70%.

This example assumes constant current, an accurate initial SOC, a correct 100 Ah usable-capacity reference and no efficiency or operating-window correction.

Charge and discharge efficiency

A practical estimator may account for different effective efficiencies during charging and discharging. One conceptual formulation is:

ΔQ={−ηdisIΔt/3600,discharge−ηchIΔt/3600,charge\Delta Q = \begin{cases} -\eta_{\text{dis}} I\Delta t/3600, & \text{discharge}\\ -\eta_{\text{ch}} I\Delta t/3600, & \text{charge} \end{cases}

This expression is only illustrative: the sign convention and placement of efficiency factors must match the implementation's current definition and battery model. Real algorithms may use current-dependent and temperature-dependent efficiency maps rather than fixed constants.

Advantages

  • Uses a continuously available current measurement.
  • Responds to charge and discharge events without waiting for battery rest.
  • Is computationally efficient and suitable for embedded controllers.
  • Can track SOC during driving, charging and regenerative braking.

Limitations

Coulomb counting accumulates measurement and model errors over time. Its accuracy depends on:

  • Current-sensor offset, gain error, noise and sampling.
  • Accuracy of the initial SOC.
  • Correct usable-capacity estimation.
  • Charge and discharge efficiency assumptions.
  • Current integration timing and numerical implementation.
  • Temperature and ageing compensation.

A small persistent current offset can cause significant SOC drift over a long operating period. For this reason, coulomb counting is commonly combined with correction methods and plausibility checks.

4. Voltage-based SOC estimation

Battery terminal voltage contains information about SOC, but terminal voltage is not always equal to the equilibrium open-circuit voltage (OCV).

A simplified equivalent-circuit view is:

Vterminal≈OCV(SOC,T)−IR0−VpolarizationV_{\text{terminal}} \approx OCV(SOC,T)-I R_0 - V_{\text{polarization}}

The exact equation depends on the current sign convention and model structure. The expression illustrates that terminal voltage is influenced by current, ohmic resistance and dynamic polarization in addition to SOC.

Open-circuit voltage method

An OCV-based method estimates SOC by comparing a sufficiently relaxed cell voltage with a calibrated OCV-versus-SOC relationship for the relevant chemistry and temperature.

A typical workflow is:

  1. Detect a suitable rest or low-current condition.
  2. Confirm that the voltage has had sufficient time to relax for the intended accuracy.
  3. Measure cell voltage and temperature.
  4. Apply the appropriate calibrated OCV-SOC relationship.
  5. Use the result as an SOC correction or plausibility reference.
Rendering diagram...

Why terminal voltage alone can be misleading

  • Under load, voltage drops because of internal resistance and polarization.
  • During charging, terminal voltage may be elevated above its relaxed value.
  • Temperature changes the voltage response and the OCV-SOC relationship.
  • Some chemistries have relatively flat OCV regions, making voltage-based SOC less observable.
  • Hysteresis means voltage can depend on the preceding charge or discharge history.
  • Relaxation time depends on cell chemistry, temperature and prior operating conditions.

An OCV lookup should therefore not be applied blindly while significant current is flowing or before the required relaxation conditions are met.

5. Model-based SOC estimation

Model-based estimators use a mathematical representation of battery behavior to combine current, voltage and temperature measurements. They can estimate SOC during dynamic operation, when direct OCV-based correction is not suitable.

Equivalent-circuit models

A common engineering approach is to represent a cell using an open-circuit voltage source, an ohmic resistance and one or more RC polarization branches.

Rendering diagram...

The model parameters are calibrated using cell test data. Depending on the selected model, they may vary with SOC, temperature and ageing.

The model predicts terminal voltage from its internal state and measured current. The estimator compares predicted voltage with measured voltage and uses the residual to correct the SOC and other estimated states.

Kalman-filter approaches

A Kalman-filter family estimator combines a model prediction with measurement feedback. Common approaches include:

  • Extended Kalman Filter (EKF): linearizes a nonlinear battery model around the current estimated state.
  • Unscented Kalman Filter (UKF): propagates representative sigma points through nonlinear model equations to estimate state and covariance.
  • Other observers and filters: may be used where their assumptions and computational requirements suit the application.

At a conceptual level, the estimator performs two stages:

  1. Prediction: update SOC and model states using measured current and the battery model.
  2. Correction: compare predicted measurements with actual measurements and adjust the state estimate according to model and measurement uncertainty.

The filter's performance depends on the quality of the model, calibration data, noise assumptions, initialization and observability. A more complex algorithm does not automatically produce a more accurate estimate.

6. Hybrid SOC estimation strategy

Production BMS implementations often combine methods rather than relying on one estimator in every operating condition.

A conceptual strategy is:

Operating conditionPossible estimator behavior
Normal drivingCurrent integration with model-based correction
Regenerative brakingIntegrate charging current using the defined sign convention and efficiency model
External chargingTrack charge current and apply charging-specific limits and corrections
Stable restEvaluate whether voltage-based correction is valid
Startup after power interruptionRestore retained state and assess whether initialization or recalibration is required
Sensor fault or implausible measurementApply fault handling, confidence degradation or a defined fallback strategy

This is not a universal state machine. The actual strategy, correction thresholds, persistence rules and fallback behavior are project-specific and must be defined by the battery and vehicle requirements.

7. Factors that influence SOC accuracy

Current sensor accuracy

Current-sensor offset is particularly important because it is integrated over time. Gain error scales the measured current, while noise and sampling issues can affect short-term estimates. Sensor diagnostics and calibration must be considered as part of the estimator design.

Temperature

Temperature affects usable capacity, internal resistance, charge acceptance and voltage response. The estimator should use parameters appropriate to the cell temperature and operating range. A single room-temperature capacity value is not sufficient for every condition.

Battery ageing

As a cell ages, its capacity and resistance can change. If the estimator continues to divide integrated charge by an outdated capacity value, SOC error can increase. Capacity adaptation must be controlled and validated so that transient behavior or poor measurements do not cause inappropriate parameter updates.

Cell variation and pack limits

Individual cells may differ in capacity, resistance and SOC. The pack's usable operating window may be constrained by the cell that reaches a voltage or temperature limit first. Therefore, pack-level displayed SOC and individual cell states are related but not identical concepts.

Initialization and retained state

The estimator needs a credible initial condition. Depending on the architecture, SOC may be retained across key-off, reconstructed at startup, corrected during rest, or initialized using defined service or production procedures. Retained data must be protected against corruption and checked for validity.

8. SOC estimation in an automotive ECU

A BMS software implementation typically separates measurement acquisition, signal conditioning, state estimation, supervision and communication.

Typical input signals include:

  • Pack current and current-sensor status.
  • Individual cell voltages and measurement validity.
  • Cell, module or pack temperatures.
  • Contactor and charging states where relevant.
  • Retained SOC and battery-model parameters.

Typical outputs include:

  • Pack SOC and, where required, cell-level or module-level estimates.
  • Estimator validity or confidence information.
  • Diagnostic status and fault indicators.
  • Values distributed to the vehicle controller, charging system and driver display.

The communication interface may use CAN or CAN FD, among other project-defined interfaces. Signal scaling, units, update rate, timeout behavior, invalid-value representation and ownership must be specified in the vehicle network and software interface definitions.

Do not assume that every vehicle uses the same SOC signal definition or that a displayed SOC is identical to an internal raw estimator state. Some systems apply display filtering or reserve margins.

9. Calibration and validation

SOC estimation must be validated across the intended battery, temperature, current and ageing envelope. A single successful drive cycle is not sufficient evidence of estimator accuracy.

A structured validation plan should include:

  1. Capacity characterization: measure reference capacity using a defined procedure and controlled conditions.
  2. Current measurement characterization: assess offset, gain, linearity, noise and temperature dependence.
  3. OCV characterization: generate chemistry- and temperature-appropriate OCV-SOC data, including relevant relaxation and hysteresis behavior.
  4. Dynamic profile testing: exercise representative driving, acceleration, regenerative braking and charging profiles.
  5. Temperature testing: validate low-, nominal- and high-temperature operating regions within the cell specification.
  6. Ageing evaluation: assess estimator behavior with representative aged-cell data or validated ageing models.
  7. Initialization testing: verify startup, key-off retention, power interruption and recovery behavior.
  8. Fault injection: test sensor bias, sensor disconnection, implausible values, communication loss and invalid retained data.
  9. Regression testing: repeat critical cases after algorithm, calibration or software changes.

Example validation matrix

Test caseStimulusExpected observation
Constant-current dischargeControlled discharge at a defined currentSOC decreases consistently with integrated charge
Constant-current chargeControlled charging currentSOC increases according to the configured sign and efficiency model
Regenerative current transitionChange from discharge to charge currentEstimator handles the sign transition without a discontinuity caused by sign interpretation
Current offset injectionApply a known sensor biasDrift is detected, bounded or quantified according to requirements
Rest and relaxationAllow the cell to relax under defined conditionsVoltage correction is enabled only when validity conditions are satisfied
Temperature transitionChange cell temperature within the test envelopeTemperature-dependent model behavior remains within acceptance limits
Power-cycle recoveryInterrupt and restore ECU powerRetained-state validity and initialization follow requirements

Reference SOC must be established using a controlled test procedure with documented uncertainty. Test results should record cell identification, temperature, current profile, capacity reference, software version, calibration version and measurement equipment.

10. Common SOC estimation mistakes

  • Treating SOC as a directly measured sensor value.
  • Using nominal capacity when the estimator requires temperature- and ageing-adjusted usable capacity.
  • Applying an OCV lookup while the battery is under significant load or before sufficient relaxation.
  • Reversing the current sign convention between the sensor, estimator and vehicle interface.
  • Ignoring current-sensor offset because the instantaneous measurement appears plausible.
  • Applying one OCV-SOC map to different chemistries or unvalidated temperature ranges.
  • Confusing pack SOC with the SOC or voltage state of every individual cell.
  • Assuming a sophisticated filter can compensate for poor model calibration or invalid measurements.
  • Failing to validate startup, power interruption, charging and regenerative transitions.

11. Troubleshooting an SOC discrepancy

When the displayed SOC differs from an external estimate or test reference, isolate the complete measurement and estimation chain.

  1. Confirm the current sensor's polarity, scaling, offset and calibration.
  2. Verify current integration period, sample timing and data validity.
  3. Check the capacity value and the conditions under which it was identified.
  4. Confirm temperature inputs and the selected battery-model parameters.
  5. Inspect whether voltage correction was applied under valid rest conditions.
  6. Check retained SOC, initialization and key-off behavior.
  7. Compare internal estimator SOC with any filtered or mapped display value.
  8. Review diagnostic events, software version and calibration version.
  9. Reproduce the issue using a controlled current and temperature profile.
  10. Add a regression test after the root cause is corrected.

A useful diagnostic record includes synchronized current, cell voltage, temperature, SOC estimate, estimator mode or validity, relevant fault status and timestamps.

12. Key takeaways

  • SOC is an estimate of remaining charge relative to a defined reference capacity and operating window.
  • Coulomb counting is responsive and efficient, but current-sensor error and capacity uncertainty cause drift.
  • OCV-based correction requires suitable relaxation conditions and chemistry-appropriate calibration.
  • Model-based estimators combine battery models with measurements, but depend on calibration and observability.
  • Temperature, ageing, cell variation and initialization all influence accuracy.
  • Current sign convention, units and interface definitions must remain consistent across the BMS and vehicle.
  • Validation must cover dynamic operation, rest, charging, regeneration, temperature, ageing and fault conditions.

13. Check your understanding

  1. Why is SOC considered an estimated state rather than a directly measured quantity?
  2. What does the usable-capacity term represent in a coulomb-counting equation?
  3. Why can a small current-sensor offset create a large SOC error over time?
  4. Why is terminal voltage not always a reliable direct indicator of SOC?
  5. What is the purpose of the prediction and correction stages in a Kalman-filter-based estimator?
  6. How can battery ageing affect SOC estimation?
  7. Why should pack SOC not be confused with the state of every individual cell?

Suggested answers

  1. SOC is inferred from measurements and a battery model; no single sensor directly measures the remaining charge percentage.
  2. It is the capacity reference used by the estimator for the defined operating window and conditions.
  3. The estimator integrates current over time, so a persistent bias accumulates rather than averaging away.
  4. Terminal voltage also reflects current, internal resistance, polarization, temperature, hysteresis and relaxation.
  5. Prediction propagates the estimated state using the model and inputs; correction uses measurement residuals to update the estimate.
  6. Ageing changes capacity and resistance, so outdated parameters can cause estimation error.
  7. Individual cells vary, and pack operating limits may be determined by the cell that reaches a constraint first.

Related articles

Further reading

For implementation work, use the cell manufacturer's characterization data, the applicable battery and vehicle requirements, and the BMS software and interface specifications. Confirm estimator equations, calibration maps, operating limits and diagnostic behavior against the actual cell chemistry and project baseline.