Sub topic 11
Deadweight loss: surplus that disappears
This chapter assumes you can compute consumer and producer surplus for a linear market, and that you know the equilibrium of P = 100 − 2Q (demand) and P = 10 + Q (supply). Equilibrium is Q = 30 and P = 40, with consumer surplus 900, producer surplus 450 and total surplus 1350. We reuse these numbers throughout.
What deadweight loss is
Deadweight loss (DWL) is the part of total surplus that exists at the efficient quantity but that nobody receives once trade is restricted. It is not a transfer from one group to another. A transfer moves surplus between buyers, sellers or the government, and the total stays the same. Deadweight loss removes surplus from everyone.
At equilibrium, every unit up to Q = 30 has a buyer whose willingness to pay is at least the seller's cost. Each such trade creates a gain. If a policy stops some of those trades, the gains from the blocked trades are lost. On the diagram, DWL is the area between the demand and supply curves, from the quantity actually traded out to the equilibrium quantity.
The loss for one blocked unit is the gap between its marginal benefit (the height of demand) and its marginal cost (the height of supply). Summing these gaps over all blocked units gives the DWL area.
Why trades disappear
The mechanism is the same for ceilings, floors and taxes. A policy sets a price, or a gap between the price buyers pay and the price sellers receive. At that price, one side of the market wants to trade less than the other. The trade that happens is limited by the side that wants less, called the short side.
A control that does not bind causes no loss. A ceiling above the equilibrium price of 40, or a floor below it, changes nothing, because the market clears at 40 anyway.
Worked example: a price ceiling
Set a ceiling at 30, below the equilibrium price of 40.
- Sellers supply Q = (30 − 10) / 1 = 20 units.
- Buyers demand Q = (100 − 30) / 2 = 35 units. There is a shortage of 15 units.
- Only 20 units trade, so the short side is the sellers.
- The 20th unit is worth 100 − 2(20) = 60 to the marginal buyer. It costs the seller 10 + 20 = 30 to produce.
Assuming the 20 units go to the buyers who value them most:
- Consumer surplus = 0.5 × 20 × (100 − 60) + 20 × (60 − 30) = 400 + 600 = 1000.
- Producer surplus = 0.5 × 20 × (30 − 10) = 200.
- Total surplus = 1200, against 1350 at equilibrium.
- DWL = 1350 − 1200 = 150.
The same number comes from the DWL triangle directly. Its base is the blocked quantity, 30 − 20 = 10. Its height is the gap at the last traded unit, 60 − 30 = 30. The area is 0.5 × 10 × 30 = 150.
Consumer surplus rose from 900 to 1000 and producer surplus fell from 450 to 200. Buyers gained 100 overall, sellers lost 250, and the net loss is 150. Buyers gain from the lower price on the 20 units they still buy, and they lose the surplus on the 10 units that no longer trade.
A price floor
Now set a floor at 50, above equilibrium.
- Buyers demand Q = (100 − 50) / 2 = 25 units.
- Sellers would supply Q = (50 − 10) / 1 = 40 units. There is a surplus (excess supply) of 15 units.
- Only 25 units trade, so the short side is the buyers.
- The marginal buyer values the 25th unit at 50. The cheapest seller for that unit has cost 10 + 25 = 35.
The DWL triangle has base 30 − 25 = 5 and height 50 − 35 = 15. The area is 0.5 × 5 × 15 = 37.5.
This assumes the 25 units are sold by the lowest-cost sellers. With a floor, sellers want to sell 40 units but buyers take only 25. If the sales go to higher-cost sellers instead, the loss is larger.
A per-unit tax, briefly
A tax creates the same kind of triangle, but through a wedge instead of a fixed price. With a per-unit tax t, buyers pay 10 + Q + t for the marginal unit, in effect. Setting 100 − 2Q = 10 + Q + t gives Q = (90 − t) / 3. For t = 9, Q = 27. The wedge between what buyers pay and what sellers keep is 9, and 3 units are lost. The DWL is 0.5 × 9 × 3 = 13.5. A later chapter covers who bears the tax.
Computing it in code
For linear curves, every case above is the triangle formula: DWL = 0.5 × wedge × (Qeq − Qtraded). The wedge is the vertical gap between demand and supply at the traded quantity.
# Demand: P = a - b*Q, supply: P = c + d*Q
a, b = 100, 2
c, d = 10, 1
q_eq = (a - c) / (b + d) # 30.0
def deadweight_loss(q):
"""Triangle between the curves from the traded quantity q to q_eq."""
wedge = (a - b * q) - (c + d * q) # demand price minus supply price at q
return 0.5 * wedge * (q_eq - q)
# Price ceiling at 30: quantity is set by sellers (short side)
ceiling = 30
q_ceiling = min((ceiling - c) / d, (a - ceiling) / b)
# Price floor at 50: quantity is set by buyers (short side)
floor = 50
q_floor = min((floor - c) / d, (a - floor) / b)
# Per-unit tax of 9: demand price minus supply price must equal the tax
tax = 9
q_tax = (a - c - tax) / (b + d)
print("ceiling:", q_ceiling, deadweight_loss(q_ceiling))
print("floor: ", q_floor, deadweight_loss(q_floor))
print("tax: ", q_tax, deadweight_loss(q_tax))
# ceiling: 20.0 150.0
# floor: 25.0 37.5
# tax: 27.0 13.5The min call picks the short side. For a ceiling, sellers are the short side. For a floor, buyers are. If the control does not bind, min returns the equilibrium quantity and the loss is zero. Check this by setting ceiling = 50.
Edge cases and common errors
The rationing assumption
The ceiling result of 150 assumes the 20 available units go to the 20 buyers with the highest willingness to pay. Real shortages rarely work that way. If the units are allocated by lottery or first come, first served, some of them go to buyers with low values.
Demand at a price of 30 is 35 units, and their values run from 100 down to 30, averaging 65. Under random allocation, the 20 units that trade are worth 20 × 65 = 1300 to their buyers. Their production cost is 20 × 10 + 0.5 × 20 × 20 = 400. Total surplus is 900, not 1200, and the loss is 450. The 150 figure is therefore a lower bound on the loss from the ceiling.
Queues add a further cost. Time spent waiting is a real cost to buyers that sellers do not receive, so it is a second loss on top of DWL.
Transfers are not losses
A common mistake is to count the whole drop in one group's surplus as deadweight loss. In the ceiling example, sellers lose 250. Of this, 150 is the loss that comes from fewer trades, and the rest is a transfer to buyers. In the code and the diagram, only the triangle is DWL. Everything else is redistribution.
Use the traded quantity, not the planned one
Under a floor, 40 units are supplied but only 25 are sold. The height of the DWL triangle is measured at 25, the quantity traded. Using 40 would measure the gap in the wrong place, because the supply curve at Q = 40 has no relevance to who actually trades.
The triangle shortcut
The 0.5 × wedge × lost quantity formula is exact only when both curves are straight lines between the traded and equilibrium quantities. For curved demand or supply, integrate the gap between the curves from Qtraded to Qeq, or approximate with a triangle and accept the error.
Total surplus is not the only goal
DWL measures efficiency only. A ceiling might be justified because it helps low-income renters, even though it creates a loss. DWL tells you the size of the efficiency cost, not whether the policy is worth it.
Exercises
Exercise
In the market P = 100 − 2Q (demand) and P = 10 + Q (supply), the government sets a price ceiling of 20. Find the quantity traded, and the deadweight loss, assuming goods go to the buyers who value them most.
Show answer
Sellers supply Q = (20 − 10) / 1 = 10 units. Buyers demand (100 − 20) / 2 = 40 units, so sellers are the short side and 10 units trade. At Q = 10, the demand price is 100 − 20 = 80 and the supply price is 10 + 10 = 20, so the wedge is 60. The lost quantity is 30 − 10 = 20. DWL = 0.5 × 60 × 20 = 600.
Exercise
A price floor is set at 40 in the same market. What is the deadweight loss? Explain why.
Show answer
The equilibrium price is 40, so the floor does not bind. Buyers demand (100 − 40) / 2 = 30 units and sellers supply (40 − 10) / 1 = 30 units. Quantity traded equals the equilibrium quantity, the wedge at Q = 30 is zero, and the DWL is 0.
Exercise
With the ceiling of 30, the deadweight loss is 150 if goods go to the highest-value buyers, and 450 if they are allocated at random. Which figure is a better estimate of the true loss in a market with long queues, and why?
Show answer
The 450 figure is closer. Long queues and first-come allocation do not sort goods by willingness to pay, so some units go to low-value buyers. The lost surplus is then larger than the triangle. Waiting time is an additional cost on top of that.