Perfect competition is the economist's benchmark. It describes markets where no single buyer or seller can influence the price — everyone is a price taker. While few real markets are perfectly competitive, the model reveals fundamental truths about how markets work.
A competitive firm faces a horizontal demand curve at the market price. It can sell as much as it wants at that price, but nothing above it. The firm's only decision is how much to produce.
Profit maximization follows a simple rule: produce where marginal cost equals price (MC = P). If the next unit costs less to produce than it sells for, make it. If it costs more, stop. This rule, combined with the cost curves from the previous unit, determines the firm's supply curve — which is just the marginal cost curve above average variable cost.
In the short run, firms can earn positive economic profit (when price exceeds average total cost) or incur losses (when price is below average total cost but above average variable cost). But in the long run, profits attract new firms and losses cause exits. Entry and exit continue until price equals the minimum of average total cost — the point of zero economic profit.
Competitive market equilibrium is where the magic happens. The market supply curve (the sum of all firms' supply curves) intersects market demand to determine the equilibrium price. At this equilibrium, resources are allocated efficiently — no reallocation could make someone better off without making someone else worse off. This is the first welfare theorem, and it is why economists use perfect competition as a benchmark for evaluating other market structures.