Sub topic 4
Opportunity cost: the best alternative given up
Every choice closes off other choices. Opportunity cost puts a number on what a choice closes off. This chapter defines the term precisely, works through computing it, and covers the errors that most often produce wrong answers.
This chapter assumes you are comfortable with basic arithmetic and ratios, and that you have read the earlier chapters on scarcity and trade-offs. Scarcity is why choices have costs at all. A trade-off is the general fact that getting more of one thing means getting less of another. Opportunity cost is the measured version of that trade-off.
The definition
The opportunity cost of a choice is the value of the single best alternative you give up by making it.
Three parts of that definition matter.
- Value. The cost is measured in what you would have gained, not in what you pay. Money is one measure of value, but not the only one.
- Best. Only the top-ranked alternative counts. If you have five alternatives, the cost is the value of the best one, not the total of all five.
- Given up. The alternative must be one you could have done instead. If you could have done both, nothing was given up.
Alternatives are ranked by your own valuation. Two people facing the same menu of options can have different opportunity costs, because they rank the options differently.
A worked example
Suppose you have a free Saturday afternoon and three ways to spend it. You value them like this, in dollars:
| Option | Value to you |
|---|---|
| Work a shift | 80 |
| Study | 60 |
| See friends | 50 |
If you choose to work, the alternatives you gave up are studying (60) and seeing friends (50). The best of them is studying, so the opportunity cost of working is 60. It is not 110.
If you choose to study, the alternatives given up are working (80) and seeing friends (50). The opportunity cost of studying is 80.
The same logic fits in a short function:
def opportunity_cost(options, chosen):
"""Value of the best alternative that was not chosen."""
return max(v for k, v in options.items() if k != chosen)
# Value (in dollars) of how you could spend a free Saturday afternoon.
options = {"work_shift": 80, "study": 60, "see_friends": 50}
print(opportunity_cost(options, "work_shift")) # 60
print(opportunity_cost(options, "study")) # 80The function filters out the chosen option and takes the maximum of what remains. It never sums the values.
Notice that the best option, working, still has a positive opportunity cost of 60. Choosing the highest-valued option does not make its cost zero. It means the benefit (80) exceeds the cost (60), so the choice was a good one.
Why only the best alternative counts
The reason is that you can only do one thing with the afternoon. The alternatives are mutually exclusive, so you could never have collected both the study value and the friends value. The most you could have gotten from the resource you used (the afternoon) is the value of its best other use. That is the true amount you gave up.
If you added up all the alternatives, you would charge yourself for gains you could never have received. That makes almost every choice look worse than it is.
Opportunity cost is not the same as the price
A price is what you hand over. Opportunity cost is what you give up. They often differ.
Consider a concert ticket that costs 40 dollars and takes a three-hour evening. The money has an opportunity cost: the best other thing 40 dollars could have bought. The evening has its own opportunity cost: the best other use of those three hours. The full opportunity cost of attending includes both, but you cannot just add up the two best alternatives if they overlap. If the best use of the money and the best use of the evening are the same activity, you only give it up once.
For this reason, careful analysis starts by naming the specific resource being committed (time, money, a machine, a plot of land) and asking what the best alternative use of that resource would have been.
Some consequences follow.
- "Free" is rarely free. A free lunch seminar costs you the best use of the hour, even though the price is zero.
- A high price does not by itself mean a high cost. If you have no other use for the money that you care about, the opportunity cost of spending it is small.
- The cost depends on the chooser. A surgeon and a student face the same two-hour appointment, but the surgeon's best alternative use of two hours is worth far more.
The next chapter splits costs into explicit costs (money paid out) and implicit costs (the value of the resources you already own and use). Opportunity cost is the idea that unites both, so keep the definition above in mind.
Net values, not gross values
When you rank alternatives, rank them by what you would actually come away with. An alternative that pays 80 but costs 15 to get to is worth 65 to you.
Here is a version of the earlier function that handles that. It also returns the name of the best forgone option, and it handles the case where there is no alternative at all.
def best_alternative(values, chosen, extra_costs=None):
"""Return (name, net_value) of the best option not chosen, or None."""
extra_costs = extra_costs or {}
net = {k: v - extra_costs.get(k, 0) for k, v in values.items() if k != chosen}
if not net:
return None
name = max(net, key=net.get)
return name, net[name]
values = {"work_shift": 80, "study": 60, "see_friends": 50}
commute = {"work_shift": 15} # cost of getting to the shift
print(best_alternative(values, "study", commute)) # ('work_shift', 65)
print(best_alternative(values, "see_friends", commute)) # ('work_shift', 65)
print(best_alternative(values, "work_shift", commute)) # ('study', 60)
print(best_alternative({"only_option": 10}, "only_option")) # NoneWithout the commute adjustment, the opportunity cost of studying would be 80. With it, the cost is 65. The gross figure overstated what you gave up.
The None result for a single option is the edge case where no alternative exists. A choice with no feasible alternative has no opportunity cost. That is rare in practice, because "doing nothing" or "saving the money" is usually an alternative with some value.
Costs in units other than money
Opportunity cost does not have to be expressed in dollars. When two producers make two goods, it is often clearer to say how much of one good is given up for another.
Suppose a farmer can grow 10 bushels of wheat or 20 yards of cloth worth of flax in a day, using all her time on one or the other, and that the trade-off is a straight line. Then each bushel of wheat costs 2 yards of cloth, and each yard of cloth costs 0.5 bushel of wheat. Here the opportunity cost is a ratio of quantities. The same idea, measured this way, drives the production possibilities frontier and comparative advantage in later chapters, so it is worth getting comfortable with it now.
Common errors
These mistakes account for most wrong answers on opportunity cost problems.
- Adding up all alternatives. The cost is the best forgone alternative only. In the example, the cost of working is 60, not 110.
- Including the chosen option's own benefit. The benefit of the choice you made is on the other side of the ledger. It is compared with the opportunity cost, not included in it.
- Counting an alternative that was not feasible. If the work shift was only offered at a time when you had a class, then you could not have taken it, and it is not a forgone alternative. List only the options that were actually available.
- Counting alternatives that could be done together. If you could study on the bus ride to the shift, studying is not given up by working. Opportunity cost arises only when the alternatives compete for the same scarce resource.
- Ranking by gross rather than net value. Subtract the costs attached to each alternative before comparing them, as in the commute example.
- Using someone else's valuation. The best alternative is the one best by the decision maker's own standards. A friend may rank the options differently.
- Equating cost with money spent. The opportunity cost of a choice can be large when no money changes hands, and small when a lot does.
- Mixing up opportunity cost and regret. Opportunity cost is measured at the time of the decision, from what you knew then. An alternative that happened to turn out well afterward does not change the cost of the choice.
Edge cases
- Idle resources. If you would have done nothing useful with the afternoon, the best alternative is worth about zero, and so is the opportunity cost. Scarcity applies only to resources that have competing uses.
- Ties. If two alternatives are tied for best, the opportunity cost is that shared value. Nothing is counted twice.
- Uncertain alternatives. Sometimes the value of the best alternative is a guess, such as the pay from a job offer you might get. Use the expected value, meaning each possible outcome weighted by its likelihood, and treat the result as an estimate.
- Choices over time. A choice today can give up value in several future periods. Compare the alternatives over the same time span so the totals are comparable.
- Large choices. For a big decision, such as going to college, the "best alternative" is a whole path (for example, working full time), not a single afternoon. The same definition applies, but the estimate is rougher.
Using the concept in decisions
Opportunity cost matters because it is the correct cost to use in a decision. A rational choice compares the benefit of an option with what it gives up. If the benefit of working (80) exceeds the opportunity cost (60), working is the better choice. If you were instead offered a study option worth 90, the opportunity cost of working would rise to 90 and the decision would flip.
This also explains why costs change when circumstances do. If wages rise, the opportunity cost of every hour not spent working rises, and people shift toward work. The same reasoning will carry into marginal analysis, where you ask the question one small step at a time.
Summary
- Opportunity cost is the value of the best alternative given up, not the total of all alternatives.
- Rank alternatives by net value, using the decision maker's own valuation, and include only options that were feasible and mutually exclusive.
- Cost can be measured in dollars, hours, or units of another good.
- Cost differs from price, depends on the chooser, and can be near zero when a resource has no other use.
Exercise
You have a free evening and can (a) babysit for 45 dollars, with 5 dollars in bus fare, (b) practice for an exam, worth 40 dollars to you, or (c) go to a movie, worth 30 dollars to you. You choose the movie. What is the opportunity cost, and which option sets it?
Show answer
Net values are babysit 45 - 5 = 40, exam practice 40, movie 30. The movie is chosen, so the forgone options are babysitting (40) and exam practice (40). They tie for best, so the opportunity cost is 40. Either one sets it, and the two are not added together.
Exercise
A friend says, "I chose to work a shift worth 80 dollars. I gave up studying (60) and seeing friends (50), so my opportunity cost was 110." Find the error and give the correct figure.
Show answer
The friend added the alternatives. Opportunity cost is the value of the single best forgone alternative, which is studying at 60. The two alternatives compete for the same afternoon, so the friend could never have collected both 60 and 50.
Exercise
Using the straight-line frontier from the farmer example (10 bushels of wheat or 20 yards of cloth per day), what is the opportunity cost, in wheat, of making 4 more yards of cloth?
Show answer
Each yard of cloth costs 10 / 20 = 0.5 bushel of wheat, so 4 yards cost 4 x 0.5 = 2 bushels of wheat.