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 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.
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 input | Value used in the calculation | Calculated SOC | Difference from reference |
|---|---|---|---|
| None | 80% initial SOC; 20 Ah; 0.25 A; 24 h | 50% | 0 percentage points |
| Positive current offset | 0.27 A, including +20 mA offset | 47.6% | −2.4 percentage points |
| Negative current offset | 0.23 A, including −20 mA offset | 52.4% | +2.4 percentage points |
| Initial SOC | 85% | 55% | +5 percentage points |
| Capacity denominator | 25 Ah | 56% | +6 percentage points |
| Elapsed time | 24.24 h, or 1% above the reference | 49.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 behavior | Evidence to request | Decision supported |
|---|---|---|
| Initial SOC and later corrections | Initialization source, retained-state behavior and documented correction criteria | Whether the starting value and later adjustments have a defensible reference |
| Current measurement | Polarity, offset and gain specifications, temperature dependence and calibration conditions | Which sensor errors can be estimated under the actual operating conditions |
| Current-path coverage | Measurement location and treatment of standby or other current paths | Whether the integrated current includes the loads being assessed |
| Capacity denominator | Capacity definition, reference conditions, configured value and update method | Whether Q matches the battery and the interpretation of SOC |
| Time and sampling | Timestamp units, clock specification, sampling behavior and handling of missing intervals | Whether elapsed-time and changing-load effects are represented |
| Efficiency and other losses | Treatment of charging efficiency, self-discharge and any omitted terms | Which effects the simple worksheet leaves outside its result |
| Validation | Reference method, operating profile, conditions, firmware and reported errors | What 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.
