A perfectly competitive market has many small firms, identical products, and free entry and exit. Each firm is a price taker and maximizes profits by producing where marginal revenue equals marginal cost. In the short run, firms will shut down if price is below average variable cost, while in the long run firms will exit if price is below average total cost. Market supply results from the aggregation of individual firm supplies. In the long run, entry and exit of firms drives the market to equilibrium with zero profits.