A major question in the globalization debate is whether outsourcing and offshoring activities are beneficial to the home country. This paper investigates the effects on productivity and trade from the perspective of transaction costs, using a recent theory on trade in tasks. A production function is estimated for the Netherlands for the period 1972-2001. It suggests that the effect of offshoring manufacturing and services on total factor productivity (TFP) is positive and larger than the effect of R & D on productivity