Sequence-of-Returns Risk: Why the Order of Good and Bad Years Matters
Why two portfolios with identical average returns can produce drastically different outcomes — and what to do about it near retirement.
Most of us learn to think about investing in terms of average annual returns. You pick an asset allocation, look up historical averages, run a compound-interest formula, and project a final number. That mental model works reasonably well while you are purely accumulating — putting money in and leaving it alone. But the moment you start taking money out, or even just approaching the point where you will, a hidden variable enters the picture: the order in which good and bad years arrive. That order can make or break a retirement portfolio even when the underlying average return is identical.
Why Order Does Not Matter for Pure Accumulators
Consider a simple thought experiment. You invest a lump sum and never touch it for 30 years. The market returns, say, +20%, -15%, +10%, -5%, +18%, and so on, in some sequence. Now imagine someone else invests the exact same lump sum and experiences those same annual returns in the reverse sequence. After 30 years, both portfolios land at the identical balance. Multiplication is commutative — A × B × C equals C × B × A regardless of order.
This is not a trick. If you are only accumulating and making no withdrawals, sequence of returns is mathematically irrelevant to your ending balance. What determines the outcome is the full set of returns, not their arrangement.
The situation flips entirely once you start withdrawing.
The Retirement Red Zone: When Order Becomes Everything
Imagine two retirees, Alex and Jordan. Both retire on the same day with the same starting portfolio of $1,000,000 (illustrative). Both withdraw $50,000 per year, adjusted for simplicity. Over a 20-year retirement, their portfolio experiences the same set of annual returns — just in opposite sequences. Alex encounters bad years first; Jordan encounters those same bad years last.
Illustrative scenario (not a prediction or real historical data):
Alex’s sequence (bad years early): -25%, -15%, +5%, +20%, +25%, +18%, +12%, +8% … ending with the strong years.
Jordan’s sequence (good years early): the mirror image — +25%, +18%, +20%, +12%, +8% … ending with -15%, -25%.
Despite identical average annual returns over 20 years, Alex’s portfolio is depleted or severely diminished while Jordan’s remains healthy. The reason is mechanical and unambiguous: when Alex suffers a 25% loss in year one, every withdrawal afterward comes from a smaller base. Selling $50,000 worth of a portfolio that just dropped 25% means selling more shares than the same withdrawal would require from a portfolio that had just risen 25%. Those shares are gone permanently. They cannot recover and compound. The base is structurally smaller, and every subsequent withdrawal compounds that disadvantage.
Jordan, drawing from a portfolio that ran up strongly in the first decade, sold far fewer shares per dollar withdrawn. By the time the bad years arrived for Jordan, the portfolio had built enough of a cushion to absorb them.
This is sequence-of-returns risk. It is not a matter of one portfolio being lucky and the other unlucky in some vague sense. It is path dependence: the trajectory through time determines the outcome, not just the destination distribution.
The Mirror Image: Why Early Bad Years Help Young Accumulators
Here is where the developer instinct to check the edge cases pays off. If bad years early in retirement are catastrophic for withdrawers, what about bad years early for accumulators?
They are actually beneficial.
If you are 28 years old and contributing $1,000 per month, a bear market in years one through five means you are purchasing significantly more shares per dollar. When the market eventually recovers — and a 30-year historical horizon has always involved recovery, though past performance does not guarantee future results — those cheaply acquired shares compound from a larger base.
This is the mechanical argument behind “a bear market is a sale if you have a long horizon.” It is not motivational framing; it follows from the same path-dependence math. If you are not withdrawing, buying more units cheap is unambiguously better for your long-run outcome.
The practical implication: sequence-of-returns risk is not evenly distributed across a career. It is concentrated in a specific window — the years immediately before and after retirement, typically cited as roughly five years on either side. That window is sometimes called the retirement red zone.
The Developer Framing: Simulate Paths, Do Not Trust the Mean
Any engineer who has worked with distributed systems has encountered scenarios where the average-case metric looks fine but tail cases destroy the user experience. P50 latency is 10ms; P99 is 4 seconds. Quoting the average hides the risk.
Sequence-of-returns risk is the same failure mode applied to financial planning. If someone tells you “the market averages 7% real returns over long periods,” that average is computed across many paths through history. Some of those paths included a severe bear market right at retirement and produced dramatically worse outcomes than the mean. Others included strong early performance and produced dramatically better outcomes. The average obscures the distribution of paths.
The correct engineering response is Monte Carlo simulation or historical sequence analysis — tools that model thousands of possible orderings of returns and show you not just the median outcome but the distribution of outcomes, including the lower percentiles. Tools like FIRECalc, cFIREsim, or the research underlying the “4% rule” (Bengen 1994, updated repeatedly since) take this path-based approach. They ask: across all historical 30-year sequences, what withdrawal rate never depleted a balanced portfolio? The answer depends heavily on sequences that happened to start with a bad stretch.
Common Mitigations
Several strategies are commonly discussed to manage this risk. These are approaches worth understanding, not personalized recommendations.
Cash and bond buffers. Holding one to three years of expenses in cash or short-term bonds means you can fund withdrawals without selling equities during a downturn. The idea is to give the equity portion time to recover before you need to liquidate it. The cost is holding assets with lower expected long-run returns.
Flexible or variable withdrawal rules. Rather than withdrawing a fixed dollar amount regardless of portfolio performance, some frameworks call for reducing withdrawals in bad years — for example, never withdrawing more than a set percentage of the current portfolio value. This prevents the forced selling of depressed assets at the worst possible time, at the cost of reduced income certainty.
Glide paths and allocation shifts. The conventional advice to gradually shift toward bonds and cash as you approach retirement is partly a sequence-of-returns mitigation. A portfolio with lower equity exposure suffers less absolute loss in a bear market, which limits the damage from early-retirement bad years. The tradeoff is lower expected long-run growth.
Bucketing. Some planners segment the portfolio into time-based buckets — near-term expenses in stable assets, longer-horizon money in equities. This is structurally similar to the buffer approach, framed as a mental accounting tool.
None of these eliminates sequence-of-returns risk. They all trade one thing for another — flexibility, growth potential, or simplicity. The right tradeoff depends on individual circumstances, risk tolerance, and other income sources, which is exactly why personalized financial advice requires an advisor with full knowledge of your situation.
The structural insight is simple and worth internalizing: two portfolios can have the same average return and produce wildly different outcomes depending on when the bad years arrive. That is not bad luck. That is path dependence. And path-dependent systems require path-aware analysis.
FAQ
Does sequence-of-returns risk apply if I have a pension or other guaranteed income? +
Is the 4% withdrawal rule still valid given current market conditions? +
How do I actually simulate sequence-of-returns scenarios? +
Related reading
2026-05-21
Bonds for Developers: What Fixed Income Actually Does in a Portfolio
A practical literacy guide to bonds, duration, and why fixed income plays a specific role in a portfolio — written for developers who already understand stock-index investing.
2026-05-21
Brokerage APIs for Algorithmic Trading: Alpaca, Interactive Brokers, and Tradier Compared
A developer-focused comparison of Alpaca, IBKR, and Tradier brokerage APIs — auth, paper trading, order types, rate limits, and honest caveats.
2026-05-21
Building a Stock Screener: From Data Source to a Ranked List
A pipeline-focused engineering guide to building a stock screener: universe selection, data sources, ranking metrics, storage, and the pitfalls that quietly break each stage.
2026-05-21
Dollar-Cost Averaging vs Lump-Sum Investing: What the Data Actually Says
Historical data favors deploying a lump sum immediately, but DCA reduces regret and worst-case outcomes. Here is how to think through the tradeoff rigorously.
2026-05-21
Expense Ratios: The Quiet Fee That Compounds Against You
Expense ratios are deducted silently from your fund every day. A worked 30-year example shows how even a 1% annual fee erodes a meaningful fraction of your ending balance.
Get the best tools, weekly
One email every Friday. No spam, unsubscribe anytime.