KrokFin

Search the site

Find an article, calculator or term and go straight to it.

Coffee vs Investing Challenge

What this latte factor calculator shows

This latte factor calculator, which we call the Coffee vs Investing Challenge, shows what small habits such as a daily coffee would have grown to if you had invested the money instead. You list your recurring expenses, choose an annual investment return, and the calculator puts two numbers side by side for 5, 10, 20 and 30 years: what you would have spent and what the same money could be worth.

The idea is often called the latte factor. A few dollars a day seems too small to matter, but over decades it adds up to tens of thousands in spending, and invested money compounds on top of that. With the calculator's settings, $5 a day comes to $54,792 of spending over 30 years and would have grown to about $215,761 at 8% a year.

The calculator is useful when you want to:

  • see the long-term cost of a habit you are unsure about
  • compare several small expenses in one place
  • turn money you have stopped spending into a monthly investing amount

In this guide:

  • How to enter habits and read the headline, the figures, the chart and the table
  • The exact formula, the timing of contributions and what the model leaves out
  • What the latte factor is, and why critics say it misses the big expenses
  • How time and the return you assume change the result
  • A reference grid, three worked examples and common mistakes

It is a planning aid, not advice. Everything runs in your browser and nothing you enter is sent anywhere. For the idea behind it, read the basics article on compound interest and the time value of money.

How to use the coffee vs investing calculator

The calculator opens in US dollars with an Annual investment return of 8% and three example habits: Daily coffee at 5 per Day, Subscriptions at 30 per Month and Food delivery at 12 per Day. With those defaults the headline shows $776,115, with Cumulative spending $197,093. The examples in this guide use USD, and one switches to EUR. The UAH / USD / EUR switch sits in the header of the Your numbers panel, or under More options on phones and tablets. Only the symbol and formatting change; nothing is converted. The controls appear in this order:

  1. Annual investment return. The yearly return you expect the invested money to earn, in percent. Type it in the box or drag the slider below it.
  2. Habit name. Each habit is a group headed by its number, such as #1. The name is a label, for example Morning coffee, and it is optional.
  3. Amount. What the habit costs each time you pay it.
  4. How often. Day, Week or Month, below the Amount.
  5. Add habit. Below the list, it adds another habit with an Amount of 5 per Day. The bin icon in a habit's header, shown when there is more than one habit, removes it.
InputWhat to enterDefault and range
Annual investment returnExpected yearly return, in percent8; 0 to 50
CurrencyUAH, USD or EURUSD
Habit nameAny labelDaily coffee, Subscriptions, Food delivery
AmountCost per day, week or month5, 30, 12; 0.01 to 100,000
How oftenDay, Week or MonthDay, Month, Day

The return slider runs from 0 to 15 in steps of 0.5, but you can type any value from 0 to 50 in the box; when you leave the field, anything outside that range is pulled back to the limit. The Amount cannot be zero: an empty field or 0 becomes 0.01. On phones it has − and + buttons that step by 0.5. You can have up to 20 habits; at 20, Add habit disappears.

Reading the results

  • If invested for 30 years. The headline: what all your habits together would be worth if invested.
  • The bar. It splits the headline into Cumulative spending, the money you would have paid over 30 years, and Growth, what investing adds on top. A legend under it names both.
  • The figures. 5 years, 10 years and 20 years show the invested value at those milestones. Cumulative spending shows the 30-year total, marked "(over 30 years)".
  • Chart. A tab with a chart over 30 years: a light navy Cumulative spending area, a paler navy tint for the growth above it, and the navy If invested line on top. Hover over it to see both values for any year.
  • By habit. A tab with one row per habit, showing its name, its Habit cost per Day, Week or Month, and its invested value in the 5 yr, 10 yr, 20 yr and 30 yr columns. A habit without a name appears as its number, such as #2. The Total row at the bottom adds the habits up and matches the headline and figures.

Pin to compare keeps the current habits and return as a reference. The headline then shows the change in the 30-year value, such as −$110,963 vs pinned in Example 1, in green when it is higher and amber when it is lower. The chart adds a dashed Pinned line, and a caption sums it up, such as "Pinned scenario: 1 habit, $183/mo at 8% → $258,913 in 30 yrs". Switching the currency, Reset or a reload clears the pin. PDF exports your inputs, the four milestone values and the habit table, without the pin. Share shares a link without your numbers, and Reset restores the defaults, including US dollars. On phones and tablets, the headline and the bar sit at the bottom of the screen; Details opens the figures, the bar's legend, the tabs and the buttons.

