Dimagnesium phosphate is a compound with formula MgHPO4. It is a magnesium acid salt of phosphoric acid.
It can be formed by reaction of stoichiometric quantities of magnesium oxide with phosphoric acid.
MgO + H3PO4 → MgHPO4 + H2O.
It is one of the compounds that have E number E343.