Skip to content
Cost Calculator

Savings and budget

Opportunity Cost Calculator

The opportunity cost of spending money is what that money could have become if you had invested it instead. This opportunity cost calculator grows a one-time or monthly amount at a return you enter, shows the result before and after inflation, finds the number of years until the growth equals what you put in, and lists the value at several horizons. The return is an assumption, not a forecast, and the result is not investment advice.

Choose your state to see the estimate

The calculator uses your state's wages and price level from public data (BLS and BEA), so it needs to know where you are. Nothing you enter leaves your browser.

Formula

  • One-time amount: value = amount × (1 + r)^months, with r = yearly return ÷ 12
  • Monthly amount: value = amount × [((1 + r)^months - 1) ÷ r], deposits at the end of each month
  • In today's dollars = value ÷ (1 + inflation)^years
  • Break-even years = the first month in which the value is at least twice what you put in (growth equals the money put in)
  • Horizon table = the same formulas at 1, 5, 10, 15, 20, 30 and 40 years and your own number of years

Entries marked edit are placeholders to replace with your own quotes. Methodology.

What opportunity cost means

Opportunity cost is the value of the next best use of your money. Spending $1,000 on one thing means that $1,000 is no longer available for another use, such as investing it. This calculator shows one version of that other use: the money invested at a return you choose.

It does not say the purchase was a mistake. Many purchases give you value that has no price in this model, such as safety, health or time.

How to read the numbers

The first figure is the nominal value: dollars of that future year. The second figure adjusts for inflation, so it shows what the money could buy in today's terms. When the return you enter is not much above inflation, the second figure is close to what you put in.

The break-even years show how long it takes for the growth alone to equal the money you put in. Use the table to see how the result changes with time: growth builds slowly at first and faster later.

What this leaves out

Taxes, investment fees and the chance of losing money are not included. A real portfolio does not earn the same return every year. The return is a placeholder you can change, not a prediction.

For a purchase that keeps some value, enter that value in the optional field to compare it with the invested amount.

Worked examples: five spending choices

These results are illustrative. Each one assumes a 6% yearly return and 3% yearly inflation unless a row says otherwise, with monthly compounding. The returns are placeholders you can change, not forecasts, and none of this is investment advice.

Illustrative opportunity cost results
SpendingTimeYou put inCould have becomeIn today's dollars
$1,000 once20 years$1,000$3,310$1,833
$100 a month10 years$12,000$16,388$12,194
$100 a month30 years$36,000$100,452$41,385
$1,000 once, 2% return20 years$1,000$1,491$826
$1,000 once, 0% return20 years$1,000$1,000$554

The last two rows show why the inflation figure matters. When the return is below inflation, the money grows in dollars but buys less than it did, so the inflation-adjusted value ends up below what you put in. At 2%, the $1,000 is worth $826 in today's dollars after 20 years, which is $174 less than you started with.

How the result changes with time

A single $1,000 invested at 6% grows slowly at first and faster later, because growth earns growth. The table shows the same $1,000 at several horizons, with 3% yearly inflation.

Illustrative: $1,000 invested once at 6% with 3% inflation
TimeCould have becomeIn today's dollarsGrowth
1 year$1,062$1,031$62
5 years$1,349$1,164$349
10 years$1,819$1,354$819
15 years$2,454$1,575$1,454
20 years$3,310$1,833$2,310
30 years$6,023$2,481$5,023
40 years$10,957$3,359$9,957

About half of the 40-year growth arrives in the last 10 years. This is the main reason the time horizon matters more than most of the other inputs. The compound interest calculator shows the same growth with a starting deposit and monthly additions.

Small monthly amounts and the SEC's candy bar example

SEC's Investor.gov uses a simple example: a $1 candy bar bought every day adds up to $365 a year, and if that $365 were invested at 5% a year, it would grow to $465.84 after five years and $1,577.50 after 30 years. The point of the example is compounding: interest earned on interest. It is also an illustration, not a promise of any return.

You can test your own version here. Choose every month, enter the monthly amount, and compare the amount you put in with the amount it could have become. In the table above, $100 a month for 30 years is $36,000 put in and $100,452 as the illustrative result, of which $64,452 is growth. Investor.gov defines compound interest as interest paid on principal and on accumulated interest.

Nominal and inflation-adjusted values

The first result is in future dollars. The second divides it by the inflation rate you enter for each year, so it shows what the same sum could buy in today's terms. The Federal Reserve states that it judges inflation of 2 percent over the longer run, measured by the personal consumption expenditures price index, to be most consistent with its mandate. That is a policy goal, not a forecast of what prices will do, so the 3% in this calculator is a placeholder.

Investor.gov describes inflation risk as a concern for money earning a fixed interest rate, noting that inflation reduces purchasing power. If you change the inflation rate to be higher than the return, the calculator warns you that the invested money would be worth less than you put in after inflation.

How the break-even years work

The break-even years are how long it takes for the growth alone to equal the money you put in, that is, for the account to be worth double what you contributed. For a one-time amount this is the doubling time, and it does not depend on the amount, only on the return. For monthly amounts it takes longer, because the later deposits have had less time to grow.

Illustrative break-even years by yearly return (monthly compounding)
Yearly returnOne-time amountMonthly amount
2%34.8 years63.0 years
4%17.4 years31.6 years
6%11.6 years21.1 years
8%8.8 years15.8 years
10%7.0 years12.8 years

A higher assumed return shortens the break-even a lot, which is also why a high assumption can mislead. Test a low case before you rely on a high one.

The return is an assumption, and investing involves risk

