Why backtests lie
In short
Try enough trading rules on past data and one will look excellent by chance, even if none of them works. Fitting rules too closely to the past, leaving out trading costs, flawed data, and seeing only the tests that worked all push results up further. The key question about any backtest is how many versions were tried before this one was shown. That number is seldom given.
A backtest applies a trading rule to past data and reports what it would have produced. It is a fair and necessary research tool. Yet many of the backtests a member of the public sees carry little value as evidence. Both statements hold at once, and the reason is what this article is about. The problem is rarely the arithmetic, which is usually correct. The problem is the selection process that decided which backtest reached the audience.
The central problem: enough tries produce a good-looking result
Search through enough rules and one will have done brilliantly, whether or not anything real is going on. This is not a fine statistical point. It is the main effect, and it is big enough to swamp everything else in this article. The mechanism is simple. Any measurement taken from a limited sample carries error. Try one rule and the result is one draw from that error. Try a thousand and keep the best, and the result is the most extreme draw out of a thousand. That draw looks impressive even when every rule tested is worthless. The arithmetic is stark. A performance ratio (excess return divided by volatility) measured over twenty years of data carries a standard error of roughly 0.22. Take the best of ten completely worthless strategies (independent trials, no true edge), and its expected apparent ratio is about 0.34. The best of a hundred comes out at about 0.56. The best of a thousand, about 0.73. The best of ten thousand, about 0.86. For scale, the ratio for the market on the illustrative inputs used across the Investment theory and risk topic is about 0.31 (a 5.0% equity risk premium over 16.0% volatility). So a researcher who tries a thousand rules with no real edge should expect a headline result more than twice as good as the market. That comes from noise alone, with honest arithmetic, on real data. The same effect can be put in the language of significance testing. Run a thousand tests at a one-in-twenty threshold and about fifty are expected to pass by chance. Tighten it to one-in-a-hundred and about ten still are. So the key question about any backtest is not "what did it return?" It is "how many versions were tried before this one was shown?" That number is seldom disclosed. It is often not recorded, and sometimes not even known to the person who ran the search.
Four more ways the number inflates
Overfitting. Every adjustable setting is another chance to fit the noise in the sample rather than any real signal. Examples are a threshold, a look-back window, how often to rebalance, or a rule for leaving things out. A rule with enough settings can describe a history closely and predict little. The warning sign is fragility. If performance falls apart when a setting moves slightly, the setting was probably fitted to noise. An out-of-sample test is the standard defense, and a weaker one than it looks. If the out-of-sample period is checked again and again and the rule is changed in response, it has quietly become in-sample.
Left-out costs. Backtests often understate what trading costs. Bid-ask spreads, the price impact of large trades, borrowing costs for short positions, and the fact that the tested price may not have been available to trade at all reduce the result. The damage grows with turnover, and elaborate strategies tend to trade a lot. At 100% annual turnover and a 0.20% round-trip cost, the drag is 0.20 points a year. At 300% turnover, it is 0.60 points. At 500% turnover with 0.25% costs, it is 1.25 points. Over twenty years, that last figure takes a 9.0% annual return down to 7.75%, so $10,000 grows to about $44,499 instead of $56,044, a shortfall of 20.6%. And it is a cost the backtest may not have included.
Inherited data problems. The distortions set out in Why Past Performance Does Not Predict: Survivorship and Look-Ahead Bias apply here too. A backtest run on today's index members, on restated financials, or on a database that dropped its failures gives a flattering result, however carefully the rule was written. A well-designed test on flawed data gives a flawed answer.
Dependence on the period, and selection of what gets published. Each test covers a period with its own conditions, such as a rate environment, an inflation pattern and a set of crises. A rule tuned to those conditions may be describing the period rather than the market. And finally, the backtests that reach an audience are mostly the ones that worked. Failed tests are seldom published or marketed, and often not even kept. So the visible backtests were picked on the very thing that makes them unreliable. It is the same distortion that the article on past performance found in fund records, one level up. Regulators treat this as a real risk. In the US, for example, the SEC's marketing rule for investment advisers puts extra conditions on showing hypothetical performance, including backtests, in advertisements.
Worked example
Worked example (illustrative; fictional). A researcher builds a rule for selecting shares. The search. She tries 1,000 variations (different signals, thresholds, holding periods and universe filters) and keeps the best. Its apparent performance ratio over twenty years of data is 0.70, against about 0.31 for the market. It looks like a discovery. It is about what a thousand worthless rules would be expected to produce by chance. The refinement. She improves it: excluding one sector and shifting a look-back window lifts the ratio further. Both changes were chosen because they improved the result on this data, which means both are fitted to this sample's noise. The costs. The rule turns the portfolio over 500% a year. At a 0.25% round-trip cost that is 1.25 points annually; over twenty years on $10,000, a 9.0% return becomes 7.75% and the final outcome falls from $56,044 to $44,499, a 20.6% shortfall, none of it in the backtest. The data. The universe was "companies in the index today," so the test never saw the failures. The result. Every calculation is arithmetically correct, no dishonesty occurred at any point, and the strategy has no demonstrated edge. Published as a chart with a rising line, it is hard to tell from a genuine finding; and the information needed to tell the difference, the number of variations tried, appears nowhere on the chart. (All figures illustrative; the standard error is 1 ÷ √20 = 0.224, the expected best-of-N draw is the mean of the largest of N independent standard normal draws, computed numerically, multiplied by that standard error, the market ratio is 5.0 ÷ 16.0 = 0.31, and the 20.6% is the shortfall of a 9.0% return dragged to 7.75% over twenty years.)
Check understanding
1 of 5
What is the central problem with searching many rules and keeping the best?
Frequently askedCommon questions
8 questions
Are backtests useless?
As a research tool, no. They are necessary, and a strategy that fails its backtest has taught the researcher something real. As evidence shown to a reader, they carry little weight, because the selection process that produced the one shown is not visible.
What is the single most important question to ask about a backtest?
How many versions were tried before this one was shown? That number decides much of how much the result means. And it is seldom disclosed, often not recorded, and sometimes unknown even to the person who ran the search.
How much can pure chance produce?
More than most people expect. With twenty years of data, the best of a thousand completely worthless strategies is expected to show a performance ratio around 0.73. That compares with about 0.31 for the market on the illustrative inputs used across the Investment theory and risk topic. Honest arithmetic on real data can produce a result more than twice as good as the market, from nothing.
What is overfitting?
It is fitting a rule to the noise in a sample rather than to any real pattern. Every adjustable setting is another chance to do it. The warning sign is fragility: if the result falls apart when a threshold or window shifts slightly, the setting was probably fitted to noise.
Doesn't out-of-sample testing solve this?
It helps, but it is weaker than it looks. If the out-of-sample period is checked again and again and the rule is changed in response, it has quietly become in-sample. That is the ordinary way research goes, not an abuse.
Why do trading costs matter so much here?
Because the damage grows with turnover, and elaborate strategies trade a lot. At 500% annual turnover with 0.25% round-trip costs, the drag is 1.25 points a year. Over twenty years, on a 9.0% gross return, that is about a fifth of the outcome. Backtests often leave out spreads, price impact and borrowing costs.
If a backtest used clean data and one rule, is it reliable?
It is much more informative, though still limited by the period it covers. A rule can describe a particular rate or inflation period rather than the market. The problem is not a well-designed single test. It is that the tests reaching an audience have been picked from many.
Why does MarketClue publish no backtested strategy claims?
Because a backtested figure carries no information about the search that produced it, and a reader cannot recover that number. Showing one would present something that cannot be checked as if it were evidence. Where MarketClue shows historical data, it shows what happened to real assets over stated periods, labeled as history.
ReferencesWhere this comes from
- Investor.gov (SEC) — Investor Bulletin: Performance Claims (hypothetical and backtested performance; period selection; the caution against results that appear too good) (accessed 2026-08-17)
- SEC — Mutual Fund Investing: Look at More Than a Fund's Past Performance (accessed 2026-08-17)
- Investor.gov (SEC) — Mutual Fund Fees and Expenses (transaction costs as a drag on returns) (accessed 2026-08-17)
- SEC — Investment Adviser Marketing, final rule IA-5653 (Rule 206(4)-1; conditions on hypothetical performance, including backtested results, in adviser advertising) (accessed 2026-10-13)
Finished reading?
Mark it complete once the answer holds without scrolling back up.
Ask MarketClue AI about this lesson
The question carries this lesson as its context. MarketClue AI needs an account.
MarketClue does not provide financial advice.
Next on your list
After that
Educational and informational only — not investment advice, a recommendation, or an offer to buy or sell any security. Investing involves risk, including the possible loss of principal. Worked examples use fictional companies and figures.