Mg2RuN3 crystallizes in the monoclinic C2/c space group. There are two inequivalent Mg sites. In the first Mg site, Mg(1) is bonded to one N(1), one N(3), one N(4), and two equivalent N(2) atoms to form a mixture of edge and corner-sharing MgN5 trigonal bipyramids. In the second Mg site, Mg(2) is bonded to two equivalent N(2) and three equivalent N(3) atoms to form a mixture of edge and corner-sharing MgN5 trigonal bipyramids. Ru(1) is bonded in a distorted see-saw-like geometry to one N(1), one N(2), one N(3), and one N(4) atom. There are four inequivalent N sites. In the first N site, N(4) is bonded to two equivalent Mg(1) and two equivalent Ru(1) atoms to form a mixture of distorted edge and corner-sharing NMg2Ru2 trigonal pyramids. In the second N site, N(1) is bonded in a rectangular see-saw-like geometry to two equivalent Mg(1) and two equivalent Ru(1) atoms. In the third N site, N(2) is bonded to two equivalent Mg(1), two equivalent Mg(2), and one Ru(1) atom to form NMg4Ru trigonal bipyramids that share corners with two equivalent N(2)Mg4Ru trigonal bipyramids, corners with three equivalent N(3)Mg4Ru trigonal bipyramids,  a cornercorner with one N(4)Mg2Ru2 trigonal pyramid,  an edgeedge with one N(2)Mg4Ru trigonal bipyramid, edges with three equivalent N(3)Mg4Ru trigonal bipyramids, and  an edgeedge with one N(4)Mg2Ru2 trigonal pyramid. In the fourth N site, N(3) is bonded to one Mg(1), three equivalent Mg(2), and one Ru(1) atom to form NMg4Ru trigonal bipyramids that share corners with two equivalent N(3)Mg4Ru trigonal bipyramids, corners with three equivalent N(2)Mg4Ru trigonal bipyramids, corners with two equivalent N(4)Mg2Ru2 trigonal pyramids, edges with two equivalent N(3)Mg4Ru trigonal bipyramids, and edges with three equivalent N(2)Mg4Ru trigonal bipyramids.
Mg2RuN3 crystallizes in the monoclinic C2/c space group. There are two inequivalent Mg sites. In the first Mg site, Mg(1) is bonded to one N(1), one N(3), one N(4), and two equivalent N(2) atoms to form a mixture of edge and corner-sharing MgN5 trigonal bipyramids. The Mg(1)-N(1) bond length is 2.20 Å. The Mg(1)-N(3) bond length is 2.15 Å. The Mg(1)-N(4) bond length is 2.25 Å. There is one shorter (2.14 Å) and one longer (2.23 Å) Mg(1)-N(2) bond length. In the second Mg site, Mg(2) is bonded to two equivalent N(2) and three equivalent N(3) atoms to form a mixture of edge and corner-sharing MgN5 trigonal bipyramids. There is one shorter (2.18 Å) and one longer (2.19 Å) Mg(2)-N(2) bond length. There are a spread of Mg(2)-N(3) bond distances ranging from 2.11-2.21 Å. Ru(1) is bonded in a distorted see-saw-like geometry to one N(1), one N(2), one N(3), and one N(4) atom. The Ru(1)-N(1) bond length is 1.96 Å. The Ru(1)-N(2) bond length is 1.94 Å. The Ru(1)-N(3) bond length is 1.89 Å. The Ru(1)-N(4) bond length is 1.89 Å. There are four inequivalent N sites. In the first N site, N(4) is bonded to two equivalent Mg(1) and two equivalent Ru(1) atoms to form a mixture of distorted edge and corner-sharing NMg2Ru2 trigonal pyramids. In the second N site, N(1) is bonded in a rectangular see-saw-like geometry to two equivalent Mg(1) and two equivalent Ru(1) atoms. In the third N site, N(2) is bonded to two equivalent Mg(1), two equivalent Mg(2), and one Ru(1) atom to form NMg4Ru trigonal bipyramids that share corners with two equivalent N(2)Mg4Ru trigonal bipyramids, corners with three equivalent N(3)Mg4Ru trigonal bipyramids,  a cornercorner with one N(4)Mg2Ru2 trigonal pyramid,  an edgeedge with one N(2)Mg4Ru trigonal bipyramid, edges with three equivalent N(3)Mg4Ru trigonal bipyramids, and  an edgeedge with one N(4)Mg2Ru2 trigonal pyramid. In the fourth N site, N(3) is bonded to one Mg(1), three equivalent Mg(2), and one Ru(1) atom to form NMg4Ru trigonal bipyramids that share corners with two equivalent N(3)Mg4Ru trigonal bipyramids, corners with three equivalent N(2)Mg4Ru trigonal bipyramids, corners with two equivalent N(4)Mg2Ru2 trigonal pyramids, edges with two equivalent N(3)Mg4Ru trigonal bipyramids, and edges with three equivalent N(2)Mg4Ru trigonal bipyramids.