Magnesium alloys are among the lightest structural materials known and are of considerable technological interest. To develop superior magnesium alloys, experimentalists must have a thorough understanding of the concentration-dependent precipitates that form in a given system; and hence, the thermodynamic stability of crystal phases must be determined. This information is often lacking but can be supplied by first-principles methods. Within the high-throughput framework, AFLOW, T=0 K ground state predictions are made by scanning a large set of known candidate structures for thermodynamic (formation energy) minima. The study presented here encompasses 34 Mg-X systems of interest (X=Al, Au, Ca, Cd, Cu, Fe, Ge, Hg, Ir, K, La, Pb, Pd, Pt, Mo, Na, Nb, Os, Rb, Re, Rh, Ru, Sc, Si, Sn, Sr, Ta, Tc, Ti, V, W, Y, Zn, Zr). Avenues for further investigation are clearly revealed by this work. These include new stable phases predicted in compound-forming systems as well as phases predicted in systems reported to be non-compound-forming.