Where Money Meets Math

Opportunity Cost Simulator

Compare the long-term impact of spending vs. investing that same money.

Educational simulation only. Not financial advice.

The Expense (Method A)
The Investment (Method B)
Investment Potential (Method B) $0
Wealth Lost (Opportunity Cost) $0
Quick Comparison
Total Money Spent $0
Value of Method A $0
Foregone Wealth $0

What is Opportunity Cost?

The invisible cost of every financial decision.

Defining opportunity cost

In economics, opportunity cost is the value of what you give up when you choose one option over another. In personal finance, it usually means the future wealth you forgo by spending money today instead of investing it.

If you spend $30,000 on a new car, the cost isn't just $30,000. Invested at 8% a year for 20 years, that $30,000 could have grown to roughly $148,000. That growth is the price you pay for the car, on top of its sticker price.

How to use this calculator

  • The Expense (Method A): enter what you'd pay up front, any ongoing monthly cost, how many years it lasts, and what the item is still worth at the end (for example, a car's resale value). Use 0 for things that keep no value, like subscriptions or dining out.
  • The Investment (Method B): the yearly return you'd expect if the same money were invested instead.

The calculator invests the up-front amount on day one and each monthly amount as you'd have spent it, then compares the result with what the expense leaves you with. The difference is the wealth lost: your opportunity cost.

Worked examples

A $200/month habit (the default inputs): over 20 years you'd spend $48,000. Invested at 8% instead, that money would grow to about $117,804, so the habit's real cost is well over twice what you paid.

A car bought with cash: you pay $30,000 and sell it for $9,000 after 10 years. Invested at 8%, the $30,000 would have become about $66,589, so the car's true cost is about $57,589, not the $21,000 of depreciation you'd see on paper.

The formula

Invested value = start × (1 + r/12)^(12t) + monthly × [(1 + r/12)^(12t) - 1] / (r/12) Wealth lost = Invested value - value of the item at the end

Here r is the yearly return and t the number of years. The calculator applies this month by month, with the monthly amount invested at the end of each month.

"Invest the difference"

A common mistake is comparing two options only by what they cost, without counting what the savings could grow into. A few examples where this matters:

  • Whole life vs. term insurance: term life insurance is usually far cheaper. People who buy term and invest the difference in a low-cost index fund often end up with more wealth than a whole life policy's cash value, though the right choice depends on your situation.
  • Buying vs. leasing a car: if a reliable used car costs $300 a month less than leasing a new one, investing that $300 for 10 years at 8% would grow to about $54,884 from $36,000 of savings.

The danger of micro-expenses

The "skip your daily coffee" advice is often mocked, but the math behind it is sound. A $5 daily expense (about $150 a month) invested at 8% for 30 years grows to about $223,000. That doesn't mean you should never buy coffee. It means small recurring costs are worth choosing on purpose. The useful question is: is this worth more to me than what it could become?

Assumptions and limitations

  • Constant return: real markets fluctuate. The calculator uses one steady yearly rate.
  • No taxes, fees or inflation: results are in future dollars before taxes. Subtract inflation from the return to see the result in today's purchasing power.
  • Money isn't everything: some expenses, like safe transportation, health or time with family, are worth far more than their opportunity cost. The calculator shows the trade-off; the decision is yours.

Frequently asked questions

Does this mean I should never spend money?

No. The goal is to see the full price of a choice, not to avoid spending. Many purchases are clearly worth it; the calculator helps you spot the ones that aren't.

What return should I use?

Use a return you'd realistically expect from where the money would go: a savings rate for cash, or a long-term average you're comfortable with for a diversified portfolio. Trying a few rates shows how sensitive the result is.

What should I enter as the value at the end?

Whatever you could sell the item for when you're done with it: a car's resale value, for example. For services and experiences, enter 0.