Sub topic 4
Total surplus and efficiency
This chapter assumes you can read supply and demand curves, find a linear equilibrium, and compute the area of a triangle. It also assumes you know that consumer surplus is the area under demand and above price, and that producer surplus is the area above supply and below price. Here we combine those two areas into one number and use it to define efficiency. The rest of the tutorial depends on that definition.
Total surplus
Total surplus is consumer surplus plus producer surplus. When the government is involved, add the money it collects:
Total surplus = consumer surplus + producer surplus + government revenue
Total surplus is the gain from trade summed over everyone in the market. Take one unit that sells. The buyer values it at some amount (the height of the demand curve at that unit). The seller's cost for it is the height of the supply curve at that unit. The unit adds buyer value minus seller cost to total surplus. The price only decides how that gain is split between the buyer and the seller.
This is why total surplus can be computed without knowing the price. It is the area between the demand curve and the supply curve, from zero up to the quantity traded.
For the running example, demand is P = 100 − Q and supply is P = 20 + Q. The gap between the curves at quantity Q is (100 − Q) − (20 + Q) = 80 − 2Q. Adding up these gaps from 0 to Q gives:
Total surplus(Q) = 80Q − Q²
At the equilibrium quantity of 40, total surplus is 80(40) − 40² = 1,600. The split is consumer surplus of 800 and producer surplus of 800, since each is a triangle with base 40 and height 40.
Efficiency means the maximum
An allocation is economically efficient when it maximizes total surplus. In a simple one-market model this has a clean test, which compares marginal value (what the buyer of the last unit would pay) with marginal cost (what the seller of the last unit must receive).
- If marginal value exceeds marginal cost, one more trade creates surplus, so the market should trade more.
- If marginal cost exceeds marginal value, the last unit destroys surplus, so the market should trade less.
- At the point where they are equal, no change helps. This is the maximum.
Where the curves cross, at Q = 40 and P = 60, marginal value equals marginal cost, so the competitive equilibrium is efficient. Two parts of this are easy to miss. Trading too little loses surplus, and trading too much also loses surplus, because units past 40 cost more to produce than any buyer values them.
You can check the peak numerically:
def total_surplus(q, a=100, b=1, c=20, d=1):
"""Area between linear demand P = a - b*Q and supply P = c + d*Q, from 0 to q."""
return (a - c) * q - 0.5 * (b + d) * q**2
best_q = max(range(0, 81), key=total_surplus)
best = total_surplus(best_q)
print(f"Efficient quantity: {best_q}, total surplus: {best}")
for q in (20, 35, 40, 50):
print(f"Q={q}: surplus={total_surplus(q)}, loss vs. maximum={best - total_surplus(q)}")
# Efficient quantity: 40, total surplus: 1600.0
# Q=20: surplus=1200.0, loss vs. maximum=400.0
# Q=35: surplus=1575.0, loss vs. maximum=25.0
# Q=40: surplus=1600.0, loss vs. maximum=0.0
# Q=50: surplus=1500.0, loss vs. maximum=100.0The losses at Q = 35 and Q = 20 are the same numbers the $10 tax and the price ceiling of 40 produce in the following chapters. Both policies push the market to a quantity below 40, and the gap from the maximum is their deadweight loss.
| Quantity traded | Total surplus | Shortfall from maximum |
|---|---|---|
| 20 | 1,200 | 400 |
| 35 | 1,575 | 25 |
| 40 | 1,600 | 0 |
| 50 | 1,500 | 100 |
Transfers move surplus but do not shrink it
The key bookkeeping rule is that a payment from one party to another does not change total surplus. It only changes who holds it.
Take the $10 tax in this market. Quantity falls to 35, the buyer pays 65, and the seller receives 55. Then:
- Consumer surplus = 0.5 × 35 × (100 − 65) = 612.5
- Producer surplus = 0.5 × 35 × (55 − 20) = 612.5
- Government revenue = 10 × 35 = 350
- Total = 612.5 + 612.5 + 350 = 1,575
The market lost 1,600 − 1,575 = 25. The 350 of revenue did not vanish. It moved from buyers and sellers to the government. Only the trades that stopped happening are lost.
What "efficient" does not mean
Efficiency is a narrow claim, and several things it does not say matter for the later chapters.
- It is not fairness. Total surplus can be maximized with a very unequal split between buyers and sellers. Moving from one split to another changes distribution, not efficiency.
- It is not a statement that everyone gains. A change that raises total surplus can still leave some people worse off. The usual compensation test asks whether the winners could pay the losers and still come out ahead. Whether they actually do is a separate question.
- It depends on the curves being honest. The demand curve must show the full value of each unit to society, and the supply curve its full cost. If a factory pollutes and does not pay for it, the supply curve understates cost, and the competitive quantity is no longer the surplus maximum. The last chapter returns to this.
- It treats a dollar as a dollar. Adding consumer and producer surplus in dollars assumes that a dollar is worth the same to a buyer and a seller. That is reasonable for small changes in one market. It is less reasonable when the buyers are poor and the sellers are rich.
Who gets the units also matters
Total surplus depends on which buyers get the units, as well as on how many units trade. At the competitive equilibrium, the price sorts buyers automatically. Everyone who values a unit above 60 buys it, and everyone below does not.
Consider a price ceiling of 40, which cuts trade to 20 units. If those 20 units go to the buyers who value them most, those with values from 80 to 100, they average a value of 90. The buyers' total value is 1,800, the sellers' cost is 600, and total surplus is 1,200. That is a loss of 400.
If the units are handed out by lottery among all buyers willing to pay 40, the buyers' values range from 40 to 100 and average 70. The 20 units are worth 1,400 to their buyers, so total surplus is 1,400 − 600 = 800 and the loss is 800. The ceiling cut the quantity in both cases. The second case adds a loss of 400 because the units went to the wrong buyers. The code in the next chapters assumes the best case, and real rationing is often worse.
Exercise
In the market P = 100 − Q (demand) and P = 20 + Q (supply), a regulation limits trade to 30 units. (a) What is total surplus, assuming the 30 units go to the buyers who value them most? (b) What is the deadweight loss? (c) Is the loss larger or smaller than the loss from the $10 tax, and why?
Show answer
(a) Total surplus = 80(30) − 30² = 2,400 − 900 = 1,500. (b) The efficient maximum is 1,600, so the deadweight loss is 100. (c) It is larger than the tax's loss of 25, because the regulation cuts quantity by 10 units, while the tax cuts it by 5. The lost trades at the margin each have a positive gain: unit 31 is worth 69 to its buyer and costs 51 to produce, a gain of 18. Unit 40 has a gain of 0, so the loss is a triangle with base 10 and height 20, which is 0.5 × 10 × 20 = 100.
Exercise
A tax moves 350 from buyers and sellers to the government in the example above. A student says total surplus fell by 350 because buyers and sellers lost that money. Where is the error, and what is the actual fall?
Show answer
The student treats a transfer as a loss. The 350 is government revenue, which is part of total surplus once the government is counted. Consumer surplus fell from 800 to 612.5 and producer surplus fell from 800 to 612.5, which together is 375. The government gained 350, so the net fall is 375 − 350 = 25. That 25 is the deadweight loss, from the 5 trades that no longer occur.