How this calculator works
The calculator takes every trading day between your two dates and follows your money down four paths: in the market every day, out on the best days, out on the worst days, and out on both. On the days a path is out, the money waits in cash and earns the rate you pick, US Treasury bills by default. A Treasury bill is a short loan to the US government, and a common place to keep cash. Most of the famous studies leave the money at zero on those days, and you can pick that too.
The market here is the whole US stock market, day by day since July 1, 1926: every US company listed on the NYSE, the Nasdaq and NYSE American, weighted by its size, with dividends reinvested. It comes from the data library Kenneth R. French keeps at Dartmouth, built from the stock database of the University of Chicago’s Center for Research in Security Prices (Kenneth R. French Data Library). The Treasury bill rate comes from the same files. The S&P 500 is about 80% of that market by value, so the two move almost together, but they aren’t the same index. J.P. Morgan’s study runs from January 2, 2006 to December 31, 2025 and leaves the money at zero on the missed days. Done the same way here, $10,000 becomes $81,548 fully invested and $36,927 without the 10 best days. Their Guide to Retirement 2026 has $80,619 and $35,866 for the S&P 500 (J.P. Morgan, Guide to Retirement 2026).
Leave dividends out and each day’s change is an estimate: the day’s return minus the S&P 500’s dividend yield that month, from Robert J. Shiller’s data, spread over the month’s trading days. Inflation uses the US consumer price index from the Bureau of Labor Statistics.
The math runs in your browser, and Bufetico doesn’t keep what you type. Your numbers do go into the page address, so you can share the result. If you share that address, your numbers go with it, and they’re still there when you reload the page.
S&P 500 is a registered trademark of Standard & Poor’s Financial Services LLC, and the index is a product of S&P Dow Jones Indices LLC. Bufetico isn’t affiliated with them or endorsed by them.
In the example the calculator opens with, $10,000 is invested from January 3, 2006 to December 31, 2025, 5,031 trading days in all. Kept in the market every one of those days, it becomes $81,548. Out of the market on the 10 best days, it becomes $36,942, 54.7% less. Those 10 days are 0.20% of the trading days in the 20 years.
The best days sit next to the worst ones
J.P. Morgan found that 6 of the 10 best days from 2006 to 2025 came within two weeks of the 10 worst, and 5 of those 6 right after one. The data on this page gives the same count, with two weeks as 10 trading days. Since 1926, 9 of the 20 best days came within two weeks of one of the 20 worst, and 19 of the 20 best came while the market was down 20% or more from its high. Hartford Funds counted 76% of the S&P 500’s best days from 1996 to 2025 in a bear market, a fall of 20% or more, or in the first two months of the rise after one (Hartford Funds, data as of March 2026).
In the spring of 2025, the whole market fell 5.1% on April 3 and 5.9% on April 4, then rose 9.7% on April 9, the day the US paused most of its new tariffs for 90 days. The S&P 500 rose 9.52% that day, its biggest gain since 2008 (Wikipedia).
Big moves come in bunches, because they come from fear, and fear doesn’t clear up in a day. Prices swing hard both ways for weeks. Someone who sells after a bad day is usually out for the good ones that follow.
Missing the worst days helps even more
The famous studies only show what missing the best days costs. From July 1, 1926 to September 30, 2026, in the market every day, $10,000 became $197,690,044, or 10.4% a year. Out on the 10 best days, it would have become $71,731,562, or 9.3% a year. Out on the 10 worst days, $615,007,444, or 11.6% a year. And out on both, $223,154,608, or 10.5% a year. Ben Carlson found the same since 1990: $1 became about $40 fully invested, $8 without the 25 best days, and nearly $240 without the 25 worst (A Wealth of Common Sense, July 16, 2026). Javier Estrada looked at 15 stock markets up to 2006: missing the 10 best days left a portfolio 50.8% smaller on average, and missing the 10 worst left it 150.4% bigger (Estrada, Journal of Investing, 2008).
So why not skip the worst days? Because you only know a day was one of the worst once it closes, and by then the next day may be one of the best. The second tab tests the way people really try: selling after a bad day. Take a rule that sells at the close after any day that falls 3% or more and buys back 21 trading days later. From 1926 to 2026, it sold 121 times and ended 26.6% behind staying in, before taxes. It was out for 8 of the 10 best days and 6 of the 10 worst. With a 5% fall as the trigger, it came out 21.8% ahead. That’s one setting out of many, found by looking back. It doesn’t tell you how any rule will do next time.
Is the famous number cherry-picked?
In part, yes. The famous number picks the very best days with hindsight, and you can’t know them while they’re happening. Missing 10 days picked at random barely matters: from 2006 to 2025 it would typically leave $81,261, against $81,548 every day. The big number shows what’s at stake on the few days that count.
Three more things move it. The famous studies leave the money at zero on the missed days, but Treasury bills paid 4.9% in 2023 and 5.3% in 2024. Missing the 10 best days from 2006 to 2025 leaves $36,942 with bills and $36,927 at zero. Studies on price alone, without dividends, show smaller numbers across the board. And the same 10 days cost more or less depending on the 20 years you pick, as the table shows.
| Years | Every day | Without the 10 best | Without the 10 worst | Without both |
|---|---|---|---|---|
| 1927 to 1946 | 5.6% | 0.8% | 10.6% | 5.5% |
| 1937 to 1956 | 10.8% | 7.8% | 14.5% | 11.4% |
| 1947 to 1966 | 13.0% | 11.2% | 15.6% | 13.7% |
| 1957 to 1976 | 7.9% | 5.7% | 9.8% | 7.6% |
| 1967 to 1986 | 10.4% | 8.3% | 12.3% | 10.2% |
| 1977 to 1996 | 14.8% | 12.5% | 18.5% | 16.1% |
| 1987 to 2006 | 11.6% | 8.8% | 15.9% | 13.0% |
| 1997 to 2016 | 8.0% | 4.4% | 12.2% | 8.5% |
| 2006 to 2025 | 11.1% | 6.8% | 16.0% | 11.5% |
The whole US stock market, dividends reinvested, with the money in Treasury bills on the days it’s out. Source: Kenneth R. French Data Library.
The best and worst days since 1926
| Best day | Change | Worst day | Change | |
|---|---|---|---|---|
| 1 | Mar 15, 1933 * | +15.7% | Oct 19, 1987 | -17.4% |
| 2 | Oct 13, 2008 * | +11.4% | Mar 16, 2020 * | -12.0% |
| 3 | Oct 30, 1929 * | +11.2% | Oct 29, 1929 * | -11.5% |
| 4 | Oct 6, 1931 * | +11.2% | Oct 28, 1929 | -11.2% |
| 5 | Sep 21, 1932 * | +10.9% | Nov 6, 1929 * | -9.6% |
| 6 | Oct 28, 2008 * | +9.8% | Mar 12, 2020 | -9.6% |
| 7 | Apr 9, 2025 | +9.7% | Jul 21, 1933 * | -9.1% |
| 8 | Mar 24, 2020 * | +9.3% | Dec 1, 2008 * | -9.0% |
| 9 | Mar 13, 2020 * | +9.0% | Oct 15, 2008 * | -8.8% |
| 10 | Sep 5, 1939 * | +8.8% | Jul 20, 1933 * | -8.5% |
| 11 | Oct 20, 1937 * | +8.7% | Oct 26, 1987 * | -8.3% |
| 12 | Oct 21, 1987 * | +8.6% | Sep 29, 2008 * | -8.3% |
| 13 | Feb 13, 1932 * | +8.2% | Oct 18, 1937 * | -8.2% |
| 14 | Apr 20, 1933 * | +8.2% | Mar 9, 2020 | -7.8% |
| 15 | Dec 18, 1931 * | +7.9% | Oct 9, 2008 * | -7.4% |
| 16 | Oct 8, 1931 * | +7.9% | Oct 5, 1932 * | -7.3% |
| 17 | Jul 24, 1933 * | +7.9% | May 14, 1940 * | -7.2% |
| 18 | Aug 3, 1932 * | +7.9% | Jul 26, 1934 * | -7.1% |
| 19 | Nov 14, 1929 * | +7.7% | May 21, 1940 * | -7.0% |
| 20 | Feb 11, 1932 * | +7.4% | May 28, 1962 | -7.0% |
The whole US stock market, dividends included, from one close to the next. * The market was down 20% or more from its high going into that day. Source: Kenneth R. French Data Library.
Staying in is the hard part
Look at the years in that table with both a best day and a worst day: 1929, 1932, 1933, 1937, 1987, 2008 and 2020. The best days and the worst ones came in the same years, often in the same weeks.
I call it the emotional muscle: being able to sit through a bad week without doing anything. Like any muscle at the gym, it gets stronger each time you use it. When a stock I own falls, I don’t look at the price first. I look at the business: whether the company is still financially stable and whether it’s still growing. If both still hold, the fall is noise to me.
If you already sold in a bad month and want to see what it cost, the cost of panic selling calculator runs your own sale and buy-back month by month since 1871.
What a calculator like this can’t see
Every number here is real history, with these limits:
- Closing prices. Each day runs from one close to the next. A day that fell 7% at noon and closed down 2% counts as down 2%, and the price you get selling during the day can be worse than the close.
- Hindsight. The best and the worst days are clear now. While they were happening, you couldn’t tell which was which. The second tab only lets a rule act on what it could see at each close.
- One market. This is the whole US stock market. Japan’s Nikkei 225 took 34 years to pass its 1989 record on price alone (AP), and a single company can go to zero. Estrada found the same pattern of best and worst days in all 15 markets he studied, but each market came back at its own pace.
- Taxes and costs. The second tab has a fee per trade. Taxes aren’t in: in a taxable account, you pay tax on every sale at a gain, which makes trading in and out look worse than it does here.
- Price only. Without dividends, each day is an estimate built with the S&P 500’s dividend yield of that month.
- Your situation. If you need the money in a year or two, a bad stretch can hit before a rebound comes. This calculator doesn’t know your situation.
Questions people ask
What happens if you miss the 10 best days in the market?
From January 2006 to December 2025, $10,000 in the whole US market became $81,548 fully invested and $36,927 without the 10 best days, 54.7% less, with the money at zero on those days the way J.P. Morgan counts it. Their figures for the S&P 500 are $80,619 and $35,866. Over the whole history since 1926, missing the 10 best days took the yearly return from 10.4% to 9.3%.
What were the best days in stock market history?
In this data, the five biggest daily gains since 1926 were March 15, 1933 (+15.7%), October 13, 2008 (+11.4%), October 30, 1929 (+11.2%), October 6, 1931 (+11.2%) and September 21, 1932 (+10.9%). All five came with the market down 20% or more from its high. The table above lists the 20 best.
What were the worst days in stock market history?
In this data, the five biggest daily falls since 1926 were October 19, 1987 (-17.4%), March 16, 2020 (-12.0%), October 29, 1929 (-11.5%), October 28, 1929 (-11.2%) and November 6, 1929 (-9.6%). The table above lists the 20 worst.
What if you miss both the best and the worst days?
You end up close to where staying in every day would have left you. From July 1, 1926 to September 30, 2026, out on both the 10 best and the 10 worst days, $10,000 became $223,154,608, against $197,690,044 every day. From 2006 to 2025, it’s $87,685 against $81,548.
Isn’t “missing the best days” cherry-picked?
In part. Picking the very best days takes hindsight. Missing 10 days at random from 2006 to 2025 would typically leave $81,261, against $81,548 every day. The stat does show how much rides on a handful of days, and they come in the worst weeks, when people are most tempted to get out. The second tab shows what real rules for getting out did.
Why do the best days come right after the worst ones?
Big moves bunch together. When fear runs high, prices swing hard both ways for weeks, and a market that drops 5% one day can jump 5% a few days later as the news changes. Since 1926, 9 of the 20 best days came within two weeks of one of the 20 worst.
Does my cash earn something while I’m out?
It does, and the famous studies leave that out. By default this calculator puts the money in one-month Treasury bills on the days it’s out, at each month’s rate. You can also type a rate or pick nothing. From 2006 to 2025, missing the 10 best days leaves $36,942 with bills and $36,927 at zero: ten days of interest don’t change much. In the second tab, where a rule can sit out for months, it matters more.
Does a 200-day moving average avoid the worst days?
The 200-day moving average is the most common way people try to miss both. The second tab can test a rule that sells at the next close after the market closes below its average of the last 200 closes, and buys back the same way once it closes above. From 1926 to 2026 it sold 255 times and ended 27.8% ahead of staying in, before taxes. From 1950, it came out 44.9% behind. With other averages the result swings both ways, and the table in that tab shows them. Like any rule found by looking back, it doesn’t tell you how it will do next time.
What does this mean for my 401(k)?
Open “Dividends, cash and monthly additions” and put in your monthly contribution. The calculator adds it on the first trading day of each month and runs the same missed days. For moving a 401(k) to cash and coming back later, the cost of panic selling calculator does it month by month, with your contributions going to cash or stopping while you’re out.
Is this the S&P 500?
No. It’s the whole US stock market from Kenneth R. French’s data library. The S&P 500 started in March 1957, and its daily history isn’t free to republish. The two move almost together: from 2006 to 2025, $10,000 becomes $81,548 here and $80,619 in J.P. Morgan’s S&P 500 numbers.
Time in the market or timing the market?
Timing the days you put money in matters less than staying in on the days that count. From January 3, 2006 to December 31, 2025, $500 a month put in on each month’s lowest close, the luckiest timing possible, grew to $548,940. On each month’s highest close, the worst timing possible, it grew to $513,875, and on the first trading day of each month, to $530,814. Out of the market on the 10 best days, the same $500 a month ended at $356,575. Capital Group found the same with $10,000 a year in the S&P 500 for 20 years to 2025: 14.65% a year buying at each year’s low and 12.64% at each year’s high (Capital Group, data to December 31, 2025). Open “Dividends, cash and monthly additions” and put in a monthly amount to see it for your dates.
Isn’t this just what fund companies want you to believe?
Most of the famous charts do come from fund companies, and they only show the best days. This page shows both sides, on public data, with its sources. The second tab tests real ways of getting out, including the ones that came out ahead. Bufetico doesn’t run funds or manage anyone’s money. It sells a stock screener, and this page links to it.
Should I sell my stocks before a crash?
I can’t answer that for you. You only know a day was one of the worst once it closes, and the second tab shows how rules that try to dodge those days have done. For the stocks I own, a headline doesn’t change what a company is worth to me. I look at the business in its yearly numbers: whether it’s still financially stable and whether it’s still growing.
Where does the data come from?
The daily returns and the Treasury bill rates come from the Kenneth R. French Data Library at Dartmouth (Fama/French 3 Factors, daily and monthly, built from the CRSP database of September 2026), downloaded on November 6, 2026, with every trading day from July 1, 1926 to September 30, 2026. The dividend yield for the price-only estimate comes from Robert J. Shiller’s data at shillerdata.com, and consumer prices from the US Bureau of Labor Statistics.