Plenty of backtests run with zero costs, or with a token commission someone typed in at the start and never looked at again. And plenty of strategies look good precisely because of that.
This article covers which costs to count, why turnover (how much you trade) matters as much as the cost of each trade, and how to find the break-even cost: the point beyond which your edge is gone.
What counts as a cost
Every time you buy or sell, you pay, visibly or not:
- Commission: what the broker charges for the order.
- Spread: the gap between the price you can buy at and the price you can sell at right now. Buy and sell straight away and you lose all of it.
- Slippage: the gap between the price the backtest uses and the price the order actually gets. It usually comes from the order arriving later than the signal, or the price moving while the order fills.
- Market impact: if your order is large relative to what trades in that asset, you push the price against yourself.
- Fees, regulatory or platform, depending on the market.
Commissions are easy to model. Spread and slippage depend on the asset, the time of day and the size, and they're the ones people forget. In small stocks, some crypto and thinly traded currency pairs they can be far larger than the commission.
Turnover multiplies cost
Turnover measures how much of your portfolio you buy and sell in a year. A turnover of 1x a year roughly means replacing the whole portfolio once; 10x means replacing it ten times.
The key idea is simple: annual cost is roughly turnover times the cost of each unit you trade. A strategy that trades little can absorb high costs. One that trades a lot needs a big edge per trade just to stand still.
One detail always worth asking: are turnover and cost counted per side (just the buy or just the sell) or round trip? Mixing the two conventions doubles or halves the cost without anyone noticing.
The break-even cost, with a real case
The break-even cost is the cost per unit traded at which the gross edge and the extra cost cancel out. Below it, the strategy adds something; above it, it subtracts.
Our own EWMA63 case shows it clearly. The layer under review:
- added +0.0274% a year before costs against its control;
- but needed more turnover: 0.873x a year against 0.802x for the control, i.e. 0.0707x more.
Divide what it adds by the extra trading and you get the break-even: 38.7 basis points per dollar traded (a basis point is 0.01%). The report publishes how the gain changes with the assumed cost:
| Assumed cost | Net annual gain | t-statistic |
|---|---|---|
| 0 bp | +0.0274% | +0.16 |
| 10 bp | +0.0203% | +0.12 |
| 25 bp | +0.0097% | +0.06 |
| 38.7 bp | 0.0000% | 0.00 |
| 50 bp | −0.0080% | −0.05 |
| 100 bp | −0.0433% | −0.26 |
Two readings. First: above 38.7 bp the layer destroys value. Second, and more important: no t-statistic comes anywhere near 2, the usual line between an effect and chance. It isn't "profitable if you trade cheaply"; there's no measurable effect to put a price on. One more fact: the layer changes the allocation in 36 of 197 months but changes turnover in 43. In 11 months it pays costs without changing the outcome.
When trading more eats the edge: RF100
In our RF100 case, a machine-learning model picked 5 stocks each month out of a universe of 20. It was compared with two simpler references under the same execution assumptions, and everything was rerun at 10, 25 and 50 bp per side:
| Portfolio | Annual turnover | CAGR at 10 bp | CAGR at 25 bp | CAGR at 50 bp |
|---|---|---|---|---|
| Equal weight (all 20) | 0.81x | 23.05% | 22.90% | 22.66% |
| 126-day momentum, top 5 | 7.15x | 32.14% | 30.76% | 28.49% |
| RF100, top 5 | 11.18x | 30.49% | 28.35% | 24.87% |
The equal-weight portfolio barely notices the cost change: it hardly trades. The model, which trades the most, loses more than five points a year going from 10 to 50 bp. Against momentum, the mean annual difference was 0.01% at 10 bp (t-statistic 0.001, i.e. nothing); at 25 bp it becomes −0.60% and at 50 bp −1.60%, never with a t-statistic that separates it from chance.
The lesson isn't the exact number but the pattern: the more a strategy trades, the more its result depends on a cost assumption the backtest can't check.
How to handle costs in your backtest
- Measure turnover and publish it next to the return. Without it, no cost assumption can be judged.
- Don't use a single cost. Rerun the backtest at several levels and look at the slope: how much you lose for each extra basis point.
- Work out the break-even cost and compare it with what you really pay, including spread and slippage, not just commission.
- Separate the signal from the order. If the signal comes from the close, the order can't fill at that same close. See our article on look-ahead bias.
- Compare at equal costs. If your strategy pays costs and its reference doesn't, the comparison doesn't count. More in the right benchmark.
- Think about size. What works in a small account may not work in a large one in thinly traded assets.
What to ask when someone shows you a backtest
- Which costs are included, and are they per side or round trip?
- What's the annual turnover?
- How does the result change if costs double?
- At what price does each order fill relative to the signal?
Where it fits in a validation
For US stocks and ETFs, our validation models commissions on the Interactive Brokers fee schedule plus the applicable regulatory fees. It can assess how sensitive the result is to different cost levels in basis points, with the turnover convention stated, and, from those scenarios, estimate the break-even cost, as in the EWMA63 case. Spread, slippage and market impact don't come from the broker's fee schedule: they're covered by those cost scenarios. For spot crypto and spot FX, spread and cost assumptions are agreed for each engagement, because they depend heavily on the asset and the venue.
These checks are part of a quantitative validation. Strateva validates stock, ETF, spot crypto and spot FX strategies, always unleveraged and without margin. We do not take work on CFDs, futures, perpetuals or options.
To check whether it fits, email stan@strateva.ai with the market (stocks, ETFs, crypto or FX, spot only), frequency, roughly how many trades you make a month and which costs your backtest includes today. Please don't send private code or passwords in a first message.
Educational and research content. Not investment advice. EWMA63 figures come from its published report and from the results published in its public repository Filip303/EWMA_63_Strat, which give the turnover, the pre-cost contribution and the break-even cost (197 monthly decisions, January 2010 – May 2026, which the report counts as 197 months of returns, February 2010 to June 2026). RF100 figures come from the results published in its repository (197 monthly portfolios, January 2010 – July 2026; costs per side). Both cases use universes of companies that exist today, which inflates absolute returns.