Mg(C2N3)2 crystallizes in the orthorhombic Pnnm space group. Mg(1) is bonded in an octahedral geometry to two equivalent N(1) and four equivalent N(2) atoms. C(1) is bonded in a linear geometry to one N(1) and one N(2) atom. There are two inequivalent N sites. In the first N site, N(1) is bonded in a trigonal planar geometry to one Mg(1) and two equivalent C(1) atoms. In the second N site, N(2) is bonded in a linear geometry to one Mg(1) and one C(1) atom.
Mg(C2N3)2 crystallizes in the orthorhombic Pnnm space group. Mg(1) is bonded in an octahedral geometry to two equivalent N(1) and four equivalent N(2) atoms. Both Mg(1)-N(1) bond lengths are 2.31 Å. All Mg(1)-N(2) bond lengths are 2.13 Å. C(1) is bonded in a linear geometry to one N(1) and one N(2) atom. The C(1)-N(1) bond length is 1.31 Å. The C(1)-N(2) bond length is 1.17 Å. There are two inequivalent N sites. In the first N site, N(1) is bonded in a trigonal planar geometry to one Mg(1) and two equivalent C(1) atoms. In the second N site, N(2) is bonded in a linear geometry to one Mg(1) and one C(1) atom.