In this paper our interest is in the effect of minerals on the carbon dioxide concentration. The dissolution of carbon dioxide in the oleic phase depends on the mineral content and can in itself reduce the amount of oil left behind and thus increase the recovery of oil.Mathematical aspects of the model equations in terms of precipitation and dissolution waves provide important insights as to the effect of ions on the recovery of oil.It is the purpose of the paper to provide the complete geochemical background for the modeling of carbonated water and carbon dioxide injection in a calcite reservoir.