The purification of wet-process phosphoric acid has always posed a challenge for both academic and industrial researchers. In order to address this issue, a treatment unit was developed to mitigate magnesium and aluminum impurities from industrial semi-aqueous wet process phosphoric acid (SWPPA) (39.4 wt% P2O5) through ralstonite precipitation using Na+/F− as the precipitator (F− provided by HF). Thermodynamic analysis, DFT calculation and separation experiments results were used to investigate the impact of sodium sources properties on impurities removal rates and H3PO4 yield. Additionally, the effects of reaction temperature, reaction time, precipitating agent dosage, and aging time on precipitation efficiency were also examined. The results show that the ability of sodium source to ionize Na+ and react with H3PO4 and HF plays a crucial role in determining the impurity removal performance of magnesium and aluminum. The precipitants NaCl and Na2CO3 exhibit the highest removal rates for magnesium and aluminum, which is attributed to the easy ionization of Na+ ions. In comparison to Na2CO3, the higher H3PO4 yield with NaCl as precipitator can be achieved due to its lower nucleation rate and higher crystal growth rate in the phosphoric acid system. NaCl and HF as precipitants effectively reduces the concentrations of magnesium and aluminum in the untreated SWPPA solution from 23.47 g MgO/kg P2O5 to 3.29 g MgO/kg P2O5, 48.98 g Al2O3/kg P2O5 to 15.54 g Al2O3/kg P2O5. The removal rates for magnesium and aluminum are found to be 85.98% and 68.27%, respectively, with minimal residue of Na+/F−.