Girls frequently choose educational pathways that lead to lower-paid jobs and less prestigious careers, despite performing as well as boys at school. Using a cohort of French pupils, we estimate a model of educational choices in which the anticipated cost of choosing a pathway depends on the skills in each subject and is allowed to differ between boys and girls. We show that choices in high school and in higher education are partly driven by expected earnings for boys but less for girls. Boys choose more often courses with a component in Sciences and competitive pathways. In high school, gender differences are higher for pupils at the same level in Mathematics and Humanities and are largely due to differences in marginal impact of test scor...