Calculator
Opportunity cost calculator
Every recurring expense has a hidden price: the future value of the money if it had been invested instead. This calculator shows what that habit truly costs over time.
Opportunity cost after 20 years
$240,695
$311,188 in today’s money at 2.0% inflation
- Total spent
- $221,713
- If invested instead
- $462,409
- Foregone growth
- $240,695
- In today’s money
- $311,188
Assumes the recurring amount is invested at the end of each period. Expense amount is stepped up once per year by the annual increase rate.
| Year | Spent | If invested | Opportunity cost |
|---|---|---|---|
| 4 | $37,610 | $43,323 | $5,713 |
| 8 | $78,320 | $104,215 | $25,895 |
| 12 | $122,385 | $188,646 | $66,260 |
| 16 | $170,083 | $304,540 | $134,457 |
| 20 | $221,713 | $462,409 | $240,695 |
What is opportunity cost in personal finance?
Opportunity cost is the trade-off hidden inside every spending decision. When you spend $25 a day on a habit, that $25 cannot also be invested. The opportunity cost is not just the $25 — it is the growth that $25 would have produced if it had been earning a return.
This calculator treats each expense payment as a forgone contribution to an investment. The result is the total amount spent plus the compound growth you gave up by spending it instead.
Opportunity cost formula
Opportunity Cost = Future value of forgone investment − Total amount spent
The future value of the forgone investment is calculated the same way as a future value annuity: each payment is compounded at the chosen rate until the end of the time horizon. If the expense amount rises each year, the calculator steps up the payment once per year.
Real-world examples
Daily coffee at $5
$5 a day, five days a week, is about $1,300 a year. Invested at 7% for 30 years, that cash flow grows to roughly $132,000. The total spent is only $39,000 — the remaining $93,000 is foregone growth.
Streaming subscriptions at $40 a month
$40 a month for 10 years is $4,800 in payments. If invested instead at 7%, it becomes about $6,900. The opportunity cost is roughly $2,100 of missed growth.
A car upgrade instead of investing
Choosing a $40,000 car over a $25,000 car means $15,000 leaves your portfolio. Over 20 years at 7%, that $15,000 could grow to about $58,000. The upgrade’s opportunity cost is the $43,000 of growth you gave up.
How to reduce opportunity cost
- Delay or reduce the expense. A smaller recurring amount leaves more to invest without eliminating the habit entirely.
- Redirect one expense at a time. Cutting five subscriptions at once is hard; redirecting one is sustainable.
- Automate the investment. Send the saved amount straight to an investment account so it compounds by default.
- Review annually. Prices rise and subscriptions multiply. A yearly audit keeps opportunity costs from drifting upward.
Opportunity cost vs. future value
Future value tells you what an investment becomes. Opportunity cost tells you what a spending choice gives up. They are two sides of the same compound-interest coin. Use the future value calculator to model the growth side, and this calculator to model the spending side.
Frequently asked questions
What is opportunity cost?
Opportunity cost is the value of the next-best alternative you give up when you make a choice. In personal finance, spending money on one thing means that money cannot be saved or invested, so the opportunity cost includes the future growth you miss.
How do you calculate opportunity cost?
For a recurring expense, the simplest version is: Opportunity Cost = Future value of the forgone investment - Total amount spent. This calculator models the forgone investment as if each expense payment had been deposited into an investment account instead.
What is opportunity cost in economics?
In economics, opportunity cost is the benefit sacrificed when selecting one option over another. It applies to time, money and resources. A classic example is choosing to produce guns instead of butter: the opportunity cost of more guns is the butter society no longer produces.
How do you calculate opportunity cost from a table?
Look at the two alternatives side by side. Subtract the value of the chosen option from the value of the forgone option. If a table shows production possibilities, moving from one row to the next reveals the trade-off in units given up per unit gained.
How do you calculate opportunity cost on a graph?
On a production possibilities frontier (PPF), opportunity cost is the slope of the curve between two points. A steeper slope means giving up more of one good to get another. Move along the curve and read the change on each axis to find the ratio.
Is opportunity cost the same as sunk cost?
No. Sunk cost is money already spent and cannot be recovered. Opportunity cost is forward-looking: it is what you could gain from a different use of resources you still control. Good decisions ignore sunk costs and weigh opportunity costs.