We set up a two-country general equilibrium model, in which heterogeneous firms from one country (the source country) can offshore routine tasks to a low-wage host country. The most productive firms self-select into offshoring, and the impact on welfare in the source country can be positive or...