# Opportunity Cost: Formula, Examples, and How to Calculate It

Published: 2026-03-01
Author: Warren Team
URL: https://www.heywarren.com/blog/formula-of-opportunity-cost

---
Opportunity cost is the value of the next-best alternative you give up when making a decision. Every choice involves trade-offs, when you invest $10,000 in one stock, that capital cannot simultaneously be invested in another. The opportunity cost of your chosen investment is the return you could have earned from the best alternative you didn't choose. Understanding opportunity cost is fundamental to rational economic decision-making, capital allocation, and business strategy, it's one of the concepts that separates economic thinking from accounting thinking, because it captures costs that never appear on any financial statement.

## Opportunity Cost Formula

**Opportunity Cost = Return on Best Forgone Alternative − Return on Chosen Option**

![Opportunity cost of choosing bonds over stocks: the 6% annual return difference on a $50,000 investment.](data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20800%20210%22%20width%3D%22800%22%20height%3D%22210%22%20role%3D%22img%22%3E%3Ctitle%3EComparison%3C%2Ftitle%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22%23f8fafc%22%2F%3E%3Ctext%20x%3D%22230%22%20y%3D%2257.5%22%20text-anchor%3D%22end%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2214%22%20font-weight%3D%22600%22%20fill%3D%22%230f172a%22%3EBonds%20%28chosen%29%3C%2Ftext%3E%3Crect%20x%3D%22240%22%20y%3D%2225%22%20width%3D%22180%22%20height%3D%2255%22%20rx%3D%226%22%20fill%3D%22%232563eb%22%2F%3E%3Ctext%20x%3D%22432%22%20y%3D%2257.5%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2214%22%20font-weight%3D%22700%22%20fill%3D%22%232563eb%22%3E%254%3C%2Ftext%3E%3Ctext%20x%3D%22230%22%20y%3D%22152.5%22%20text-anchor%3D%22end%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2214%22%20font-weight%3D%22600%22%20fill%3D%22%230f172a%22%3EStock%20Market%20%28forgone%29%3C%2Ftext%3E%3Crect%20x%3D%22240%22%20y%3D%22120%22%20width%3D%22450%22%20height%3D%2255%22%20rx%3D%226%22%20fill%3D%22%237c3aed%22%2F%3E%3Ctext%20x%3D%22702%22%20y%3D%22152.5%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2214%22%20font-weight%3D%22700%22%20fill%3D%22%237c3aed%22%3E%2510%3C%2Ftext%3E%3C%2Fsvg%3E)

*Opportunity cost of choosing bonds over stocks: the 6% annual return difference on a $50,000 investment.*

Or, more simply:

**Opportunity Cost = What You Could Have Earned − What You Actually Earned**

**Example 1, Investment choice**:
- You invest $50,000 in bonds earning 4% per year
- The stock market returns 10% during the same period
- Opportunity cost: 10% − 4% = **6% per year**
- In dollar terms: $50,000 × 6% = **$3,000 per year foregone**

**Example 2, Business capital allocation**:
- A company invests $2M in a new product launch, earning a 12% return
- The best alternative use was paying down debt at 15% interest
- Opportunity cost: 15% − 12% = **3% per year on $2M = $60,000 per year**

