Sub topic 2
Consumer surplus: the gap between value and price
This chapter assumes you can read a linear demand curve written as P = a - bQ, find where supply meets demand, and compute the area of a triangle.
Willingness to pay and the demand curve
Each buyer has a willingness to pay (WTP), the highest price that buyer will pay for one unit. Sort buyers from highest to lowest WTP and the values form a staircase. With many buyers, the staircase smooths into a demand curve. The curve's height at any quantity is the value of the marginal unit to a buyer.
Consumer surplus as an area
Consumer surplus (CS) is the gain buyers keep after paying. A buyer who values a unit at 60 and pays 40 keeps 60 - 40 = 20.
Across a market, CS is the area above the market price and below the demand curve, up to the quantity traded. For linear demand P = a - bQ and an equilibrium at quantity Q and price P, that area is a triangle:
CS = 0.5 × Q × (a - P)
Producer surplus as an area
Producer surplus (PS) is the seller's version of the same gap: the price received minus the seller's cost. It is the area below the price and above the supply curve, up to the quantity traded. For linear supply P = c + dQ, PS = 0.5 × Q × (P - c).
Total surplus and efficiency
Total surplus is CS + PS. It measures the gains from trade. Total surplus is largest when the quantity traded is the quantity where buyers' willingness to pay equals sellers' cost.
a, b = 100, 2 # demand: P = a - b*Q
c, d = 10, 1 # supply: P = c + d*Q
q_eq = (a - c) / (b + d)
p_eq = c + d * q_eq
cs = 0.5 * q_eq * (a - p_eq)
ps = 0.5 * q_eq * (p_eq - c)
print(q_eq, p_eq, cs, ps, cs + ps)
# 30.0 40.0 900.0 450.0 1350.0Exercise
A buyer's willingness to pay for one unit is 60, and the buyer pays 40. What is that buyer's consumer surplus?
Show answer
60 - 40 = 20.