Sub topic 5
Finding the efficient quantity
This chapter assumes you can read supply and demand curves, know that marginal means "the next unit," and can solve two linear equations for a quantity. It also assumes you know that consumer surplus plus producer surplus measures the gains from trade. Earlier chapters defined externalities and the three kinds of marginal cost. This chapter uses them to find the quantity a society should want.
The efficiency criterion
An allocation is efficient when no change can raise total surplus. To check this at the margin, compare the benefit of one more unit with its cost, counting everyone affected, not only the buyer and seller.
- If the marginal social benefit (MSB) of the next unit exceeds its marginal social cost (MSC), producing it adds net value. Produce more.
- If MSB is below MSC, the last unit destroyed value. Produce less.
- At the quantity where MSB = MSC, no single unit can improve the total. This is the efficient quantity, written Q*.
The market ignores part of this comparison. Buyers and sellers act on private numbers, so the market quantity Q_m sits where marginal private benefit (MPB) equals marginal private cost (MPC). The efficient quantity uses the social versions:
- MSB = MPB + marginal external benefit (MEB)
- MSC = MPC + marginal external cost (MEC)
With no externality, MEB and MEC are zero, MSB = MPB and MSC = MPC, and the two quantities coincide. That is the case for the usual claim that competitive markets are efficient. An externality breaks that link.
A worked example with linear curves
Use the numbers from this tutorial's running example:
- Inverse demand (MPB): P = 100 − 1·Q
- Inverse supply (MPC): P = 20 + 1·Q
- Constant marginal external cost: 10 per unit
Market quantity. Set MPB = MPC: 100 − Q = 20 + Q, so Q_m = 40. The market price is 60.
Social cost curve. Add the external cost to the supply curve: MSC = 20 + Q + 10 = 30 + Q. The MSC curve lies parallel to MPC and 10 above it. Demand is unchanged, so MSB = MPB.
Efficient quantity. Set MSB = MSC: 100 − Q = 30 + Q, so Q* = 35.
The market overproduces by 5 units. At Q = 40 the marginal buyer values the unit at 60. Its true social cost is 20 + 40 + 10 = 70. That unit costs society 10 more than it is worth.
The general formula for linear curves is:
- Q_m = (a − c) / (b + d)
- Q* = (a − c − e) / (b + d)
Here a and b are the intercept and slope of demand, c and d are the intercept and slope of supply, and e is the constant external cost.
The code below solves for both quantities. It then confirms Q* by brute force, checking which whole-number quantity gives the largest total social surplus.
a, b = 100, 1 # inverse demand: P = a - b*Q
c, d = 20, 1 # inverse private supply: P = c + d*Q
e = 10 # constant marginal external cost
q_market = (a - c) / (b + d)
q_efficient = (a - c - e) / (b + d)
print(q_market, q_efficient)
def social_surplus(q):
# area under MSB minus area under MSC, from 0 to q
benefit = a * q - 0.5 * b * q ** 2
cost = (c + e) * q + 0.5 * d * q ** 2
return benefit - cost
best = max(range(0, 101), key=social_surplus)
print(best, social_surplus(best), social_surplus(40))
# 40.0 35.0
# 35 1225.0 1200.0Social surplus peaks at 1225 when Q = 35. At the market quantity of 40 it is 1200. The gap of 25 is the deadweight loss, which a later chapter measures directly from the diagram.
Why the surplus peaks at Q*
Total social surplus is the area between the MSB curve and the MSC curve, up to the chosen quantity. Moving right from Q = 0, each unit adds MSB − MSC. That difference is positive up to Q, zero at Q, and negative after. A running total of a quantity that is positive and then negative reaches its maximum where the sign flips.
This also explains why the answer does not depend on who pays. Efficiency here is about the quantity. A tax, a subsidy, or a permit market can all reach Q*, and they differ only in who gains and who loses along the way.
The same logic for positive externalities
When production or consumption spills benefits onto others, the external effect shifts demand instead. Suppose each unit gives third parties a benefit of 10. Then MSB = 100 − Q + 10 = 110 − Q, and MSC = MPC = 20 + Q.
Setting them equal: 110 − Q = 20 + Q, so Q* = 45. The market still stops at 40. Here the market underproduces, because the marginal unit at Q = 40 costs society 60 but is worth 70 to someone.
A single formula covers both cases, with ecost and ebenefit as the constant external cost and benefit per unit:
Q* = (a − c − ecost + ebenefit) / (b + d)
Common errors and edge cases
| Situation | What goes wrong | Correct handling |
|---|---|---|
| Using MEC at the market quantity | If MEC changes with output, the wrong value is picked. | Find Q* first, then read MEC at Q*. This matters when the external cost rises with output. |
| Treating MSC as the supply curve | Students draw the new curve but keep the old intersection. | The market still follows MPC. MSC is an analytical curve that no firm faces unless policy changes the incentive. |
| Large external cost | The formula gives a negative quantity when e > a − c. | Clamp at zero. If the external cost exceeds the highest value anyone places on the first unit, the efficient quantity is zero. |
| Confusing the price with the cost | At Q*, the buyer's price and the seller's cost differ by the external cost. | Read Q* from the intersection. Then read prices off the private curves at Q*. |
| Assuming "efficient" means "no pollution" | Eliminating the activity usually costs more than the harm it causes. | Efficiency keeps units whose benefit exceeds full social cost. A positive efficient quantity of a polluting good is normal. |
Reading Q* as a policy target
Q tells you where to aim. It does not tell you how to get there. Because the market equates private values, any fix has to change what buyers or sellers face at the margin, or limit the quantity directly. The next chapters take up the deadweight loss in more detail, then the Pigouvian tax, which sets a per-unit charge equal to the MEC at Q. For the example here that charge is 10. It moves buyers to a price of 65 and sellers to 55 at Q* = 35.
Exercise
Keep demand P = 100 − Q and private supply P = 20 + Q. Raise the constant marginal external cost to 20 per unit. Find the efficient quantity and the loss in social surplus at the market quantity.
Show answer
MSC = 20 + Q + 20 = 40 + Q. Setting 100 − Q = 40 + Q gives Q* = 30. The market quantity is still 40. The surplus lost is a triangle with base (40 − 30) = 10 and height 20, so 0.5 × 20 × 10 = 100. Check with the surplus function: at Q = 30 it is 60·30 − 0.5·2·900 = 900, and at Q = 40 it is 60·40 − 1600 = 800, a gap of 100.
Exercise
Now suppose there is no external cost, but each unit gives third parties a constant benefit of 10. Find Q*, say whether the market over- or underproduces, and compute the loss in social surplus.
Show answer
MSB = 110 − Q and MSC = 20 + Q, so Q* = 45. The market produces 40, so it underproduces by 5 units. The surplus lost is 0.5 × 10 × 5 = 25.