The By habit tab makes it easy to see which habit matters most. With the defaults, Food delivery accounts for $517,826 of the 30-year total, Daily coffee for $215,761 and Subscriptions for $42,528.

How the calculation works

The calculator treats each habit as a regular monthly investment, grows it at the monthly equivalent of your annual return and reads the balance at four milestones.

M  = Amount × 30.44          (Day)
M  = Amount × 30.44 ÷ 7      (Week)
M  = Amount                  (Month)

i  = (1 + R)^(1/12) − 1

B(m) = (B(m − 1) + M) × (1 + i),   B(0) = 0

Total spent after n months = M × n
  • M is the habit's monthly amount
  • R is the Annual investment return as a decimal, so 8% is 0.08
  • i is the monthly rate
  • B(m) is the invested balance after month m; the figures and the headline show it after 60, 120, 240 and 360 months
  • n is the number of months

With several habits, each one is calculated this way and the results are added. Because the model is linear, that gives the same total as one combined monthly amount.

From days and weeks to months

A year has 365.25 days on average, which is about 30.44 days a month. The calculator uses exactly 30.44, so $1 a day becomes $30.44 a month, or $365.28 a year. A weekly amount is divided by 7 and multiplied by 30.44, about 4.35 weeks a month. That is why $1 a Day, $7 a Week and $30.44 a Month give identical results. Real calendars have 28 to 31 days a month, but the average is what matters over decades.

Monthly growth from an annual return

The return you enter is treated as an effective annual rate. The monthly rate is the twelfth root of one plus the annual rate, minus one. At 8% that is about 0.643% a month, slightly less than 8 ÷ 12 = 0.667%, because monthly compounding at 0.643% adds up to exactly 8% over a year. At 0% there is no growth and the invested value equals Cumulative spending.

Contributions at the start of each month

Each month the amount is added first and the balance then grows for a full month. In other words, the money you would have spent on day one of the month is invested on day one. That is slightly more generous than adding it at the end of the month: for $5 a day at 8% over 30 years it gives $215,761, against about $214,381 with end-of-month contributions. The closed form of the model is:

FV = M × ((1 + i)^n − 1) ÷ i × (1 + i)

Rounding on screen

Results are shown in whole units of the currency. The Habit cost column keeps the amount as you entered it, such as $4.50 / Day. The chart's vertical axis uses short forms such as 250K and 1.2M.

Assumptions behind the numbers

  • The amounts never change. A $5 coffee costs $5 in year 30. In reality prices rise, so both spending and investing would grow.
  • A constant return. The same return applies every month for 30 years. Real markets rise and fall, and the order of good and bad years matters.
  • No taxes, fees or inflation. The invested value is gross and in nominal money.
  • Every dollar is invested. The model assumes you invest the full amount you do not spend, every month, without gaps.
  • One currency. Nothing is converted; the currency only changes how numbers are displayed.
  • A fixed 30-year window. You cannot set a different period; the milestones are always 5, 10, 20 and 30 years.

What the latte factor is

The latte factor is the idea that small, frequent purchases quietly cost far more than they seem to, and that redirecting them into investments could make you wealthy over time. It was popularised by the American author David Bach and is the title of his 2019 book The Latte Factor, written with John David Mann as a short story about a young woman in New York who learns three lessons about money. The coffee is a symbol for any recurring expense you would not miss.

Two separate effects are at work. The first is simple addition: a habit you pay for every day is paid for about 365 times a year. The second is compounding: invested money earns a return, and that return earns a return of its own. Over short periods the first effect dominates; over decades the second one does.

Here is $5 a day at the default 8%:

PeriodTotal spentIf investedGrowth share of the final value
5 years$9,132$11,17418.3%
10 years$18,264$27,59133.8%
20 years$36,528$87,15958.1%
30 years$54,792$215,76174.6%

After five years, less than a fifth of the invested value is growth. After thirty, about three quarters is. This is why the latte factor is mainly a statement about time, and why the compound interest calculator on this site tells the same story for any lump sum and monthly contribution.

The concept has a strong behavioural side. Spending that happens in small amounts is easy to overlook, and seeing a yearly or 30-year total makes it visible. Whether the habit is worth that total is a personal judgement, which is why the calculator shows numbers rather than verdicts.

