A formalization of the Coase-Williamson-Cheung theory of the firm is used to examine the trade-off between the firm and the market as institutions for organizing production in a dynamic, general equilibrium model with increasing returns to labor specialization. The model considers the interaction of internal and external transaction costs and the gains to labor specialization in determining imp...