Sub topic 6
Producer surplus: the gap between price and cost
This chapter assumes you can read a supply curve of the form P = c + dQ, find a market equilibrium, and compute the area of a triangle or trapezoid. It also assumes you have met consumer surplus in the previous chapter. Here you apply the same logic to sellers.
Seller cost: the minimum a seller will accept
Every unit a seller produces has a cost. In this chapter, cost means opportunity cost: everything the seller gives up to make that unit, including materials, labor, energy, and the best alternative use of their time or equipment. A seller will produce a unit only if the price at least covers that cost. So the lowest price a seller would accept for a unit is that unit's marginal cost.
The supply curve is therefore a ladder of minimum acceptable prices. Each point on it gives the cost of the last unit at that quantity. For the market used throughout this tutorial, supply is P = 10 + Q. The first unit costs about 10, the 20th unit costs 30, and the 30th unit costs 40.
Producer surplus on one unit
Producer surplus is the price a seller receives minus the cost of making the unit. It measures how much better off the seller is than if they had not sold.
Take five sellers who each have one unit and whose costs are 12, 18, 25, 33, and 41. The market price is 30.
| Seller cost | Sells at 30? | Surplus |
|---|---|---|
| 12 | Yes | 18 |
| 18 | Yes | 12 |
| 25 | Yes | 5 |
| 33 | No | 0 |
| 41 | No | 0 |
Total producer surplus is 18 + 12 + 5 = 35. The seller with cost 33 stays out because 30 is below their minimum. The seller with cost 25 sells but gains very little. The last seller who is willing to sell gets a surplus close to zero. This is the marginal seller.
From units to an area
Now make the units small and numerous. The producer surplus on each unit is the vertical gap between the price line and the supply curve. Adding those gaps over all units sold gives the area between the price and the supply curve, from quantity 0 up to the quantity sold.
Two conditions define the area:
- It lies below the price line and above the supply curve.
- It runs from 0 to the quantity actually sold, not to wherever the supply curve ends.
Units whose cost is above the price are not produced, so they add nothing and are never negative.
Computing producer surplus with a linear supply curve
Use demand P = 100 − 2Q and supply P = 10 + Q. Equilibrium is Q = 30 and P = 40.
The supply curve starts at a price of 10 when Q = 0, so the area between the price and the supply curve is a triangle:
- Base: the quantity sold, 30.
- Height: the price minus the supply intercept, 40 − 10 = 30.
- Area: 0.5 × 30 × 30 = 450.
This agrees with the first code example in the plan. The general formula for supply P = c + dQ at a price P* above c is:
PS = 0.5 × Q × (P − c), where Q = (P − c) / d.
The code below applies it at several prices. It sets quantity to zero when the price is at or below the intercept, because no one sells below their cost.
def producer_surplus(price, c, d):
"""Producer surplus for supply P = c + d*Q when sellers face a given price."""
if price <= c:
return 0.0, 0.0
q = (price - c) / d
return q, 0.5 * q * (price - c)
c, d = 10, 1
for price in (5, 30, 40, 50):
q, ps = producer_surplus(price, c, d)
print(f"price={price:>2} quantity={q:>4.1f} producer surplus={ps:>6.1f}")
# price= 5 quantity= 0.0 producer surplus= 0.0
# price=30 quantity=20.0 producer surplus= 200.0
# price=40 quantity=30.0 producer surplus= 450.0
# price=50 quantity=40.0 producer surplus= 800.0Raising the price from 40 to 50 lifts producer surplus from 450 to 800, an increase of 350. Two things happen at once. Sellers earn 10 more on each of the original 30 units, which adds 300. They also sell 10 extra units that were not worth producing before, which adds a small triangle of 0.5 × 10 × 10 = 50. The first part is a transfer from buyers and the second is new surplus from added trade.
Producer surplus is not profit
Producer surplus is revenue minus variable cost. The area under the supply curve, up to the quantity sold, is the total variable cost of those units.
At equilibrium:
- Revenue: 40 × 30 = 1,200.
- Total variable cost: the area under P = 10 + Q from 0 to 30, which is 10 × 30 + 0.5 × 30 × 30 = 750.
- Producer surplus: 1,200 − 750 = 450.
Profit subtracts fixed costs as well, so:
producer surplus = profit + fixed costs.
A common error is to call producer surplus "profit". Fixed costs, such as rent on a factory that must be paid whether or not output happens, do not appear on the supply curve because they do not change with the quantity produced. In the short run a firm can have positive producer surplus and still make a loss. In the long run, when all costs become avoidable, the gap between the two measures narrows.
Which sellers earn the surplus
Producer surplus is a market total, but the individual gaps differ. Low-cost sellers earn the most per unit, and the marginal seller earns almost nothing. A rise in the price helps everyone already selling, in proportion to the units they sell, and it draws in sellers whose costs lie just above the old price.
This is why the surplus area is widest at the left, near quantity 0, and narrows to a point at the quantity sold. The first units are the cheapest to produce and so leave the largest gap below the price.
Surplus when sales are limited by demand: a price floor
The triangle formula assumes sellers can sell everything they want to supply at the price. A price floor breaks this. Suppose a floor of 50 is set above the equilibrium price of 40.
- At 50, sellers would supply 40 units, since 50 = 10 + 40.
- Buyers will purchase only (100 − 50) / 2 = 25 units.
- So only 25 units trade.
Producer surplus is the area between the price of 50 and the supply curve from 0 to 25. At Q = 25 the supply curve is at 35, so the gap on the last unit is 15, while the gap on the first unit is 40. The shape is a trapezoid, and its area is the average of the two heights times the width:
PS = (40 + 15) / 2 × 25 = 687.5.
c, d = 10, 1 # supply P = c + d*Q
a, b = 100, 2 # demand P = a - b*Q
floor = 50
q = (a - floor) / b # buyers limit the quantity: 25.0
gap_first = floor - c # 40, gap on the first unit
gap_last = floor - (c + d * q) # 15, gap on the last unit sold
ps = 0.5 * (gap_first + gap_last) * q
print(q, ps)
# 25.0 687.5Producer surplus rises from 450 to 687.5 under this floor. That does not mean the floor is good for the market as a whole. Buyers lose more than sellers gain, a point the deadweight loss chapter covers. This calculation also assumes the 25 units go to the lowest-cost sellers. If the sales are shared among all sellers, or go to higher-cost ones, producer surplus is lower. The same assumption appears in the price ceiling example, where it is made for buyers.
Common errors
- Measuring from the wrong baseline. The gap is measured from the supply curve, not from zero. Using price × quantity gives revenue, which is 1,200 here, not 450.
- Using the equilibrium quantity when the quantity traded is different. Under a floor or ceiling, use the quantity that actually trades.
- Forgetting the supply intercept. With P = 10 + Q, the triangle's height is P − 10, not P.
- Treating producer surplus as profit, as described above.
- Mixing up the demand and supply slopes. In the formula Q = (P − c) / d, only the supply slope d appears when the price is given. Demand matters only when it limits the quantity.
Exercise
A market has supply P = 10 + Q. The price is fixed at 25, and buyers are willing to buy at least as many units as sellers supply at that price. (a) How many units are sold? (b) What is producer surplus? (c) If total fixed costs are 60, what is the sellers' profit?
Show answer
(a) Sellers supply Q = (25 − 10) / 1 = 15 units. (b) Producer surplus is the triangle 0.5 × 15 × (25 − 10) = 112.5. (c) Producer surplus equals profit plus fixed costs, so profit = 112.5 − 60 = 52.5.
Exercise
Using the same supply curve P = 10 + Q and demand P = 100 − 2Q, a price floor of 60 is imposed. Compute the quantity traded and producer surplus, assuming the lowest-cost sellers make the sales.
Show answer
Buyers purchase (100 − 60) / 2 = 20 units. The gap on the first unit is 60 − 10 = 50. At Q = 20 the supply curve is at 30, so the gap on the last unit is 60 − 30 = 30. Producer surplus is (50 + 30) / 2 × 20 = 800.