This study focuses on the design and validation of a computer program named “SPsim”, developed using Visual Basic coding and advanced Excel tools to predict the formation of sulfate mineral deposits during water injection in oil fields. Water injection for secondary oil recovery is an effective economic strategy, but it can be negatively impacted by the formation of sulfate minerals such as calcium sulfate, gypsum, barium sulfate, and strontium sulfate. The results of this study demonstrate that SPsim can accurately predict the formation of these mineral deposits based on the composition of the formation water and injection water under various temperature and pressure conditions. Specifically, the formation of barium sulfate and calcium sulfate is observed under certain conditions, which is a significant concern in oil fields. The study also highlights that calcium sulfate, barium sulfate, and strontium sulfate are among the most challenging mineral deposits in the studied fields, while the formation of gypsum deposits is less significant. The program was compared with results from other software tools, such as ScaleChem 3.2 and StimCad 2, as well as field observations. The findings indicate that SPsim provides a reliable and effective tool for predicting and managing sulfate scaling in water injection operations, making it a valuable resource for both industrial and academic applications.