Abstract:Based on the mass conservation law and the method of chemical thermodynamic equilibrium constant, a mathematical model for calculating the existing forms of groundwater chemical components and its mass concentration was established. Based on MATLAB, a corresponding program to calculate the groundwater quality testing data of Chaoyang District, Beijing was written. The results show that the existing forms of groundwater chemical components include single ions, complex anions, complex ions and complex molecules; Dissociative Ca2+, Mg2+, SO42-accounted for mass concentration of Ca2+, Mg2+, SO42-, respectively, 8526%,8701%,6985%, which claims the difference between analysis concentration and calculated concentration; The value of pH exerts an influence on the concentration of free ions in groundwater, which causes the changes of ion migration ability.