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.

Current log audit

Audit amp-hours from measured current

Edit current samples, offset and draw cap
Sample 1

Elapsed time 0 s

Sample 2
Sample 3
Sample 4

Only the offset-corrected trace meets the draw cap.

1.5 Ah cap · -1 A recorded zero-current reading

Raw

Exceeds cap

1.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 cap

1.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
Current integration and zero crossings
TraceInterval (s)Charge (Ah)Discharge (Ah)Net change (Ah)Crossing (s)Net at crossing (Ah)
Raw0 to 60007/6-7/6——
Raw600 to 180025/7249/72-1/31300-133/72
Raw1800 to 24005/605/6——
Offset-corrected0 to 60001-1——
Offset-corrected600 to 18001/21/201200-3/2
Offset-corrected1800 to 2400101——

How to use this calculator

  1. Use the first sample as time zero. Enter signed battery-side current, with charge positive.
  2. Enter the recorder’s measured zero-current offset. Leave it at zero to compare identical traces.
  3. Enter a maximum net draw in amp-hours and copy the sample times in increasing order.
  4. Compare total charged and discharged quantities and the largest net draw from time zero. Inspect the interval where current reverses.
  5. 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