Skip to content
MoneyDeck

Opportunity Cost Calculator

See what a purchase or habit would be worth if you invested the money

Updated · Free, no signup

$
$
%

Long-run stock index averages are often assumed at 6–8% before inflation.

yrs
%

Value if invested instead

$72,286.36

Total money spent

$29,000.00

Growth you give up

$43,286.36

Value in today’s dollars

$40,023.21

Future value deflated by the inflation rate.

Money multiple

2.49 ×

  • Spending $29,000 over 20 years costs you $72,286 in future wealth — $40,023 in today’s money.
  • The $100.00/month habit alone would grow to $52,093.
  • At 7% a year, money roughly doubles every 10.2 years.

Money spent vs what it could have become

About the Opportunity Cost Calculator

This opportunity cost calculator shows the hidden price of spending money today: what that same money could have grown to if you had invested it instead. Enter a one-time purchase (a car upgrade, a vacation, a new phone), a recurring monthly expense (a subscription, takeout habit, bigger rent), or both, then choose an expected return and a time horizon.

The result is the future value you give up, how much of it is investment growth rather than the money you actually spent, and the same figure in today’s dollars after inflation — which is the fairest way to judge whether a purchase is worth it. The chart tracks the money spent against the investment value year by year.

It is not an argument against ever spending. Opportunity cost is a way to compare choices on equal terms, so you can spend confidently on what matters and cut what does not. Returns are assumed constant and compounded monthly; real markets move up and down, so treat results as illustrations, not promises.

With the default inputs, the value if invested instead is $72,286.36. Change any value above to recalculate instantly.

How to use the opportunity cost calculator

  1. 1Enter a one-time purchase you are considering, or 0 if there is none.
  2. 2Add any recurring monthly cost, such as a subscription or habit.
  3. 3Choose an expected annual return and how many years to compare over.
  4. 4Set an inflation rate to see the result in today’s dollars.
  5. 5Weigh the value you give up against how much the purchase matters to you.

Formula and method

FV = P(1 + i)^N + C × ((1 + i)^N − 1) ÷ i; Real value = FV ÷ (1 + π)^Y

The calculator assumes the one-time purchase P would have been invested today and each monthly expense C invested at the end of each month. Growth compounds monthly at i = annual return ÷ 12 for N = years × 12 months, which is the standard future value of a lump sum plus an ordinary annuity.

Because a dollar in 20 years buys less than a dollar today, the future value is also divided by (1 + inflation) raised to the number of years to express it in today’s purchasing power. The money multiple is the future value divided by the total amount spent.

P
One-time purchase amount
C
Recurring monthly expense
i
Monthly return (annual rate ÷ 12)
N
Number of months (years × 12)
π
Annual inflation rate

Worked examples

$5,000 purchase plus $100 a month over 20 years

Investing $5,000 now and $100 a month at 7% for 20 years grows to about $72,286. You would have spent $29,000, so over $43,000 is lost growth. In today’s dollars, with 3% inflation, that is about $40,023.

Buying a $40,000 car instead of investing

$40,000 invested at 8% compounded monthly for 10 years grows to about $88,786. The opportunity cost of the car is therefore almost $48,800 of growth, or around $66,000 in today’s money.

$150 a month of takeout for 25 years

$150 a month is $45,000 over 25 years. Invested at 6% it would grow to roughly $103,949 — 2.3 times what you spent.

Frequently asked questions

What is opportunity cost in personal finance?+

Opportunity cost is the value of the best alternative you give up when you make a choice. When you spend money, the alternative is usually saving or investing it, so the opportunity cost is what that money could have grown to.

What rate of return should I use?+

Use a rate that matches what you would realistically do with the money: a high-yield savings rate if you would save it, or a conservative long-term stock-market assumption such as 5–7% if you would invest it. Using a lower rate gives a more cautious answer.

Why show the value in today’s dollars?+

Inflation erodes purchasing power, so a large future number can overstate the real trade-off. Converting to today’s dollars lets you compare the future value directly with the price you are paying now.

Does opportunity cost mean I should never spend money?+

No. Money is for living, and some purchases save time, improve health or earn money. The goal is to spend deliberately on the things you value most and to see the full price of the ones you do not.

Is the result guaranteed?+

No. The calculation assumes a steady return every year. Real investments fluctuate, can lose value and have fees and taxes, so the actual outcome could be higher or lower.

Results are estimates for educational purposes and are not financial advice. Rates, fees and terms vary — confirm with your lender or a licensed advisor before making decisions.

Related tools