How to Calculate Opportunity Cost: Formula and Examples
By ToolNimba Editorial Team June 20, 2026 6 min read
Quick answer
Opportunity cost is the value of the next best alternative you give up when you make a choice. To calculate it, use Opportunity Cost = value of the best forgone option minus the value of the option you chose. If you pick a job paying 50,000 dollars over one paying 55,000 dollars, your opportunity cost is 5,000 dollars in forgone salary.
Every decision has a hidden price tag. When you choose one thing, you automatically say no to everything else you could have done with that same time, money, or effort. That sacrifice has a name in economics: opportunity cost. Understanding it turns vague gut decisions into clear comparisons, and once you can put a number on what you are giving up, smarter choices follow. This guide covers the definition, the formula, several worked examples, and the mistakes that quietly cost people money.
What is opportunity cost?
Opportunity cost is the value of the next best alternative you give up when you make a choice. Because your time and money are limited, choosing one option always means forgoing another. The thing you did not choose, specifically the single best thing you passed up, is your opportunity cost.
A key point is that opportunity cost looks only at the next best alternative, not every alternative combined. If you have three ways to spend a free afternoon, your opportunity cost of the one you pick is whichever of the remaining two you would have valued most. You do not add up all the roads not taken. You compare against the single best one you skipped.
Explicit versus implicit costs
Opportunity cost includes both explicit costs, the actual money that changes hands, and implicit costs, the value of resources you already own that get tied up in a choice. Quitting a 60,000 dollar job to start a business has an implicit cost of that lost salary, even though no one hands you a bill for it. Counting implicit costs is what separates opportunity cost from a plain accounting figure.
The opportunity cost formula
The most common way to express opportunity cost is as the gap between the option you skipped and the option you took:
Formula
Opportunity Cost = Value of the Best Forgone Option minus Value of the Chosen Option
Another popular version frames it as a ratio of what you give up to what you gain, written as Opportunity Cost = What You Sacrifice divided by What You Gain. This form is handy when comparing returns. The subtraction version answers how much you lost in absolute terms, while the ratio version answers how much you gave up per unit of what you got. Both describe the same idea, so pick whichever fits your decision. Throughout this guide we use the subtraction form because it gives a clean dollar figure.
How to calculate opportunity cost step by step
Here is the full method using a simple investment choice. Suppose you have 10,000 dollars and must pick between a stock expected to return 12 percent and a bond expected to return 5 percent. You choose the stock. What did the bond cost you to skip, and what was the opportunity cost of choosing the stock?
- List your options and what each one is worth. The stock returns 12 percent (1,200 dollars) and the bond returns 5 percent (500 dollars).
- Identify the option you chose. Here it is the stock, worth 1,200 dollars.
- Identify the best option you gave up. The only forgone option is the bond, worth 500 dollars.
- Subtract: opportunity cost of choosing the stock = 500 minus 1,200 = negative 700 dollars.
- Interpret the sign. A negative result means the choice you made was better than the alternative by 700 dollars, so you gained by skipping the bond.
Now flip it. If you had chosen the bond instead, the opportunity cost would be 1,200 minus 500 = 1,200 dollars forgone return minus 500 earned, leaving you 700 dollars worse off than the stock. The lesson is that a low or negative opportunity cost signals a strong choice, while a high positive opportunity cost is a warning that you may have passed up something better. To compare percentage returns quickly, the percentage calculator can turn rates into dollar figures for you.
Opportunity cost examples
Seeing the formula across different decisions makes it click. The table below works through everyday and business choices, showing the chosen option, the best alternative given up, and the resulting opportunity cost.
Opportunity cost worked examples across common decisions
| Decision | Option chosen | Best alternative given up | Opportunity cost |
|---|---|---|---|
| Spending a work weekend | Earn 0 by relaxing | Freelance gig paying 400 dollars | 400 dollars in lost income |
| Investing 10,000 dollars | Stock returning 1,200 dollars | Bond returning 500 dollars | Negative 700 dollars (good choice) |
| Going to college full time | Degree, no salary for 4 years | Job paying 35,000 dollars a year | 140,000 dollars in forgone wages |
| Buying a 5 dollar coffee daily | Daily coffee habit | Investing 5 dollars a day instead | About 1,825 dollars a year saved |
| Keeping cash in checking | 0 percent interest | Savings account at 4 percent | 4 percent of the balance per year |
The college example shows why opportunity cost matters so much for big decisions. The sticker price of tuition is only part of the story. The four years of salary you do not earn while studying is often the larger cost, and it is invisible unless you deliberately count it. The coffee example shows the same principle at small scale, where the real cost of a daily habit is what that money could have grown into over time. If you want to see how those small amounts compound, our guide on compound interest explained walks through the math.
Common mistakes to avoid
Opportunity cost is simple in theory but easy to apply wrongly. Watch for these traps before you trust a decision.
- Ignoring implicit costs. Forgetting the salary, time, or assets you already own is the biggest error. The cost of starting a business is not just cash spent, it includes the paycheck you walked away from.
- Adding up every alternative. Opportunity cost is only the single best option you gave up, not the sum of all of them. Comparing against everything at once inflates the cost and paralyzes decisions.
- Counting sunk costs. Money already spent and unrecoverable is gone regardless of what you choose next, so it never belongs in an opportunity cost calculation. Only future trade offs matter.
- Forgetting non money value. Free time, health, stress, and enjoyment are real and belong in the comparison even when they are hard to price. A choice that wins on dollars can still lose overall.
- Comparing different time frames. A return over five years and a return over one year are not directly comparable. Put both options on the same period before you subtract.
Good to know: where opportunity cost shows up
Opportunity cost is one of the most widely used ideas in economics and personal finance because it applies to any limited resource. Investors weigh one asset against the next best return. Businesses choose which projects to fund and which to shelve. Governments decide whether to spend on roads or schools. Individuals decide between working overtime and resting, or between renting and buying. In every case the question is the same: what is the best thing I am giving up, and is my choice worth more than that?
Thinking in opportunity costs also pairs naturally with other financial calculations. Once you can price what you forgo, you can compare it against production decisions using how to calculate marginal cost, or measure how a single number changes against a baseline with our guide to how to calculate percentage. Together these tools turn fuzzy trade offs into numbers you can actually act on.
Opportunity cost comes down to one disciplined habit: before you commit, name the single best thing you are giving up and put a value on it. If your chosen option is worth more than that alternative, you are ahead. If it is not, you have just found a better use of your resources. Make that comparison a reflex and your everyday decisions, from a coffee to a career, get measurably sharper.
Frequently asked questions
What is opportunity cost in simple terms?
Opportunity cost is the value of the next best alternative you give up when you make a choice. Because your time and money are limited, choosing one thing means passing up another. The best option you skipped is your opportunity cost, even if no money directly changes hands.
What is the formula for opportunity cost?
The standard formula is opportunity cost equals the value of the best forgone option minus the value of the option you chose. A second common version expresses it as what you sacrifice divided by what you gain. Both measure the same trade off, so use whichever fits your decision best.
Can opportunity cost be zero or negative?
Yes. Opportunity cost is effectively zero when the alternative you skipped had no real value, such as an option that would have lost money anyway. It is negative when the choice you made was clearly better than the alternative, which signals you made a strong decision.
What is the difference between opportunity cost and sunk cost?
Opportunity cost is the value of a future alternative you give up by choosing something else. A sunk cost is money already spent that cannot be recovered. Sunk costs should never affect a decision, while opportunity cost is exactly what you should weigh before committing.
Does opportunity cost only involve money?
No. Opportunity cost includes anything of value you give up, such as time, enjoyment, health, or convenience, not just cash. A choice that saves money but costs many hours of your weekend may carry a high opportunity cost once you account for the value of that lost time.
Why is opportunity cost important?
Opportunity cost forces you to compare a choice against its best alternative rather than judging it in isolation. This reveals hidden trade offs, like the salary lost while studying or the returns missed by holding cash, helping individuals, businesses, and governments allocate limited resources more wisely.