Opportunity Cost Calculator
Every choice spends more than money — it spends the path you did not take. Compare two investments, pay-debt-vs-invest, a big purchase, or a career fork, and see the forgone wealth between them with a worked formula and real examples. Free, no signup.
Asset-class returns are historical long-run averages (Ibbotson SBBI, NYU Stern/Damodaran, NAREIT) and are not guarantees.
Historical long-run averages (Ibbotson SBBI, NYU Stern/Damodaran, NAREIT, Shiller). Past performance is not a guarantee; figures assume reinvested dividends, pre-tax and pre-fee.
What Opportunity Cost Actually Measures
Resources are finite, so every yes is also a no. Spend an hour, a dollar, or a year on one thing and you forfeit whatever the next-best use of it would have produced. That forfeited value is the opportunity cost — in economics it is the single most important idea for comparing choices, because the visible price of a decision almost never captures its full cost.
Money makes this vivid because it compounds. Cash left in a checking account is not "free" to hold; it quietly gives up the return it could have earned elsewhere. The calculator above turns that abstract idea into a dollar figure for whatever decision you are weighing, so the trade-off stops being a feeling and becomes a number you can act on.
The Opportunity Cost Formula Explained
At its simplest, the relationship is one subtraction: opportunity cost = return of the best alternative − return of the chosen option. For decisions about money over time, each side compounds, so the working formula becomes amount × (1 + rB)t − amount × (1 + rA)t, where rA is your chosen rate, rB the alternative, and t the number of years.
The compounding matters because the gap is not the difference in rates — it is the difference in ending balances, and that difference grows exponentially. A two-point edge in annual return looks trivial in year one and enormous in year thirty. The custom-formula mode strips everything else away so students can watch the two terms diverge and see exactly where the opportunity cost comes from.
Opportunity Cost Examples (With Real Numbers)
Numbers make the idea land. Park $10,000 in a high-yield savings account at 4.5% for 30 years and it grows to $37,453. Put the same $10,000 into an S&P 500 index returning 10% and it grows to $174,494. The opportunity cost of choosing savings is $137,041 — the $10,000 was never "lost," it simply grew $137,041 less than it could have.
Purchases work the same way. A $40,000 car invested instead at 7% becomes roughly $304,000 over 30 years, so the car's true cost is its forgone growth, not its price tag. A $10,000 engagement ring carries about $76,000 of forgone wealth on the same math, and a $35,000 wedding around $266,000. None of this argues against buying the car or the ring — it just prices the trade-off honestly so the choice is made with eyes open.
The forgone-wealth presets in the tool run these instantly, and the asset-class reference lets you swap the 7% assumption for cash, bonds, small-cap, or REIT averages to see how the comparison shifts.
Implicit vs Explicit Opportunity Cost
Two flavors of cost hide inside most decisions. Explicit costs are the out-of-pocket payments you can point to — tuition, a purchase price, interest charged on a loan. Implicit costs are the things you give up that never appear as a transaction: the salary you skip while in school, the return you forgo by holding cash, the side income lost to a longer commute.
A graduate degree shows both at once. The explicit cost might be $120,000–$180,000 in tuition, while the implicit cost is the $300,000–$400,000 of salary you do not earn during two years out of the workforce. A calculator that counts only the tuition understates the decision by more than half. Weighing both is what separates a real cost-benefit analysis from a sticker-price one.
How to Calculate Opportunity Cost Step by Step
Start by naming the two options clearly — the path you are leaning toward and the best alternative you would otherwise take. Vague comparisons produce vague answers, so be specific: "keep $25,000 in savings" versus "buy a broad index fund," not "save versus invest." Then attach an expected annual return to each, using historical long-run averages if you have nothing better.
Next, fix the time horizon and compound each option forward with amount × (1 + r)t. Subtract the smaller ending balance from the larger, and that difference is your opportunity cost. Finally, sanity-check it against inflation: a six-figure gap thirty years out is worth far less in today's dollars, which the real-value toggle makes explicit. The five steps map one-to-one onto the inputs in the tool above.
Opportunity Cost in Personal Finance Decisions
The biggest money questions are opportunity-cost questions in disguise. Paying off a mortgage early earns a guaranteed return equal to your after-tax rate; investing the same cash earns an expected return that carries risk. The honest comparison is the spread between them, and the break-even is simply your effective debt rate — if the market cannot reliably clear it, the guaranteed payoff is the better opportunity.
The same lens reframes buying a house, prepaying student loans, and choosing a degree. Each ties up capital that could compound elsewhere, so the right question is never "can I afford this?" but "what does this cost me in forgone growth, and is the thing I get worth that?" The debt-vs-invest and purchase modes price these directly; for the deepest version of the mortgage question, the Pay Off Mortgage or Invest Calculator adds risk-adjusted scoring.
Opportunity Cost of Your Time
Time is the one budget no one can top up, which makes its opportunity cost the most personal of all. Convert your pay into an hourly figure — total annual compensation divided by the hours you actually work — and suddenly low-value activities carry a price. At $60 an hour, a daily 45-minute commute runs about $11,700 a year in forgone earning capacity, before counting the toll on energy and focus.
That framing changes decisions about delegation, automation, and which meetings deserve your calendar. The Career / Time mode above turns your salary into an hourly opportunity cost, and the Meeting Cost Calculator extends it to recurring meetings and the hidden cost of context switching across a team.
Frequently Asked Questions
What is the opportunity cost formula?
Opportunity cost = return of the best alternative − return of the chosen path. For money over time it becomes a compounding gap: amount × (1 + rB)^t − amount × (1 + rA)^t, where rA is your chosen rate and rB the alternative. Put $10,000 in a 4.5% savings account for 30 years and it grows to $37,453; the same $10,000 at a 10% S&P 500 return grows to $174,494. The opportunity cost of choosing savings is $137,041 — the formula is the difference between the two ending balances, not the difference in rates alone.
What is a real opportunity cost example?
A $40,000 car bought with cash is the classic example. Invested at a 7% return instead, that $40,000 becomes about $304,000 over 30 years — so the opportunity cost of the car is roughly $304,000 in forgone wealth, far more than the sticker price. A $10,000 engagement ring carries about $76,000 of opportunity cost on the same math, and a $35,000 wedding around $266,000. The point of an opportunity cost example is that the real cost of spending is what the money would have become, not what it cost today.
What is the difference between implicit and explicit opportunity cost?
Explicit opportunity cost is a direct cash outlay you can see on a receipt — tuition, the price of a car, interest paid on a loan. Implicit opportunity cost is the value of something given up that never shows as a payment, such as the wages you forgo while studying full-time or the investment return you miss by holding cash. An MBA shows both: roughly $180,000 of explicit tuition plus $300,000–$400,000 of implicit forgone salary over two years. Economists count both when measuring the true cost of a choice.
What is the difference between opportunity cost and sunk cost?
A sunk cost is money already spent that cannot be recovered, so it should not influence a forward-looking decision. Opportunity cost is forward-looking — the value of the best alternative you give up by choosing one path now. If you paid $2,000 for a non-refundable course you no longer want, that $2,000 is sunk; the opportunity cost is whatever you could do with the next hour you would spend on it. Good decisions ignore sunk costs and weigh opportunity costs.
Should I pay off my mortgage early or invest the money?
Paying off debt earns a guaranteed return equal to your after-tax interest rate, while investing earns an expected return that carries market risk. Run it in the debt-vs-invest mode above: on a $300,000 balance at a 4% rate against a 7% expected return over 30 years, investing wins on raw dollars, but the gap narrows once you treat the 4% payoff as risk-free. The break-even is simply your effective debt rate — if your expected return cannot clear it after risk, paying down the debt is the better opportunity. For the full risk-adjusted version, use the Pay Off Mortgage or Invest Calculator.
What is the opportunity cost of a big purchase like a car?
Take the purchase price, grow it at a realistic long-run return, and subtract any resale value. A $40,000 car with no resale value at a 7% return over 30 years has an opportunity cost near $304,000. Shorten the horizon to 10 years and it drops to about $39,000 of forgone growth; stretch it to 40 years and it climbs past $560,000. The horizon matters more than most people expect because compounding is exponential, which is why the same purchase looks cheap at 5 years and staggering at 40.
What is the opportunity cost of my time?
Divide your total annual compensation by the hours you actually work to get an hourly figure, then multiply by the hours an activity consumes. Someone earning $120,000 across 2,000 working hours is worth about $60 an hour, so a daily 45-minute commute — roughly 195 hours a year — carries an opportunity cost near $11,700 in forgone earning capacity. The Time / Career mode above models this, and the Meeting Cost Calculator extends it to recurring meetings and calendar time.
How does inflation change opportunity cost?
Nominal opportunity cost uses raw dollars; real opportunity cost discounts those future dollars back to today's purchasing power using the Fisher relationship, dividing by (1 + inflation)^years. A $137,041 nominal gap over 30 years at 3% inflation is worth about $56,000 in today's money. The "show real value" toggle on the chart switches between the two. Real figures are the honest way to compare a decision whose payoff is decades away, because a dollar in 2056 buys far less than a dollar now.