Sub topic 11
Time in the market versus timing the market
This chapter assumes you know what stocks, index funds and bonds are, and that you can compute percentage returns and compound them. The earlier chapters covered drawdowns, the two-decision problem, return concentration, the cost of missing the best days, behavioral biases and trading costs. This chapter combines those pieces into one argument, then tests where it breaks.
The working model
"Time in the market beats timing the market" is a compact claim about expected outcomes. It is not a law. It rests on four premises:
- Stocks have a positive expected return over long periods. Investors are paid for bearing risk, so time spent invested earns that payment and time spent in cash earns less.
- Returns are concentrated. A few large days account for a big share of the total, so being out of the market on the wrong few days costs a lot.
- Those days are unpredictable and clustered. The best days tend to sit close to the worst days, in turbulent periods. A rule that sidesteps the bad days will usually sidestep some good ones too.
- Timing needs two correct decisions, exit and re-entry. Each is hard to get right, and being right on only one can leave you worse off than doing nothing.
If all four hold, a fully invested investor with a long horizon has a better expected outcome than a typical timer. The model also tells you where it fails. If premise 1 breaks for your horizon, or you cannot hold through falls, the conclusion changes.
Testing premises 2 and 3 with a simulation
The code below generates ten years of synthetic daily returns. It then compares the ending value of 1 unit of money in four cases: fully invested, missing the 10 best days, missing the 10 worst days, and missing both. The data is made up and the seed is fixed, so results are repeatable but say nothing about real history.
import random
random.seed(42)
days = 252 * 10
returns = [random.gauss(0.0004, 0.01) for _ in range(days)]
def growth(rs):
value = 1.0
for r in rs:
value *= 1 + r
return value
ranked = sorted(range(days), key=lambda i: returns[i])
best = set(ranked[-10:])
worst = set(ranked[:10])
def without(skip):
return growth(r for i, r in enumerate(returns) if i not in skip)
print("fully invested ", round(growth(returns), 2))
print("miss best 10 ", round(without(best), 2))
print("miss worst 10 ", round(without(worst), 2))
print("miss both ", round(without(best | worst), 2))Run it and read the output carefully. Missing the best days lowers the result. Missing the worst days raises it by a similar amount. Missing both roughly cancels out.
This is the common error behind many "missed the best days" charts. They show only the first removal. The honest lesson is not that missing days always hurts. It is that you cannot choose which days to miss. In real markets the best and worst days cluster in the same high-volatility periods. A rule such as "sell when volatility spikes" removes both kinds of day together, and you must also decide when to come back.
The arithmetic of recovery
Premise 1 only pays off if you stay through the fall and the recovery. Losses are asymmetric: a fall of size d needs a gain of 1/(1 − d) − 1 to get back to the previous peak.
for d in (0.10, 0.25, 0.40, 0.50):
needed = 1 / (1 - d) - 1
print(f"fall {d:.0%} needs gain {needed:.1%}")The output is 11.1%, 33.3%, 66.7% and 100.0%. A timer who exits after a 25% fall and re-enters after a 20% rebound has not recovered. They sit in a position that is still down about 7%, and they have also paid for two trades. The deeper the fall, the more of the recovery you must capture, and much of it comes in the first sharp rebound.
The probability of getting both calls right
If each call is right 60% of the time and the calls are independent, both are right only 0.6 × 0.6 = 0.36 of the time. Even 70% accuracy on each call gives 0.49. This overstates the timer's position in one respect: it treats "right" as a coin flip with a known edge. Very few investors have a measured edge, so the real odds are often worse.
Two more costs sit on top of that. Trading costs and taxes reduce the payoff of every successful call. A sale in a taxable account can trigger a capital gains bill that a buy-and-hold investor defers. And the behavior gap research suggests investors, on average, earn less than the funds they hold, because they add money after rises and withdraw after falls.
Common errors when applying the idea
- Reading it as "never sell." The claim is about forecast-driven trading. Selling to pay for a house deposit, to rebalance, or because your goals changed is not market timing.
- Treating the best-days chart as proof. As the simulation shows, the chart is one-sided. Use it to illustrate concentration, not to prove that staying invested always wins.
- Assuming the past sample applies to you. Many long-run statistics come from markets that did well, mainly the US. Japan's Nikkei 225 peaked in December 1989 and did not exceed that level until 2024. The S&P 500's total return from 2000 to 2009 was close to flat. Staying invested did not rescue investors in those periods, although diversification, dividends and contributions softened the result.
- Ignoring sequence risk. Time in the market helps most when you are adding money. If you are withdrawing money, a large fall early in retirement does lasting damage, because you sell shares at low prices to fund spending.
- Confusing drawdown tolerance with return expectations. A plan that is optimal on paper but that you abandon in a 40% fall is worse than a more modest plan you keep.
Decision criteria
| Situation | Better default | Reason |
|---|---|---|
| Horizon of 15+ years, regular contributions | Stay invested in a diversified fund | Premises 1 to 4 apply, and falls let you buy cheaply |
| Money needed in under 3 to 5 years | Hold less in stocks, more in cash or short bonds | A drawdown may not recover before you need the money |
| Withdrawing from the portfolio | Keep a cash buffer and a rebalancing rule | Sequence risk dominates |
| Strong urge to sell during a fall | Lower the stock allocation in advance | Your real risk tolerance is lower than you assumed |
| Large unexpected cash windfall | Lump sum or dollar-cost averaging, by preference | A separate question, covered in the next chapter |
The fourth row matters most in practice. If you know you will sell in a crash, the fix is to reduce risk before the crash in a written plan. Waiting until the crash and deciding then is exactly the behavior the argument warns about.
Putting it together
Staying invested works because it avoids two hard forecasting problems, keeps you present for rare large gains, and avoids costs and tax drag. It works only when your horizon and risk tolerance match the allocation you hold. The right response to a downturn is to check whether your circumstances have changed, not whether the market will keep falling. If your circumstances have not changed, the plan you wrote already says what to do.
Exercise
A portfolio falls 40% from its peak. (a) What gain is needed to return to the peak? (b) A timer sells after the fall and buys back after the market has risen 30% from its low. What fraction of the original peak value does the timer hold, ignoring costs and taxes?
Show answer
(a) 1 / (1 − 0.40) − 1 = 66.7%. (b) After the 40% fall the portfolio is worth 0.60 of its peak. A 30% rise from the low gives 0.60 × 1.30 = 0.78 of the peak. The timer exited at 0.60, so the 30% rise took the value from 0.60 to 0.78, which means the timer who was out of the market during the rebound still holds only 0.60 of the peak in cash and has missed the whole gain. If instead the timer re-enters at the +30% point, they buy at 0.78 and hold 0.60 worth of shares, which is 0.60 of the peak, and still need the market to rise 66.7% from its low (a further 28.2% from the re-entry level) to return to the peak.
Exercise
A timer's exit call is right 70% of the time and the re-entry call is right 60% of the time, and the two are independent. What is the chance both are right? Name one reason the real chance may be lower.
Show answer
0.70 × 0.60 = 0.42. The real chance may be lower because the accuracy figures are usually assumed rather than measured, and because the calls are often not independent: a fear that causes a premature exit also delays re-entry.