This paper provides evidence on the sources of the persisting mathematics test score gap between boys and girls. In particular, we investigate the role of the share of female mathematics teachers in secondary school and of pupils self-confidence and extrinsic motivation in mathematics. We find...