This study aims to explain why boys and girls in secondary education choose different educational tracks. We argue that adolescents internalise gender expectations as to what is "appropriate" male and female behaviour in their gender ideology. Gender ideology can affect educational choices by influencing (1) how adolescents evaluate their competence in certain subjects (competence beliefs), (2) what they find important in a future occupation (occupational values) and (3) what school subject they prefer right now (subject preferences). Longitudinal data collected among adolescents at age 15 and 16 (N = 1062) are used. Multinomial path models show that gender ideology shapes boys' occupational values and subject preferences, whereas for girls it shapes their competence beliefs. Only for boys this leads to gender-stereotypical educational choices, however. Our results support the idea that gender expectations are stricter for boys than for girls and may prevent men from entering more feminine career tracks.