What Is Opportunity Cost?

Opportunity cost represents the financial benefit you forgo when choosing one option over another. In practical terms, if you spend £10,000 on a holiday today, the opportunity cost is the investment returns that £10,000 could have generated over the next five years at a given interest rate.

The concept applies broadly to personal finance decisions. Should you buy a car now or invest that capital? Should you take a sabbatical or stay employed? The calculator specifically measures the opportunity cost of spending money on a non-investment purchase—such as consumer goods or services—compared to investing it at a fixed rate.

Unlike simple interest calculations, this tool accounts for three critical variables that affect real purchasing power:

  • Compound interest: Monthly compounding means earned interest generates its own returns
  • Taxes: Capital gains tax reduces your net investment proceeds
  • Inflation: Rising prices erode the real value of your future savings

The Opportunity Cost Formula

The calculation involves four linked equations that determine how much wealth you sacrifice by spending rather than investing. Each variable depends on earlier results, reflecting the cascading impact of compound growth, taxation, and inflation.

Foregone Investment Earnings = Principal × ((1 + Annual Return ÷ 1200)^(Years × 12)) − Principal

Tax on Capital Gains = Foregone Investment Earnings × (Tax Rate ÷ 100)

Net Investment Gains = Foregone Investment Earnings − Tax on Capital Gains

Total Savings After Tax = Principal + Net Investment Gains

Inflation-Adjusted Opportunity Cost = Total Savings × ((1 − Inflation Rate ÷ 100)^Years)

  • Principal (Unncost) — The amount of money you would spend on a non-investment purchase today
  • Annual Return (Ret) — The yearly interest rate your investment would earn, expressed as a percentage
  • Years — The length of the investment period in whole years
  • Tax Rate (Inctax) — Your marginal income tax rate applied to capital gains as a percentage
  • Inflation Rate (Infl) — The average annual rate at which consumer prices increase, as a percentage

How to Use the Calculator

The calculator requires five core inputs to compute opportunity cost. Gathering accurate figures ensures your results reflect realistic financial outcomes:

  • Spending amount: Enter the exact sum you're considering spending on a consumer purchase or service
  • Expected annual return: Use historical market returns (stocks ~7%, bonds ~4%, savings accounts ~0.5%) or your guaranteed rate if investing in fixed-income instruments
  • Investment period: Specify how many years you would otherwise hold the investment before touching the funds
  • Capital gains tax rate: Check your jurisdiction's rules; UK residents typically face 20% on investment gains above the annual exemption, while US rates vary by income bracket from 0% to 20%
  • Inflation assumption: Use current central bank targets (often 2–3%) or historical averages for your country

Once you input these values, supplementary metrics appear below: your nominal gains before inflation adjustment, tax owed, and the intermediate calculation steps. These breakdowns reveal where your investment returns are consumed by taxes and eroded by rising prices.

Understanding the Results

The calculator presents several output metrics, each answering a different question about your trade-off:

  • Nominal opportunity cost: The raw difference between your invested capital and what it grows to, ignoring taxes and inflation. This is the gross earning potential.
  • Tax burden on gains: The portion of your returns surrendered to capital gains tax. A £1,000 gain with 20% taxation costs £200 in taxes.
  • Inflation-adjusted opportunity cost: The final figure—what your investment would actually be worth in today's purchasing power. This is the most economically meaningful number because it accounts for your money being worth less in the future.
  • Real interest earned: The difference between inflation-adjusted savings and your principal, showing your genuine wealth gain after all reductions

If the inflation-adjusted opportunity cost is negative, spending today made better financial sense than investing under those assumptions.

Key Assumptions and Pitfalls

The calculator rests on several simplifying assumptions that may not match your exact situation.

  1. Monthly compounding may differ from your actual investment — Most savings accounts compound daily, while bonds often pay semi-annual coupons and stocks don't compound at all—you must reinvest dividends manually. If your actual compounding frequency differs significantly, recalculate with an adjusted annual rate to match reality.
  2. Taxes don't always apply at the end of a single lump sum — The model assumes you pay all capital gains tax in year one after the investment period ends. In reality, ongoing accounts trigger annual tax liabilities, and holding periods exceeding one year may qualify for preferential rates. Consult a tax professional for your jurisdiction.
  3. Inflation erodes all money, including the principal — The calculator treats your original spending amount as a fixed baseline, but that £10,000 today buys less next year. The real opportunity cost is not what you could have earned, but what that earning power means in future spending terms.
  4. Opportunity cost ignores non-financial factors — Buying a car today gives you transport now; delaying gratification while investing offers no present benefit beyond future wealth. The calculator cannot weigh utility, quality-of-life impacts, or the possibility that prices might fall, making patience unrewarded.

Frequently Asked Questions

How does compound interest affect opportunity cost?

Compound interest dramatically increases opportunity cost over longer periods because your investment earnings generate their own returns. For example, £5,000 at 5% annual return grows to £6,381 in five years with monthly compounding, not £5,000 plus simple interest of £1,250. The longer your investment period, the more powerful this effect becomes, making the decision to spend today costlier in wealth terms.

Why does inflation reduce my opportunity cost calculation?

Inflation erodes the purchasing power of money. If you invest £10,000 and it grows to £11,000 after five years, but inflation averaged 3% annually, that final £11,000 buys roughly what £9,500 would have bought five years earlier. The inflation-adjusted opportunity cost reflects what you actually gave up in terms of real goods and services you could purchase, not just nominal currency amounts.

What tax rate should I use for capital gains?

Capital gains tax rates vary significantly by country and individual circumstances. In the UK, basic-rate taxpayers pay 10% on gains above £3,000, while higher-rate taxpayers pay 20%. In the US, long-term capital gains range from 0% to 20% depending on income. Some investments (ISAs in the UK, 401(k)s in the US) are tax-sheltered. Check your local tax authority's rules and consider consulting an accountant if your situation is complex.

Can opportunity cost be negative?

Yes. If inflation exceeds your investment return, or if taxes consume most gains, your inflation-adjusted opportunity cost can be negative. This means that in real terms, your money would have bought more goods and services if spent today rather than invested. This scenario often occurs with low-return savings accounts in high-inflation environments, making immediate spending financially rational.

Should I use the nominal or inflation-adjusted opportunity cost for decisions?

Always use the inflation-adjusted figure for real-world spending decisions. The nominal opportunity cost tells you how much money you earned, but the inflation-adjusted version shows how much additional purchasing power that represents. If adjusted opportunity cost is £500, you're genuinely £500 richer in future buying power; if nominal is £800 but adjusted is £300, inflation claimed most of your gains.

How does this calculator differ from a standard compound interest calculator?

A standard compound interest calculator shows what your investment grows to. This opportunity cost calculator instead answers: 'What am I giving up by spending instead of investing?' It inverts the perspective, subtracts taxes, adjusts for inflation, and frames the result as a cost—the wealth foregone by choosing consumption over capital preservation.

More finance calculators (see all)