The Cost of a Habit, Explained
After reading this you can turn any small daily spend into its yearly cost, project what that money would have grown to if invested instead, and judge how seriously to take the difference.
What this calculation tells you
A habit that costs a few dollars a day feels invisible. You pay in coins, not decisions. The point of this calculation is to make the recurring cost visible in two forms: the plain sum you spend over a stretch of years, and the larger number that sum could have become if you had invested each contribution instead of consuming it.
Take a 5 per day coffee. That is 35 a week and about 1826 a year. Over ten years the plain total is roughly 18,262. If instead you had put each year's spending into an account earning 6%, the balance after ten years would be near 25,270. The gap between those two numbers, about 7,000, is the cost of not investing the money. Both numbers are worth seeing.
The goal is not to ban coffee. It is to show that small recurring amounts compound in both directions: they add up when you spend them, and they grow when you invest them.
When to use it, and when not to
This calculation is honest for steady, genuinely recurring spends: a daily coffee, a pack of cigarettes, a lunch delivery, a parking fee. These repeat on a predictable schedule, so multiplying a daily figure by 365 is close to reality.
It is misleading for lumpy or occasional spending. A restaurant meal you have twice a month is not a daily habit, and pretending it is inflates the result by a factor of roughly 15. For those, estimate the true monthly amount and divide by 30 before you start, or reach for a different tool.
It is also not a budget. Cutting a habit does not automatically move the money into an index fund. The projection assumes disciplined, automatic investing at a fixed return. If the freed-up cash simply gets spent elsewhere, the investment column never happens.
The formula and the intuition
Start with the plain cost. If you spend d per day, the yearly cost is:
Here d is the daily cost and 365 is the number of days in a year. The monthly cost is that divided by 12, and the total plain cost over n years is d \times 365 \times n.
The investment side is where compounding enters. Suppose each year you contribute the year's spending, A = d \times 365, and the account grows at annual rate r. A contribution made at the end of year 1 has n-1 years left to grow, so it becomes A(1+r)^{n-1}. The final year's contribution has no time to grow. Adding every contribution gives a geometric series:
In this formula FV is the future value, A is the yearly contribution, r is the annual return as a decimal (so 6% is 0.06), and n is the number of years. The fraction is the sum of (1+r)^0 + (1+r)^1 + \dots + (1+r)^{n-1}, which collapses to that closed form.
The intuition: early contributions carry the most weight because they compound the longest. The last dollar you put in has barely moved. That is why starting sooner matters more than the exact rate.
Worked example: the demo numbers
Use the tool's defaults: 5 per day, 10 years, and a 6% return. Press Calculate to reproduce these.
- Yearly cost: A = 5 \times 365 = 1825. (The tool may use
365.25for leap years, giving1826.25; the difference is tiny.) - Monthly cost: 1825 \div 12 \approx 152.08.
- Plain total over 10 years: 1825 \times 10 = 18{,}250.
- Convert the return: r = 0.06.
- Growth factor: (1.06)^{10} = 1.7908.
- Series value: \frac{1.7908 - 1}{0.06} = 13.181.
- Future value: 1825 \times 13.181 = 24{,}055.
So the plain cost is about 18,250, and the invested version reaches about 24,055. The extra 5,805 is the compounding you gave up. Small rounding choices (365 versus 365.25, end-of-year versus monthly contributions) shift these by a few hundred, which is normal.
How the gap grows over time
The plain cost grows in a straight line: each year adds the same 1825. The invested balance curves upward, because it earns returns on returns. Early on the two lines sit close together. They separate more each year.
Read those 30-year numbers carefully. The plain total is 54,750, just three times the 10-year figure. The invested balance is 144,200, almost six times its 10-year value. Time is doing more work than the amount.
Reading and interpreting the result
Three numbers come out: monthly cost, yearly cost, and projected invested value. Treat each differently.
- Monthly cost
- The most actionable figure. It maps directly onto a budget line you already track.
- Yearly cost
- Useful for scale. Seeing
1825for a coffee reframes the daily5. - Invested value
- A ceiling, not a promise. It assumes every skipped purchase is invested, on schedule, at a return you never actually earn evenly.
The invested value is the number to hold most loosely. Markets do not deliver a smooth 6% every year. They deliver 20% one year and -15% the next. The formula uses an average because averages are the honest way to project an unknown future, but any single ten-year window can land well above or below it.
Common mistakes
The most frequent error is treating an occasional spend as daily. A takeaway coffee you buy twice a week is not 5 per day, it is about 1.43 per day. Entering 5 overstates the yearly cost by 3.5 times.
A second mistake is using a nominal return without thinking about inflation. If your account earns 6% but prices rise 3%, your money's buying power grows nearer 3%. The projected balance looks larger than it will feel. To see money's changing worth, use the Inflation Calculator.
A third is forgetting that the money has to actually move into the investment. Cutting the habit and then spending the same amount on something else leaves the invested column purely hypothetical.
Related tools
If your habit is really a recurring plan rather than a daily purchase, the Subscription Cost Calculator gives the true yearly cost and any annual-plan saving. For a one-off purchase you use repeatedly, the Price Per Use Calculator spreads the cost over its life. When you shop, the Unit Price Comparison shows which package is cheaper per unit, and the Discount Calculator handles sale prices and stacked offers.
For everyday money handling: the Tip Calculator splits a bill, the VAT / Sales Tax Calculator adds or removes tax, the Cash Back Calculator checks whether a card's rewards beat its fee, the Group Expense Splitter settles a shared trip, and the Currency Converter converts at ECB rates.
Frequently asked questions
Why does the tool multiply by 365 and not 30 times 12?
Because 30 times 12 is 360, which loses five days a year. Using 365 (or 365.25 for leap years) keeps the yearly total accurate. The monthly figure is then the yearly amount divided by 12.
Is a 6% return realistic?
It is a common long-run assumption for a diversified stock portfolio before inflation, but it is an average, not a guarantee. Real returns swing widely year to year and can be negative for long stretches. Treat the invested value as a rough ceiling.
Does the projection account for taxes and fees?
No. Investment fees and taxes reduce the return you keep. If a fund charges 0.5% a year, model that by entering 5.5% instead of 6%. The 10-year invested value then falls from about 24,055 to roughly 23,340.
Should I actually quit the habit?
That is your call, and this is an educational estimate, not financial advice. The calculation shows the trade-off in numbers. What you do with it depends on what the habit is worth to you. Talk to a qualified adviser before making money decisions.