Build your retirement plan for free.Explore Plan Builder →

Opportunity Cost Calculator for Investments

Enter your investment amount, holding period, and expected returns for two options to calculate the opportunity cost of choosing one investment over another, with year-by-year growth comparison.
Luis GonzalezCreated by Luis GonzalezLast updated:

How to Use This Calculator

  1. 1

    Enter the Investment Amount and Holding Period

    Use the same starting amount and number of years for both alternatives.

  2. 2

    Name each option and enter its Annual Return Rate

    Enter expected annual rates as percentages. The calculator compounds each return annually and assumes the rates stay constant.

  3. 3

    Compare the final values and schedule

    Review the difference between the two projected balances, the annual rate gap, and the year-by-year comparison.

Example Calculation

An investor compares $50,000 in Bonds at an assumed 6% annual return with Stocks at an assumed 9% annual return over 15 years.

Investment Amount ($)

50,000

Holding Period (years)

15

Name (Investment A)

Bonds

Annual Return Rate (%) (Investment A)

6

Name (Investment B)

Stocks

Annual Return Rate (%) (Investment B)

9

Results

Opportunity Cost

$62,296.21

Opportunity Cost %

124.6%

Bonds Final Value

$119,827.91

Stocks Final Value

$182,124.12

Better Choice

9% return

Rate Difference

3.00% per year

Tips

A 3-percentage-point return gap grows to a $62,296.21 value difference

Change the Holding Period from 15 years to 10 years to see how a shorter investment horizon changes the gap between the two assumed annual returns.

Test a smaller return spread before treating the projection as a forecast

Keep the amount and holding period fixed, then change the Stocks rate from 9% to 7%. Compare the resulting final values; the calculator assumes a steady annual return and does not model volatility.

The result changes direction if Investment A has the higher return

Enter a higher Annual Return Rate for Bonds than for Stocks. The calculator identifies the option with the larger projected ending value, while the opportunity-cost amount shows the absolute gap.

What this calculator estimates

Investment opportunity cost is the difference between the projected ending values of two investment choices using the same starting amount and holding period. The result shows the value gap under the annual return assumptions you enter, not a guaranteed loss or a risk-adjusted recommendation.

The calculation assumes each return compounds annually at a constant rate. It excludes taxes, fees, inflation, withdrawals, and changes in investment risk.

How the calculation works

Final value = Investment amount × (1 + annual return rate)^holding period
Opportunity cost = |Final value B − Final value A|
Opportunity cost percentage = (Opportunity cost ÷ Investment amount) × 100

The annual return rate is entered as a percentage and converted to a decimal for the formula. The holding period is the number of years. The calculator reports the absolute difference, so its Better Choice result identifies which option has the higher projected value.

For the example, Bonds grow to $50,000 × (1 + 0.06)^15 = $119,827.91. Stocks grow to $50,000 × (1 + 0.09)^15 = $182,124.12. The difference is $182,124.12 − $119,827.91 = $62,296.21, or ($62,296.21 ÷ $50,000) × 100 = 124.6% of the initial amount.

Why the time horizon matters

Compounding makes a return gap more consequential over longer periods. These comparisons use the same $50,000 starting amount and the same 6% and 9% annual assumptions, but change the holding period:

Holding period 6% final value 9% final value Difference
5 years $66,911.28 $76,932.45 $10,021.17
10 years $89,542.38 $118,367.98 $28,825.60
15 years $119,827.91 $182,124.12 $62,296.21

These are mathematical projections, not forecasts of market performance. A higher expected return usually comes with different risks, and a constant-rate calculation hides the path an investment might take to reach its ending value.

How to use the comparison when choosing

Treat the output as a starting point for due diligence. Before choosing an investment, compare its risk, fees, access to your money, tax treatment, and fit with your time horizon. The SEC's Investor.gov resources and FINRA's diversification guide can help you consider factors that a fixed-return projection leaves out.

Use the opportunity cost of capital calculator when evaluating a required return for a business or project rather than two personal investment choices. For other tradeoffs, compare the opportunity cost of saving calculator or the opportunity cost of education calculator.

When to use a different calculator

Frequently Asked Questions

What is investment opportunity cost?

Investment opportunity cost is the projected value you give up by choosing the lower-return alternative instead of the higher-return one. This calculator compares two investments with the same starting amount and holding period.

How is investment opportunity cost calculated?

1. Compound the starting amount at each option's annual return for the holding period. 2. Subtract the lower final value from the higher final value. 3. Divide that difference by the starting amount and multiply by 100 for the percentage. The result depends on the assumed return rates.

Does the higher projected return mean an investment is the better choice?

Not by itself. The calculator compares assumed returns but does not account for risk, fees, taxes, liquidity, or whether either return estimate is realistic. The SEC's Investor.gov introduction to investing explains investment basics and risks to consider before choosing.

Does this calculator account for investment risk?

No. It applies a fixed annual return to each option, so it does not model fluctuations, losses, or uncertainty. Compare risk and diversification as well as projected value; FINRA's guide to asset allocation and diversification explains how investments can be spread across assets.

Are the results adjusted for inflation or taxes?

No. The projections are nominal and before taxes, fees, and inflation. An investment with a higher ending balance can still have a lower after-tax or inflation-adjusted result; use an [after-tax investment return calculator](/calculators/after-tax-investment-return-calculator/) for a tax-focused comparison.