Sub topic 9
From Individual Sellers to Market Supply
This chapter assumes you can read a supply schedule and a supply curve, you know the difference between a movement along a curve and a shift of the curve, and you can do basic algebra with linear equations. Here you will build market supply from the supply of individual sellers. You will also see where the market curve bends, how to avoid the usual mistake of adding the wrong axis, and how elasticity of the whole market relates to elasticity of each firm.
Why market supply is a sum
A single firm's supply curve answers this question: at each price, how much will this firm offer for sale? Market supply answers the same question for everyone selling the good. The answer is the total of what each firm offers at that price.
The rule has two parts:
- Pick a price.
- Add up the quantities every seller supplies at that price.
Repeat for every price and you have the market supply schedule. Plotted with price on the vertical axis and quantity on the horizontal axis, the result is the market supply curve.
This works because quantity supplied is a flow that can be counted. If firm A offers 12 units per week and firm B offers 10 units per week at a price of 8, then buyers face 22 units per week at that price. Nothing else is needed, as long as every seller faces the same market price. That is the assumption behind a standard supply curve: sellers are price takers, and each one treats the price as given.
Building the schedule by hand
Use the two firms from the earlier chapters. Firm A has supply Qs = -20 + 4P, floored at zero. Firm B has supply Qs = -6 + 2P, also floored at zero.
| Price | Firm A | Firm B | Market |
|---|---|---|---|
| 2 | 0 | 0 | 0 |
| 3 | 0 | 0 | 0 |
| 4 | 0 | 2 | 2 |
| 5 | 0 | 4 | 4 |
| 6 | 4 | 6 | 10 |
| 7 | 8 | 8 | 16 |
| 8 | 12 | 10 | 22 |
| 9 | 16 | 12 | 28 |
| 10 | 20 | 14 | 34 |
Read across any row and the last column is the sum of the two before it. At a price of 8, 12 + 10 = 22.
Notice that firm B enters the market at a lower price than firm A. Below a price of 3, neither firm supplies anything. Between 3 and 5, only B supplies. At 5 and above, both do. The floor at zero matters, because a firm with a negative formula value is not supplying a negative quantity. It is simply absent at that price.
The same calculation in code
The code below stores each firm as an (intercept, slope) pair and sums the floored quantities. It can handle any number of firms.
def quantity_supplied(price, intercept, slope):
return max(0, intercept + slope * price)
firms = {"A": (-20, 4), "B": (-6, 2)}
def market_supply(price, firms):
return sum(quantity_supplied(price, a, b) for a, b in firms.values())
print("price A B market")
for price in range(2, 11):
qa = quantity_supplied(price, *firms["A"])
qb = quantity_supplied(price, *firms["B"])
print(f"{price:5d} {qa:3d} {qb:3d} {market_supply(price, firms):6d}")The output matches the table:
price A B market
2 0 0 0
3 0 0 0
4 0 2 2
5 0 4 4
6 4 6 10
7 8 8 16
8 12 10 22
9 16 12 28
10 20 14 34The max(0, ...) is applied to each firm before summing. If you sum the raw formulas first and floor the total, you get wrong answers at low prices. At a price of 2 the raw sum is (-12) + (-2) = -14, but the true market quantity is 0. The same mistake gives wrong values at a price of 4, where firm A's raw value is -4 and would cancel part of B's output.
The market curve has kinks
Each firm's curve is a straight line above its own minimum price, but the market curve is made of straight pieces joined at kinks. A kink appears at every price where a new firm starts to supply.
For the two firms above, the market supply function is:
- Q = 0 for P below 3
- Q = -6 + 2P for P from 3 up to 5 (only B is supplying)
- Q = -26 + 6P for P of 5 or more (both firms are supplying)
Check the last piece: -26 + 6P comes from adding (-20 + 4P) and (-6 + 2P). At P = 8 it gives -26 + 48 = 22, which agrees with the table. At P = 5 the two upper pieces meet: -6 + 10 = 4 and -26 + 30 = 4. The curve is continuous, and only its slope changes.
You can find each firm's entry price, the lowest price at which it supplies anything, by setting its quantity to zero:
firms = {"A": (-20, 4), "B": (-6, 2)}
for name, (intercept, slope) in firms.items():
entry_price = -intercept / slope
print(name, entry_price)
# A 5.0
# B 3.0Sorting the entry prices tells you where the kinks of the market curve fall. This is the main reason that the market curve of a real industry looks smoother than any single firm's curve. With hundreds of firms with different costs, the kinks are so numerous and so small that the curve looks smooth.
The top line is the market. At every price it lies at the height of the other two lines combined.
Horizontal addition, not vertical
Economists call this operation horizontal summation. On a graph with price on the vertical axis, you pick a height (a price), measure how far right each curve is at that height (its quantity), and add those distances. The result is a point on the market curve at the same height.
A frequent error is to add the curves vertically, which means adding the prices at a given quantity. That answers a different question and gives a meaningless curve for supply. Prices are not additive across sellers, because each seller faces the same price rather than a share of it.
The inverse form of the curves shows the effect on slope. Solve each firm's supply for price:
- Firm A: P = 5 + Q/4, so price rises by 0.25 per extra unit.
- Firm B: P = 3 + Q/2, so price rises by 0.5 per extra unit.
- Market, above a price of 5: P = (26 + Q)/6, so price rises by about 0.167 per extra unit.
The market curve is flatter than either firm's curve, in the sense that a given quantity increase requires a smaller price increase. This is expected. Adding sellers spreads any increase in output over more producers, so each one has to raise output less. The exact relation for the slopes in this form is that 1/(market slope) equals the sum of 1/(firm slope): 1/0.25 + 1/0.5 = 4 + 2 = 6, and 1/6 is the market slope.
What shifts market supply
Every determinant of supply you saw earlier (input prices, technology, expectations, taxes and subsidies) acts on individual firms. Market supply shifts when those factors change the supply of enough firms. Because market supply is a sum, there are two separate sources of change:
- A change in the supply of existing firms. If a wage increase raises costs for every firm in the industry, each firm's curve shifts left, so the market curve shifts left too. If only one small firm adopts better technology, the market curve shifts right by a small amount.
- A change in the number of sellers. Entry adds another curve to the sum, which shifts the market curve right. Exit removes a curve, which shifts it left.
Here is entry in code. A new firm C, identical to firm B, joins the market:
def quantity_supplied(price, intercept, slope):
return max(0, intercept + slope * price)
def market_supply(price, firms):
return sum(quantity_supplied(price, a, b) for a, b in firms.values())
before = {"A": (-20, 4), "B": (-6, 2)}
after = {"A": (-20, 4), "B": (-6, 2), "C": (-6, 2)}
for price in (4, 6, 8):
print(price, market_supply(price, before), market_supply(price, after))
# 4 2 4
# 6 10 16
# 8 22 32At every price where firm C supplies a positive amount, the market quantity is higher than before. That is a rightward shift of the market curve. Notice that nothing about firm A or B changed. Their own curves did not move, and what changed was the list of sellers.
A change in price, in contrast, only moves the market along its existing curve. If the price rises from 6 to 8, market quantity supplied rises from 10 to 22, and no curve shifts.
Elasticity of market supply
The midpoint formula from the previous chapter applies to the market curve exactly as it does to a single firm's. Apply it to the market between prices of 6 and 8, where market quantity moves from 10 to 22, and to each firm over the same range:
def midpoint_elasticity(p1, q1, p2, q2):
pct_q = (q2 - q1) / ((q1 + q2) / 2)
pct_p = (p2 - p1) / ((p1 + p2) / 2)
return pct_q / pct_p
print(round(midpoint_elasticity(6, 4, 8, 12), 3)) # firm A: 3.5
print(round(midpoint_elasticity(6, 6, 8, 10), 3)) # firm B: 1.75
print(round(midpoint_elasticity(6, 10, 8, 22), 3)) # market: 2.625The market value, 2.625, lies between the two firm values. This is not a coincidence. For a small price change, the market's elasticity is the average of the firms' elasticities, weighted by each firm's share of market quantity. At a price of 6 firm A supplies 4 of 10 units and firm B supplies 6, so the weights are 0.4 and 0.6. Using the point elasticity at a price of 6 for each firm, that gives 0.4 × 6 + 0.6 × 2 = 3.6 for A and B weights, and the actual market point elasticity there is 6 × 6 / 10 = 3.6. Both sides agree. The midpoint figures differ a little from the point figures because they average over a wide interval.
So market supply cannot be more elastic than the most elastic firm, and cannot be less elastic than the least elastic one. Two practical points follow:
- A market with many firms that can each expand output easily has highly elastic supply.
- A market where a few large firms are close to capacity can have inelastic supply, even if there are many tiny firms that are very responsive. The weights decide the result.
The midpoint method has the same limits as before. It gives an average over the interval, so it depends on the interval you choose. Across a kink, where a new firm enters, it blends two different slopes into one number. Between prices of 4 and 6 in the example, firm A enters partway through, and the measured elasticity does not describe either segment well.
Edge cases and assumptions
- Different shutdown prices. Firms with higher costs enter only at higher prices. The ordering of entry prices is what gives a market supply curve its shape, and low-cost firms supply at every price where high-cost firms do.
- Zero-quantity firms. A firm at zero still belongs in the sum. Leaving it out is correct only if you are sure its quantity is zero at the price in question.
- Fixed number of sellers. The sum assumes the list of firms is fixed. If entry is allowed in response to price, then the number of firms is itself a function of price, and the simple sum is the short-run market supply.
- Common price. The sum assumes one price for everyone. With transport costs, quality differences, or separate regional markets, there may be several prices, and the sum should be done within each market.
- Linear forms. The examples use straight lines for simplicity. The same horizontal addition works for any shape, since it only requires quantities at each price. With linear forms you can write the answer as an equation, as above. With other shapes, you compute the sum numerically.
Summary of the method
- Write each seller's supply as quantity as a function of price, with the zero floor.
- For each price, compute each seller's quantity and add them.
- Find each seller's entry price to locate the kinks.
- For shifts, ask whether existing firms changed, the number of firms changed, or both.
- For elasticity, compute it on the market quantities directly, or as a share-weighted average of firm elasticities.
Exercise
Firm X supplies Q = -10 + 5P and firm Y supplies Q = -2 + 3P, both floored at zero. Write the market supply function for P of 2 or more, and find market quantity supplied at P = 6.
Show answer
Firm X supplies a positive quantity when P is above 2, and firm Y when P is above 2/3, so for P of 2 or more both are supplying. Add the equations: (-10 + 5P) + (-2 + 3P) = -12 + 8P. At P = 6, X supplies 20 and Y supplies 16, so the market quantity is 36, which equals -12 + 48.
Exercise
A third firm, identical to firm B (Q = -6 + 2P), enters the market with firms A and B from this chapter. What is the market quantity supplied at a price of 6, and is this a movement along the curve or a shift?
Show answer
Before entry the market supplies 10 at a price of 6 (4 from A and 6 from B). The new firm supplies -6 + 12 = 6, so the market quantity becomes 16. Because the quantity at the same price has changed, this is a shift of the market supply curve to the right, caused by a change in the number of sellers.
Exercise
Over the price range from 6 to 8, the midpoint elasticity is 3.5 for firm A, 1.75 for firm B, and 2.625 for the market. Explain why the market value falls between the two firm values.
Show answer
Market quantity is the sum of the firms' quantities, so the percentage change in market quantity is a weighted average of the firms' percentage changes, with weights equal to each firm's share of quantity. Because the price change is the same for everyone, market elasticity is a weighted average of the firm elasticities, so it cannot be above the highest (3.5) or below the lowest (1.75).