Large gaps in the representation of women in science careers later in life are not due to lack of ability in the classroom.