In a perfectly competitive market, there are many small firms producing identical goods with easy entry and exit. Each firm is a price taker, unable to influence the market price. In the short run, a firm will operate at the quantity where marginal revenue equals marginal cost to maximize profits. This can result in either economic profits or losses. In the long run, if there are economic profits, more firms will enter the market, driving the price down until profits reach zero. If there are economic losses, firms will exit until the price rises and losses become zero, reaching long run equilibrium with normal profits.