We identify women’s revealed preferences for legislative proposals to investigate substantive representation of women. We then examine whether female or male politicians in parliament are more responsive to revealed female preferences using data on 47,527 decisions made by all 777 Swiss parliamentarians between 1996 and 2022. Holding party and constituent preferences constant, our results show differences in the substantive representation of women between female and male politicians for legislative proposals related to social policies. For all policies unrelated to social issues, we find that female politicians are no more responsive to female preferences than male politicians. Heterogeneity analyses show that differences in the substantive representation of women by male and female politicians on social policy issues do not depend on the socialization of the politicians, or the underlying political incentives and constraints.