The calculator applies the same return every year. Real investments do not do that. Investor.gov states that the value of investments can go up or down, that no mutual fund can guarantee its returns, and that large company stocks as a group have lost money on average in about one out of every three years. Savings accounts and certificates of deposit can be insured by the FDIC up to $250,000 per depositor, per insured bank, but they typically earn a lower rate.

Taxes and investment fees reduce real results and are not included. Account types, fees and your tax situation affect what you could actually keep.

Spending is not a loss: counting what you get

Opportunity cost is a way to see a trade-off, not a verdict. A purchase can give you years of use, better health, safety, time, or income. The optional field for value you keep helps with purchases that hold their value. For example, with $30,000 spent once, a 6% return, 10 years and 3% inflation, the invested path is illustratively worth $54,582 (or $40,614 in today's dollars). If the purchase is still worth $18,000 at the end, the invested amount is $36,582 higher, but that comparison ignores years of use of the item.

A useful habit is to ask what the purchase costs per use, whether it replaces something you already pay for, and whether it moves you toward a goal. For regular bills, the subscription audit calculator can help find repeat charges, and the 50/30/20 budget calculator shows how spending is split between needs, wants and savings.

Debt, savings and the order of priorities

Before comparing a purchase with investing, compare it with the other uses of the money. Paying down a debt saves interest at the debt's rate, which is a certain result, while an investment return is an assumption. Look at the credit card payoff calculator for high-rate cards and the student loan calculator for student debt.

Investor.gov notes that savings for emergencies are usually kept where you can reach them at any time, and that some people keep up to six months of income in savings. The trade-off is that such money earns a low interest rate. The emergency fund calculator estimates how large that cushion could be, and the savings goal calculator turns a target into a monthly amount.

How to use this calculator for a decision

  1. Step 1

    Pick one-time or monthly

    Use one-time for a purchase, and monthly for a subscription, a habit or a recurring cost.

  2. Step 2

    Enter two or three returns

    Run a low, a middle and a high case, including one below inflation, and look at the range.

  3. Step 3

    Choose a realistic period

    Match the years to how long you would actually keep the money invested or use the item.

  4. Step 4

    Add what you keep

    If the purchase holds value, enter it so the comparison is fairer.

  5. Step 5

    Decide with the whole picture

    Weigh use, risk, debts and your goals, not only the largest number in the table.

Common mistakes and a short glossary

  • Treating the high-return result as what you would have earned.
  • Ignoring inflation and comparing future dollars with today's dollars.
  • Counting only the cost of a purchase and not its use or resale value.
  • Forgetting taxes and fees, which lower real returns.
  • Using the calculator to justify skipping an emergency fund or paying high-rate debt.
Terms used here
TermMeaning
Opportunity costThe value of the next best use of the money you spend.
Compound interestInterest paid on the principal and on accumulated interest.
Nominal valueA dollar amount in the dollars of that future year.
Real valueA dollar amount adjusted for inflation to today's buying power.
InflationA general rise in prices, which lowers what money can buy.
Break-even yearsYears until growth equals the money you put in.
HorizonThe length of time you assume the money stays invested.

See the how to pay page for choices when you decide to buy.

Questions people ask

Is the result a forecast of what I would have earned?

No. It applies the return you enter every year without change. Real investments rise and fall, can lose money, and are not guaranteed.

Why show the result in today's dollars?

Because prices rise over time, a dollar in the future buys less. Dividing by inflation shows what the future amount would be worth in today's buying power.

Should I stop buying things I enjoy?

That is your decision. The calculator shows a trade-off, not a rule. Consider your goals, your emergency fund and your debts, and a financial professional can help with your own situation.

Where can I check the compounding math?

The SEC's Investor.gov offers a compound interest calculator, and our compound interest calculator uses the same idea with more options.

What does opportunity cost mean in personal finance?

It is the value of the next best thing you could do with the same money. If you spend $1,000 on one thing, you give up the chance to use it for another purpose, such as paying a debt, saving or investing it.

How do I choose a return to enter?

There is no right figure. Investments can gain or lose, and Investor.gov says returns are not guaranteed. Run several cases, including a low one and one below inflation, and treat all of them as examples.

What inflation rate should I use?

Use any figure you want to test. The Federal Reserve says it judges 2 percent inflation over the longer run to be most consistent with its mandate, but actual inflation varies, so try a lower and a higher value.

Why is the inflation-adjusted number lower?

Because prices rise over time, a future dollar buys less. The calculator divides the future amount by the compounded inflation rate to show its value in today's buying power.

Does the calculator include taxes and fees?

No. Taxes and investment fees reduce real results and depend on the account type and your situation. Ask a tax or financial professional about your own case.

Is a monthly expense worse than a one-time expense?

Not necessarily. A monthly amount adds up to more money put in, so the result is larger, but later deposits have less time to grow. Compare the amount you put in with what it could have become.

Does this mean I should not buy anything?

No. It shows one trade-off. Many purchases give use, safety or time that has no price here. The decision is yours, and a professional can help with your own plan.

How is the break-even year different from a payback period?

The break-even here is the time until growth equals what you put in, that is, until the account doubles your contributions. It is not the time for a purchase to pay for itself, which depends on what the purchase gives you.

What if I would use the money to pay off debt instead?

Paying off debt saves the debt's interest, which is a certain result, whereas an investment return is an assumption. Compare the debt's rate with the return you are testing, and use a payoff calculator for the details.

Why does a higher return shorten the break-even so much?

Growth builds on itself, so a higher rate makes each year's growth larger. The table shows doubling in 34.8 years at 2% and in 7.0 years at 10% for a one-time amount, but a high return is not guaranteed.

Sources

Related calculators

Updated October 15, 2026 · By Cost Calculator editorial team