Opportunity Cost Calculator
Discover the true cost of spending decisions by calculating what your money could grow to if invested instead.
About this calculator
This is the calculator behind the famous "latte factor" argument — it takes a small, recurring purchase and asks what that same money would be worth years from now if it were invested instead of spent. It first annualizes your spending (amount × frequency), then treats that annual total as a recurring contribution into the future-value-of-an-annuity formula — PMT × [((1+r)^n − 1) / r] — to project what steadily investing that money at your entered return rate would grow into over your chosen time horizon. Opportunity cost is simply the gap between that invested projection and the raw total you'd actually spend; the calculator also expresses the same idea per-purchase, computing a "true cost multiplier" (1 + r)^years that shows what a single instance of the purchase really costs once you account for the growth it forgoes — a $5 coffee bought today at an 8% assumed return over 30 years has a true cost many multiples of $5, not because the coffee gets more expensive, but because that $5 could have compounded for three decades.
It also converts the annual spending into hours of work at your entered hourly wage, framing the habit in time rather than dollars. The core assumption worth flagging is that the return rate is treated as constant and guaranteed every year, which real investments never are — this is a best-case, no-volatility comparison. It's also a one-directional argument: it never weighs the value, convenience, or happiness the spending itself provides, so use it to inform trade-offs, not to moralize every purchase.
Financial Disclaimer
This calculator is for educational purposes only and does not constitute financial advice. Results are estimates based on the inputs provided. Consult a qualified financial advisor before making investment or financial planning decisions.
Inputs
Results
If Invested Instead ($)
$147,268.17
≈ 10 used cars
How to Use This Calculator
- Enter the cost of a single purchase you want to evaluate (e.g., $5 for a daily coffee).
- Set how many times per year you make this purchase (260 for weekdays, 365 for daily).
- Enter the annual return you could earn if that money were invested instead.
- Set your time horizon in years and your hourly wage.
- Review the future value if invested, total spent, opportunity cost, and how many hours per year you work to fund this habit.
How the result changes with Time Horizon (years)
| Time Horizon (years) | If Invested Instead ($) |
|---|---|
| 15 | $35,297.75 |
| 23 | $79,161.28 |
| 45 | $502,457.30 |
| 75 | $5,203,323.61 |
What each input means
- Spending Amount ($)
- Cost of a single purchase (e.g., $5 daily coffee).
- Times Per Year
- How often you make this purchase per year (260 = weekdays, 365 = daily, 52 = weekly).
- Annual Return if Invested (%)
- Expected annual return if the money were invested instead.
- Time Horizon (years)
- Number of years to project the opportunity cost.
- Your Hourly Wage ($)
- Your hourly wage to calculate work-hours equivalent.
What each result means
- If Invested Instead ($)
- What you'd have if you invested this spending amount instead, with compound growth.
- Total Spent ($)
- Total amount you'll spend on this item over the time period.
- Opportunity Cost ($)
- The growth you forgo — difference between invested value and total spent.
- Annual Spending ($)
- How much this habit costs per year.
- True Cost Per Purchase ($)
- What each purchase really costs in future dollars after compound growth.
- True Cost Multiplier
- Each dollar spent today truly costs this many future dollars.
- Work Hours Per Year
- Hours of work needed annually to fund this spending habit.
- Daily Cost ($)
- Equivalent daily spending for this habit.
How this is calculated
Worked example, using the default values
- Identify Input Parameters4 parametersSpending Amount ($) = 5, Times Per Year = 260, Annual Return if Invested (%) = 8, Time Horizon (years) = 30 = 5 input(s) provided
- Calculate If Invested InsteadIf Invested Instead147268.17 = $147,268.17
- Calculate Total SpentTotal Spent = annualSpending * years39000 = $39,000
- Calculate Opportunity CostOpportunity Cost = futureValueIfInvested - totalSpentOverPeriod108268.17 = $108,268.17
Engine last updated . Checked against 1 independently-derived test — how we verify calculators. Built by Paul Gunder, a software engineer, not a licensed financial, medical, or legal professional.
Frequently Asked Questions
Why does a $5 coffee have a 'true cost' of much more than $5?
The true cost multiplier is (1 + annual return)^years — at the default 8% return over 30 years, that factor is roughly 10x. The calculator applies it to a single instance of your spending amount, not because the coffee itself gets more expensive, but because that same $5 could have compounded for three decades if invested instead. It's the future value forgone by that one purchase, not a prediction about future coffee prices.
How is 'Opportunity Cost' different from 'Total Spent'?
Total Spent is just annual spending (spendingAmount × frequency) multiplied by the number of years — the raw cash that leaves your pocket with no growth assumption. Opportunity Cost is the future-value-of-an-annuity projection of that same annual spending stream minus that raw total, so it isolates just the growth you'd have missed out on, not the money itself.
Why does the calculator use the future-value-of-an-annuity formula instead of a simple compound interest formula?
Because your recurring purchase happens every year (or more often) throughout the whole time horizon, not as a single lump sum on day one. The annuity formula, PMT × [((1+r)^n − 1) / r], accounts for the fact that each year's annualized spending amount would have had a different number of years to compound if invested — money not spent in year one compounds far longer than money not spent in year 29.
Does this calculator ever account for the value or enjoyment the spending provides?
No — it only measures the one-directional financial trade-off between spending now and investing instead, assuming a constant, guaranteed return with no volatility. It doesn't weigh convenience, happiness, or the fact that real markets never deliver a perfectly steady rate every year, so it's best used to inform a trade-off decision rather than as a verdict on whether a purchase was worth it.
Related Calculators
The questions that sit next to this one — chosen by subject, including calculators filed under a different category.
Impulse Purchase Impact Calculator
See the long-term investment opportunity cost of impulse spending. Discover what your weekly splurges could grow to if invested instead.
Financial LiteracyEffective Tax Rate Calculator
Calculate your true total tax burden across federal, state, FICA, property, and sales taxes. See your real take-home rate.
Financial LiteracyTime Value of Money Calculator
Calculate future value, present value, and payment amounts using core TVM formulas. Understand why a dollar today is worth more than a dollar tomorrow.
Financial LiteracyMarginal Tax Rate Calculator
Calculate your marginal and effective federal tax rates using 2026 US tax brackets. See how progressive taxation works.
Debt PsychologyFinancial Detox Calculator
No-spend challenge savings from target duration.
More in Budgeting & Personal Finance.