How do trade shocks affect welfare and inequality when human capital is endogenous? Using an external IT demand shock and detailed internal migration data from India, this paper first document that both IT employment and engineering enrollment responded to the rise in IT exports. IT employment responded more in regions with a higher college-age population. The paper then develop a quantitative spatial equilibrium model featuring two new channels: higher education choice and differential costs of migrating for college and work. Using the framework, I quantify the aggregate and distributional effects of the IT boom and perform counterfactuals. Without endogenous education, the estimated aggregate welfare gain from the export shock would have been about a third, and regional inequality twice as large. Reducing barriers to mobility for education, such as introducing a national scholarship for students at higher education institutes, would substantially reduce inequality in the gains from the IT boom across districts.