How to Calculate Profit Maximizing Quantity When Demand Is Horizontal
In a perfectly competitive market, a firm faces a horizontal demand curve, meaning market price is constant for every unit it sells. The profit maximizing rule is to produce where marginal revenue equals marginal cost, or MR = MC. Use the calculator below to find the optimal quantity, revenue, cost, and profit from a quadratic cost function.
Revenue, Cost, and Profit Chart
Expert Guide: How to Calculate Profit Maximizing Quantity When Demand Is Horizontal
When economists say a firm faces a horizontal demand curve, they mean the firm is a price taker. It can sell as much as it wants at the market price, but it cannot raise price above that level without losing customers to competitors. This setting is the textbook case of perfect competition. The central decision for the firm is not what price to charge, but rather how much output to produce.
The core rule is simple: profit is maximized where marginal revenue equals marginal cost. Because demand is horizontal for the individual firm, marginal revenue equals price. That means the problem becomes:
This rule is one of the most important ideas in microeconomics because it links market structure, revenue, and cost behavior. If you understand why a horizontal demand curve implies MR = P, you can solve a wide range of profit-maximization questions quickly and accurately.
Why horizontal demand changes the calculation
Under monopoly or imperfect competition, a firm usually faces a downward-sloping demand curve. Selling one more unit often requires lowering price, so marginal revenue is less than price. But with horizontal demand, that is not true. The firm sells every unit at the same market price. If price is $50, then each additional unit adds exactly $50 to total revenue. As a result:
- Total revenue is TR = P × Q.
- Marginal revenue is MR = P.
- The firm chooses output where P = MC.
This is why students often hear that a competitive firm’s supply decision comes from its marginal cost curve. In the short run, once the market price is known, the firm compares that price to marginal cost and expands production until the last unit produced adds exactly as much to revenue as it adds to cost.
Step by step process for calculating the profit maximizing quantity
- Identify market price. Because demand is horizontal, this price is fixed from the firm’s perspective.
- Write the cost function. In the calculator above, total cost is modeled as TC = FC + aQ + bQ².
- Find marginal cost. Differentiate total cost with respect to quantity: MC = a + 2bQ.
- Set MR equal to MC. Since MR = P, solve P = a + 2bQ.
- Solve for Q. Rearranging gives Q* = (P – a) / 2b.
- Check the shutdown condition. In the short run, the firm should produce only if price covers average variable cost at the chosen output. With this cost form, minimum AVC is approximately the linear coefficient a at very low output.
- Compute profit. Use Profit = TR – TC.
Notice something important: fixed cost does not affect the output rule directly. Fixed cost matters for profit, but it does not change the marginal cost of producing one more unit. That means fixed cost can lower profit without changing the quantity where MR = MC.
Worked example
Suppose a competitive firm faces a market price of $50 and has the cost function:
Then marginal cost is:
Since demand is horizontal, marginal revenue equals price:
Set MR equal to MC:
Solve:
Now calculate total revenue and total cost at 10 units:
- TR = 50 × 10 = 500
- TC = 100 + 10(10) + 2(10²) = 100 + 100 + 200 = 400
- Profit = 500 – 400 = 100
So the profit maximizing quantity is 10 units, and the firm earns $100 in economic profit. If price fell, the optimal quantity would generally fall too, because the MR = MC intersection would move leftward.
How to think about the shutdown rule
A common mistake is to assume the firm should always produce where MR = MC. That is true only if the firm can at least cover variable cost. In the short run, if price is below average variable cost, the firm minimizes losses by shutting down and producing zero output. It still pays fixed cost, but it avoids producing units that lose money on a variable basis.
With the calculator’s cost function, variable cost is aQ + bQ², and average variable cost is AVC = a + bQ. Because this rises as output rises when b > 0, the lowest AVC occurs near zero output, which makes the linear coefficient a an important threshold. If price is lower than a, the firm should generally shut down in the short run.
Comparison table: competitive firm versus monopoly output rule
| Feature | Horizontal demand firm | Downward-sloping demand firm |
|---|---|---|
| Demand curve for the firm | Perfectly elastic at market price | Negative slope |
| Marginal revenue | MR = P | MR < P |
| Profit maximizing rule | P = MC | MR = MC |
| Pricing power | None | Some market power |
| Best classroom examples | Commodity-like markets, price-taking firms | Single-brand or differentiated-product sellers |
Real-world context: why economists use agriculture and commodity markets as examples
Real markets are never perfectly identical to textbook models, but some industries are much closer to the competitive benchmark than others. Agricultural commodities are often used in introductory economics because individual producers typically have little power over market price. This is the intuition behind the horizontal demand assumption at the firm level.
Government data support why this example is useful. The U.S. agricultural sector contains a very large number of producers, and the output they sell is often close to standardized. According to USDA and related federal data series, the sector remains broad-based enough that an individual producer is usually only a tiny share of total market supply. That does not make every agricultural market perfectly competitive, but it makes the horizontal-demand framework a valuable analytical starting point.
| Reference statistic | Recent figure | Why it matters for horizontal demand intuition |
|---|---|---|
| U.S. farms, USDA count | About 1.89 million farms | A large number of sellers helps explain why a single firm often cannot influence market price. |
| Average U.S. farm size, USDA | About 463 acres | Firms vary in scale, but many still remain small relative to national output markets. |
| Family farms as share of all U.S. farms, USDA | Roughly 95 percent or more | Many independently operated firms are closer to the price-taker benchmark than a market dominated by a few large sellers. |
These figures are useful as teaching benchmarks, not as proof that every real-world market is perfectly competitive. The key point is conceptual: the more numerous the sellers and the more standardized the product, the more reasonable it becomes to model the individual firm’s demand as horizontal.
Another useful benchmark: concentration thresholds from U.S. antitrust guidance
A second way to understand horizontal demand is to compare it with markets that are more concentrated. U.S. antitrust agencies often assess market concentration using the Herfindahl-Hirschman Index, or HHI. Highly concentrated markets are less likely to behave like textbook perfect competition, because a small number of firms may have more influence over price.
| HHI benchmark | Interpretation | Relevance to firm demand |
|---|---|---|
| Below 1,000 | Lower concentration benchmark | More sellers usually means less individual pricing power. |
| 1,800 or higher | Highly concentrated benchmark in current federal guidance | Firms in concentrated markets are less likely to face truly horizontal demand. |
| Increase of 100 points in a highly concentrated market | Often treated as a potentially meaningful change | Changes in concentration can shift markets away from the price-taker model. |
This does not mean HHI tells you the exact shape of a firm’s demand curve. It does mean that market structure matters. If the market is fragmented and products are standardized, horizontal demand for the individual firm is a much stronger approximation. If the market is concentrated and brands matter, a downward-sloping demand curve is usually more realistic.
Common mistakes students make
- Confusing market demand with firm demand. In perfect competition, market demand is usually downward sloping, but the individual firm’s demand is horizontal.
- Using TR maximization instead of profit maximization. The correct rule is not where revenue is highest, but where the difference between revenue and cost is highest.
- Ignoring the shutdown condition. A firm should not produce simply because it can solve P = MC mathematically.
- Letting fixed cost change the output rule. Fixed cost affects total profit, not the marginal comparison between one more unit of output and one more unit of cost.
- Forgetting that b must be positive in the quadratic model. Without rising marginal cost, the model may not produce a meaningful finite optimum.
How to use this calculator effectively
The calculator above uses the cost function TC = FC + aQ + bQ². This is a practical teaching model because it creates a straight-line marginal cost curve:
Once you enter the market price, the tool finds the quantity where P = MC. It then calculates:
- Profit-maximizing quantity
- Total revenue
- Total cost
- Economic profit
- A shutdown recommendation
The chart is especially helpful because it shows how total revenue, total cost, and profit move as quantity changes. At low output, the firm may not spread fixed cost enough to earn much profit. At very high output, rising marginal cost eventually dominates. The best quantity lies where the additional gain from producing one more unit just equals the additional cost.
Bottom line
To calculate profit maximizing quantity when demand is horizontal, remember one sentence: the firm is a price taker, so marginal revenue equals price, and profit is maximized where price equals marginal cost. From there, the rest is algebra. Find the cost function, derive marginal cost, solve P = MC, and then check whether the firm should produce at all in the short run.
Master this framework and you will be able to solve many standard microeconomics problems quickly, including competitive firm output, shutdown decisions, short-run supply, and comparative statics when market price changes.