Opportunity Cost Calculator

Enter a purchase price, your expected rate of return, and a time horizon to see what that money could grow into if invested instead. The Opportunity Cost Calculator shows you the future value of your investment, total interest earned, and the real cost after accounting for income taxes and inflation — helping you make smarter spending decisions.

The amount of money you are considering spending.

%

Average annual return if invested (e.g. S&P 500 ~10% historically).

years

Number of years the money would remain invested.

%

Your marginal income tax rate applied to investment gains.

%

Expected average annual inflation rate over the period.

Results

Future Value of Investment

--

Total Investment Gains

--

Taxes on Gains

--

Net Gains After Taxes

--

Future Value After Taxes

--

Future Value After Taxes & Inflation

--

Investment Breakdown

Results Table

Frequently Asked Questions

What is opportunity cost?

Opportunity cost is the value of the next best alternative you give up when making a decision. In financial terms, when you spend money on a purchase instead of investing it, the opportunity cost is the investment return you forgo over time.

What is the opportunity cost formula?

The basic opportunity cost formula is: Opportunity Cost = Future Value of Investment − Purchase Price. The future value is calculated as FV = P × (1 + r)^n, where P is the principal (purchase price), r is the annual rate of return, and n is the number of years.

How does this calculator account for taxes?

The calculator applies your income tax rate to the investment gains (not the principal). So if you earn $5,000 in gains and your tax rate is 25%, you'd owe $1,250 in taxes, leaving you with $3,750 in net gains. The after-tax future value is your original principal plus those net gains.

Why does inflation matter in opportunity cost calculations?

Inflation erodes the purchasing power of money over time. Even if your investment grows nominally, the real value of that money in today's dollars will be lower. This calculator adjusts the after-tax future value by the cumulative inflation rate to show you the true real-terms gain.

What rate of return should I use?

It depends on where you would invest the money. The S&P 500 has averaged approximately 10% per year since its inception in 1926. A more conservative estimate for a diversified portfolio might be 6–8%. Use a rate that reflects your realistic investment strategy.

How can opportunity cost help with everyday financial decisions?

Thinking about opportunity cost encourages you to consider what you give up with every spending decision — whether it's a daily coffee habit, a new car, or a vacation. Even small recurring expenses can compound into significant sums over a decade or more when you factor in potential investment returns.

Does opportunity cost only apply to money?

No — opportunity cost applies to any resource including time, energy, and attention. However, in financial planning it most commonly refers to the foregone return on capital. This calculator focuses specifically on the monetary opportunity cost of spending versus investing.

What assumptions does this calculator make?

This calculator assumes a fixed annual rate of return compounded yearly, a constant income tax rate applied to gains at the end of the period, and a steady annual inflation rate. Real-world returns fluctuate, and tax treatment of investments may vary based on account type (e.g. tax-advantaged accounts like 401(k) or IRA).

More Finance Tools