This paper investigates how high school gender composition affects students' participation in STEM at college. Using Danish administrative data, we exploit idiosyncratic within-school variation in gender composition. We find that having a larger proportion of female peers reduces women's...