Skip to content

Opportunity Cost Calculator

Calculate opportunity cost with instant, accurate results and clear step-by-step output.

By CalcGenius Editorial TeamLast reviewed August 28, 20253 min read
Opportunity Cost Calculator (OC = return_B − return_A)

The option you are considering.

The best alternative you give up.

When the returns are realised.

Used for present-value conversion.

📊
Enter your values and click Calculate

About

Opportunity cost is the value of the next-best alternative that you give up when you make a choice. If Choice A returns $1,000 and Choice B (the next-best alternative) returns $1,500, choosing A means giving up the $1,500 from B — so the opportunity cost of choosing A is $1,500, and the net economic loss is $500. The formula OC = return_B − return_A gives a positive number when choosing A was the wrong call (B was better) and a negative number when choosing A was the right call (A was better than B).

The concept is foundational in microeconomics because resources — time, money, attention, labour — are scarce. Every choice forecloses other possibilities; the value of the single best foregone possibility is the opportunity cost. This is broader than accounting cost, which counts only explicit out-of-pocket expenses. Opportunity cost also includes implicit, foregone values: the salary you gave up to start a business, the investment returns you could have earned by renting instead of buying a house, the free time you could have had instead of an extra hour at the office.

Time value of money matters when the alternatives pay out at different times. Money today is worth more than the same nominal amount in the future because of earning power (it can be invested) and inflation (purchasing power falls). To compare alternatives on a level playing field, discount each future cash flow to present value using a discount rate equal to your required rate of return. The opportunity cost is then PV_B − PV_A, which may differ from the nominal OC = B − A when the alternatives have different time profiles.

Common applications include career choice (attending graduate school costs not just tuition but two years of foregone wages), capital allocation (investing in Project A vs Project B with the same capital), and personal finance (buying a house vs renting and investing the difference, hiring help vs DIY, taking a job with higher salary but worse hours). The opportunity-cost mindset is also the foundation of behavioural economics — the "cost" of watching an hour of TV is the salary, exercise, sleep, or family time you could have had.

A crucial corollary is the sunk-cost fallacy. Money already spent is gone and should not enter future decisions; only future cash flows and qualitative future consequences matter. A business that has invested $1M in a failing project should not continue it "because we have already spent $1M" — the $1M is sunk, and the only relevant question is whether future returns exceed future costs. Recognising and ignoring sunk costs is one of the hardest but most important habits in opportunity-cost thinking.

How to Use

  1. 1
    Enter the return of Choice A
    Type the expected return (or net present value) of the option you are considering — the choice you are about to commit to. This can be a dollar amount, a percentage return, or a future value, in any consistent unit.
  2. 2
    Enter the return of the next-best alternative (Choice B)
    Type the return of the best alternative you are giving up. If there are multiple alternatives, use the one with the highest return — opportunity cost is always relative to the next-best, not the average of all alternatives.
  3. 3
    Read the opportunity cost and the verdict
    The hero block shows OC = return_B − return_A in dollars. Below it you can read the absolute opportunity cost, the relative opportunity cost (as a % of Choice A), and the verdict: Choose A if OC < 0, choose B if OC > 0.
  4. 4
    Use the comparison table for sensitivity
    The table shows how the opportunity cost changes as Choice B's return varies. This lets you see how robust your decision is — if small changes in B flip the verdict, the choice is genuinely marginal.
  5. 5
    Add qualitative factors on top
    This calculator handles the monetary side. Overlay qualitative factors — risk, time commitment, lifestyle, personal values — by adjusting the inputs (e.g. monetise time at your after-tax wage) before comparing.

Formula

Opportunity cost (nominal):

OC = return_B − return_A

Verdict rule:

OC > 0  →  Choose B (foregone value exceeds chosen)
OC < 0  →  Choose A (chosen exceeds foregone)
OC = 0  →  Tie — qualitative factors decide

Present-value conversion (single cash flow at year T):

PV = return / (1 + r)^T
OC_PV = PV_B − PV_A

Relative opportunity cost:

relOC = OC / |return_A|  (expressed as a % of Choice A)

Economic profit (accounting profit minus implicit costs):

π_econ = revenue − (accounting cost + opportunity cost)
π_econ = 0 in long-run competitive equilibrium

Worked Example

Example 1 — graduate school decision:

  • Choice A: attend 2-year MBA, forego $80,000/yr salary = $160,000 opportunity cost.
  • Choice B: stay in current job, salary = $160,000 over 2 years (next-best alternative).
  • If MBA boosts lifetime earnings by $300,000 (PV), Choice A wins: OC of staying = $300,000 − $160,000 = +$140,000 (choose MBA).
  • If MBA boost is only $100,000, OC = $100,000 − $160,000 = −$60,000 (stay in job).

