We document that a large share of the gender pay gap in Brazil is due to women working at lower-paying employers. At … interpret these facts, we develop an empirical equilibrium search model with endogenous gender differences in pay, amenities …-fifth of the gender pay gap, that there are significant output and welfare gains from eliminating gender differences, and that …