Sub topic 7
Total surplus and market efficiency
This chapter assumes you can read linear demand and supply equations of the form P = a - bQ. It also assumes you know how to find an equilibrium and how to compute the area of a triangle. It builds on the previous two chapters, where consumer surplus is the gap between willingness to pay and price, and producer surplus is the gap between price and cost.
Adding the two surpluses
Total surplus is consumer surplus plus producer surplus:
Total surplus = CS + PS
Write the price as P. For each unit sold, the buyer's value is V and the seller's cost is C. The buyer's gain is V - P and the seller's gain is P - C. Adding them gives:
(V - P) + (P - C) = V - C
The price cancels out. For each unit traded, the total gain is the buyer's value minus the seller's cost. This is the central result of the chapter. The price decides how the gain is split between buyer and seller. It does not change the size of the gain.
Because of this, you can measure total surplus without knowing the price. Add up V - C over every unit traded. On a diagram this is the area between the demand curve and the supply curve, from zero out to the quantity traded.
Marginal benefit, marginal cost, and the best quantity
The demand curve gives the marginal benefit (MB) of each additional unit. This is the value the next buyer places on it. The supply curve gives the marginal cost (MC) of each additional unit. This is the cost to the next seller. Each unit adds MB - MC to total surplus.
- While MB is greater than MC, producing one more unit adds surplus.
- When MB is less than MC, producing one more unit subtracts surplus. The value to the buyer is less than the cost of making it.
- Total surplus is largest at the quantity where MB = MC.
In a competitive market without outside effects, that is exactly the equilibrium quantity. At equilibrium, the last unit traded has a buyer value equal to its seller cost. This is why economists call the equilibrium efficient.
What "efficient" means here
In this chapter, efficiency means allocative efficiency: no rearrangement of who produces and who consumes could raise total surplus. A market outcome is efficient when three conditions hold:
- The right buyers consume. Every buyer who gets a unit values it more than every buyer who goes without. Willingness to pay is at least the price for those who buy.
- The right sellers produce. Every seller who produces has a lower cost than every seller who does not.
- The right quantity is traded. Every unit with MB above MC is traded, and no unit with MB below MC is traded.
Efficiency is a statement about the size of the total gain. It says nothing about fairness. A market can be efficient and still leave one side with almost all of the surplus.
A worked example
Use the market from earlier chapters. Demand is P = 100 - 2Q and supply is P = 10 + Q. Equilibrium is where 100 - 2Q = 10 + Q, so Q = 30 and P = 40.
Each unit q adds MB - MC = (100 - 2q) - (10 + q) = 90 - 3q. Summing this gain over units 0 to Q gives total surplus as a function of quantity:
TS(Q) = 90Q - 1.5Q²
This function peaks where 90 - 3Q = 0, which is Q = 30. The code below checks it numerically.
# Demand P = a - b*Q, supply P = c + d*Q
a, b = 100, 2
c, d = 10, 1
def total_surplus(q):
"""Surplus when exactly q units are traded and the right buyers and sellers trade.
Area between the demand curve and the supply curve from 0 to q.
The marginal gain of the unit at q is (a - b*q) - (c + d*q).
"""
return (a - c) * q - 0.5 * (b + d) * q ** 2
q_eq = (a - c) / (b + d)
best = max(range(0, 61), key=total_surplus)
print("equilibrium quantity:", q_eq)
print("best whole-number quantity:", best)
for q in (0, 10, 20, 30, 40, 50):
print(q, total_surplus(q))
# equilibrium quantity: 30.0
# best whole-number quantity: 30
# 0 0.0
# 10 750.0
# 20 1200.0
# 30 1350.0
# 40 1200.0
# 50 750.0The maximum of 1350 matches the sum of consumer surplus (900) and producer surplus (450) computed earlier. The table is symmetric around 30: quantities 10 and 50 both give 750, and quantities 20 and 40 both give 1200. This is because the MB and MC lines are straight, so moving 10 units away from the optimum in either direction costs the same.
| Quantity traded | Total surplus | Gap from the maximum |
|---|---|---|
| 10 | 750 | 600 |
| 20 | 1200 | 150 |
| 30 | 1350 | 0 |
| 40 | 1200 | 150 |
| 50 | 750 | 600 |
Too little and too much
Trading fewer than 30 units loses surplus. At Q = 20, the units from 21 to 30 are not traded even though each has MB above MC. The lost area is a triangle. At Q = 20, MB = 60 and MC = 30, so the gap is 30. The triangle runs from Q = 20 to Q = 30, so its area is 0.5 × 10 × 30 = 150. This matches the 150 gap in the table.
Trading more than 30 units also loses surplus. At Q = 40, units from 31 to 40 are produced although MC is above MB. At Q = 40, MB = 20 and MC = 50, so the gap is 30. The triangle again has area 0.5 × 10 × 30 = 150. The surplus from the first 30 units is partly cancelled by the negative surplus on these extra units.
Transfers do not change total surplus
Because the price cancels out of V - C, any change that only moves money between buyers and sellers leaves total surplus unchanged, as long as the same units are traded by the same people. Raising the price from 40 to 50 on all 30 units moves surplus from buyers to sellers. Consumer surplus falls and producer surplus rises by the same amount, so the total stays at 1350. Whether that change is good depends on a judgment about fairness. Efficiency alone does not settle it.
Surplus is lost only when a change alters which trades happen. A trade that would have taken place with positive V - C no longer takes place, or a trade with negative V - C starts to take place. The next chapters build on this when they cover price changes, price controls and taxes.
Edge cases and common errors
- Who gets the unit matters. Total surplus equals the area between the curves only if the buyers with the highest values consume, and the sellers with the lowest costs produce. If a limited supply is handed out at random, the buyers who receive units may value them less than buyers who miss out. Total surplus is then lower than the area suggests. In the example, with 20 units sold at a price of 30, random allocation among the 30 buyers who value the good at 40 or more gives an average value of about 70. Consumer surplus is then about 20 × (70 - 30) = 800. With the best buyers served it would be 1000.
- Efficient does not mean equal. The efficient outcome can give most of the surplus to one side. Do not read the word "efficient" as "fair".
- Maximum surplus does not mean maximum price or profit. Sellers who set a price to raise producer surplus alone can reduce total surplus, for example by selling fewer units.
- Do not add the areas of separate regions twice. Total surplus is a single region between the curves. If you add CS and PS you should get the same number as the triangle from the vertical axis intercepts to the equilibrium point. In the example, 0.5 × 30 × (100 - 10) = 1350.
- Outside effects. If production harms third parties, such as through pollution, then the true marginal cost to society is above the seller's cost. The market equilibrium can then be inefficient for society even though it maximizes the surplus of buyers and sellers. The final chapter returns to this.
Exercise
In the market with demand P = 100 - 2Q and supply P = 10 + Q, a regulator forces output to Q = 40 units. (a) What are MB and MC of the 40th unit? (b) What is total surplus at Q = 40, and how much surplus is lost compared with the efficient outcome?
Show answer
(a) MB = 100 - 2(40) = 20 and MC = 10 + 40 = 50. The 40th unit costs 30 more than its value to the buyer. (b) TS(40) = 90(40) - 1.5(40²) = 3600 - 2400 = 1200. The efficient total is 1350, so 150 of surplus is lost. The lost area is a triangle with base 10 (from Q = 30 to Q = 40) and height 30 (the MC - MB gap at Q = 40), so 0.5 × 10 × 30 = 150.
Exercise
Suppose the price in this market is fixed at 50 instead of 40 and the same 30 units are traded between the same buyers and sellers. What happens to consumer surplus, producer surplus and total surplus?
Show answer
Consumer surplus falls by 30 × 10 = 300, from 900 to 600. Producer surplus rises by 300, from 450 to 750. Total surplus stays at 1350, because the price cancels out of V - C for each unit. The price change is a transfer from buyers to sellers and creates no efficiency loss as long as the same trades happen.