Opportunity Cost
Use the Opportunity Cost Calculator → Try the Opportunity Cost Quiz →Opportunity cost is the value of the best alternative forgone when making a choice. In build vs. buy analysis, the opportunity cost of building in-house equals the value of what the development team could have shipped on the core product instead.
- Opportunity cost is the value of the best alternative you give up - not just the out-of-pocket cost of your choice.
- In software build vs. buy, the opportunity cost of building is what your engineers could have shipped on the core product instead - often $60,000-$200,000+ per engineer per year.
- Opportunity cost is not recorded in accounting statements, which is why it is so often missed in business decision-making.
- When two options have similar direct costs, the one with lower opportunity cost is typically the better choice.
- The opportunity cost of doing nothing is also real: not adopting a tool that would save 20 hours per week has an opportunity cost equal to those 20 hours times the hourly cost of the people involved.
What is Opportunity Cost?
Opportunity cost is the value of the best alternative forgone when you make a choice. Every decision to do X implicitly means not doing Y - and the opportunity cost is the value of Y, the best thing you gave up.
In finance, opportunity cost is used to evaluate investment decisions, capital allocation, and resource prioritization. If you invest $100,000 in a business project that returns 5% annually, your opportunity cost is what you could have earned with that $100,000 elsewhere - say, 8% in an index fund. The true "cost" of the project is not just what you spent, but the 3% annual gap versus the alternative.
In build vs. buy decisions, the opportunity cost of building in-house is the value of what the development team could have shipped on revenue-generating product features instead. This is frequently the largest single cost in a build analysis and the most commonly omitted one.
Opportunity Cost explained to a beginner
You have $1,000 and two choices: put it in a savings account at 3%, or buy concert tickets you plan to resell for a $200 profit. The opportunity cost of buying the tickets is the $30 you would have earned in the savings account.
The concert tickets earned $200, so the net gain versus the alternative is $170. If the tickets had earned only $25, the opportunity cost of $30 would mean the savings account was actually the better choice - even though the tickets made money.
When to use Opportunity Cost
Apply opportunity cost thinking when: allocating limited engineering or capital resources between competing projects; deciding whether to build vs. buy software; evaluating whether to hire for a function vs. outsourcing it; comparing investment options with different risk profiles; and prioritizing product roadmap features. Any time you have constrained resources and multiple options, opportunity cost is the right lens.
Worked examples for Opportunity Cost
This table quickly gives you the overview you need to understand Opportunity Cost and its most important comparisons.
| Scenario | Chosen option | Alternative | Opportunity cost |
|---|---|---|---|
| Dev team builds internal CRM (6 months) | 1 internal CRM | 2 product features that could ship in same time | 2 revenue-generating features |
| $200K capital invested in equipment at 4% return | $8,000/year return | Index fund at 8% return | $8,000/year gap ($16K - $8K) |
| 10 hrs/week spent on manual reporting | Free (no tool spend) | Automation tool at $200/month | 10 hrs x $80/hr x 52 wks = $41,600/year |
| CEO spends 20% of time on admin | No EA hired | Hire EA at $60K/year | CEO time worth $300K/year x 20% = $60K opportunity cost |
Common pitfalls
The biggest pitfall with opportunity cost is treating "free" as actually free. Spending developer time on internal tools, spending executive time on tasks an assistant could do, or choosing not to invest idle capital - all have real opportunity costs that don't appear on any expense line. Building "for free" with existing staff is often the most expensive option when opportunity cost is included.
The term "opportunity cost" was formalized by Austrian economist Friedrich von Wieser in 1914, though the concept appears in economic reasoning as far back as the 1870s. It is now a foundational concept in both microeconomics and corporate finance.
Frequently asked questions about Opportunity Cost
Is opportunity cost the same as sunk cost?
No - they are different concepts. Opportunity cost is the value of the best alternative you give up by making a choice; it is a forward-looking concept. Sunk cost is money already spent that cannot be recovered; it is backward-looking. Good decision-making means ignoring sunk costs (they're gone either way) and explicitly weighing opportunity costs (they affect the future outcome).
How do you calculate opportunity cost?
Identify your best available alternative, then estimate its value over the same time period as your chosen option. If you invest in Project A for 1 year and expect a 5% return, and your best alternative (Project B) would return 9%, your opportunity cost is 4% - the gap between what you chose and what you gave up.
Why is opportunity cost not shown in financial statements?
Financial statements record actual transactions - money spent and money received. Opportunity cost is a hypothetical: what you could have earned from an alternative you did not pursue. Because it involves a counterfactual, it cannot be audited or verified, so it is excluded from GAAP/IFRS accounting. This is why management accounting and decision analysis frameworks explicitly add it back when evaluating options.
Quiz: how well do you know opportunity cost?
1. What is opportunity cost?
2. According to this glossary entry, what is the opportunity cost of an engineering team spending 6 months building an internal CRM?
3. You invest $100,000 at 5% annual return. Your best alternative was an index fund at 8%. What is your opportunity cost per year?
4. According to this glossary entry, what is the biggest pitfall with opportunity cost thinking?