Calcist

Style

Buttons

Spacing

How much to show

Decimal places

Text size

Cost of a habit calculator

See what a regular expense, like a daily coffee or a subscription, adds up to over the years, and what the same money could grow to at a return you choose.

Private: calculated on your device. Nothing you type is sent anywhere.

Estimates for planning, not financial, tax or legal advice. Figures use US rules unless the page says otherwise.

Next: See what regular saving could grow to with the compound interest calculator, or fit the habit into a plan with the budget calculator.

What this calculator does

It adds up what a regular expense costs over time: a daily coffee, a streaming service, cigarettes, lunch out or a gym membership. You get the total for the years you choose, plus a table for 1, 5, 10, 20 and 30 years. You can let the price rise each year, and you can see what the same money would have grown to if it had been invested at a return you choose. It doesn't judge the habit. Some habits are worth their cost to you, and the numbers are just there to help you decide.

How it's calculated

Yearly cost = amount × 365 (daily), × 52 (weekly), × 12 (monthly) or × 1
Cost in year y = yearly cost × (1 + price increase)y − 1
Total = sum of the yearly costs

For the invested-instead figure, each year's cost is split into 12 equal monthly amounts, each added at the end of its month, and the balance grows at the monthly rate that compounds to your yearly return:

Monthly rate = (1 + yearly return)1/12 − 1
Balance = balance × (1 + monthly rate) + this month's spending

This is the same compound-growth idea used in the SEC's Investor.gov calculator.

Worked example

$5 a day is 5 × 365 = $1,825 a year. With no price increase, 10 years cost $18,250.

If the price rises 3% a year, year 2 costs $1,879.75, year 3 costs $1,936.14, and so on. The 10-year total is 1,825 × (1.03¹⁰ − 1) ÷ 0.03 = $20,921.58.

If, instead, that $1,825 a year (with no price increase) went into an account earning 7% a year, it would grow to about $26,014 after 10 years. The extra $7,764 is growth, not money you spent.

What the numbers don't tell you

  • Returns aren't guaranteed. The invested figure assumes a steady return every year. Real investments rise and fall, can lose money, and may have fees and taxes. Try a few different rates.
  • Price increases are your guess. Some costs rise faster than general inflation and some don't rise at all. The inflation calculator shows how US prices have changed in the past, using the BLS Consumer Price Index.
  • Results are in future dollars. A total 30 years out isn't adjusted back to today's buying power.
  • Cutting back has costs too. A cheaper swap (coffee made at home, say) still costs something, so subtract that to see the real saving.

These figures are for planning and comparison. They aren't advice about what to spend or invest.

Sources

How we checked this

Before every update, this calculator is run in a real browser with these known answers, and it must match all of them:

  • $5 a day for 10 years: $18,250 ✓
  • $5 a day, prices up 3% a year: $20,921.58 ✓
  • $5 a day invested at 7%: $26,014.12 after 10 years ✓
  • $15.99 a month for 20 years: $3,837.60 ✓
  • 0 years is rejected ✓

Last checked October 26, 2026. Spotted something wrong? The math is done in your browser with the formula shown on this page, so you can check any result by hand.

Add this calculator to your website (free)

Paste this code into any web page. The calculator works on your page, resizes itself, has no ads and no tracking, and nothing your visitors type is sent anywhere. More about embedding.

Questions people ask

How much does a daily coffee cost per year?

Multiply the price by 365. A $5 coffee every day is $1,825 a year and $18,250 over 10 years, before any price increases.

What is the opportunity cost of a habit?

What the money could have become if you'd done something else with it, such as invest it. The calculator shows this at a return you choose, which is an assumption, not a promise.

How much is $10 a week over a year?

$520 a year: 10 × 52. Over 20 years that's $10,400 with no price increase.

Should I include inflation?

If you expect the price to go up, yes. Enter the yearly increase you expect. Leave it at 0 to see the cost at today's price.

Is a monthly subscription worth it?

That depends on how much you use and value it. Multiply by 12 for the yearly cost, and compare it with what you'd pay another way.

Related calculators