Opportunity Cost Definition: Opportunity cost is the value of the next-best alternative you give up when you choose one option over another. In investing, it equals the return your capital could have earned in its best alternative use minus the return it actually earned. Because it never appears on a statement, opportunity cost is easy to ignore, yet it decides whether a profitable trade was actually a good one.
What Is Opportunity Cost?
Every choice closes a door. If you spend an evening studying charts, you can’t spend it at the cinema. If you put $10,000 into one stock, that same $10,000 can’t sit in a different stock, a bond or a savings account. The value of the best path you didn’t take is the opportunity cost of the path you did.
French economist Frédéric Bastiat framed the idea in 1850 as the difference between what is seen and what is not seen. The result of a decision is visible. The result of the alternative, which never happened, stays invisible, and people tend to judge decisions only by what they can see.
Opportunity cost makes the invisible side count. A trade that returned 8% sounds like a success. But if a low-risk alternative returned 10% over the same period, the trade cost you two percentage points compared with doing almost nothing.
How to Calculate Opportunity Cost
With the basic idea in place, the calculation for traders is short: opportunity cost equals the return of the best forgone option minus the return of the chosen option. The hard part is choosing the right benchmark. It should be an alternative you would realistically have picked, with similar risk and time horizon, not the best-performing asset you notice in hindsight.
Take $20,000 and one year. A one-year Treasury bill pays 5%, which would earn $1,000 with almost no risk. Instead, you buy a stock that rises 3% and pays no dividend, finishing the year up $600.
On paper you made a $600 profit. Measured against the Treasury bill, you gave up $1,000 to earn $600, so the opportunity cost of the decision was $400. You also took on stock market risk to earn less than a riskless alternative, which is the real verdict on the trade.
Now run the same numbers in a year when the Treasury bill pays 0.25%. The safe option earns just $50, and the stock’s $600 gain beats it by $550. Nothing about the stock changed. The interest rate on the alternative moved, and that alone flipped the decision from poor to sound.
That is why the risk-free rate works as the floor for every investment decision. When yields on Treasury bonds are high, every risky position has to clear a higher bar. When they sit near zero, almost anything with a positive expected return looks attractive by comparison.
Opportunity Cost vs. Sunk Cost
Traders often mix up these two, and the confusion costs money. A sunk cost is money already spent that you cannot recover, whatever you do next. An opportunity cost looks forward: it is what you give up by the choice you make from here.
| Opportunity Cost | Sunk Cost | |
|---|---|---|
| Time direction | Forward-looking | Backward-looking |
| Recoverable? | Depends on your next decision | No, already gone |
| Should it affect decisions? | Yes, always | No, it should be ignored |
| Trading example | Return missed by keeping capital in a stalled trade | The loss already booked on that trade |
Picture a position down 30%. The loss is sunk, and holding on “until it comes back” does not undo it. The right question is where the remaining capital has the best expected return from today, and the answer ignores the entry price entirely.
Why Is Opportunity Cost Important for Traders?
Capital tied up in one idea cannot fund another. Cash parked as margin, funds locked in a stalled position, or money held in a zero-interest account all carry an opportunity cost, even when the balance never drops. Comparing each position with what the same capital could earn elsewhere keeps a portfolio from filling up with trades that merely avoid losses.
Opportunity cost also explains why some assets swing with interest rates. Gold and many non-yielding cryptocurrencies pay no income, so holding them means giving up the yield on safe bonds. When rates rise, that forgone income grows and some investors rotate into bonds; when rates fall, the cost of holding a store of value shrinks. Idle cash carries a second, quieter opportunity cost through inflation, which erodes purchasing power every year it sits unused.
The concept has limits. Hindsight makes every past decision look expensive: on 22 May 2010, programmer Laszlo Hanyecz paid 10,000 BTC for two pizzas, a trade that looks absurd only because nobody could know then what bitcoin would later be worth. Opportunity cost is useful for decisions you make now, using alternatives you can actually identify, not for scoring yourself against the best trade in history.
Key Takeaways
- Opportunity cost is the value of the best alternative you give up when you make a choice.
- For traders, it equals the return of the best realistic alternative minus the return of the chosen position.
- The risk-free rate sets the minimum bar: when safe yields rise, every risky trade must earn more to be worth taking.
- Sunk costs are already gone and should not guide decisions, while opportunity costs look forward and always should.
- Judging past decisions against the best outcome in hindsight distorts the concept; the benchmark must be an alternative you could have chosen at the time.
Is opportunity cost a real cost if no money leaves my account?
Yes, in economic terms. It never appears on a statement, but a position that earns 3% when a safe alternative paid 5% has left you 2% poorer than you could have been.
What is the opportunity cost of holding cash?
It is the return the cash could have earned in the best alternative you would realistically choose, often a Treasury bill or money market fund. Inflation adds a second cost, because idle cash also loses purchasing power.
Can opportunity cost be negative?
Not by definition, since it measures the value of the best option you did not take. Your choice can still beat the alternative, in which case the alternative's return is simply lower than yours and the decision paid off.
Why does gold get less attractive when interest rates rise?
Gold pays no interest or dividend. When safe bonds yield more, the income you give up by holding gold grows, so some investors switch to bonds.