The structural stability, electronic structures, elastic properties and thermodynamic properties of the main binary phases Mg_(17)Al_(12), Al_2Ca, Mg_2 Sn and Mg_2 Ca in Mg-Al-Ca-Sn alloy were determined from the first-principles calculation. The calculated lattice parameters are in good agreement with the experimental and literature values. The calculated heats of formation and cohesive energies show that Al_2Ca has the strongest alloying ability and structural stability. The densities of states(DOS), Mulliken electron occupation number, metallicity and charge density difference of these compounds are given. The elastic constants of Mg_(17)Al_(12), Al_2Ca, Mg_2 Sn and Mg_2 Ca phases are calculated, and the bulk moduli, shear moduli, elastic moduli and Poisson ratio are derived. The calculations of thermodynamic properties show that the Gibbs free energies of Al_2Ca and Mg_2 Sn are lower than that of Mg_(17)Al_(12), which indicates that Al_2Ca and Mg_2 Sn are more stable than Mg_(17)Al_(12) phase. Hence, the heat resistance of Mg-Al-based alloys can be improved by adding Ca and Sn additions.