Opportunity Cost: Meaning, Formula and Investing Examples

Opportunity cost is the value of the best alternative you give up when you choose how to use money, time, or another limited resource. A profitable investment can still carry a substantial opportunity cost if another feasible use of the same capital offers more value.
The calculation starts with a practical question: what else could you realistically do with these resources? For investing, compare the same amount of money over the same period, after relevant costs. Then separate the benefit you forgo from the difference between the two returns.
What Is Opportunity Cost?
The St. Louis Fed explains opportunity cost as the value of the next-best alternative surrendered by a decision. The scarce resource might be cash, working hours, or the use of a building.
Suppose you can use one evening for paid work, study, or rest. If rest is the most valuable alternative to the work you choose, the opportunity cost is that rest. It is not the combined value of every activity you could imagine.
The same principle applies to capital. An investment competes with other investments, debt repayment, and keeping funds available. The relevant alternative must actually be open to you. An account you cannot access, or a strategy that needs more money than you have, is not a useful benchmark.
Identify the alternative before the outcome is known. Picking the best-performing asset after a year has passed measures hindsight, rather than the trade-off available when you made the decision.
The Opportunity Cost Formula
The general definition is:
Opportunity cost of a choice = value of its best feasible forgone alternative.
When comparing investments, it is also useful to calculate a return gap:
Return gap = net return of the alternative − net return of the chosen investment.
For the same starting capital and a single holding period:
Dollar return gap = capital × (alternative net return rate − chosen net return rate).
These expressions answer different questions. The first identifies the value surrendered. The return gap shows how much the chosen option falls behind, or exceeds, the comparison option. Investment discussions sometimes call this gap an opportunity cost, so state which quantity you mean.
A positive gap means the alternative offers a higher net return under your assumptions. A negative gap means the chosen investment offers more. Neither sign, by itself, measures risk or proves that a forecast will come true.
Worked Example: Two Uses for $1,000
Consider two hypothetical investments. Each uses $1,000 for one year. Assume the stated returns are net of all costs included in this comparison, with no additional deposits or withdrawals. These are illustrative figures, not current product yields.
| Measure | Option A | Option B |
|---|---|---|
| Capital | $1,000 | $1,000 |
| Net return | 6% | 9% |
| Net gain | $60 | $90 |
| Ending value | $1,060 | $1,090 |
If you choose A and B is the best feasible alternative, you forgo B's $90 net gain. A still earns $60. The incremental return gap is therefore $90 − $60 = $30, or 3 percentage points on the starting capital.
Do not describe that gap as a 3% increase in the return. The rates differ by 3 percentage points; the $90 gain is 50% larger than the $60 gain. Those are different comparisons.
Also avoid treating the $1,090 ending value as additional income. It includes the original $1,000. Both options use that same principal, so the return comparison concerns the $90 and $60 gains.
If the 9% figure is only an estimate, the $30 gap is an estimated difference. It does not establish that B is safer, more accessible, or a better fit for your needs.

Explicit Costs, Implicit Costs, and Profit
Some costs appear as payments. Others arise because you use a resource you already control. OpenStax distinguishes explicit and implicit costs when explaining accounting and economic profit.
| Cost type | Example |
|---|---|
| Explicit | Entry fee |
| Implicit | Forgone income |
A small business can illustrate the distinction. Imagine a weekend project brings in $500 and requires $300 in cash expenses. Its accounting profit is $200. If doing the project means declining an available paid shift worth $250, the project produces $50 less than that alternative, before any other differences.
The paid shift must be a genuine option. Assigning an hourly wage to all leisure time can create a misleading cash estimate if there is no paid work available for those hours.
When a quoted investment return already includes a fee, do not deduct that fee again. Likewise, do not count the same forgone income twice under different labels.
Opportunity Cost in Prediction Markets
A position may have positive expected value while offering only a small advantage over another use of the capital. The holding period matters as much as the headline payoff.
Consider a hypothetical binary event contract with these assumptions:
- You buy 500 YES contracts at $0.60 each, for $300.
- Total fees are $3, charged upfront, with no further costs.
- Each contract pays $1 if YES occurs and $0 otherwise.
- Settlement occurs in 180 days, with no early exit in this example.
- Your estimated chance of YES is 65%.
- The alternative can accept the full $303 and earns a hypothetical fixed 2% net return over those same 180 days.
This scenario is not a quote or a fee schedule for Macro Markets or another platform. It excludes taxes and other costs beyond the stated fee.
Expected settlement proceeds are 500 × $1 × 0.65 = $325. Subtract the $303 total entry cost to get $22 in expected net profit. This is an average under the probability model, not a possible settlement amount.
The alternative earns $303 × 0.02 = $6.06. The position's expected advantage over that benchmark is therefore $22 − $6.06 = $15.94.
The actual contract outcomes remain very different: a $197 net profit if YES occurs, or a $303 loss if it does not. The expected advantage does not eliminate either outcome.
Check How Much the Forecast Matters
Keep the contract terms and $303 cost fixed, but change the estimated probability:
| YES probability | Expected net profit |
|---|---|
| 60% | −$3 |
| 62% | $7 |
| 65% | $22 |
At 62%, the expected profit exceeds the $6.06 benchmark by only $0.94. A small forecasting error or an omitted cost could erase that margin.
To match the alternative's $309.06 ending value, the probability would need to satisfy 500 × probability = $309.06. That gives 61.812% under these assumptions. Simply exceeding the contract's 60% purchase price is not enough once fees and the forgone return are included.
Use the prediction market calculators hub to find tools for expected value and position sizing. Treat the alternative return as a separate benchmark unless the selected tool explicitly includes it.
Compare Time, Risk, and Access Before Choosing
Two return figures are comparable only when their terms are clear. A 2% return over 180 days is not the same input as a 2% annual return. If investments release cash at different dates, account for what happens to the money during the remaining period.
The SEC's asset allocation guidance emphasizes investment horizon and willingness to bear losses. Those considerations also matter when selecting an opportunity-cost benchmark.
A useful process is:
- Define the scarce resource and when you need it back.
- List alternatives you can access with the same resources.
- Estimate net benefits over a common period, using consistent fee and tax assumptions.
- Compare possible losses, access to cash, and uncertainty alongside expected returns.
- Record why you chose the benchmark and what evidence would change your decision.
The highest expected return need not be the best option for someone who cannot absorb the loss. Our guide to risk aversion explains why preferences can change the choice even when expected values are similar.
Opportunity Cost Versus Sunk Cost
An opportunity cost concerns an alternative you give up now. A sunk cost is a past cost you cannot recover. The St. Louis Fed discusses both concepts as separate parts of decision-making.
Suppose you spent hours researching a position. Those hours cannot be recovered. They do not establish that holding it is still worthwhile.
However, a position's current sale value is not automatically sunk. If you can sell, the cash available after exit costs is part of today's choice. Compare holding from this point with selling and using those proceeds elsewhere, rather than trying to justify the original purchase.
Frequently Asked Questions
Is Opportunity Cost Always Measured in Money?
No. Time, flexibility, rest, and other benefits can be the relevant alternatives. A dollar estimate helps only when it reflects a realistic trade-off. It should not conceal benefits that are difficult to price.
Can a Good Investment Still Have an Opportunity Cost?
Yes. Choosing a profitable investment still means giving up other feasible uses of the capital. A positive return does not show whether the investment was the best choice for the goal, period, or risk involved.
Does Opportunity Cost Mean You Should Switch Investments?
No. A return gap is one input. Switching can add fees, taxes, new risks, and a different holding period. Evaluate the decision using information available now, rather than chasing whichever asset performed best after the fact.