Example 2 — buy vs rent-and-invest:

  • Choice A: buy a $500,000 house, mortgage payments and property tax total $30,000/yr.
  • Choice B: rent an equivalent house for $24,000/yr and invest the $6,000/yr difference at 7% for 30 yr.
  • FV of $6,000/yr at 7% for 30 yr ≈ $566,000. Add the house's appreciation (assume 3%/yr → $1.22M).
  • OC depends on relative appreciation, rent growth, and investment returns; the calculator makes the comparison explicit.

Example 3 — discount-rate sensitivity:

  • Choice A: $10,000 today; Choice B: $12,000 in 10 years.
  • At 5% discount: PV_B = $12,000 / (1.05)^10 = $7,367 < $10,000 → choose A.
  • At 2% discount: PV_B = $12,000 / (1.02)^10 = $9,859 < $10,000 → choose A (still).
  • At 1% discount: PV_B = $12,000 / (1.01)^10 = $10,859 > $10,000 → choose B.

Tips

  • Always compare to the next-best alternative, not the average of all alternatives. Opportunity cost is defined as the gap between your chosen option and the single best foregone option — including mediocre alternatives in the average dilutes the signal.
  • Monetise time at your after-tax hourly wage. If you earn $40/hour after tax, the opportunity cost of a 3-hour meeting is $120 — even if the meeting has no direct cost. This simple rule often reveals that DIY projects are not worth it when you could hire help instead.
  • Discount future cash flows before comparing. A $1,000 alternative paid today is worth more than a $1,200 alternative paid in 10 years. Use a discount rate equal to your required rate of return (often the risk-free Treasury rate plus a risk premium).
  • Ignore sunk costs. Money already spent is gone; only future cash flows (and qualitative future consequences) should enter the decision. The &quot;sunk cost fallacy&quot; — continuing a failing project because you have already invested — is one of the most expensive decision errors.
  • Build sensitivity analysis into the comparison table. If small changes in Choice B's return flip the verdict, the decision is genuinely marginal — pick whichever option has better non-monetary characteristics (risk, lifestyle, values) and move on.

Common Mistakes

Warning
  • Comparing to the average of all alternatives rather than the single next-best. Opportunity cost is defined relative to the best foregone option only; including mediocre alternatives in the average dilutes the signal.
  • Forgetting to discount future cash flows. A $1,000 alternative paid today and a $1,200 alternative paid in 10 years are not directly comparable; discount both to present value at your required rate of return.
  • Including sunk costs in the decision. Money already spent is gone; only future cash flows and qualitative future consequences matter. The sunk-cost fallacy is one of the most expensive decision errors in business.
  • Overlooking non-monetary factors. Time, risk, lifestyle, and personal values all carry opportunity cost. Monetise time at your after-tax hourly wage and explicitly weigh qualitative factors before committing.

Frequently Asked Questions

What is opportunity cost?
Opportunity cost is the value of the next-best alternative that you give up when you make a choice. If Choice A returns $1,000 and Choice B (the next-best alternative) returns $1,500, choosing A means giving up the $1,500 from B — so the opportunity cost of choosing A is $1,500, and the net economic loss is $500. Opportunity cost is a foundational concept in microeconomics because resources (time, money, attention) are scarce and every choice forecloses other possibilities.
How is opportunity cost calculated?
The simplest opportunity cost formula is OC = return_B − return_A, where Choice B is the next-best alternative to the chosen Choice A. If OC is positive, choosing A costs you more than you gain (you should have chosen B); if OC is negative, choosing A was the right call. For multi-period decisions, use the future value of each option: OC = FV_B − FV_A, accounting for time value of money, risk, and any non-monetary factors.
Does opportunity cost include non-monetary factors?
Strictly, yes — opportunity cost encompasses everything you give up, not just money. Choosing to attend a three-hour meeting costs you the salary you could have earned, but also the free time, rest, or family time you could have had. In practice, non-monetary factors are hard to quantify, so most opportunity-cost calculators focus on the monetary component and ask the user to add qualitative judgements on top. A common workaround is to monetise time at your after-tax hourly wage.
What is the difference between opportunity cost and accounting cost?
Accounting cost counts only explicit out-of-pocket expenses (rent, materials, wages paid). Opportunity (economic) cost adds the implicit value of foregone alternatives — the salary you gave up to start a business, the interest you could have earned on invested capital, the rent you could have charged for a building you occupy. Economic profit = revenue − (accounting cost + opportunity cost). A business can show positive accounting profit but negative economic profit, meaning the entrepreneur would have done better taking the next-best alternative.
How does the time value of money affect opportunity cost?
Money today is worth more than the same amount in the future because of earning power and inflation. To compare alternatives that pay out at different times, discount future cash flows to present value using a discount rate (often the risk-free rate or your required rate of return). The opportunity cost is then PV_B − PV_A. A 10-year, $1,000 alternative paid up front may be worth more than a 10-year, $1,200 alternative paid at the end, because the up-front $1,000 can be invested and grow.
What are common real-world applications?
Opportunity cost appears in nearly every decision. Attending college costs not just tuition but the four years of foregone wages. Buying a house costs not just the mortgage but the investment returns you could have earned by renting and investing the difference. Hiring an employee costs not just their salary but the time you spend managing them. Spending an hour scrolling social media costs not just the time but the sleep, exercise, or work you could have done instead. Recognising these implicit costs is the first step to making better decisions.

