This paper develops and estimates an equilibrium model where heterogeneous firms can exploit two margins of informality: (i) not register their business, the extensive margin; and (ii) hire workers "off the books", the intensive margin. The model encompasses the main competing frameworks for...