Opportunity Cost Calculator
Spending $1,200 today instead of investing it at 6 percent for 20 years gives up about $3,848.56 of future value, or $2,130.86 in today's dollars. That forgone growth is the opportunity cost: the worth of the next best choice, not the sum of every option you passed on.
Type in what a choice costs in dollars and hours, and see the future value you gave up by not putting that money to its next best use.
Key takeaways
- Opportunity cost is the value of the next best alternative, not the sum of every option you passed on
- $1,200 spent instead of invested at 6 percent for 20 years gives up $3,848.56 of future value
- Discounted at 3 percent inflation, that same future sum is worth $2,130.86 in today's dollars
- Time counts too: 3 hours at $28 an hour adds $84 to the cost of a choice
- Sunk costs stay out of the math, because no future decision can bring them back
On this page
Opportunity cost is the next best choice, not all of them
Opportunity cost is the value of the one best thing you gave up when you picked something else. It is not the sum of every option you did not take. If you had a free evening and could have worked a shift, studied, or watched a game, and you watched the game, the opportunity cost is the value of whichever of the other two you would have picked first. The third option never enters the math.
That single-best-alternative rule is where most people go wrong. Listing five things you could have bought with $500 and adding them up produces a number no economist would accept, because you were never going to do all five. You were going to do one, so the comparison is your pick against the runner-up.
It helps to separate opportunity cost from two ideas it gets confused with. Accounting cost is what shows up on the receipt: $38 for a tank of gas. Sunk cost is money already gone that no future decision can bring back, like a nonrefundable concert ticket. The ticket price is sunk, but the four hours you would spend at the show still have an opportunity cost if you would otherwise be earning money. Economists count only what is still on the table when you decide.
The formula behind the calculator
For money, the cleanest way to price a choice is to ask what the cash would have earned. The future value of a sum left to compound is:
FV = P x (1 + r)^n, where P is the amount, r is the yearly return as a decimal, and n is the number of years. Investor.gov, the SEC's education site, defines compound interest as interest paid on principal and on accumulated interest, which is exactly the growth a spent dollar never captures.
Their own example uses $100 at 5 percent: it becomes $105.00 after one year and $110.25 after two, because the second year pays interest on the first year's interest.
Now price a real purchase. A $1,200 trip, if invested at 6 percent for 20 years, comes to $1,200 x 3.207135 = $3,848.56. The trip itself cost $1,200. The growth you gave up along the way was $3,848.56 - $1,200 = $2,648.56. That is the part receipts never show, and it is the number this calculator puts in front of you.
The rate has to be honest. A high-yield savings account, a bond ladder and a stock index fund do not return the same thing, and none of them return a fixed number every year. Pick a rate you could reasonably expect, and treat the result as an estimate, not a prediction.
Turning a future sum into today's dollars
$3,848.56 in 20 years is not worth $3,848.56 today, because prices rise. The Bureau of Labor Statistics tracks that with the Consumer Price Index. Its CPI-U series shows an annual average of 258.811 for 2020 and 313.689 for 2024, so 313.689 / 258.811 = 1.21204: what cost $1,000 in 2020 cost about $1,212.04 in 2024 dollars. BLS publishes the CPI tables you need to check any other pair of years.
To state a future value in today's dollars, divide it by (1 + i)^n, where i is the inflation rate you expect. If prices climb 3 percent a year, prices are 1.806111 times higher after 20 years, so the trip's forgone fortune is worth $3,848.56 / 1.806111 = $2,130.86 in today's dollars.
The calculator shows both figures because they answer different questions. The nominal future value is what the account statement would have read. The discounted figure is what that reading would feel like in the money you earn today.
| Line | Amount | What it means |
|---|---|---|
| Paid today | $1,200.00 | The receipt price |
| Nominal future value | $3,848.56 | Account balance given up after 20 years at 6 percent |
| Growth given up | $2,648.56 | Future value minus the principal |
| Value in today's dollars | $2,130.86 | Future value discounted at 3 percent inflation |
Notice the discounted number is still larger than the price tag. Even after inflation, the choice to spend rather than invest cost more than the receipt shows.
Your time has a price too
Money is only half the ledger. A choice that takes hours has an opportunity cost measured in those hours, valued at what an hour of your time is worth. A common starting point is your wage, though the honest number can be higher or lower than your paycheck: an hour you would otherwise bill to a client is worth the billing rate, while an hour you would otherwise spend on the couch may be worth little in cash terms.
Say your time is worth $28 an hour and a deferred errand will take 3 hours of waiting in line and driving. The time cost is $28 x 3 = $84, before a cent of the actual fee is counted. A $60 fee plus $84 of time is a $144 day, which is the number to set against whatever the errand saves you.
| Errand | Fee | Hours | Time at $28/hr | Full cost | |
|---|---|---|---|---|---|
| Rush the DMV trip | $60 | 3.0 | $84.00 | $144.00 | |
| Use the online option | $82 | 0.5 | $14.00 | $96.00 |
The online option carries the higher sticker price and the lower full cost. That comparison only becomes visible once hours are converted into dollars, which is the same operation the calculator runs on the money side.
Comparing two plans side by side
Opportunity cost is clearest when two concrete plans are on the table. Take $8,000 and two homes for it: a savings account paying 4 percent, or paying down a balance to free up money you would then invest at an assumed 8 percent. Over 5 years the two paths come to:
Plan A: $8,000 x 1.216653 = $9,733.22 at 4 percent. Plan B: $8,000 x 1.469328 = $11,754.62 at 8 percent. The gap is $11,754.62 - $9,733.22 = $2,021.40.
That $2,021.40 is the opportunity cost of choosing A over B, before taxes and before risk. Taxes matter: interest on a savings account is taxable along the way, while gains in a retirement account usually are not, so the after-tax gap can shrink. Risk matters more: the 8 percent path is an assumption about an uncertain future, and the 4 percent path is closer to a promise. The calculator's comparison table lays both end values out and shows the difference so you can judge with both numbers visible.
| Plan | Amount today | Yearly growth | Years | End value |
|---|---|---|---|---|
| A: savings account | $8,000.00 | 4% | 5 | $9,733.22 |
| B: invested instead | $8,000.00 | 8% | 5 | $11,754.62 |
| B ahead of A by | $2,021.40 |
Where the number shows up in daily life
The concept earns its keep in small, ordinary decisions. A $6 daily coffee habit, if the $6 went into an account returning 5 percent, would come to about $47,257 after 15 years (that is $2,190 a year, $6 x 365, compounding at 5 percent), which is the sort of figure that makes an opportunity cost concrete. A family debating a $35,000 truck is not comparing it with an empty bank account; the next best choice might be a $22,000 used one plus $13,000 left to compound. A student choosing a two-year community college path over four years of tuition is weighing two different futures, and the opportunity cost of each is the value of the other.
Two habits make the number more honest. First, name the runner-up before you spend: a decision against a specific alternative is easier to defend than a decision against a vague sense of saving. Second, watch for the sunk cost trap. Finishing a boring $18 movie because you paid for it adds the value of your next 90 minutes to the $18 already lost. The ticket is gone either way; the only question left is what the next hour is worth.
Households that run this math on one or two big choices a year, a car, a renovation, a membership, tend to get the most out of it. Applying it to every $4 purchase is exhausting, and the small leaks matter less than the three or four large ones.
What the estimate leaves out
This calculator is an estimating tool, not investment advice, and a few gaps are worth naming. It assumes a steady yearly return, and real returns arrive unevenly: a 6 percent average can come from years of plus 20 and minus 10. It leaves out taxes, fees and the drag of inflation on the account itself unless you use the discount box. It treats the spent dollar as fully gone, which overstates the cost of things you would have bought anyway or that hold resale value. And it cannot price a trip's memories or a tool's years of use, which is precisely why you bought them.
Use it as a second opinion on the price of a choice, not a verdict. If the forgone growth figure is small next to the benefit, buy without guilt. If it is large, look again at the runner-up. For the adjacent steps, the future value calculator projects a single sum in more detail, the present value calculator discounts a future amount backward, and the inflation calculator handles the purchasing power side. The cost per use calculator prices a purchase by how often you use it, and the expected value calculator weighs outcomes by their odds. The Consumer Financial Protection Bureau has plain-language background on how compounding works in real accounts.
Frequently asked questions
What is opportunity cost in plain terms?
It is the value of the single best thing you gave up when you made a choice. Skip a $1,200 trip and invest the money instead, and the opportunity cost is what that money would have grown into, not a list of everything you could ever have bought.
How do I calculate the opportunity cost of spending $1,200 today?
Multiply it by (1 + r)^n for the return and years you would have used. At 6 percent for 20 years, $1,200 comes to about $3,848.56, so roughly $2,648.56 of growth is what the purchase gave up.
Is opportunity cost the same as the purchase price?
No. The purchase price is the accounting cost. Opportunity cost adds what the money and the hours would have earned in the next best use, which is why it is usually larger than the receipt.
What is the difference between opportunity cost and sunk cost?
A sunk cost is money already spent that no decision can recover, like a $45 nonrefundable ticket. Opportunity cost looks forward only. Money that is gone should not influence what you do next.
How many alternatives do I compare against?
One. Opportunity cost is the value of the next best alternative, so you compare your choice with the runner-up only. Adding the value of every option you passed on overstates the cost.
How do I put a dollar value on my time?
Start from your hourly pay, or your billing rate if you freelance. Three hours at $28 an hour carries a $84 time cost. Adjust down if the alternative was rest, or up if the hours would have been paid work.
What return should I use in the calculator?
Something honest for the account you would have used: a savings account rate for safe money, a long-run stock market average for money you would leave alone for decades. Higher rates inflate the cost, so test a low and a high rate.
Why is $3,848.56 in 20 years worth less than that today?
Because prices rise. BLS CPI-U data show annual averages of 258.811 in 2020 and 313.689 in 2024, about 21 percent higher. Dividing a future sum by (1 + inflation)^n states it in today's dollars.
Does the calculation include taxes?
No. Taxes on interest and gains would trim the forgone growth, especially in a taxable account. Treat the result as a before-tax estimate.
What is the opportunity cost of a $6 daily coffee?
At 5 percent a year, $6 a day comes to $2,190 a year, which compounds to about $47,257 after 15 years. Whether that trade is worth it is your call; the number just shows the size of the choice.
Is this tool financial advice?
No. It runs a standard future value formula on the numbers you type. It cannot know your taxes, risk tolerance or the rest of your budget, so treat the output as an estimate.
Does my data get uploaded anywhere?
No. Every calculation runs in your browser, and nothing you type is sent or stored.
Can I use it for non-money choices?
Partly. The money side needs dollars, but the time section lets you price hours, and the two-plan comparison works for any two options you can value in dollars.
What is a real example of opportunity cost in a budget?
Choosing a $35,000 truck over a $22,000 used one leaves $13,000 unspent. Invested at 6 percent for 10 years, that gap grows to about $23,281, which is the real cost of the upgrade.
Spotted a wrong number or a broken result?
More Everyday tools
- 1 Hour Cycling Calories Calculator
- 1 Hour Lunch Break Calculator
- 1 Million in Numbers
- 1 Weeks Ago From Today
- 1 in 60 Rule Calculator
- 10 Day Payoff Calculator
- 10 Hour Shift Schedule Calculator
- 10 Minutes From Now
- 10 Months Ago From Today
- 10 to 1 Arm Workout Calculator
- 10207 2: Log Base 2 Calculator
- 1099 Hourly Rate Calculator
- 11 Months Ago From Today
- 11 Weeks Ago From Today
- 12 Hour Shift Pay Calculator
- 12 Months Ago From Today
Fee schedules, rates and rules change without notice. Always confirm important figures with the official source before you rely on them.