The underrepresentation of women in top positions within firms is well documented. One potential contributing factor could be that men and women respond differently to the competitive pressure inherent in firm hierarchies. This column investigates this idea in the context of a two-stage maths competition for students in Spain. Despite male and female students achieving similar grades at school, male students perform better in both stages of the contest. Importantly, the gender gap increases in the second stage, when the competitive pressure is greater.