Amp-Hour Current Log & Coulomb Counting Calculator
Enter an irregularly spaced current log and a documented zero-current reading. The worksheet compares uncorrected and corrected current over the same timestamps, splits bidirectional intervals exactly where current changes sign, and finds the largest net draw from the starting charge. The charge curve includes reversals between samples.
Audit amp-hours from measured current
Compare charge and discharge before and after a documented sensor offset.
Edit current samples, offset and draw cap
Only the offset-corrected trace meets the draw cap.
1.5 Ah cap · -1 A recorded zero-current reading
Raw
Exceeds cap1.8472222 Ah
Max net draw at 1,300 s
- Charged
- 1.1805556 Ah
- Discharged
- 1.8472222 Ah
- Final net
- -0.6666667 Ah
- Draw margin
- -0.3472222 Ah
Offset-corrected
Meets cap1.5 Ah
Max net draw at 1,200 s
- Charged
- 1.5 Ah
- Discharged
- 1.5 Ah
- Final net
- 0 Ah
- Draw margin
- 0 Ah
Inspect current and charge
Signed current (A)
Charge relative to start (Ah)
Draw cap 1.5 Ah
- Raw
- Offset-corrected
- Selected interval
600–1,800 s
Raw · -7 to 5 A
0.3472222 Ah in · 0.6805556 Ah out
Zero crossing at 1,300 s · -1.8472222 Ah from start
Offset-corrected · -6 to 6 A
0.5 Ah in · 0.5 Ah out
Zero crossing at 1,200 s · -1.5 Ah from start
Review exact interval ledger
| Trace | Interval (s) | Charge (Ah) | Discharge (Ah) | Net change (Ah) | Crossing (s) | Net at crossing (Ah) |
|---|---|---|---|---|---|---|
| Raw | 0 to 600 | 0 | 7/6 | -7/6 | — | — |
| Raw | 600 to 1800 | 25/72 | 49/72 | -1/3 | 1300 | -133/72 |
| Raw | 1800 to 2400 | 5/6 | 0 | 5/6 | — | — |
| Offset-corrected | 0 to 600 | 0 | 1 | -1 | — | — |
| Offset-corrected | 600 to 1800 | 1/2 | 1/2 | 0 | 1200 | -3/2 |
| Offset-corrected | 1800 to 2400 | 1 | 0 | 1 | — | — |
How to use this calculator
- Use the first sample as time zero. Enter signed battery-side current, with charge positive.
- Enter the recorder’s measured zero-current offset. Leave it at zero to compare identical traces.
- Enter a maximum net draw in amp-hours and copy the sample times in increasing order.
- Compare total charged and discharged quantities and the largest net draw from time zero. Inspect the interval where current reverses.
- Export the exact ledger for both traces, including crossing times and draw margins.
The Formula
The mathematical logic powering this calculation is:
Positive current means charge entering the battery and negative current means discharge. Set time zero at the first recorded sample. Corrected current = recorded current − the entered zero-current indication. Use this signed correction only for a documented constant offset.
This worksheet assumes current varies linearly between samples. Net charge in amp-hours over each interval is (start current + end current) × elapsed seconds ÷ 7,200. If signs are strictly opposite, the crossing is at elapsed interval time Δt × start current ÷ (start current − end current). Integrate the triangles on each side separately to keep charged and discharged amp-hours visible. Charged and discharged totals are nonnegative. Net equals charged minus discharged.
Accumulated charge starts at zero and adds the interval areas. It follows a quadratic within each interval. The maximum net draw is the absolute value of the minimum accumulated charge from the initial datum, including interior current reversals and sample endpoints. This differs from total discharged amp-hours, which counts discharge even when later charge offsets it. Equality with the entered draw cap qualifies. Exact rational arithmetic is used for interval areas, extrema and classifications.
Enter 2–10 ordered samples within 604,800 seconds. Recorded current and offset range from −10,000 to +10,000 A. The net draw cap is 0–10,000,000 Ah. Inputs accept three decimal places. The charge differences use an ideal accounting model and the boundaries of the entered log. Cell losses, capacity, voltage, aging and state of charge require additional measurements or models.Worked Example
If you input:
- Samples: 0, 600, 1,800 and 2,400 seconds. Recorded currents −7, −7, +5 and +5 A.
- Known zero-current indication: −1 A.
- Net draw cap: 1.5 Ah from time zero.
Result:
Raw max draw is 133/72 Ah at 1,300 seconds. Corrected max draw is exactly 1.5 Ah at 1,200 seconds and its final net is zero. Lowering the cap to 1.499 Ah makes both traces miss it.
Frequently Asked Questions
How can total discharge be larger than maximum net draw?
A trace can discharge, recharge and then discharge again. Total discharge sums the outgoing portions. Maximum net draw measures the greatest shortfall from the starting charge.
Why can maximum draw occur between samples?
The model interpolates current linearly. Accumulated charge reaches a local minimum at an interior change from discharge to charge.
How do I enter a negative sensor offset?
Enter the signed current indicated when actual current was zero. Subtracting a negative indication shifts the corrected readings upward.
What if I only have average current over blocks?
These inputs represent point samples with a linear model between them. Use the battery duty cycle planner for known constant-current blocks.
Similar Calculators
UPS Battery Backup Calculator & Runtime Curve Audit
Compare two UPS battery backups using measured peak W and VA, published runtime curve points and a runtime target. See the lowest quoted setup that meets the entered checks.
Battery Runtime Calculator & Duty Cycle Planner
Compare steady and repeating load profiles. Estimate battery runtime from amp-hours, inverter loads, reserve charge and an optional discharge-rate correction.
Solar Battery Sizing & Backup Planner
Compare solar battery sizes with hourly solar and load profiles, storage losses, power limits, signed tariffs and grid outages. Visualize energy flows and export the complete ledger.
