Skip to content

Battery Management

Coulomb Counting: SOC Drift and Error Budgets

Coulomb counting estimates battery state of charge (SOC) by adding or subtracting the charge that passes through a current sensor. The calculation needs an initial SOC, a capacity value and a record of current over time. An error in any of those inputs can shift the result. Assessing the estimate therefore starts with the inputs and their evidence, rather than the number of decimal places on a display.

By antbattery Editorial TeamPublished November 13, 2026Updated November 13, 2026
Coulomb Counting: SOC Drift and Error Budgets

The worked budget below separates the effects of current offset, initial SOC, capacity and elapsed time. Its values are hypothetical. They illustrate how assumptions change a calculation; they do not establish the accuracy of a battery, gauge or battery management system.

Coulomb Counting Converts Current into a Change in SOC

Coulomb counting tracks a change in charge from a starting state. It does not determine that starting state by integration alone. Epic Power application note AN026, version 5 from 2020, describes the method in terms of measured current and an estimated initial SOC, while warning that measurement errors can accumulate.

For the calculations in this article, positive current means discharge and negative current means charge. Current is measured in amperes (A), elapsed time in hours and the effective capacity used by the calculation, Q, in ampere-hours (Ah). With a fixed Q and ideal charge efficiency, the relationship is:

SOC (%) = initial SOC (%) − 100 × total signed charge (Ah) ÷ Q (Ah)

For an interval with constant current, signed charge is the current multiplied by the interval length. An interval-average current can represent a varying current over that same interval. Add those interval amounts before dividing by Q. If the interval length is in seconds, divide the accumulated A-seconds by 3,600 to obtain Ah. This is a charge calculation; it does not calculate energy in watt-hours.

The sign convention must stay consistent across the data and formula. Under the convention above, a negative charging current produces a negative charge total, which increases SOC when subtracted. A hypothetical 20 Ah calculation starting at 30% SOC and integrating −1 A for 4 hours reaches 50%, assuming ideal efficiency and no other losses or corrections.

Coulomb counting flow from signed current and elapsed time to charge and SOC change
Ideal integration uses discharge-positive current, interval hours and a fixed capacity denominator.

Coulomb counting is one part of estimating SOC. The broader BMS requirements for a lithium battery pack also concern the pack configuration, protection, balancing and communication functions. A clear integration formula does not settle those separate requirements.

SOC Drift Depends on the Error Source

Different input errors affect the estimate in different ways. A constant current offset accumulates with elapsed time. An incorrect initial SOC shifts the starting point, while an incorrect capacity denominator changes the size of the SOC movement assigned to the charge that passes through the sensor. Keeping these effects separate makes an error budget useful.

Current Offset Accumulates over Time

An offset is an additive bias in the measured current. If the sensor reports a constant amount b above the true current, the resulting SOC error under the ideal, fixed-capacity model is:

SOC error (percentage points) = −100 × b (A) × elapsed time (h) ÷ Q (Ah)

With discharge defined as positive, a positive offset makes the calculated SOC too low. In a hypothetical 20 Ah calculation, a +20 mA offset over 24 hours adds 0.48 Ah to the integrated discharge and shifts SOC by −2.4 percentage points. A negative offset of the same magnitude reverses the sign. These are deterministic sensitivities, not a specification for a current sensor.

Hypothetical SOC error from a positive 20 mA current offset over 24 hours in a 20 Ah calculation
Hypothetical offset sensitivity: +20 mA over 24 h with Q = 20 Ah shifts SOC by −2.4 percentage points.

Initial SOC Error Shifts the Estimate

If the initial SOC is 5 percentage points too high, the simple integrator remains 5 points too high when its other inputs are correct and no later state correction is applied. More current samples do not, by themselves, identify that initial error. The initialization source and the conditions for accepting a correction therefore belong in the evidence request.

The Capacity Denominator Controls the SOC Change

For the same charge removed, a larger capacity denominator produces a smaller SOC decrease. If 6 Ah is removed from a calculation that starts at 80%, using 20 Ah gives 50% SOC. Using an incorrect 25 Ah denominator gives 56%. The +6 percentage-point difference comes from the denominator alone.

The relevant denominator needs a documented basis. Epic AN026 also explains that temperature and aging can change the parameters used in SOC estimation. A nominal cell rating, a configured pack value and an updated effective-capacity estimate should not be treated as interchangeable without checking their definitions and conditions.

Timing Errors Need a Defined Model

At constant current, overstating elapsed time increases the calculated charge proportionally. Under a changing load, missing samples and the way current is represented between samples create a different problem. A clock-scaling example cannot establish the error caused by an unrecorded current pulse. Supplier evidence should distinguish timestamp accuracy from sampling and missing-data behavior.

A Worked Error Budget Separates the Input Effects

The reference case uses an initial SOC of 80%, a fixed effective capacity of 20 Ah and a constant discharge current of 0.25 A for 24 hours. The integrated discharge is 6 Ah, so the reference result is 50% SOC. Charge efficiency is assumed to be ideal; self-discharge, unmeasured loads, changing capacity and state corrections are omitted. No result is clipped at an endpoint.

