The paper considers formally the mapping from distortions to the allocations of resources across firms to aggregate productivity. TFP gaps are characterized as the integral of a strictly concave function with respect to an employment-weighted measure of distortions. Size related distortions are shown to correspond to a mean preserving spread of this measure, explaining the stronger effects on TFP found in the literature. An empirical lower bound on distortions based on size distribution of firms is derived and analyzed. The effect of curvature on the impact and measurement of distortions is also considered.