MgIn5 crystallizes in the orthorhombic Amm2 space group. Mg(1) is bonded to two equivalent Mg(1), two equivalent In(3), two equivalent In(4), two equivalent In(5), and four equivalent In(2) atoms to form distorted MgMg2In10 cuboctahedra that share corners with six equivalent Mg(1)Mg2In10 cuboctahedra, corners with six equivalent In(5)Mg2In10 cuboctahedra, corners with eight equivalent In(4)Mg2In8 cuboctahedra,  an edgeedge with one In(4)Mg2In8 cuboctahedra, edges with three equivalent In(5)Mg2In10 cuboctahedra, edges with four equivalent In(2)Mg4In8 cuboctahedra, edges with eight equivalent In(1)In12 cuboctahedra, faces with two equivalent In(1)In12 cuboctahedra, faces with two equivalent In(5)Mg2In10 cuboctahedra, faces with two equivalent In(4)Mg2In8 cuboctahedra, faces with four equivalent Mg(1)Mg2In10 cuboctahedra, faces with four equivalent In(2)Mg4In8 cuboctahedra, and faces with six equivalent In(3)Mg2In10 cuboctahedra. There are five inequivalent In sites. In the first In site, In(1) is bonded to two equivalent In(1), two equivalent In(2), two equivalent In(3), two equivalent In(5), and four equivalent In(4) atoms to form InIn12 cuboctahedra that share corners with four equivalent In(4)Mg2In8 cuboctahedra, corners with six equivalent In(1)In12 cuboctahedra, corners with six equivalent In(3)Mg2In10 cuboctahedra, corners with six equivalent In(2)Mg4In8 cuboctahedra, edges with three equivalent In(3)Mg2In10 cuboctahedra, edges with three equivalent In(2)Mg4In8 cuboctahedra, edges with eight equivalent Mg(1)Mg2In10 cuboctahedra, faces with two equivalent Mg(1)Mg2In10 cuboctahedra, faces with two equivalent In(3)Mg2In10 cuboctahedra, faces with two equivalent In(2)Mg4In8 cuboctahedra, faces with four equivalent In(1)In12 cuboctahedra, faces with four equivalent In(4)Mg2In8 cuboctahedra, and faces with six equivalent In(5)Mg2In10 cuboctahedra. In the second In site, In(2) is bonded to four equivalent Mg(1), two equivalent In(1), two equivalent In(2), two equivalent In(3), and two equivalent In(4) atoms to form distorted InMg4In8 cuboctahedra that share corners with six equivalent In(1)In12 cuboctahedra, corners with six equivalent In(3)Mg2In10 cuboctahedra, corners with six equivalent In(2)Mg4In8 cuboctahedra, edges with three equivalent In(1)In12 cuboctahedra, edges with three equivalent In(3)Mg2In10 cuboctahedra, edges with four equivalent Mg(1)Mg2In10 cuboctahedra, edges with eight equivalent In(5)Mg2In10 cuboctahedra, faces with two equivalent In(1)In12 cuboctahedra, faces with two equivalent In(3)Mg2In10 cuboctahedra, faces with two equivalent In(5)Mg2In10 cuboctahedra, faces with four equivalent Mg(1)Mg2In10 cuboctahedra, faces with four equivalent In(2)Mg4In8 cuboctahedra, and faces with six equivalent In(4)Mg2In8 cuboctahedra. In the third In site, In(3) is bonded to two equivalent Mg(1), two equivalent In(1), two equivalent In(2), two equivalent In(3), and four equivalent In(5) atoms to form distorted InMg2In10 cuboctahedra that share corners with six equivalent In(1)In12 cuboctahedra, corners with six equivalent In(3)Mg2In10 cuboctahedra, corners with six equivalent In(2)Mg4In8 cuboctahedra, edges with three equivalent In(1)In12 cuboctahedra, edges with three equivalent In(2)Mg4In8 cuboctahedra, edges with four equivalent In(5)Mg2In10 cuboctahedra, edges with eight equivalent In(4)Mg2In8 cuboctahedra, faces with two equivalent In(1)In12 cuboctahedra, faces with two equivalent In(4)Mg2In8 cuboctahedra, faces with two equivalent In(2)Mg4In8 cuboctahedra, faces with four equivalent In(3)Mg2In10 cuboctahedra, faces with four equivalent In(5)Mg2In10 cuboctahedra, and faces with six equivalent Mg(1)Mg2In10 cuboctahedra. In the fourth In site, In(4) is bonded to two equivalent Mg(1), two equivalent In(2), two equivalent In(5), and four equivalent In(1) atoms to form distorted InMg2In8 cuboctahedra that share corners with four equivalent In(1)In12 cuboctahedra, corners with four equivalent In(4)Mg2In8 cuboctahedra, corners with eight equivalent Mg(1)Mg2In10 cuboctahedra, corners with eight equivalent In(5)Mg2In10 cuboctahedra,  an edgeedge with one Mg(1)Mg2In10 cuboctahedra,  an edgeedge with one In(5)Mg2In10 cuboctahedra, edges with eight equivalent In(3)Mg2In10 cuboctahedra, faces with two equivalent Mg(1)Mg2In10 cuboctahedra, faces with two equivalent In(3)Mg2In10 cuboctahedra, faces with two equivalent In(5)Mg2In10 cuboctahedra, faces with four equivalent In(1)In12 cuboctahedra, faces with four equivalent In(4)Mg2In8 cuboctahedra, and faces with six equivalent In(2)Mg4In8 cuboctahedra. In the fifth In site, In(5) is bonded to two equivalent Mg(1), two equivalent In(1), two equivalent In(4), two equivalent In(5), and four equivalent In(3) atoms to form distorted InMg2In10 cuboctahedra that share corners with six equivalent Mg(1)Mg2In10 cuboctahedra, corners with six equivalent In(5)Mg2In10 cuboctahedra, corners with eight equivalent In(4)Mg2In8 cuboctahedra,  an edgeedge with one In(4)Mg2In8 cuboctahedra, edges with three equivalent Mg(1)Mg2In10 cuboctahedra, edges with four equivalent In(3)Mg2In10 cuboctahedra, edges with eight equivalent In(2)Mg4In8 cuboctahedra, faces with two equivalent Mg(1)Mg2In10 cuboctahedra, faces with two equivalent In(4)Mg2In8 cuboctahedra, faces with two equivalent In(2)Mg4In8 cuboctahedra, faces with four equivalent In(3)Mg2In10 cuboctahedra, faces with four equivalent In(5)Mg2In10 cuboctahedra, and faces with six equivalent In(1)In12 cuboctahedra.
MgIn5 crystallizes in the orthorhombic Amm2 space group. Mg(1) is bonded to two equivalent Mg(1), two equivalent In(3), two equivalent In(4), two equivalent In(5), and four equivalent In(2) atoms to form distorted MgMg2In10 cuboctahedra that share corners with six equivalent Mg(1)Mg2In10 cuboctahedra, corners with six equivalent In(5)Mg2In10 cuboctahedra, corners with eight equivalent In(4)Mg2In8 cuboctahedra,  an edgeedge with one In(4)Mg2In8 cuboctahedra, edges with three equivalent In(5)Mg2In10 cuboctahedra, edges with four equivalent In(2)Mg4In8 cuboctahedra, edges with eight equivalent In(1)In12 cuboctahedra, faces with two equivalent In(1)In12 cuboctahedra, faces with two equivalent In(5)Mg2In10 cuboctahedra, faces with two equivalent In(4)Mg2In8 cuboctahedra, faces with four equivalent Mg(1)Mg2In10 cuboctahedra, faces with four equivalent In(2)Mg4In8 cuboctahedra, and faces with six equivalent In(3)Mg2In10 cuboctahedra. Both Mg(1)-Mg(1) bond lengths are 3.32 Å. Both Mg(1)-In(3) bond lengths are 3.28 Å. Both Mg(1)-In(4) bond lengths are 3.22 Å. Both Mg(1)-In(5) bond lengths are 3.24 Å. All Mg(1)-In(2) bond lengths are 3.28 Å. There are five inequivalent In sites. In the first In site, In(1) is bonded to two equivalent In(1), two equivalent In(2), two equivalent In(3), two equivalent In(5), and four equivalent In(4) atoms to form InIn12 cuboctahedra that share corners with four equivalent In(4)Mg2In8 cuboctahedra, corners with six equivalent In(1)In12 cuboctahedra, corners with six equivalent In(3)Mg2In10 cuboctahedra, corners with six equivalent In(2)Mg4In8 cuboctahedra, edges with three equivalent In(3)Mg2In10 cuboctahedra, edges with three equivalent In(2)Mg4In8 cuboctahedra, edges with eight equivalent Mg(1)Mg2In10 cuboctahedra, faces with two equivalent Mg(1)Mg2In10 cuboctahedra, faces with two equivalent In(3)Mg2In10 cuboctahedra, faces with two equivalent In(2)Mg4In8 cuboctahedra, faces with four equivalent In(1)In12 cuboctahedra, faces with four equivalent In(4)Mg2In8 cuboctahedra, and faces with six equivalent In(5)Mg2In10 cuboctahedra. Both In(1)-In(1) bond lengths are 3.32 Å. Both In(1)-In(2) bond lengths are 3.36 Å. Both In(1)-In(3) bond lengths are 3.30 Å. Both In(1)-In(5) bond lengths are 3.32 Å. All In(1)-In(4) bond lengths are 3.33 Å. In the second In site, In(2) is bonded to four equivalent Mg(1), two equivalent In(1), two equivalent In(2), two equivalent In(3), and two equivalent In(4) atoms to form distorted InMg4In8 cuboctahedra that share corners with six equivalent In(1)In12 cuboctahedra, corners with six equivalent In(3)Mg2In10 cuboctahedra, corners with six equivalent In(2)Mg4In8 cuboctahedra, edges with three equivalent In(1)In12 cuboctahedra, edges with three equivalent In(3)Mg2In10 cuboctahedra, edges with four equivalent Mg(1)Mg2In10 cuboctahedra, edges with eight equivalent In(5)Mg2In10 cuboctahedra, faces with two equivalent In(1)In12 cuboctahedra, faces with two equivalent In(3)Mg2In10 cuboctahedra, faces with two equivalent In(5)Mg2In10 cuboctahedra, faces with four equivalent Mg(1)Mg2In10 cuboctahedra, faces with four equivalent In(2)Mg4In8 cuboctahedra, and faces with six equivalent In(4)Mg2In8 cuboctahedra. Both In(2)-In(2) bond lengths are 3.32 Å. Both In(2)-In(3) bond lengths are 3.22 Å. Both In(2)-In(4) bond lengths are 3.28 Å. In the third In site, In(3) is bonded to two equivalent Mg(1), two equivalent In(1), two equivalent In(2), two equivalent In(3), and four equivalent In(5) atoms to form distorted InMg2In10 cuboctahedra that share corners with six equivalent In(1)In12 cuboctahedra, corners with six equivalent In(3)Mg2In10 cuboctahedra, corners with six equivalent In(2)Mg4In8 cuboctahedra, edges with three equivalent In(1)In12 cuboctahedra, edges with three equivalent In(2)Mg4In8 cuboctahedra, edges with four equivalent In(5)Mg2In10 cuboctahedra, edges with eight equivalent In(4)Mg2In8 cuboctahedra, faces with two equivalent In(1)In12 cuboctahedra, faces with two equivalent In(4)Mg2In8 cuboctahedra, faces with two equivalent In(2)Mg4In8 cuboctahedra, faces with four equivalent In(3)Mg2In10 cuboctahedra, faces with four equivalent In(5)Mg2In10 cuboctahedra, and faces with six equivalent Mg(1)Mg2In10 cuboctahedra. Both In(3)-In(3) bond lengths are 3.32 Å. All In(3)-In(5) bond lengths are 3.29 Å. In the fourth In site, In(4) is bonded to two equivalent Mg(1), two equivalent In(2), two equivalent In(5), and four equivalent In(1) atoms to form distorted InMg2In8 cuboctahedra that share corners with four equivalent In(1)In12 cuboctahedra, corners with four equivalent In(4)Mg2In8 cuboctahedra, corners with eight equivalent Mg(1)Mg2In10 cuboctahedra, corners with eight equivalent In(5)Mg2In10 cuboctahedra,  an edgeedge with one Mg(1)Mg2In10 cuboctahedra,  an edgeedge with one In(5)Mg2In10 cuboctahedra, edges with eight equivalent In(3)Mg2In10 cuboctahedra, faces with two equivalent Mg(1)Mg2In10 cuboctahedra, faces with two equivalent In(3)Mg2In10 cuboctahedra, faces with two equivalent In(5)Mg2In10 cuboctahedra, faces with four equivalent In(1)In12 cuboctahedra, faces with four equivalent In(4)Mg2In8 cuboctahedra, and faces with six equivalent In(2)Mg4In8 cuboctahedra. Both In(4)-In(5) bond lengths are 3.41 Å. In the fifth In site, In(5) is bonded to two equivalent Mg(1), two equivalent In(1), two equivalent In(4), two equivalent In(5), and four equivalent In(3) atoms to form distorted InMg2In10 cuboctahedra that share corners with six equivalent Mg(1)Mg2In10 cuboctahedra, corners with six equivalent In(5)Mg2In10 cuboctahedra, corners with eight equivalent In(4)Mg2In8 cuboctahedra,  an edgeedge with one In(4)Mg2In8 cuboctahedra, edges with three equivalent Mg(1)Mg2In10 cuboctahedra, edges with four equivalent In(3)Mg2In10 cuboctahedra, edges with eight equivalent In(2)Mg4In8 cuboctahedra, faces with two equivalent Mg(1)Mg2In10 cuboctahedra, faces with two equivalent In(4)Mg2In8 cuboctahedra, faces with two equivalent In(2)Mg4In8 cuboctahedra, faces with four equivalent In(3)Mg2In10 cuboctahedra, faces with four equivalent In(5)Mg2In10 cuboctahedra, and faces with six equivalent In(1)In12 cuboctahedra. Both In(5)-In(5) bond lengths are 3.32 Å.