Trimagnesium phosphate describes inorganic compounds with formula Mg3(PO4)2.xH2O. They are magnesium acid salts of phosphoric acid, with varying amounts of water of crystallization: x = 0, 5, 8, 22.Magnesium phosphate tribasic is listed on the FDA's generally recognized as safe, or GRAS, list of substances.