In this work, detailed DFT calculations of the structural, mechanical and electronic properties of crystalline CaSi2 with four different structures in the pressure range of 0–50 GPa are performed by GGA-PBE. It is found that the Enthalpy differences imply that the Rˉ3m phase → I41/amd phase → P6/mmm phase transition in CaSi2 occur at P1=2.5GPa, P2=33.5GPa by using the XC of GGA, which is consistent with previous experiments and theoretical conclusions. Besides, the elastic stability criterion is used to study the change of the elastic constant of CaSi2 under pressures. In particular, the bulk modulus B, shear modulus G, Young’s modulus E, sound velocity v and brittleness and toughness properties of CaSi2 under pressures are comprehensively studied for the first time. Finally, the changes of the anisotropy factor of CaSi2 are studied under different pressures, and the electronic structure is studied in detail.