Sub topic 6
Thinking at the Margin
Prerequisites and scope
This chapter assumes you already know what scarcity and opportunity cost mean. It also assumes you can do basic arithmetic with ratios and read a graph with two axes. If "opportunity cost" is not yet the value of the best alternative you give up, review the previous chapter first.
Here you will learn to decide how much of an activity to do. The question is no longer "should I do this or that?" It becomes "should I do a little more, or a little less?" Economists call this reasoning at the margin. The chapter covers the decision rule, a worked example in code, a graph of the stopping point, and the errors that trip up most learners.
What "marginal" means
A margin is the edge of your current choice. A marginal quantity is the change that results from one more unit of something, or one fewer. The unit can be an hour, a dollar, a worker, a mile, or a slice of pizza.
Three terms are used throughout:
- Marginal benefit (MB) is the extra benefit from one more unit.
- Marginal cost (MC) is the extra cost from one more unit. It includes the opportunity cost of that unit.
- Net marginal benefit is MB minus MC for that unit.
Marginal values are different from totals and averages. The total benefit of studying for three hours is the benefit of all three hours together. The marginal benefit of the third hour is only what that hour adds on top of the first two.
Most real choices are not all-or-nothing. You rarely decide whether to study at all. You decide whether to study one more hour tonight. Marginal analysis fits that shape of decision.
The decision rule
The core rule is short:
- Do one more unit if its marginal benefit is greater than its marginal cost.
- Do one fewer unit if the last unit's marginal cost is greater than its marginal benefit.
- Stop where the next unit would cost more than it gives.
Following this rule gets you to the best quantity. Each unit that passes the test adds to your net gain. The first unit that fails the test would reduce it.
This works because of a common pattern called diminishing marginal benefit. The first hour of studying usually helps a lot. Each later hour helps a bit less, because you are more tired and have already covered the easy material. Marginal benefit falls as you do more. Marginal cost, meanwhile, is often flat or rising. At some point the falling line drops below the cost line, and that is where you stop.
Worked example: hours of studying
Suppose the hours of studying before an exam have these marginal benefits, measured in dollars of value to you:
| Hour | Marginal benefit | Marginal cost | Net marginal benefit |
|---|---|---|---|
| 1 | $50 | $15 | $35 |
| 2 | $35 | $15 | $20 |
| 3 | $20 | $15 | $5 |
| 4 | $8 | $15 | -$7 |
The marginal cost of $15 is the opportunity cost of one hour: the wage you could have earned instead. Hours 1, 2, and 3 each add positive net benefit. Hour 4 costs $15 and returns $8, so it makes you $7 worse off. The best choice is 3 hours.
Here is the same logic as code:
# Marginal benefit of each additional hour of studying (in dollars of value).
marginal_benefit = [50, 35, 20, 8]
# Opportunity cost of one hour: the wage you could earn instead.
marginal_cost = 15
hours = 0
for mb in marginal_benefit:
if mb > marginal_cost:
hours += 1
else:
break
print(hours) # 3The loop stops at the first hour that fails the test. That is correct here because marginal benefit only falls. If marginal benefit could rise again later, stopping at the first failure could miss a better choice. The section on common errors returns to this.
Seeing the stopping point on a graph
The diagram below shows the decision as a sequence of steps. At each hour you compare the two marginal values and either continue or stop.
On a standard graph, quantity is on the horizontal axis and dollars are on the vertical axis. The MB curve slopes downward. The MC curve is a horizontal line at $15 in our example. The two cross between hour 3 and hour 4. You choose the quantity just before the crossing, because every unit to the left of it has MB above MC.
With smooth, continuous quantities the optimum is exactly where MB equals MC. With whole units, such as hours counted one at a time, you pick the last unit where MB still exceeds MC. If MB equals MC for a unit, you are indifferent about it, and either choice gives the same total.
Total gain versus marginal gain
A frequent point of confusion is the difference between "this activity is worth doing" and "more of this activity is worth doing." They are separate questions.
In the study example, the total benefit of 3 hours is $50 + $35 + $20 = $105. The total cost is 3 × $15 = $45. The total net gain is $60. Studying a fourth hour adds $8 of benefit and $15 of cost, so total net gain falls to $53.
Notice that studying is clearly worth doing, since the total net gain is large and positive. Yet the fourth hour is not worth doing. A good decision can combine "yes to the activity" with "no to more of it."
The reverse also happens. A person who has done very little of something may find that the total so far looks poor, but the next unit has a high marginal benefit. Total value should not drive the choice of the next unit. Marginal values should.
Marginal cost is opportunity cost of the next unit
Marginal cost is not only the price on a tag. It is whatever you give up to get the next unit. Two things follow from this.
First, marginal cost can change from unit to unit even when the price does not. An evening hour may cost more than a morning hour if you would otherwise be paid overtime in the evening. Second, marginal cost includes implicit costs, such as time and forgone earnings, as well as explicit payments.
Consider a student deciding how many shifts to work each week. The wage is the same for every shift, but the third shift may cost her a study session that matters for a test. The wage benefit stays flat while the opportunity cost rises. Marginal analysis catches this. A rule such as "work whenever the wage is good" does not.
Marginal analysis for firms
Firms use the same rule. A bakery deciding how many loaves to bake compares the revenue from one more loaf with the cost of one more loaf: flour, extra oven time, and a worker's time. It bakes the next loaf only if the added revenue exceeds the added cost.
This is why a business may accept a low-priced order that does not cover its average cost. Suppose a bakery has spare oven capacity that would sit idle. A special order pays $2 per loaf, and the extra ingredients and labor cost $1.20 per loaf. The marginal benefit of $2 exceeds the marginal cost of $1.20, so accepting the order raises profit. The firm's rent and equipment are paid either way, so they are not part of the marginal cost of this order.
A caution applies. If the special order would use the oven at a time when a regular customer would pay $3 per loaf, the opportunity cost is higher, and marginal cost must include that lost sale. The rule is the same. Only the measurement of cost changes.
A reusable function
You can write the marginal rule as a small function that handles a changing marginal cost. This version compares each unit's benefit to that unit's own cost and stops at the first unit that fails.
def best_quantity(marginal_benefits, marginal_costs):
"""Return how many units to choose, adding units while MB > MC.
Assumes marginal benefit is non-increasing and marginal cost is
non-decreasing, so the first failing unit ends the search.
"""
units = 0
for mb, mc in zip(marginal_benefits, marginal_costs):
if mb > mc:
units += 1
else:
break
return units
# Work shifts: wage benefit is flat, but the cost of each shift rises.
benefits = [90, 90, 90, 90]
costs = [40, 60, 85, 110]
print(best_quantity(benefits, costs)) # 3The student takes three shifts. The fourth costs $110 in lost study time and rest and pays $90, so it fails. This example has flat benefits and rising costs, which still satisfies the assumption in the docstring because the benefit never increases and the cost never decreases.
Common errors
Using averages instead of margins
Average values hide the last unit. If a factory's average cost per unit is $10, that does not mean the next unit costs $10. It may cost $4 or $18. Decide using the cost of the next unit.
Treating total value as a reason to continue
The fact that you have benefited so far from an activity does not justify more of it. The earlier hours were good. Only the next hour matters for the next decision.
Forgetting implicit costs
If marginal cost counts only cash payments, you will do too much of any activity that uses your own time or owned resources. Add the value of the best alternative use to each unit's cost.
Assuming the rule always stops at the first failure
The loop in the code stops at the first unit where MB is not above MC. That is safe only when benefits fall and costs rise smoothly. Some activities have a start-up hurdle, where the first unit has low benefit but later units have high benefit. Learning an instrument is a good example. The first lessons feel unproductive, but the later ones pay off. In that case, compare the total gain of a whole block of units, not only the first unit.
Mixing up "more" and "all or nothing"
Marginal analysis answers "a little more or a little less." Some decisions are discrete, such as buying a house or not. For those, compare the total benefit and total cost of each option directly.
Using past costs in the marginal comparison
Money or effort already spent and not recoverable is not part of the marginal cost of the next unit. A later chapter covers this idea as sunk costs. For now, remember that the comparison looks only forward.
Summary table
| Concept | Question it answers | Typical mistake |
|---|---|---|
| Marginal benefit | What does one more unit add? | Confusing it with the total |
| Marginal cost | What does one more unit give up? | Counting only cash costs |
| Decision rule | Should I do one more? | Stopping too late or too early |
| Optimum | Where is the best quantity? | Choosing where average equals benefit |
Exercises
Exercise
A coffee shop owner estimates the extra revenue from staying open each additional hour in the evening: hour 1 brings $60, hour 2 brings $45, hour 3 brings $30, hour 4 brings $18. Keeping the shop open costs $25 per hour in wages and utilities. How many extra hours should the owner stay open, and what is the total net gain?
Show answer
Compare each hour's marginal benefit with the $25 marginal cost. Hours 1 ($60), 2 ($45), and 3 ($30) all exceed $25. Hour 4 brings $18, which is below $25, so the owner stops after 3 hours. Total benefit is 60 + 45 + 30 = $135. Total cost is 3 × 25 = $75. Net gain is $60.
Exercise
A student earns $90 per work shift. The opportunity cost of the first shift is $40 in lost study value, the second is $60, the third is $85, and the fourth is $110. In your own words, explain why the student should take three shifts and not four, even though every shift pays the same wage.
Show answer
Marginal benefit is a flat $90 for every shift, but marginal cost rises with each shift. The third shift costs $85, which is still below $90, so it adds $5 of net benefit. The fourth shift costs $110, which is above $90, so it would reduce the student's net gain by $20. The wage is the same each time, but the opportunity cost is not, so the student stops at three.
Exercise
A factory has an average cost of $10 per unit at its current output of 100 units. A customer offers $7 per unit for 20 more units. The extra materials and labor for those units would cost $5 per unit, and the factory has idle capacity that has no other use. Should the factory accept? Explain why the average cost does not decide the answer.
Show answer
Accept. The marginal benefit is $7 per unit and the marginal cost is $5 per unit, so each unit adds $2 of net benefit, or $40 in total. The average cost of $10 includes fixed costs that are paid whether or not the order is accepted, so it does not measure what the extra units cost. The decision depends only on the added revenue and the added cost.