**Example 3, Education decision**:
- A student spends 2 years in a full-time MBA programme
- Total tuition and living costs: $120,000
- Salary forgone during the programme: $150,000
- Total opportunity cost: $270,000 (before considering the MBA's return)

Note: The opportunity cost is not the tuition alone, it includes all economic resources foregone.

## Explicit vs. Implicit Costs

Accounting costs and economic costs diverge because accounting ignores opportunity costs:

![How explicit, implicit, and opportunity costs relate, only explicit costs appear in accounting statements.](data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20600%20211%22%20width%3D%22600%22%20height%3D%22211%22%20role%3D%22img%22%3E%3Ctitle%3EHierarchy%3C%2Ftitle%3E%3Crect%20width%3D%22100%25%22%20height%3D%22100%25%22%20fill%3D%22%23f8fafc%22%2F%3E%3Crect%20x%3D%22220%22%20y%3D%2220%22%20width%3D%22160%22%20height%3D%2258%22%20rx%3D%228%22%20fill%3D%22%232563eb%22%2F%3E%3Ctext%20x%3D%22300%22%20y%3D%2254%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2214%22%20font-weight%3D%22700%22%20fill%3D%22white%22%3EBusiness%20Costs%3C%2Ftext%3E%3Cpath%20d%3D%22M%20300%2078%20L%20300%20105.5%20L%20120%20105.5%20L%20120%20133%22%20stroke%3D%22%23cbd5e1%22%20stroke-width%3D%222%22%20fill%3D%22none%22%2F%3E%3Crect%20x%3D%2240%22%20y%3D%22133%22%20width%3D%22160%22%20height%3D%2258%22%20rx%3D%228%22%20fill%3D%22white%22%20stroke%3D%22%230891b2%22%20stroke-width%3D%222%22%2F%3E%3Ctext%20x%3D%22120%22%20y%3D%22158%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2213%22%20font-weight%3D%22600%22%20fill%3D%22%230f172a%22%3EExplicit%3C%2Ftext%3E%3Ctext%20x%3D%22120%22%20y%3D%22176%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2210%22%20fill%3D%22%2364748b%22%3ECash%20outlays%2C%20visible%3C%2Ftext%3E%3Cpath%20d%3D%22M%20300%2078%20L%20300%20105.5%20L%20300%20105.5%20L%20300%20133%22%20stroke%3D%22%23cbd5e1%22%20stroke-width%3D%222%22%20fill%3D%22none%22%2F%3E%3Crect%20x%3D%22220%22%20y%3D%22133%22%20width%3D%22160%22%20height%3D%2258%22%20rx%3D%228%22%20fill%3D%22white%22%20stroke%3D%22%230891b2%22%20stroke-width%3D%222%22%2F%3E%3Ctext%20x%3D%22300%22%20y%3D%22158%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2213%22%20font-weight%3D%22600%22%20fill%3D%22%230f172a%22%3EImplicit%3C%2Ftext%3E%3Ctext%20x%3D%22300%22%20y%3D%22176%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2210%22%20fill%3D%22%2364748b%22%3EOwner%20time%2C%20owned%20assets%3C%2Ftext%3E%3Cpath%20d%3D%22M%20300%2078%20L%20300%20105.5%20L%20480%20105.5%20L%20480%20133%22%20stroke%3D%22%23cbd5e1%22%20stroke-width%3D%222%22%20fill%3D%22none%22%2F%3E%3Crect%20x%3D%22400%22%20y%3D%22133%22%20width%3D%22160%22%20height%3D%2258%22%20rx%3D%228%22%20fill%3D%22white%22%20stroke%3D%22%230891b2%22%20stroke-width%3D%222%22%2F%3E%3Ctext%20x%3D%22480%22%20y%3D%22158%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2213%22%20font-weight%3D%22600%22%20fill%3D%22%230f172a%22%3EOpportunity%3C%2Ftext%3E%3Ctext%20x%3D%22480%22%20y%3D%22176%22%20text-anchor%3D%22middle%22%20font-family%3D%22system-ui%2C-apple-system%2Csans-serif%22%20font-size%3D%2210%22%20fill%3D%22%2364748b%22%3EBest%20forgone%20alternative%3C%2Ftext%3E%3C%2Fsvg%3E)

*How explicit, implicit, and opportunity costs relate, only explicit costs appear in accounting statements.*

| Cost Type | What It Captures | Shows in Accounting? |
|---|---|---|
| Explicit cost | Cash outlays (rent, wages, materials) | Yes, on income statement |
| Implicit cost | Value of owner's time, foregone investment returns, use of owned assets | No, invisible to financial statements |
| Opportunity cost | The implicit cost of the best foregone alternative | No |

**Business example**: An entrepreneur runs a business from a building she owns. Her accounting profit is $200,000. But the economic profit is different:
- She could have rented the building for $60,000/year
- She could have earned $80,000 at a comparable employment position
- Economic profit = $200,000 − $60,000 − $80,000 = **$60,000**

The $60,000 is the true economic return over her next-best alternatives, the accounting profit of $200,000 includes compensation for resources she provided (the building, her labour) that should be counted as costs.

## Opportunity Cost in Investment Decisions

The opportunity cost framework is central to investment analysis:

**[Hurdle rate](/blog/hurdle-rate) and WACC**: Companies use their [Weighted Average Cost of Capital](/blog/how-to-calculate-weighted-cost-of-capital) (WACC) as a hurdle rate for investment projects, a project must return more than WACC, or the capital should be returned to investors who can earn WACC-level returns elsewhere. The WACC represents the opportunity cost of capital.

**Benchmark comparison**: For portfolio managers, the opportunity cost of active management vs. passive indexing is the performance gap. If an active fund returns 8% while the index returns 12%, the 4% difference is the opportunity cost of active management.

**Real options**: The opportunity cost of exercising an option early is the loss of its remaining time value, the value of maintaining future optionality.

## Opportunity Cost in Business Strategy

**Make vs. buy**: Should a manufacturer produce components in-house or outsource? The opportunity cost analysis includes what the factory capacity could produce instead (not just the comparison of direct costs).

**Capital allocation**: A business with limited capital must choose between projects. Investing in Project A means forgoing Project B. The opportunity cost of Project A is Project B's expected return.

**Time allocation**: An executive's time has an opportunity cost, hours spent on low-value tasks are hours not spent on high-value decisions. This is why effective delegation and time management are economic decisions, not just lifestyle preferences.

## Sunk Costs vs. Opportunity Costs

Sunk costs and opportunity costs are often confused but point in opposite directions:

**Sunk cost**: Money already spent and irrecoverable. Should **not** affect future decisions (the sunk cost fallacy is basing future decisions on past, irrecoverable spending).

**Opportunity cost**: The value of what you give up going forward. Should **always** inform future decisions.

**Example**: You've invested $100,000 in a failing venture (sunk cost). The rational question is: "Given where I am today, what is the opportunity cost of continuing vs. exiting?", not "I've already invested $100,000, so I must continue." The $100,000 is gone regardless; only future opportunity costs are relevant.

## Authoritative Sources

For deeper background and primary-source data on this topic, the following authoritative sources are useful starting points:

- [IRS](https://www.irs.gov/)
- [SEC](https://www.sec.gov/)

## Conclusion

Opportunity cost is the economic concept that makes explicit what accounting hides: every decision is a choice between alternatives, and the value of what you give up is just as real as the costs you pay in cash. The formula is straightforward, the return on the best forgone alternative minus the return on the chosen option, but its applications permeate investment analysis, capital budgeting, business strategy, and personal financial decisions. Systematically calculating opportunity costs leads to better resource allocation and more rational decision-making. For related economics and financial concepts, see our guides on [diminishing marginal benefit](/blog/diminishing-marginal-benefit) and [WACC formula](/blog/wacc-formula).

Warren at [heywarren.com](https://heywarren.com) helps investors, business owners, and students understand core economic principles, apply them to financial decisions, and avoid the common cognitive biases that lead to poor capital allocation.

---


## Related Reading

**More from Warren**:
- [Diminishing Marginal Benefit: Definition, Examples, and Economic Implications](/blog/diminishing-marginal-benefit)
- [WACC: Formula, Components, and How to Calculate It](/blog/wacc-formula)
- [Contribution Margin: Formula, Calculation, and How to Use It](/blog/calculation-contribution-margin)

**Authoritative sources**:
- [CFA Institute, Economics](https://www.cfainstitute.org/en/membership/professional-development/refresher-readings/demand-supply-analysis-introduction)
- [MIT OpenCourseWare, Microeconomics](https://ocw.mit.edu/courses/economics/)
- [Federal Reserve, Economic Concepts](https://www.stlouisfed.org/education)
