Sub topic 3
Seller cost and the supply curve
This chapter treats the supply curve as a record of seller costs. That reading is what lets us define producer surplus in the next chapters. It assumes you can read a linear equation such as P = c + dQ, and that you know what a supply curve and a market equilibrium are. It also assumes you have seen the demand curve as a ladder of willingness to pay.
Cost is opportunity cost
A seller's cost is everything they give up to supply one more unit. It includes the visible money costs and the opportunity cost of their own time and resources.
- Money costs: materials, wages, fuel, rent that rises with output.
- Opportunity costs: the next-best use of the seller's time, equipment or shop space.
A freelance designer who could earn 40 an hour elsewhere has a cost of at least 40 per hour, even if no cash leaves their pocket. Economists count that forgone 40 as a real cost, and so should any surplus calculation.
Willingness to accept
Buyers have a maximum price they will pay. Sellers have a mirror-image number, the minimum price they will accept for a unit. That minimum equals the cost of producing that unit. Selling below it means a loss. Selling at it leaves the seller no better off than not selling.
Cost here means the cost of the additional unit, called marginal cost. Fixed costs that do not change with the decision to produce one more unit do not enter the comparison. They matter for whether a firm stays in business, but not for deciding whether to supply the next unit.
Building supply from individual costs
Suppose five sellers each have one unit to sell. Their costs, and so their minimum acceptable prices, are:
| Seller | Cost of their unit |
|---|---|
| Ana | 12 |
| Ben | 18 |
| Cy | 25 |
| Dee | 33 |
| Eli | 41 |
Now ask how many units are offered at each market price. A seller offers a unit when the price is at least their cost.
| Market price | Sellers willing to sell | Quantity supplied |
|---|---|---|
| 10 | none | 0 |
| 20 | Ana, Ben | 2 |
| 30 | Ana, Ben, Cy | 3 |
| 35 | Ana, Ben, Cy, Dee | 4 |
| 45 | all five | 5 |
Sort the sellers from lowest to highest cost and you get a staircase that rises as quantity rises. This is the supply curve. With many sellers the steps shrink and the staircase looks like a smooth line.
Two ways to read the same curve
The supply curve can be read in two directions, and both readings are used constantly.
- Horizontal reading (price to quantity). Pick a price on the vertical axis. The curve tells you how much sellers will offer at that price. This is the usual "law of supply" reading.
- Vertical reading (quantity to cost). Pick a quantity on the horizontal axis. The curve tells you the cost of the last unit, the marginal cost of producing it. This is the reading surplus analysis uses.
The two readings describe the same points. They only differ in which axis you start from.
Why the curve slopes upward
Supply curves usually slope up because marginal cost rises with output. Common reasons:
- Capacity limits. The first units use the best-suited machines and workers. Later units need overtime pay or older equipment.
- Scarce inputs. Expanding output bids up the price of land, labor or materials.
- Different sellers. Across a whole market, low-cost sellers enter first. High-cost sellers only join when the price is high.
The third reason is why the market supply curve is upward-sloping even if each individual firm had constant costs. The market curve is the horizontal sum of every seller's curve: at each price, add up the quantities all sellers offer.
A linear supply curve
In the running example used throughout this tutorial, supply is
P = 10 + 1·Q
so the marginal cost of the Q-th unit is 10 + Q. Written this way, the intercept c = 10 is the cost of the very first unit, and the slope d = 1 says each additional unit costs 1 more than the last.
To go from price to quantity, invert the equation: Q = (P − c) / d. A price at or below the intercept gives a quantity of zero, never a negative one. The code below handles that with max.
c, d = 10, 1 # supply: P = c + d*Q
def marginal_cost(q, c=c, d=d):
"""Cost of producing the q-th unit."""
return c + d * q
def quantity_supplied(price, c=c, d=d):
"""Units offered at a given price; never negative."""
return max(0.0, (price - c) / d)
for price in (5, 10, 20, 30, 40):
print(price, quantity_supplied(price))
# 5 0.0
# 10 0.0
# 20 10.0
# 30 20.0
# 40 30.0
print(marginal_cost(30))
# 40At a price of 40, sellers offer 30 units, and the 30th unit costs exactly 40 to produce. The last unit sold is the one that just breaks even. That fact is the foundation of producer surplus: every earlier unit cost less than 40.
Total cost is the area under the supply curve
Adding up marginal costs unit by unit gives the total variable cost of producing Q units. On a diagram this is the area under the supply curve from 0 to Q. For the linear curve, the area is a rectangle plus a triangle:
Total cost = c·Q + ½·d·Q²
The code below checks this against the revenue at a price of 40.
c, d = 10, 1
q = 30.0
price = 40
total_cost = c * q + 0.5 * d * q**2 # rectangle + triangle under supply
revenue = price * q
print(total_cost, revenue, revenue - total_cost)
# 750.0 1200.0 450.0Revenue is 1200 and the cost of producing those units is 750, so sellers gain 450 over their costs. You will recognize 450 from the earlier equilibrium calculation. That gain is the producer surplus, which the later chapters develop. For now, notice that it comes straight from reading the supply curve as a cost curve.
What shifts the supply curve
A change in the market price moves you along the supply curve. A change in cost conditions moves the whole curve. The main causes of a shift:
- Input prices. Cheaper materials or wages lower marginal cost at every quantity, shifting supply right (or down). More expensive inputs shift it left (or up).
- Technology. A better process lowers cost per unit.
- Taxes and subsidies per unit. A per-unit tax acts like an added cost for the seller. A subsidy acts like a cost reduction. Chapter on taxes covers this in detail.
- Number of sellers. More sellers add more low-cost units to the market curve.
- Expectations and related goods. A seller who expects a higher future price may hold stock back. A farmer may switch crops if another crop becomes more profitable.
The same shift can be described two ways. In the linear model, raising the intercept from 10 to 20 moves the curve up by 10 at every quantity. Equivalently, sellers offer 10 fewer units at any given price.
def quantity_supplied(price, c, d):
return max(0.0, (price - c) / d)
before = quantity_supplied(40, c=10, d=1) # original costs
after = quantity_supplied(40, c=20, d=1) # input cost up by 10 per unit
print(before, after)
# 30.0 20.0The shift is "up by 10" and "left by 10" only because the slope is 1. With a steeper or flatter curve, the vertical and horizontal descriptions give different numbers. Always say which one you mean.
Common errors
- Confusing movement along the curve with a shift. A price rise causes a larger quantity supplied. It does not shift supply.
- Counting sunk or fixed costs as marginal cost. A cost already paid regardless of output should not change which units are worth producing.
- Ignoring opportunity cost. A seller using their own land or time still has a cost. Leaving it out understates cost and overstates surplus.
- Reading cost off the wrong axis. The marginal cost of the Q-th unit is the height of the curve at Q, not the width.
- Allowing negative quantities. A price below the lowest cost means zero supplied, not a negative number.
Where this leads
You now have both sides of the market in terms of values and costs. Demand records the most buyers will pay for each unit. Supply records the least sellers will accept. Where the two curves cross is the equilibrium, covered next. The gaps between each curve and the market price are the surpluses.
Exercise
Four sellers each have one unit to sell, with costs of 8, 14, 20 and 31. (a) How many units are supplied at a price of 20? (b) At a price of 25? (c) What is the lowest price that brings out all four units?
Show answer
(a) A seller offers a unit if the price is at least their cost, so at 20 the sellers with costs 8, 14 and 20 sell, which gives 3 units. (b) At 25 the same three sell, because 31 is still above the price, so 3 units. (c) The most costly unit is 31, so the price must be at least 31 for all four units.
Exercise
A market has supply P = 20 + 0.5Q. (a) What is the marginal cost of the 40th unit? (b) How many units are supplied at a price of 50? (c) The cost of an input rises so that the intercept becomes 30, with the same slope. How many units are supplied at a price of 50 now?
Show answer
(a) Marginal cost = 20 + 0.5 × 40 = 40. (b) Q = (50 − 20) / 0.5 = 60 units. (c) Q = (50 − 30) / 0.5 = 40 units, so the cost increase reduces the quantity supplied at 50 by 20 units. The curve has shifted up by 10 at every quantity, which is a shift left of 20 units at any price because the slope is 0.5.