Charge Balance Error Calculator
Check whether a water analysis is internally consistent — and, when it is not, which measurement to suspect.
✓ Reviewed by a hydrogeologist (Ph.D.) mg/L or meq/L input ±5 % criterion built in Sources: Hem 1985 · Freeze & Cherry 1979
What to enter for what you want
Enter the analysis as reported — normally in mg/L. Each field is converted to milliequivalents internally, because that is the only unit in which charges can be added.
| To find | Enter | Read it in |
|---|---|---|
| Whether the analysis balances | all eight ions | Headline (%) and the verdict line |
| How much charge is missing | all eight ions | Difference (meq/L) |
| Total dissolved solids (TDS) | all eight ions | TDS (calculated) |
| Total hardness | Ca and Mg | Total hardness (as CaCO₃) |
| Ionic strength for activity corrections | all eight ions | Ionic strength |
| A rough electrical conductivity | the four cations | Electrical conductivity (approx.) |
Leave a field at 0 if that species was not measured — but read the note below first. To this calculation, an ion that was not measured and an ion that is not there produce the same number, even though they mean entirely different things.
Why the charges must balance
A solution cannot carry a net charge. Every water sample, however complicated, satisfies electroneutrality exactly:
\sum_{\text{cations}} m_i z_i \;=\; \sum_{\text{anions}} m_i \lvert z_i \rvert
This is neither an approximation nor a modelling assumption; it is a property of the water itself. So when a laboratory report fails to balance, the water is not wrong — the analysis is. That is why the charge balance is the most useful single check you can run on a water analysis, and it needs nothing but addition.
The imbalance is conventionally expressed as a percentage of the total. That percentage is the charge balance error (CBE); in practice it is often simply called the ion balance.
\text{CBE} \;=\; \frac{\sum \text{cations} - \sum \text{anions}} {\sum \text{cations} + \sum \text{anions}}\times 100\ \%
All sums are in milliequivalents per litre (meq/L). Watch the denominator. Some textbooks divide by the mean of the two sums rather than their total, and that doubles the reported error. Before comparing a published value with the one on this page, always check which convention it used.
From mg/L to meq/L
Charges cannot be added in mg/L. A milligram of Ca²⁺ and a milligram of Na⁺ carry different amounts of charge, because Ca²⁺ carries twice the charge of Na⁺ per mole, and the two also have different molar masses. The conversion therefore divides by the equivalent weight — the molar mass divided by the absolute charge:
\text{meq/L} \;=\; \frac{\text{mg/L}}{M / \lvert z \rvert}
| Ion | M (g/mol) | z | Equivalent weight |
|---|---|---|---|
| Ca²⁺ | 40.078 | +2 | 20.039 |
| Mg²⁺ | 24.305 | +2 | 12.153 |
| Na⁺ | 22.990 | +1 | 22.990 |
| K⁺ | 39.098 | +1 | 39.098 |
| HCO₃⁻ | 61.016 | −1 | 61.016 |
| SO₄²⁻ | 96.06 | −2 | 48.030 |
| Cl⁻ | 35.453 | −1 | 35.453 |
| NO₃⁻ | 62.004 | −1 | 62.004 |
What counts as acceptable
The conventional criterion is ±5 %, and most published analyses of reasonable quality fall within ±2 %. Beyond 5 %, something is wrong. Above 10 %, the analysis should not be used for geochemical modelling. If water that does not balance is modelled as it is, the ionic strength, the activity coefficients and every saturation index carry the error. And if a charge-balancing option is used (charge in PHREEQC), the whole error is loaded onto the one ion you chose.
Note that PHREEQC’s SOLUTION does not balance the charge by default. It speciates the solution at the concentrations given and reports the imbalance as a percent error. What this calculator adds is that you can check before the analysis goes in.
Dilute waters need one qualification. When the total is small, the percentage becomes unstable. A discrepancy of 0.1 meq/L is 1 % of a mineralised groundwater with a total of 10 meq/L, but 20 % of a rainwater with a total of 0.5 meq/L. For very dilute samples, judge by the absolute difference in meq/L rather than by the percentage. The calculator shows both.
Three quantities reported alongside the balance
These are not part of the charge balance itself, but they follow from the same input, so they are shown with it. Here is how each one is calculated.
Total hardness is the sum of Ca²⁺ and Mg²⁺ expressed as calcium carbonate. 1 meq/L corresponds to 50.04 mg/L as CaCO₃.
\text{Total hardness} = (c_{\text{Ca}} + c_{\text{Mg}}) \times 50.04\qquad [\text{meq/L} \rightarrow \text{mg/L as CaCO}_3]
Ionic strength is the quantity needed for activity coefficients. It is computed on a molar basis (mol/L). For dilute groundwater the difference from the molal basis (mol/kg) is negligible; for brines it is not.
I = \frac{1}{2}\sum_i m_i z_i^{2}
Electrical conductivity follows a rule of thumb from Hem (1985): 100 times the cation sum in meq/L. It gives the order of magnitude only and is no substitute for a measurement. Because it does not build the value up from the equivalent conductance of each ion, it can be off by tens of percent for water of unusual composition.
EC\ [\mu\text{S/cm}] \;\approx\; 100 \times \sum \text{cations}\ [\text{meq/L}]
TDS (total dissolved solids) is the sum of these eight ions converted back to mg/L. It does not include silica. Many groundwaters contain 10–50 mg/L of it, so when comparing with a measured residue on evaporation, expect the calculated value to be lower by about that much.
Diagnosing the imbalance
A failed balance tells you that something is wrong, and its sign narrows down what. This is where the check earns its keep.
Cations in excess — most often bicarbonate. HCO₃⁻ is rarely measured directly; it is usually calculated from titrated alkalinity, and it is also the ion most often missing from a partial analysis. If the water comes from a carbonate terrain and the cation excess is roughly equal to the HCO₃⁻ you would expect, that is almost certainly the answer.
Anions in excess — look for a cation that was not measured. Iron and manganese in reducing groundwater, ammonium in contaminated water and aluminium at low pH all carry significant charge, yet they are routinely left out of standard analysis suites.
The imbalance equals exactly half the contribution of one divalent ion — suspect a valence error in the unit conversion. It happens most often with Ca²⁺ or SO₄²⁻: dividing by the molar mass instead of the equivalent weight halves that ion’s contribution only. The total is off by a factor of two only when that one divalent ion makes up nearly all of its side, so looking for “the total is off by two” will miss it. Make this mistake on Ca²⁺ in the worked example below and the CBE becomes −22 %.
Off by roughly a factor of ten, in either direction — a decimal point. It usually slips in during transcription, not in the laboratory.
Worked example
Problem. A spring in a limestone terrain returns the following analysis, in mg/L. Does it balance?
Ca 65, Mg 8.0, Na 12, K 2.0, HCO₃ 210, SO₄ 22, Cl 18, NO₃ 5.0
- Convert the cations:
Ca 65/20.039 = 3.244,Mg 8.0/12.153 = 0.658,Na 12/22.990 = 0.522,K 2.0/39.098 = 0.051meq/L - Sum:
Σ cations = 4.475 meq/L - Convert the anions:
HCO₃ 210/61.016 = 3.442,SO₄ 22/48.030 = 0.458,Cl 18/35.453 = 0.508,NO₃ 5.0/62.004 = 0.081meq/L - Sum:
Σ anions = 4.488 meq/L CBE = (4.4751 − 4.4881)/(4.4751 + 4.4881) × 100 = −0.15 %
The analysis balances comfortably. Note also that HCO₃⁻ alone accounts for about 77 % of the anion charge, and Ca²⁺ alone for about 72 % of the cation charge. That is the signature of water that has dissolved calcite, and it fits the limestone setting.
Now suppose the calcium had been transcribed as 85 mg/L instead of 65.
Ca 85/20.039 = 4.242, so Σ cations = 5.473 and CBE = +9.9 %. The imbalance is 0.985 meq/L, which converts back to 19.7 mg/L of Ca²⁺.
The transcription error was 20.0 mg/L, so the recovered figure is close but not exact: it is 0.3 mg/L short. That 0.3 mg/L is exactly the −0.013 meq/L the analysis was already out by before anything was mistyped. The balance recovers the size of an error, not its exact value, because it only ever sees the net of every error present. That is still enough to point at the species to suspect — which is what the check is for.
Frequently asked questions
Should I enter 0 for ions that were not measured?
You have no other choice — but understand what it means. To this calculation, an ion that was not measured and an ion that is absent are indistinguishable. Leave out HCO₃⁻ from a carbonate water and you get a large cation excess that looks like an analytical failure. If a species was not measured, treat a one-sided imbalance not as evidence of error but as a hypothesis about that species.
My rainwater sample is 30 % out, yet the absolute difference is tiny. Why?
Because the percentage is divided by a very small total. At a total of 0.3 meq/L, an absolute error of 0.05 meq/L — perfectly acceptable precision for a dilute sample — is 17 %. Judge dilute waters by the absolute difference. Standard Methods (APHA/AWWA/WEF) gives ±0.2 meq/L as the criterion when the anion sum is below 3 meq/L.
If the balance is good, is the analysis correct?
No, and this is worth being clear about. The charge balance is a necessary condition, not a sufficient one. Two errors of opposite sign cancel, and an error in something that carries no charge and so never enters the sums — a neutral species such as silica, or the pH itself — cannot be detected by this check. A balanced analysis has passed one test, not every test.
Dissolved organic matter is a different case: it does carry charge, as the anions of organic acids. Those anions are not among the eight measured here, so they leave an apparent cation excess — the measured anions come up short. If water from a peatland or an organic-rich aquifer shows a cation excess that bicarbonate does not explain, suspect organic anions first.
May I let PHREEQC adjust an ion to force the balance?
Only when you know which ion is uncertain, and why. Speciation codes can balance the charge on a species you choose. That is a legitimate use when the species was estimated rather than measured; balancing on pH or on Cl⁻ is common practice. Balancing on a species that was carefully measured hides the error instead of resolving it, and every saturation index calculated from there on inherits it.
Read further
An analysis that passes this check is exactly what goes into a speciation run. PHREEQC from Scratch #2: Analyzing Seawater with Speciation starts from a water analysis of the same shape and calculates what the ions are actually doing in solution.
References
- Hem, J.D. (1985) Study and Interpretation of the Chemical Characteristics of Natural Water, 3rd ed. U.S. Geological Survey Water-Supply Paper 2254.
- Freeze, R.A. & Cherry, J.A. (1979) Groundwater. Prentice-Hall, Englewood Cliffs, NJ. Chapter 3.
- APHA/AWWA/WEF (2017) Standard Methods for the Examination of Water and Wastewater, 23rd ed. Section 1030 E, Anion–Cation Balance.
- Appelo, C.A.J. & Postma, D. (2005) Geochemistry, Groundwater and Pollution, 2nd ed. Balkema, Leiden.