How opportunity cost works
Every choice made with limited money or time closes off other choices. The opportunity cost of a decision is the value of the single best option you turned down, not the total of every option you could have picked. If $10,000 could pay off a credit card, fund a Roth IRA or go toward a car, and you pay off the card, your opportunity cost is whichever of the other two would have been worth more to you, not both combined.
Much of an opportunity cost is invisible because no bill arrives for it. Economists separate explicit costs, the money you pay, from implicit costs, the value you give up. A paid-off home has no rent or mortgage interest, but the equity could have been invested elsewhere, so it still carries an implicit cost. Time counts too: another year at work costs a year of free time, and an earlier retirement costs pay, contributions and benefit growth.
Opportunity cost looks forward. Money already spent and unrecoverable, a sunk cost, plays no part in the next decision; only resources you can still redirect do. That is why having already put a lot into something is not, by itself, a reason to keep going.
How to calculate opportunity cost
The calculation itself is simple, as the formula below shows: identify the best option you are not choosing and put a value on it. The work lies in making the options comparable.
Put them on the same time basis. A benefit that arrives over many years must be compounded or discounted to a common date using the time value of money; $1,000 a year for 20 years is not the same as $20,000 today.
Put them on the same tax basis. A 6% return taxed every year in a brokerage account leaves less to compound than 6% growing tax-deferred, and interest you avoid on a loan whose interest is not deductible is a saving in after-tax dollars.
Account for risk. A certain return and an uncertain one with the same average are not equal. Paying off a 7% loan earns exactly 7% with no market risk; an investment expected to earn 7% might earn far more or far less. The SEC’s saving and investing guide makes the same point about high-interest debt: paying it off is hard to beat on either return or safety.
Finally, count what does not show up in dollars. Liquidity, flexibility and peace of mind have value, which is why keeping an emergency fund in cash can be worth its lower return.
Common mistakes when weighing opportunity cost
Opportunity cost is a way of thinking, not a verdict, and it is easy to misuse. Most errors come from comparing options that are not alike, or from judging a past decision with information nobody had when it was made. Every choice has an opportunity cost, so the aim is not to avoid one but to make sure the option you pick is worth more than the best one you give up. Watch for these errors:
- Adding up every forgone option instead of counting only the best one.
- Letting sunk costs, money already spent, drive the next decision.
- Comparing a guaranteed return with a risky expected return as if they were equal.
- Ignoring taxes, fees or the time needed for a return to arrive.
- Using hindsight, such as a stock that later soared, instead of what was knowable at the time.
- Forgetting nonfinancial costs such as time, stress and lost flexibility.
Illustrative numbers
A $10,000 bonus with three possible uses
- Value of the best option not chosen
- What the most valuable alternative you passed up would have produced, after tax, over the same period
- Value of the chosen option
- What the option you picked produces over that period, after tax
- Net benefit
- Positive when your choice beats the best alternative
Compare risk as well as value: a certain return is worth more than an uncertain one with the same average.
Pay off a credit card at an assumed 22% APRAbout $2,200 of interest avoided in a year
Invest in a stock index fund at an assumed 7% expected returnAbout $700 expected, not guaranteed
Keep it in a savings account at an assumed 4%About $400 of interest
Opportunity cost of paying off the card: the best option given upAbout $700 expected
Net benefit of paying off the card: $2,200 − $700About $1,500
Paying off the card comes out about $1,500 ahead in the first year, and its $2,200 is certain while the $700 is not. Reverse the choice and investing carries an opportunity cost of $2,200 of avoided interest. These one-year figures ignore how a balance shrinks as it is paid, but the ranking holds, which is why the debt avalanche targets the highest rate first.
At a glance
Common money choices and their opportunity costs
| Choice | What you give up | How to size it |
|---|---|---|
| Keeping $30,000 in checking earning almost nothing | Interest from savings, money market funds or Treasury bills | Balance × the rate difference |
| Contributing below the 401(k) match | Employer money: $2,400 a year for a 50% match on 6% of an $80,000 salary | Match rate × the matched pay you did not defer |
| Claiming Social Security at 62 (born 1960 or later) | A check 30% smaller for life than at 67, and 43.5% smaller than at 70 | 70% of the full benefit vs. 100% at 67 or 124% at 70 |
| Extra payments on a 3% mortgage | The expected return on investing the same dollars | Expected after-tax return − 3%, weighed for risk |
| Buying a $40,000 car instead of a $25,000 car | $15,000 plus what it would have earned | Future value of $15,000 over your horizon |
| Retiring at 60 instead of 65 | Five years of pay, saving and benefit growth | Compare two full projections |
Put it in your plan
Opportunity Cost in MoneyWhatIf
What-If freezes your current forecast as a dashed line while you edit, so each choice is measured against the path you would give up. Move a retirement date, adjust a contribution or change when a property is sold, then compare the two paths year by year, including income, tax and net worth. Placing extra debt payments ahead of investing in the Cash flow priorities and comparing it in What-If shows how the same surplus plays out either way. Strategy Lab prices many allowed changes, including debt-first surplus, against one baseline and ranks them on the goal you choose.
Common questions
Opportunity Cost FAQs
What is the opportunity cost of going to college?
Tuition, fees and books are the explicit cost. The larger hidden cost for many students is the pay they give up: years of full-time wages they could have earned instead, plus what those wages could have grown to if saved. Room and board count only to the extent they exceed what living elsewhere would cost. The decision weighs that total against the higher earnings a degree may bring, with both sides converted to today’s dollars.
Is opportunity cost the same as a sunk cost?
No. A sunk cost is money or effort already spent that you cannot recover, so it should not drive what you do next. Opportunity cost is forward-looking: the value of the best alternative still open to you. Whether to sell a losing investment, for instance, should turn on what the money could do from here, not on what you paid, though the tax value of harvesting the loss is a legitimate factor.
Should I pay off my mortgage early or invest?
It is an opportunity-cost question. Extra principal on a Mortgage earns your loan rate with certainty; investing offers an uncertain expected return that may be higher. A low rate tilts the math toward investing, while a high rate, a short horizon or a low tolerance for risk tilts it toward paying down the loan. Liquidity matters too, since home equity is hard to reach without selling or borrowing. Compare after-tax figures and include the value of flexibility.
How does opportunity cost apply to retirement planning?
Most retirement choices trade one benefit for another. Retiring earlier gives up years of pay, contributions and benefit growth in exchange for time. Claiming Social Security at 62 accepts a check up to 30% smaller for life in exchange for more years of payments; the break-even age shows when waiting catches up. Holding more bonds gives up expected growth for stability, and a Roth conversion gives up tax paid now for tax-free money later.