Is the latte factor a myth? Small habits versus big expenses

The main criticism of the latte factor is not about the maths, which is ordinary compounding. It is about where the money in a typical budget actually goes. The US Bureau of Labor Statistics' Consumer Expenditures in 2024 release (December 19, 2025) puts average annual spending per household at $78,535. A few lines dominate:

Spending line, 2024 averagePer yearShare of total
Housing$26,26633.4%
Transportation$13,31817.0%
Food$10,16912.9%
of which food away from home$3,945n/a
Personal insurance and pensions$9,79712.5%
Healthcare$6,1977.9%
Entertainment$3,6094.6%

A $5 daily coffee is $1,826.40 a year in this calculator, about 2.3% of that average budget, while housing alone is more than 14 times as much. A 10% saving on average housing costs, $2,626.60 a year or $218.88 a month entered with Month, would be worth $310,287 after 30 years at 8%. A 10% saving on transportation, $110.98 a month, gives $157,327. The housing cut beats giving up a $5 coffee, which gives $215,761, with one decision instead of thousands.

That leads to a balanced reading:

  • Big decisions first. Rent or mortgage size, the car you drive and insurance choices move more money than any single small habit.
  • Small habits still add up. Several of them together, as in the worked examples below, reach the size of a big decision.
  • Value matters. A coffee you enjoy every day may be worth its cost to you. A subscription you have forgotten is not.

The calculator handles both kinds: you can enter a big monthly saving as easily as a daily coffee. The BLS figures are 2024 averages and will change with the next release.

Small daily expenses that add up

The calculator works with any recurring expense. The prices below are illustrative, not statistics; replace them with your own. The values use the calculator's 8% default:

HabitAmountSpent per yearIf invested, 10 yearsIf invested, 30 years
Coffee shop latte$5 per Day$1,826$27,591$215,761
Lunch bought at work$60 per Week$3,131$47,299$369,876
Food delivery$40 per Week$2,087$31,533$246,584
Ride-hailing$25 per Week$1,305$19,708$154,115
Bottled drinks and snacks$3 per Day$1,096$16,555$129,456
Unused gym membership$50 per Month$600$9,064$70,881
Streaming and app subscriptions$45 per Month$540$8,158$63,793

A few observations:

  • Weekly habits are easy to underestimate. $60 a week for lunches is more than $3,000 a year, more than the daily coffee.
  • Subscriptions are small but silent. They renew without a decision, so they are the easiest place to find money you do not miss.
  • Cutting back counts too. You do not need to quit a habit. Entering only the part you save, for example four coffees a week instead of seven, shows the effect of a partial change.

To find your own list, go through two or three months of card and bank statements and mark every payment that repeats. The basics article on what investing is explains what you could do with the money you free up.

Why time matters more than the amount

Because the growth share rises so steeply with time, when you start often matters more than how much you put in. The calculator's milestones show this directly:

PlanTotal spentIf invested at 8%
$5 a day for 30 years$54,792$215,761
$10 a day for 20 years$73,056$174,318
$5 a day for 20 years$36,528$87,159
$5 a day for 10 years$18,264$27,591

Doubling the amount but starting ten years later ends with less money, even though $18,264 more is paid in. And the last ten years of a 30-year plan add $128,602, more than twice the $54,792 contributed over all 30 years.

The same logic works against you when you delay. Every year of waiting removes a year from the end of the compounding period, which is where most of the growth sits. If you are young, small amounts are worth more than they look. If you are older, the calculator's 10 years and 20 years figures are the honest ones to look at.

This is also why the latte factor pairs naturally with regular investing. Putting a fixed amount into the market every month is the approach the dollar-cost averaging article describes, and the dollar-cost averaging calculator shows how regular purchases behave when prices move.

Which annual return to use

The return you enter changes the result more than anything else. Here is $5 a day at seven different returns:

Annual investment return10 years20 years30 years
0%$18,264$36,528$54,792
2%$20,215$44,856$74,894
4%$22,400$55,558$104,640
6%$24,849$69,349$149,043
8%$27,591$87,159$215,761
10%$30,662$110,191$316,468
12%$34,098$140,002$468,924

Over 30 years, moving from 6% to 8% adds about 45% to the result, and from 8% to 10% another 47%. Small differences in the assumed return turn into large differences in the answer.

