(Mg(PO3)3)2N2 crystallizes in the trigonal R32 space group. The structure consists of three ammonia atoms inside a Mg(PO3)3 framework. In the Mg(PO3)3 framework, Mg(1) is bonded to six equivalent O(2) atoms to form MgO6 octahedra that share corners with six equivalent P(1)O4 tetrahedra. P(1) is bonded to two equivalent O(1) and two equivalent O(2) atoms to form PO4 tetrahedra that share corners with two equivalent Mg(1)O6 octahedra and corners with two equivalent P(1)O4 tetrahedra. The corner-sharing octahedral tilt angles are 43°. There are two inequivalent O sites. In the first O site, O(2) is bonded in a distorted bent 150 degrees geometry to one Mg(1) and one P(1) atom. In the second O site, O(1) is bonded in a distorted bent 150 degrees geometry to two equivalent P(1) atoms.
(Mg(PO3)3)2N2 crystallizes in the trigonal R32 space group. The structure consists of three ammonia atoms inside a Mg(PO3)3 framework. In the Mg(PO3)3 framework, Mg(1) is bonded to six equivalent O(2) atoms to form MgO6 octahedra that share corners with six equivalent P(1)O4 tetrahedra. All Mg(1)-O(2) bond lengths are 2.08 Å. P(1) is bonded to two equivalent O(1) and two equivalent O(2) atoms to form PO4 tetrahedra that share corners with two equivalent Mg(1)O6 octahedra and corners with two equivalent P(1)O4 tetrahedra. The corner-sharing octahedral tilt angles are 43°. Both P(1)-O(1) bond lengths are 1.62 Å. Both P(1)-O(2) bond lengths are 1.50 Å. There are two inequivalent O sites. In the first O site, O(2) is bonded in a distorted bent 150 degrees geometry to one Mg(1) and one P(1) atom. In the second O site, O(1) is bonded in a distorted bent 150 degrees geometry to two equivalent P(1) atoms.