Scarcity and choice

Economics begins with scarcity: human wants exceed the resources available to satisfy them. Every choice therefore forecloses other possibilities, and the value of the next-best foregone possibility is the opportunity cost. Scarcity forces choice; choice creates opportunity cost. Even a billionaire faces scarcity of time — they cannot attend every meeting and every social event, so each hour spent on one forecloses another. Scarcity is the universal condition that gives opportunity cost its bite.

Accounting vs economic profit

Accounting profit counts only explicit, out-of-pocket costs. Economic profit subtracts both explicit costs and implicit opportunity costs — the salary you gave up to start a business, the interest you could have earned on invested capital. A business showing $50,000 accounting profit may be earning $0 economic profit if the founder gave up a $50,000 salaried job to run it. Economic profit being zero means the entrepreneur is earning exactly their next-best alternative — a perfectly competitive market clears at zero economic profit.

Time value of money

Money today is worth more than the same nominal amount in the future because of earning power (it can be invested) and inflation (purchasing power falls). To compare alternatives that pay out at different times, discount future cash flows to present value using a discount rate. The opportunity cost is then PV_B − PV_A. A $1,000 payment today is worth more than a $1,200 payment in 10 years at a 5% discount rate, because $1,000 invested at 5% for 10 years grows to $1,629.

Sunk costs and marginal decisions

Sunk costs — money already spent and unrecoverable — should not enter opportunity-cost calculations. The decision is always forward-looking: given where you are now, which option has the highest future value? Opportunity cost is the gap between the chosen option's future value and the next-best alternative's future value. Ignoring sunk costs is one of the hardest habits to learn, but it is essential for sound decision-making in business and personal finance.

Seven worked scenarios showing how the verdict depends on the gap between Choice A and Choice B, the time horizon, and the discount rate.
Choice A ($)Choice B ($)T (yr)RateNominal OC ($)Verdict
5,0005,50015%+500Choose B
5,0005,50055%+500Choose B (same nominal, larger PV gap)
5,0004,50015%−500Choose A
8,00012,00015%+4,000Choose B
8,00012,000105%+4,000Choose B (PV gap = +4,000 × 0.6139 = +2,455)
10,00010,00015%0Tie — qualitative factors decide
50,00060,00037%+10,000Choose B (PV gap = +8,163)
Info

Opportunity cost is the foundational lens of microeconomics. Every decision involves comparing the chosen option against the next-best alternative; the gap between the two is the opportunity cost. Internalising this mindset — and recognising implicit, foregone values alongside explicit, out-of-pocket costs — is the single most useful habit in business and personal finance.

Pro tip

Monetise time at your after-tax hourly wage. If you earn $40/hour after tax, a 3-hour meeting carries a $120 opportunity cost even if it has no explicit price tag. This simple rule often reveals that DIY projects, long commutes, and "free" services are not worth it when you could hire help or pay for convenience.

Warning

The sunk-cost fallacy is the single most common opportunity- cost error. Money already spent is gone; only future cash flows should enter the decision. A business that has invested $1M in a failing project should not continue it "because we have already spent $1M" — that $1M is unrecoverable and irrelevant to the forward-looking choice.

Authoritative References

  • Wikipedia — Opportunity cost— wikipedia.org
    Comprehensive overview of opportunity cost, including its microeconomic foundations, the distinction from accounting cost, and applications in business and personal finance.
  • Investopedia — Opportunity Cost— investopedia.com
    Practical explanation of opportunity cost with worked examples for investing, career, and personal-finance decisions.
  • Khan Academy — Production possibilities curve— khanacademy.org
    Video and exercise series on the production possibilities frontier, the canonical visualisation of opportunity cost in introductory economics.
  • Bureau of Economic Analysis (BEA)— bea.gov
    U.S. BEA official statistics on GDP, personal income, and corporate profits — the macroeconomic data underlying opportunity-cost calculations at the national level.

Try our other free calculators

CalcGenius has 1,200+ free, ad-free, browser-based calculators for finance, health, math, science, and everyday life. No sign-up required.

Opportunity Cost Calculator for Managers & Retail Sellers