What is a reasonable figure? NYU Stern professor Aswath Damodaran's historical returns data (updated January 5, 2026) shows that the S&P 500, including dividends, returned about 10.0% a year compounded from 1928 to 2025. Over the 30 years from 1996 to 2025 it was about 10.3%. Three-month Treasury bills earned about 3.4% a year over the whole period. These are nominal US figures, before inflation, taxes and fees, and they include years such as 1931 (−43.8%) and 2008 (−36.6%). The worst 30-year stretch in the data still averaged about 8.0% a year, but the worst 10-year stretches lost money.

That makes the default of 8% a moderate nominal figure for a stock-heavy portfolio, not a cautious one. Some practical choices:

  • To see the result in today's money, enter a return after expected inflation, for example 4% or 5% instead of 8%.
  • For a mix of stocks and bonds, use a lower figure than for stocks alone.
  • For a savings account, enter its interest rate. It may be close to 0%.

The basics article on risk and return explains why higher expected returns come with larger swings, and inflation and why money loses value explains why nominal results overstate future purchasing power.

Coffee vs investing at a glance

This grid shows the invested value of a daily expense at the default 8% a year after 10, 20 and 30 years, using the calculator's own arithmetic. The last column is the money spent over 30 years.

Per day10 years20 years30 yearsSpent in 30 years
$2$11,037$34,864$86,304$21,917
$3$16,555$52,295$129,456$32,875
$4$22,073$69,727$172,609$43,834
$5$27,591$87,159$215,761$54,792
$6$33,110$104,591$258,913$65,750
$8$44,146$139,454$345,217$87,667
$10$55,183$174,318$431,521$109,584
$15$82,774$261,477$647,282$164,376
$20$110,365$348,635$863,043$219,168

Each row is proportional to the amount: $10 a day is twice $5 a day, give or take a dollar of rounding. So you can scale any row or add two rows together. For a weekly expense, divide it by 7 and read the nearest daily row; for a monthly one, divide it by 30.44.

Worked examples

Each example shows what the calculator returns. The first two use USD, the third EUR.

Example 1: A daily latte, and cutting back instead of quitting

Given: Currency USD, Annual investment return 8%, one habit: Café latte, Amount $6 per Day. Then the same habit changed to $24 per Week.

Steps:

  1. Keep the return at 8, select USD and remove two of the default habits with the bin icon.
  2. Name the remaining habit Café latte, enter 6 and choose Day.
  3. Read the headline and the figures, then click Pin to compare.
  4. Enter 24 and choose Week: the four lattes a week you skip if you keep three.

Result: At $6 per Day the headline shows $258,913, the figures $13,408 after 5 years, $33,110 after 10 and $104,591 after 20, with Cumulative spending $65,750.

Investing only the four skipped lattes, $24 per Week, gives $7,662, $18,920, $59,766 and a headline of $147,950, with Cumulative spending $37,572. The headline reads −$110,963 vs pinned. Cutting back rather than quitting still captures more than half of the full 30-year figure.

Example 2: Four everyday habits together

Given: Currency USD, Annual investment return 7%, four habits: Lunch out $60 per Week, Streaming and apps $45 per Month, Ride-hailing $25 per Week, Daily coffee $4 per Day.

Steps:

  1. Set the return to 7 and select USD.
  2. Rename and change the three default habits, then click Add habit for the fourth.
  3. Read the headline and the figures, then open the By habit tab.

Result: Together the habits cost about $536 a month. The headline shows $630,828, and the figures $38,405 after 5 years, $92,269 after 10 and $273,776 after 20. Cumulative spending is $193,100.

In the By habit tab, Lunch out is the largest item at $306,852 after 30 years, followed by Daily coffee at $143,198, Ride-hailing at $127,855 and Streaming and apps at $52,923. The coffee is not the main lever here: the weekly lunches are worth more than twice as much.

Example 3: Workday coffee and a forgotten subscription, in euros

Given: Currency EUR, Annual investment return 6%, two habits: Workday coffee €15 per Week, five coffees at €3, and Unused subscription €20 per Month. Then the return changed to 0%.

Steps:

  1. Select EUR and set the return to 6.
  2. Enter the two habits and remove the third default habit.
  3. Read the headline and the figures, then click Pin to compare and set the return to 0 to see what is simply spent.

