Sub topic 9
A Firm's Choice: Marginal Revenue Equals Marginal Cost
This chapter assumes you know the earlier ideas in this tutorial. You should be able to compute marginal cost from a total-cost table, state the rule "keep going while marginal benefit is at least marginal cost", and tell fixed costs from variable costs. Basic Python helps with the code, but the tables carry the argument.
A firm's output decision is the marginal rule applied to one question: how many units should we produce? The benefit of a unit is the revenue it brings in, and the cost is what it adds to total cost.
Profit is built from margins
Profit is total revenue (TR) minus total cost (TC). Marginal revenue (MR) is the change in total revenue from selling one more unit. Marginal cost (MC) is the change in total cost from making one more unit.
Producing one more unit changes profit by MR minus MC. So:
- If MR is greater than MC, the unit adds to profit, and the firm should make it.
- If MR is less than MC, the unit lowers profit, and the firm should not make it.
- If MR equals MC, the unit changes nothing, and the firm is indifferent.
The firm should therefore expand output until the next unit would cost more than it earns. When marginal cost rises as output grows, the profit-maximizing quantity is the last one where MR is at least MC. That is the sense in which profit-maximizing firms set "MR = MC".
The price-taking firm
A price taker sells in a market so large that its own output does not move the price. Think of a wheat farmer or a small seller of a standard commodity. Each extra unit sells at the market price, so MR equals the price.
Here is the cost table used in earlier chapters, with a market price of 55. The first row is zero output, where total cost is the fixed cost of 100.
| Quantity | Total cost | Marginal cost | Marginal revenue (price) | MR minus MC | Total profit |
|---|---|---|---|---|---|
| 0 | 100 | none | none | none | -100 |
| 1 | 140 | 40 | 55 | +15 | -85 |
| 2 | 185 | 45 | 55 | +10 | -75 |
| 3 | 235 | 50 | 55 | +5 | -70 |
| 4 | 295 | 60 | 55 | -5 | -75 |
| 5 | 370 | 75 | 55 | -20 | -95 |
The first three units each add to profit. The fourth costs 60 and earns 55, so it lowers profit by 5. The best quantity is 3, even though the firm still loses 70 there. The code below applies the marginal rule and checks it against total profit at every quantity.
total_cost = [100, 140, 185, 235, 295, 370] # includes a fixed cost of 100
marginal_cost = [total_cost[q] - total_cost[q - 1] for q in range(1, len(total_cost))]
price = 55 # marginal revenue of each extra unit
# Marginal rule: add units while marginal revenue covers marginal cost.
q_rule = 0
for mc in marginal_cost:
if mc <= price:
q_rule += 1
else:
break
# Check by brute force: pick the quantity with the highest total profit.
def profit(q):
return price * q - total_cost[q]
q_best = max(range(len(total_cost)), key=profit)
assert q_rule == q_best == 3
print(q_rule, profit(q_rule)) # 3 -70The loop stops at the first unit that fails the test. That shortcut is valid only because marginal cost rises with each unit. If it did not, a later unit might pass the test after an earlier one failed, and you would have to check every unit.
Why "equal" and not "at least"
The table has whole units, so MR and MC rarely match exactly. The rule becomes "produce every unit where MR is at least MC". With a continuous quantity, such as liters of milk, MC rises smoothly and the stopping point is where MR equals MC. Both statements describe the same behavior.
A unit with MR exactly equal to MC adds zero profit, so including or excluding it gives the same total. This chapter includes ties, to match the rule "at least" used in earlier chapters.
The firm with market power
Many firms are not price takers. A firm with a distinctive product, or the only seller in a town, faces a downward-sloping demand curve. To sell more it must lower its price. Then MR is not the price, and it is lower than the price.
Take a firm that can sell these quantities at these prices:
| Quantity | Price | Total revenue | Marginal revenue |
|---|---|---|---|
| 1 | 80 | 80 | 80 |
| 2 | 70 | 140 | 60 |
| 3 | 60 | 180 | 40 |
| 4 | 50 | 200 | 20 |
| 5 | 40 | 200 | 0 |
Selling the second unit brings in a price of 70. But to sell it, the firm must also drop the price on the first unit from 80 to 70, which costs 10. Marginal revenue is 70 minus 10, which is 60. The firm gains the new unit's price and loses the price cut on the units it would have sold anyway.
That is why MR is below price whenever the firm must cut its price to sell more. The firm should compare MC with MR, not with the price. Comparing MC with the price would make the firm overproduce.
total_cost = [100, 140, 185, 235, 295, 370]
marginal_cost = [total_cost[q] - total_cost[q - 1] for q in range(1, len(total_cost))]
prices = [80, 70, 60, 50, 40] # price at which quantities 1..5 can be sold
revenue = [0] + [p * q for q, p in enumerate(prices, start=1)]
marginal_revenue = [revenue[q] - revenue[q - 1] for q in range(1, len(revenue))]
print(marginal_revenue) # [80, 60, 40, 20, 0]
q_rule = 0
for mr, mc in zip(marginal_revenue, marginal_cost):
if mr >= mc:
q_rule += 1
else:
break
def profit(q):
return revenue[q] - total_cost[q]
q_best = max(range(len(total_cost)), key=profit)
assert q_rule == q_best == 2
print(q_rule, prices[q_rule - 1], profit(q_rule)) # 2 70 -45The firm produces 2 units and sells them at 70. The third unit has MR of 40 and MC of 50, so it would lower profit by 10. Notice that a price of 60 for the third unit is above its MC of 50, so a naive "price above cost" test would wrongly approve it.
Fixed costs and the decision to operate at all
The marginal rule picks a quantity. It does not say whether producing that quantity beats producing nothing. In the price-taking example the best quantity still produces a loss of 70. Should the firm shut down?
Compare the two options. If the firm shuts down in the short run, it still pays its fixed cost of 100, so profit is -100. Producing 3 units gives -70, which is better. The reason is that revenue at 3 units (165) is more than the variable cost (135), and the difference of 30 helps pay the fixed cost.
The test is:
- Find the quantity where MR is at least MC, as above.
- At that quantity, check whether total revenue covers total variable cost. For a price taker this means price at least average variable cost.
- If it does, produce that quantity. If it does not, produce nothing, and accept a loss equal to the fixed cost.
Fixed costs do not appear in step 1, because they do not change with output. They also do not appear in step 2, as long as they cannot be avoided in the short run. They only decide whether the firm survives in the long run, when all costs become avoidable. A firm that keeps losing money after its fixed commitments run out should exit.
The whole decision in one loop
Common errors
Most mistakes in this topic come from using the wrong comparison.
- Comparing price with average cost. Average cost tells you whether a quantity is profitable overall. It does not tell you whether to add one more unit. In the table, average cost at 3 units is 78.3 and at 4 units is 73.75. A price of 55 is below both, and still the firm should make 3 units.
- Using price instead of MR when the firm has market power. The price is above MR, so the firm would produce too much.
- Including fixed or sunk costs in MC. They do not change with the next unit, so they cannot be part of a marginal decision.
- Assuming MC always rises. In the short run, spreading out setup effort can make MC fall for the first few units. Then MR can be at least MC at a small output, fail in the middle, and pass again later. The "stop at the first failure" shortcut breaks. Check that you have found the point where MC crosses MR from below.
- Stopping at a local peak. With irregular costs, compare total profit at candidate quantities, as the brute-force check in the code does.
- Ignoring the shutdown test. Finding an MR = MC quantity with a loss does not mean you should produce it. Check revenue against variable cost.
Summary of the method
- Build MR for each unit: the price for a price taker, or the change in total revenue for a firm with market power.
- Build MC for each unit from the change in total cost.
- Add units while MR is at least MC, assuming MC rises.
- Check that revenue at that quantity covers variable cost.
- Confirm by comparing total profit across quantities if the cost pattern is irregular.
Exercise
A price-taking firm faces a price of 65. Its total cost for quantities 0 to 5 is [100, 140, 185, 235, 295, 370]. Using the marginal rule, what quantity should it produce, and what is its profit? Should it operate rather than shut down?
Show answer
Marginal costs are 40, 45, 50, 60, 75. With a price of 65, the first four units pass (60 is at most 65), and the fifth fails (75 is above 65). The quantity is 4. Revenue is 65 x 4 = 260 and total cost is 295, so profit is -35. Variable cost at 4 units is 295 - 100 = 195, and revenue of 260 exceeds it, so the firm should operate, since shutting down would lose the full fixed cost of 100.
Exercise
A firm with market power can sell 1 unit at 90, 2 units at 80, 3 units at 70, and 4 units at 60. Its marginal costs for units 1 to 4 are 30, 40, 50, and 60. How many units should it make, and at what price?
Show answer
Total revenue is 90, 160, 210, 240, so marginal revenue is 90, 70, 50, 30. Compare with MC: unit 1 is 90 vs 30 (pass), unit 2 is 70 vs 40 (pass), unit 3 is 50 vs 50 (tie, include), and unit 4 is 30 vs 60 (fail). The firm makes 3 units and sells them at a price of 70. Making the third unit adds zero profit, so stopping at 2 units gives the same profit.