DayCents

Budgeting & Income

Cost of a Habit Calculator

Small recurring spends add up quietly. Enter what a habit costs and how often you indulge to see the monthly and yearly total — plus the eye-opening number: what that money could become if you invested it instead over the years.

Tested against worked examplesHow we verify

The 'opportunity cost' — what the money could earn in the market instead.

If invested instead: $158,596

If invested instead

$158,596

What the money could grow to over 30 years.

Costs you per month
$130
Costs you per year
$1,560
Total spent over the years
$46,800

Before any investment growth.

If invested$158.6K
Money spent$46,80030%
Investment growth$111,79670%

One email with a link back to these numbers. We'll also send our twice-monthly money guide — unsubscribe in one click.

Compare scenariosTry three values of one input
Cost of a Habit Calculator results for three values of Cost each time
Cost each time
If invested instead$145,384$158,596+$13,212$171,809+$26,425
Costs you per month$119$130+$11$141+$22
Costs you per year$1,430$1,560+$130$1,690+$260
Total spent over the years$42,900$46,800+$3,900$50,700+$7,800

Every other input stays at the value you set above — currently $6 for cost each time. Differences are measured against the first column.

Saved scenariosSave this calculation

Saved in this browser only — no account, and nothing is sent to us. Clearing your browser data deletes them.

How this calculator works

Yearly cost = cost each time × times per week × 52. Monthly cost is that ÷ 12. The invested value treats the monthly cost as a monthly contribution compounded at your chosen return for the given years.

A simplified projection at a constant return, before taxes and inflation. It's meant to make opportunity cost vivid, not to predict an exact balance — real returns vary, and the point is the order of magnitude.

What this assumes

  • The habit continues at the frequency and price entered, with prices rising at the inflation rate you set.
  • The money saved is assumed invested at your expected return — the comparison collapses if it would simply be spent elsewhere.
  • It measures cost, not value. Some habits are worth their price, and no calculator prices enjoyment.

What changes this number

Frequency
Daily habits compound into figures that surprise people; weekly ones rarely do.
Invested versus merely not spent
Most of the headline number is investment growth, not the habit. Not investing the difference removes most of it.
Time horizon
The result is dominated by compounding, so the number says as much about the horizon as about the habit.

A worked example

Take the $6 coffee, 5×/week, 30 yrs scenario. These figures are produced by the calculator above, not written alongside it, so they always match what the tool returns.

What you enter

Cost each time
$6
Times per week
5
Over how many years
30 years

What it returns

If invested instead
$158,596
Costs you per month
$130
Costs you per year
$1,560
Total spent over the years
$46,800

Try an example

Frequently asked questions

What is the 'latte factor'?

It's the idea, popularized by author David Bach, that small daily expenses like a coffee add up to serious money over time — and even more if invested instead. A $6 coffee five days a week is about $1,560 a year; invested at 7% for 30 years, that stream could grow to well over $140,000.

Should I really give up small pleasures to save?

Not necessarily — the point isn't to eliminate every joy, it's awareness. Cutting a habit you don't value frees money for goals you do. But your biggest wins usually come from large recurring costs (housing, cars, insurance), so tackle those too rather than only sweating the small stuff.

How is the invested value calculated?

It treats the money you'd otherwise spend as a monthly investment, compounded at the return you enter. So it's not just the sum of what you'd save — it's that saving plus decades of growth. That compounding is why the final number dwarfs the raw spending total.

Does this account for inflation?

No — it uses a fixed nominal return, so the future figure is in future dollars. To think in today's purchasing power, use a real (after-inflation) return, roughly your expected return minus about 3%. Either way, the comparison between spending and investing the same money holds.

Disclaimer: DayCents provides this calculator for educational purposes only. Results are estimates based on your inputs and the stated assumptions — they are not financial advice, a quote, or an offer of credit. Consult a qualified financial professional before making major money decisions.