Battery State of Charge (SoC) Calculator

Estimate state of charge and depth of discharge from open-circuit voltage or by coulomb counting.
Voltage Method
Coulomb Counting

SoC from Open-Circuit Voltage

SoC% = (V − Vempty) / (Vfull − Vempty) × 100
Lead-acid 12V
Li-ion cell
LiFePO4 cell
V
V
V
Enter values and press Calculate.

SoC by Coulomb Counting

SoC% = Remaining(Ah) / Capacity(Ah) × 100  •  DoD% = 100 − SoC%
100Ah, 65Ah left
50Ah, 20Ah left
Ah
Ah
Enter values and press Calculate.

State of Charge and Depth of Discharge

State of charge (SoC) is how full a battery is, from 0% (empty) to 100% (full). Its complement is the depth of discharge (DoD) = 100% − SoC. There are two common ways to estimate SoC. The voltage method reads the rested open-circuit voltage and maps it linearly between the empty and full voltages — quick, but only approximate because the voltage-vs-charge curve is not a straight line. Coulomb counting integrates current in and out to track the remaining amp-hours, which is what a battery management system (BMS) does for accuracy.

QuantityFormula
SoC (voltage)(V − Vempty)/(Vfull − Vempty) × 100
SoC (coulomb)Remaining Ah / Capacity Ah × 100
Depth of dischargeDoD = 100 − SoC
Energy remainingRemaining Ah × Nominal V

The voltage method works best for chemistries with a sloped discharge curve (lead-acid, Li-ion) after the battery has rested. LiFePO4 has a very flat curve, so its voltage barely changes between 20% and 90% — coulomb counting is far more reliable there.

Real-World Applications & Examples

Worked examples

1. Lead-acid 12 V. Measured 12.4 V, empty 12.0 V, full 12.7 V: SoC=(12.4−12.0)/(12.7−12.0)×100=57%.
2. Li-ion cell. 3.7 V between 3.0 V (0%) and 4.2 V (100%): SoC=(3.7−3.0)/1.2×100=58%.
3. Coulomb counting. 100 Ah battery with 65 Ah left: SoC=65/100=65%, DoD=35%.
4. Deep discharge. 50 Ah battery with 20 Ah remaining: SoC=40%, DoD=60% — nearing the safe limit for lead-acid.
5. Energy left. Example 3 at 12 V nominal: energy=65×12=780 Wh available.
6. Flat LiFePO4 curve. At 3.25 V a LiFePO4 cell could be anywhere from 30–80% SoC, so coulomb counting — not voltage — should drive the gauge.

Frequently Asked Questions

What is state of charge (SoC)?

SoC is the remaining charge in a battery as a percentage of its full capacity, from 0% (empty) to 100% (full). It is the battery equivalent of a fuel gauge.

What is depth of discharge (DoD)?

DoD is how much of the battery has been used: DoD = 100% − SoC. A battery at 70% SoC has been discharged to 30% DoD.

How do I estimate SoC from voltage?

Measure the rested open-circuit voltage and map it linearly between the empty and full voltages: SoC = (V − Vempty)/(Vfull − Vempty) × 100. It is approximate because the real curve is non-linear.

What is coulomb counting?

Coulomb counting tracks SoC by integrating the current flowing in and out over time (charge = current × time). Starting from a known full charge, it subtracts used amp-hours to give the remaining capacity accurately.

Why measure voltage at rest (open-circuit)?

Under load or charge the terminal voltage shifts due to internal resistance, so it does not reflect the true SoC. Letting the battery rest for a while gives the open-circuit voltage that maps reliably to charge.

Why is the voltage method unreliable for LiFePO4?

LiFePO4 has a very flat voltage curve — the voltage barely changes across most of the range — so small measurement errors translate to large SoC errors. Coulomb counting is preferred for these cells.

What voltages correspond to full and empty?

Typical values: Li-ion 4.2 V full / 3.0 V empty; LiFePO4 3.4 V / 2.5 V; lead-acid (12 V) about 12.7 V / 12.0 V at rest. Always use the manufacturer's figures.

What SoC range is best for battery life?

Keeping lithium batteries between roughly 20% and 80% SoC minimises stress and maximises cycle life. Full charges to 100% are fine occasionally but best avoided for daily storage.

How do I convert SoC to remaining energy?

Multiply the remaining amp-hours by the nominal voltage: remaining Wh = (SoC/100) × capacity(Ah) × V. This gives the usable energy left.

Can SoC exceed 100% or go below 0%?

No. If the calculation gives more than 100% or less than 0%, the reference voltages or the remaining-Ah figure are wrong, or the battery is being measured under load rather than at rest.

How does temperature affect SoC estimates?

Temperature shifts the voltage curve and the deliverable capacity, so cold conditions can make a battery read a lower SoC and provide fewer usable amp-hours. Good BMS designs apply temperature compensation.

How do real BMS units estimate SoC?

They combine methods: coulomb counting for short-term accuracy, periodic recalibration against rested open-circuit voltage, and temperature correction — often blended with a model of the battery for the best estimate.

Related Calculators

Battery CapacityInternal ResistanceCycle LifeAll Calculators