First, the jar: ten years, 3,653 days
Forget investing for a moment and look only at the jar. There are ten years between 2015 and 2024, but not 3,650 days: 2016, 2020 and 2024 are leap years. That makes 3,653 calendar days. Setting aside $5 on each of them gives 3,653 × 5 = $18,265. Rounding it off as "365 × 10" loses three days, or $15. A small gap, but it shows where the sum really starts.
That $18,265 is entirely yours. Even if you never invested a penny and kept it in a drawer, it would still be there. The market's contribution is only what comes on top. In "skip the coffee, get rich" stories this line tends to blur, and plain saving discipline ends up looking like investment return.

What about weekend coffee?
There is one more snag. Coffee happens every day; the stock market does not. Money saved on a Saturday cannot buy shares that day, so you need a rule. Say you set aside $15 across Friday, Saturday and Sunday. You could invest Friday's $5 straight away and carry the other $10 to Monday, where it joins Monday's own $5 for a $15 purchase.
We chose something simpler: each month's savings go in at once on the last trading day of the month. January brings 31 days × $5 = $155, February $140, or $145 in a leap year. No day is skipped, and the total invested stays at exactly $18,265.
A decade of ups and downs
Those ten years were far bumpier than the final figure suggests. In August 2015 China devalued the yuan, setting off a global sell-off, and the S&P 500 dropped more than 10% in a matter of weeks. That was also the jar's worst moment: at the end of September 2015, about 6% of the money put in so far was under water.
In late 2018, Fed rate rises and the US–China trade war pulled the index almost 20% below its peak, and December 2018 went down as the worst December since 1931. In March 2020 the pandemic arrived and the index lost about 34% in less than a month. Then in 2022 the Fed raised rates seven times and the S&P 500 closed the year down 19.4%.
Each time the scene was the same: grim headlines and plenty of reasons to stop. For someone who kept investing their coffee money, though, those were the months when the same $5 bought more. One detail stands out: on the last trading day of March 2020, in the thick of the pandemic, the pot was still worth $10,208 against $9,585 set aside. Five years of gains had built a cushion.
The coffee jar, year by year
For someone who never broke the plan, the account looked like this on the last trading day of each year:
| Year end | Total set aside | Value in the S&P 500 | Difference |
|---|---|---|---|
| 2015 | $1,825 | $1,820 | -$5 |
| 2016 | $3,655 | $3,942 | $287 |
| 2017 | $5,480 | $6,690 | $1,210 |
| 2018 | $7,305 | $7,947 | $642 |
| 2019 | $9,130 | $12,253 | $3,123 |
| 2020 | $10,960 | $16,402 | $5,442 |
| 2021 | $12,785 | $22,856 | $10,071 |
| 2022 | $14,610 | $20,138 | $5,528 |
| 2023 | $16,435 | $27,037 | $10,602 |
| 2024 | $18,265 | $35,318 | $17,053 |
By the end of 2024 the picture is clear: $18,265 from you, roughly $17,053 from the market, $35,318 in all, a 93.4% increase on the money set aside. The last two years were especially generous, with the S&P 500 up 24.2% in 2023 and 23.3% in 2024. Most of the gap opened late: the early dollars had the longest to work, but there were not many of them yet.
Why buying regularly helped, and when it would not
A tiny three-purchase example shows how it works. Imagine a share priced at $10, then $5, then $10, with $5 invested each time:
| Purchase | Share price | Invested | Shares bought |
|---|---|---|---|
| 1 | $10 | $5 | 0.5 |
| 2 | $5 | $5 | 1.0 |
| 3 | $10 | $5 | 0.5 |
| Total | $15 | 2.0 |
$15 bought two shares, worth $20 at a final price of $10. The average cost is 15 / 2 = $7.50, not the simple average of the prices, about $8.33. The cheap month brought in more shares. Had you put the whole $15 in on day one, you would have bought 1.5 shares and ended with $15.
But if prices had simply climbed, $5, $10, then $15, it would have gone the other way: regular buying collects 1 + 0.5 + 0.33 shares and ends at $27.50, while $15 invested at the start buys three shares and ends at $45. Regular buying does not guarantee a gain; it takes luck out of choosing the day. Our guide to DCA goes into more detail.
Three things worth remembering
The jar first, the market second. More than half of that $35,318 came out of your own pocket. The real hero of the coffee story is the $5 put aside each day; the market built on top of it.
Fixed fees loom large on small amounts. If a hypothetical $1 fee came out of every $5 purchase, 20% of the money would be gone before it was invested. The same fee on a $150 monthly purchase is about 0.67%. That is one reason saving up and investing once a month can make sense on a small budget.
Pick an amount you can keep up. $5 a day is not small change for every household. Whatever you can reliably put aside after rent and the essentials is worth more than any figure on paper, because it is what keeps the plan alive through times like late 2018, spring 2020 or 2022.

Try it with your own coffee money
Is your coffee $3 or $7? Change the start date and enter the amount that matches your habit. The S&P 500 investment calculator, or the DCA calculator for a monthly plan, answers the same question in seconds.
How we calculated this
S&P 500 data are month-end closes of the ^GSPC price index from Yahoo Finance. Each month's $5-a-day savings were invested at that month's last close, the pot was valued at the 31 December 2024 close, and fractional shares were assumed. Dividends are not included, and fees, taxes and inflation are not deducted. Details are on the methodology page.




