This paper analyzes the impact of minimum wages on different margins of firm dynamics using Costa Rica’s occupation-specific minimum wage setting. To this purpose, I assemble rich administrative data covering the universe of workers and firms in the 2006-2017 period to construct firm-level exposure measures to the minimum wage policy, and estimate the impact of differential exposure to the minimum wage on firm outcomes at several year horizons. The analysis yields two important results: First, minimum wages induce firms to increase their labor shares, but with a negative and persistent impact on their profitability. The positive effect on the labor shares moderates as firms reduce their employment levels and expand their capital stocks. Second, raising minimum wages increases firm exit and lowers firm entry, with an estimated adverse effect on employment of 0.8 percent due to the missing entrants associated with the policy.