Result: At 6% the headline shows €83,461, and the figures €5,951 after 5 years, €13,915 after 10 and €38,834 after 20. In the By habit tab the coffee accounts for €63,876 of the 30-year total and the subscription for €19,585.

At 0% the invested value equals the money spent: €5,114, €10,227, €20,455 and €30,682, and the headline reads −€52,778 vs pinned. Over 30 years, growth at 6% more than doubles the money paid in. The subscription alone costs €7,200 over 30 years and could be cancelled in a minute.

Turning a habit into an investing plan

The calculator assumes that every dollar you do not spend is invested. In real life that happens only if you make it happen, because money saved on coffee otherwise tends to disappear into other spending. A few steps make the result more than a thought experiment:

  1. Build a cash cushion first. Money for emergencies belongs in a savings account, not in investments that can fall. The emergency fund calculator and the basics article on emergency funds help you size it.
  2. Convert the habit into a monthly transfer. Use the calculator's monthly logic: $5 a day is about $152 a month. Set a standing transfer of that amount on payday.
  3. Choose where the money goes. In the US, tax-advantaged accounts come first for many people. According to the IRS's 2026 limits announcement (November 13, 2025), you can contribute up to $7,500 to an IRA in 2026 and up to $24,500 to a 401(k) as an employee. These limits change every year.
  4. Keep costs low. Fund expenses come out of the return the calculator assumes.

Filling an IRA for a year at the 2026 limit is $625 a month, about $20.53 a day in the calculator's terms, roughly four $5 coffees. Entered as $625 per Month at 8%:

MilestoneTotal spentIf invested
5 years$37,500$45,884
10 years$75,000$113,302
20 years$150,000$357,913
30 years$225,000$886,008

Taxes on the account, fund fees and inflation would reduce these figures. The investment goal calculator works the other way round: start from a target amount and see what monthly contribution it needs.

Common mistakes with the latte factor

  • Forgetting to switch the currency. The calculator opens in US dollars. Select EUR or UAH in the Your numbers header, or under More options on phones, if you spend in those; nothing is converted, so enter amounts in the currency you choose.
  • Entering a weekly or monthly cost as daily. A $45 monthly subscription entered with Day becomes $1,369.80 a month. Check that How often shows the right choice: Day, Week or Month.
  • Reading the invested value as money you lose. The headline shows what the money could have become, not a bill. The actual cost of a habit is Cumulative spending; the Growth on top is an opportunity cost.
  • Treating 8% as guaranteed. It is an assumption. Try 4% and 6% too, and remember that markets can fall for years.
  • Ignoring inflation. A projection of $215,761 in 30 years is in future dollars. Enter a lower, after-inflation return to see it in today's money.
  • Counting the same money twice. If you plan to stop a habit and use the money to pay down a loan, it cannot also be invested. Model each plan once.
  • Cutting what you value and keeping what you do not. The calculator shows that every recurring cost adds up. Start with the ones you would not miss, such as forgotten subscriptions.
  • Never investing the savings. The result appears only if the money actually goes into an investment account. Automate the transfer.

The calculator shows what regular amounts could grow to at a constant return you choose. It is an illustration, not a forecast and not financial advice.

Limitations and next steps

The coffee vs investing calculator answers one question clearly: what could small, regular amounts become if invested for 5 to 30 years? It does not know what your habits are worth to you, what you will actually invest, or how markets will behave. It ignores taxes, fees, inflation and changing prices, it uses one constant return, and its period is fixed at 30 years.

Use it to see the long-term cost of your habits, then plan with the other tools:

The basics articles on what investing is and risk and return are good next reads. For decisions that depend on your taxes, debts or retirement accounts, consider a qualified, independent financial adviser.

Frequently asked questions

Short answers to common questions about the latte factor, small daily expenses and how this coffee vs investing calculator works.

It shows what a recurring small expense, such as a daily coffee, would have grown to if you had invested the same money instead. You list one or more habits, enter an amount per day, week or month for each, and set an annual investment return. The headline is what all your habits could be worth If invested for 30 years, with a bar splitting it into Cumulative spending and Growth. Figures below show the invested value after 5, 10 and 20 years and the money spent over 30 years. The Chart tab draws both over 30 years, and the By habit tab lists each habit's value. Everything runs in your browser and nothing you enter is sent anywhere.

Explore more tools