Ba3MgGeN4 crystallizes in the orthorhombic Pnna space group. There are two inequivalent Ba sites. In the first Ba site, Ba(1) is bonded in a 4-coordinate geometry to one N(2) and three equivalent N(1) atoms. In the second Ba site, Ba(2) is bonded in a 6-coordinate geometry to two equivalent N(1) and four equivalent N(2) atoms. Mg(1) is bonded in a distorted rectangular see-saw-like geometry to two equivalent N(1) and two equivalent N(2) atoms. Ge(1) is bonded in a tetrahedral geometry to two equivalent N(1) and two equivalent N(2) atoms. There are two inequivalent N sites. In the first N site, N(1) is bonded in a 6-coordinate geometry to one Ba(2), three equivalent Ba(1), one Mg(1), and one Ge(1) atom. In the second N site, N(2) is bonded in a 5-coordinate geometry to one Ba(1), two equivalent Ba(2), one Mg(1), and one Ge(1) atom.
Ba3MgGeN4 crystallizes in the orthorhombic Pnna space group. There are two inequivalent Ba sites. In the first Ba site, Ba(1) is bonded in a 4-coordinate geometry to one N(2) and three equivalent N(1) atoms. The Ba(1)-N(2) bond length is 2.76 Å. There is one shorter (2.80 Å) and two longer (2.82 Å) Ba(1)-N(1) bond lengths. In the second Ba site, Ba(2) is bonded in a 6-coordinate geometry to two equivalent N(1) and four equivalent N(2) atoms. Both Ba(2)-N(1) bond lengths are 3.16 Å. There are two shorter (2.82 Å) and two longer (2.84 Å) Ba(2)-N(2) bond lengths. Mg(1) is bonded in a distorted rectangular see-saw-like geometry to two equivalent N(1) and two equivalent N(2) atoms. Both Mg(1)-N(1) bond lengths are 2.15 Å. Both Mg(1)-N(2) bond lengths are 2.15 Å. Ge(1) is bonded in a tetrahedral geometry to two equivalent N(1) and two equivalent N(2) atoms. Both Ge(1)-N(1) bond lengths are 1.96 Å. Both Ge(1)-N(2) bond lengths are 1.92 Å. There are two inequivalent N sites. In the first N site, N(1) is bonded in a 6-coordinate geometry to one Ba(2), three equivalent Ba(1), one Mg(1), and one Ge(1) atom. In the second N site, N(2) is bonded in a 5-coordinate geometry to one Ba(1), two equivalent Ba(2), one Mg(1), and one Ge(1) atom.