K6MgO4 crystallizes in the hexagonal P6_3mc space group. There are two inequivalent K sites. In the first K site, K(1) is bonded in a 5-coordinate geometry to one O(1) and four equivalent O(2) atoms. In the second K site, K(2) is bonded in a 4-coordinate geometry to one O(1) and three equivalent O(2) atoms. Mg(1) is bonded in a tetrahedral geometry to one O(1) and three equivalent O(2) atoms. There are two inequivalent O sites. In the first O site, O(1) is bonded in a distorted single-bond geometry to three equivalent K(1), three equivalent K(2), and one Mg(1) atom. In the second O site, O(2) is bonded in a 8-coordinate geometry to three equivalent K(2), four equivalent K(1), and one Mg(1) atom.
K6MgO4 crystallizes in the hexagonal P6_3mc space group. There are two inequivalent K sites. In the first K site, K(1) is bonded in a 5-coordinate geometry to one O(1) and four equivalent O(2) atoms. The K(1)-O(1) bond length is 2.76 Å. There are two shorter (2.74 Å) and two longer (2.93 Å) K(1)-O(2) bond lengths. In the second K site, K(2) is bonded in a 4-coordinate geometry to one O(1) and three equivalent O(2) atoms. The K(2)-O(1) bond length is 2.77 Å. There is one shorter (2.66 Å) and two longer (2.74 Å) K(2)-O(2) bond lengths. Mg(1) is bonded in a tetrahedral geometry to one O(1) and three equivalent O(2) atoms. The Mg(1)-O(1) bond length is 2.01 Å. All Mg(1)-O(2) bond lengths are 2.04 Å. There are two inequivalent O sites. In the first O site, O(1) is bonded in a distorted single-bond geometry to three equivalent K(1), three equivalent K(2), and one Mg(1) atom. In the second O site, O(2) is bonded in a 8-coordinate geometry to three equivalent K(2), four equivalent K(1), and one Mg(1) atom.