Using data from China Education Panel Survey( CEPS),this paper explores the influence of gender attitude on girls’ mathematical achievement from four levels: individual,family,school,and region. It is found that,on the one hand,the stereotypes of gender roles by students and parents have a significant effect on the mathematical achievement of both boys and girls. It has positive promoting effect on boys,but has inhibiting effect on girls. On the other hand,girls were not negatively affected by gender stereotype threat. In addition,the gender structure of children and the local sex ratio have no significant influence on the math performance of boys and girls.Therefore,the main factors affecting girls’ mathematical achievement lie in the stereotype cognition of the relationship between gender and mathematics by women themselves and their families,rather than the traditional concept and behavior of son preference.