The authors propose a theory of task trade between countries that have similar relative factor endowments and technological capabilities but may differ in size. Firms produce differentiated goods by performing a continuum of tasks, each of which generates local spillovers. Tasks can be performed...