Home›Money›Opportunity Cost

Opportunity Cost Explained: Formula and Real-Life Examples

Opportunity cost is the value of the best thing you gave up to do what you did. It is invisible, it is always there, and it is the difference between a good decision and a merely profitable one.

Updated October 2026Opportunity Cost Calculator

Every choice costs two things: what you pay, and what you give up. Opportunity cost is the second one: the value of the best alternative you forgo when you choose. A dollar spent is a dollar that cannot be invested; an hour spent is an hour that cannot be spent otherwise; a career chosen is a career not chosen. Opportunity cost is not recorded in any account, which is why it is so easy to ignore, and why decisions that look profitable on paper can be poor decisions once it is counted. This guide defines it, works it in money, time, and careers, and shows the mistakes it catches.

Key takeaways
  • Opportunity cost equals the value of the best alternative forgone, not the value of every alternative, and not the cost of the choice itself.
  • It applies to money, time, and irreversible choices alike, and it is invisible in accounts, which is why it is ignored.
  • A decision is good only if its return beats its opportunity cost, not merely if its return is positive.

The definition, and the formula

Opportunity cost = return of the best forgone alternative − return of the chosen option, where a positive result means the alternative was better.

The best alternative matters, not every alternative. If you choose A over B and C, the opportunity cost is B, the better of the two forgone options, not B plus C, because you could only have chosen one of them. The formula can also be stated in gains: the gain you gave up minus the gain you got. Either way, a choice is worth making only if its gain exceeds the best forgone gain, which is a stricter test than merely gaining something. The discounting method behind that comparison is explained in the NPV guide.

Opportunity cost is not the same as accounting cost. Accounting cost counts money paid out. Economic cost counts money paid out plus opportunity cost. A business that reports an accounting profit can still be making an economic loss if the owner capital and time would have earned more elsewhere, which is why economists and accountants can look at the same business and disagree about whether it is succeeding.

Money: the invested dollar that was spent

Spend $10,000 on a car upgrade instead of investing it, and the opportunity cost is not $10,000 but $10,000 plus the growth it would have earned. At an assumed 7% annual return over 20 years, $10,000 grows to about $38,700, so the forgone growth is about $28,700 and the true cost of the upgrade, in 20-year terms, is roughly $38,700 of future wealth, not $10,000 of present spending. That is the power of compounding working against spending, and it is why small, repeated spending decisions matter more than single large ones.

The same logic governs loans. Borrowing from a 401(k) to fund a purchase costs not only the interest but the market growth the borrowed money would have earned while it was out, and a 401(k) loan that is not repaid on leaving a job can become a taxable distribution as well. The calculator on this site runs the money version of opportunity cost for your figures and horizon.

Time and careers: the choices you cannot rewind

Time has an opportunity cost set by its best alternative use. An hour spent on a task worth $20 an hour that could have been spent on work worth $50 an hour costs $30, whatever the task itself produced. That is the logic behind outsourcing: paying someone $25 to do a $20-value task is rational if your hour is worth $50, because the $25 payment buys back a $50 hour.

Careers carry the largest opportunity costs of all, because they are partly irreversible. Four years in one field are four years not spent in another, and the forgone experience compounds like money. That does not mean the first career was a mistake: experience transfers, and a career chosen for interest or meaning may beat a higher-paying alternative on a broader measure of value. It means the comparison should be honest: the cost of a career is not only its salary, but the salary and experience of the best alternative, weighed against what the chosen career gives that money cannot.

Using opportunity cost in real decisions

Apply it as a question, not a calculation: what is the best thing I am giving up, and is what I gain worth more? For a purchase, the alternative is usually investing or saving the money. For a time commitment, the alternative is the best other use of that time. For a business decision, the alternative is the best other use of the capital and the team. If the answer is unclear, the decision is close, and close decisions deserve more information, not more confidence.

Beware the sunk-cost confusion. Opportunity cost looks forward: it counts what you give up from now on. Sunk costs, money already spent and unrecoverable, should not enter the decision at all. A project that has consumed $100,000 should be judged on its future returns against its future alternatives, not on the $100,000 already gone, however painful that is to accept.

Mistakes: counting every alternative, and ignoring the invisible

First, adding up all forgone alternatives instead of taking the best one. You could only have chosen one, so the cost is one, not the sum. Second, counting opportunity cost only for money and ignoring time, attention, and irreversibility, which are often the scarcer resources. Third, treating a positive return as sufficient: a project returning 5% when the alternative returns 8% is a loss in opportunity terms, even though it gains in absolute terms. Fourth, the reverse error: letting opportunity cost paralyse every small decision. The cost of deliberating also has an opportunity cost, and for small stakes the right move is to decide and move on.

Frequently asked questions

What is opportunity cost?

The value of the best alternative you give up when you make a choice. It is the hidden second price of every decision, beside the price you pay.

How do you calculate opportunity cost?

Subtract the return of the chosen option from the return of the best forgone alternative. A positive result means the alternative was better.

What is an example of opportunity cost?

Spending $10,000 instead of investing it at an assumed 7% for 20 years gives up about $38,700 of future wealth, so the true cost is far more than $10,000.

Is opportunity cost the same as accounting cost?

No. Accounting cost counts money paid out. Economic cost counts money paid out plus opportunity cost, which is why a business can report an accounting profit and still be an economic loss.

Does opportunity cost apply to time?

Yes. An hour spent on a $20 task when your time is worth $50 costs $30 in forgone value, which is the logic behind outsourcing low-value tasks.

Should sunk costs count in opportunity cost?

No. Sunk costs are already spent and unrecoverable, so they should not affect a forward-looking decision. Opportunity cost counts only what you give up from now on.

Related guides and calculators

Try it with your own numbers.

Open the Opportunity Cost Calculator →

Similar Posts