Each row below changes only the named input while keeping the other reference inputs unchanged. The difference is the calculated SOC minus the 50% reference, expressed in percentage points.

Changed inputValue used in the calculationCalculated SOCDifference from reference
None80% initial SOC; 20 Ah; 0.25 A; 24 h50%0 percentage points
Positive current offset0.27 A, including +20 mA offset47.6%−2.4 percentage points
Negative current offset0.23 A, including −20 mA offset52.4%+2.4 percentage points
Initial SOC85%55%+5 percentage points
Capacity denominator25 Ah56%+6 percentage points
Elapsed time24.24 h, or 1% above the reference49.7%−0.3 percentage points

The table is a reproducible sensitivity comparison. It is not a probability distribution or a complete accuracy bound. A difference of 2.4 percentage points describes the distance between two SOC percentages; it is not a 2.4% relative error against the reference reading.

Combined assumptions should be calculated together. If the initial SOC is 85%, measured current is 0.27 A, elapsed time is 24 hours and the denominator is 25 Ah, the result is:

85 − 100 × (0.27 × 24) ÷ 25 = 59.08% SOC

That is +9.08 percentage points above the reference. Adding the separate table differences would miss the interaction between the current offset and the changed denominator. These biases also have no established random-error independence, so a root-sum-square total would not be justified by this example.

For a project worksheet, record the reference inputs and their origin, calculate the reference result, then vary one uncertain input within a documented range. If a credible range is unavailable, record the input as unknown. Finally, recalculate any combined scenario explicitly and state which effects remain outside the model. This process identifies evidence gaps without assigning an invented overall accuracy figure.

Coulomb Counting Corrections Need Defined Conditions

A real estimator may use more information than the ideal integrator above. The MathWorks overview of battery state of charge describes initialization and accumulated measurement noise as limitations of coulomb counting, and discusses capacity changes, self-discharge and other estimation approaches. Its displayed formula uses the opposite current convention from this article: discharge is negative. The signs must be converted before comparing the formulas.

The examples here assume an efficiency factor of 1. That assumption is not a measured charging efficiency or a value to apply to every chemistry and operating condition. Likewise, current that is not included in the measurement and losses such as self-discharge need their own treatment; they are not automatically captured by counting the measured external current.

A correction rule also needs a defined reference. A supplier should identify how the starting SOC is obtained, when the estimator accepts a new reference and what happens when those conditions are absent. Setting a display to 100% without establishing the required full-state criteria would merely replace one assumption with another. This article does not provide a calibration or charge-discharge procedure.

Supplier Evidence Should Match Each Uncertain Input

The most useful request is tied to a specific input in the calculation. The worksheet below is an editorial document-review aid, not a safety acceptance standard. It can accompany a request for gauge or BMS information without assuming that every supplier uses the same estimator.

Input or behaviorEvidence to requestDecision supported
Initial SOC and later correctionsInitialization source, retained-state behavior and documented correction criteriaWhether the starting value and later adjustments have a defensible reference
Current measurementPolarity, offset and gain specifications, temperature dependence and calibration conditionsWhich sensor errors can be estimated under the actual operating conditions
Current-path coverageMeasurement location and treatment of standby or other current pathsWhether the integrated current includes the loads being assessed
Capacity denominatorCapacity definition, reference conditions, configured value and update methodWhether Q matches the battery and the interpretation of SOC
Time and samplingTimestamp units, clock specification, sampling behavior and handling of missing intervalsWhether elapsed-time and changing-load effects are represented
Efficiency and other lossesTreatment of charging efficiency, self-discharge and any omitted termsWhich effects the simple worksheet leaves outside its result
ValidationReference method, operating profile, conditions, firmware and reported errorsWhat the supplier has actually checked, separately from the illustrative arithmetic

Keep the supplier's measured results separate from calculations made with assumed inputs. A documented sensor offset may support one entry in a budget, but it does not by itself establish total SOC accuracy. Where the capacity basis or correction behavior is unknown, the unresolved item should remain visible in the sourcing record.

SOC Evidence Should Inform the Battery Sourcing Request

A useful coulomb-counting assessment ends with an identified uncertainty and the evidence needed to resolve it. If the offset dominates the hypothetical sensitivity, the next request concerns current measurement under the relevant conditions. If the denominator is unclear, a more precise current reading cannot resolve that capacity-definition gap.

Before reviewing the AntBattery battery product catalog, prepare the candidate chemistry and cell or pack, the capacity basis, the operating profile, and the gauge or BMS model and firmware when known. Carry the unresolved items from the worksheet into the sourcing enquiry. The catalog provides a battery-selection starting point; the worked budget does not establish a product's compatibility, calibration or guaranteed SOC accuracy.

Sources and further reading

Author

antbattery Editorial Team

AntBattery editorial team

Request a Quote

Tell us about your battery requirements