November 9, 2026 · Michael Shane
How Fees and Slippage Change a Backtest
A backtest that ignores fees and slippage is testing a different strategy. Here's how trading costs work, how much they matter, and how to include them honestly.
Most backtests that look great have one thing in common: they forgot what trading costs. Every real trade pays a fee, and most fill at a slightly worse price than the chart shows. Leave those out and you are testing a strategy nobody can actually run.
This guide explains the two costs, shows how much they change results, and walks through how to include them honestly. It fits with How to Backtest Without Fooling Yourself and the AI trading bot backtest checklist.
The two costs every trade pays
Fees are what the exchange charges you to trade. They are usually a small percentage of the trade size, often between 0.02% and 0.1% per side on crypto exchanges, depending on the exchange, your volume, and whether your order adds or takes liquidity. Check your own exchange's fee page; don't guess.
Slippage is the gap between the price you expected and the price you got. You see $100.00, you hit buy, and you fill at $100.05. It is bigger when:
- the market is moving fast,
- you use market orders or stop orders,
- the coin trades thinly, or
- your order is large compared to what's on the order book.
Both costs hit you on the way in and on the way out. A "0.05% fee" is really about 0.1% per round trip, before any slippage.
A worked example
Say your idea makes an average of +0.15% per trade before costs. That sounds small, and it is, but over 100 trades it adds up.
Now add costs of 0.10% per trade (fees plus slippage, both sides). Your average drops from +0.15% to +0.05%. Two-thirds of your edge is gone, and nothing about the idea changed.
Raise costs to 0.15% per trade and the average is zero. The idea still "works" on the chart. It just doesn't pay after costs.
A quick simulation
To show this at scale, we ran a simple simulation. We gave a made-up idea a small built-in edge (+0.15% per trade on average, with normal ups and downs), then ran it 100 times, 100 trades each, at different cost levels. Same trades every time; only the costs changed.
All numbers below are simulated, not real trading results.
- No costs: 81 of 100 runs net positive.
- 0.05% per trade: 70 of 100.
- 0.10% per trade: 55 of 100.
- 0.15% per trade: 46 of 100.
- 0.25% per trade: 21 of 100.
The idea didn't get worse. Only the costs went up. A tenth of a percent here and there took it from "looks solid" to "worse than a coin flip."
Trading more often makes costs matter more
Costs are paid per trade, so an idea that trades a lot needs a bigger edge per trade to survive.
We ran two more made-up ideas, 100 runs each. Before costs, both ended net positive about equally often. The difference is how often they trade (simulated):
- Slow idea, 25 trades per run: 77 of 100 net positive with no costs, 74 of 100 at 0.10% per trade.
- Fast idea, 400 trades per run: 79 of 100 net positive with no costs, 5 of 100 at 0.10% per trade.
Same starting picture, same cost per trade. The slow idea barely noticed. The fast idea was wiped out, because 400 small edges each lost most of their size to costs.
This is why a strategy that trades every few minutes almost always looks better in a cost-free backtest than it ever does for real.
How to include costs, step by step
1. Use your real fee schedule
Look up the fee your exchange charges at your account level, for the order type your strategy will use. Charge it on both entry and exit.
2. Add slippage, and be pessimistic
There's no exact number. A simple start is to assume you fill a little worse than the candle price on every market order and every stop. For thin coins or fast moves, assume more. If the idea only works with zero slippage, it doesn't work.
3. Don't fill at prices you couldn't get
A backtest that buys at the exact low of a candle or exits at the exact high is cheating, even if by accident. Fill at the next available price after your signal. See How to Avoid Look-Ahead Bias.
4. Count funding if you hold perpetuals
Perpetual futures charge or pay a funding rate every few hours. Over many days it can matter as much as fees. If your strategy holds perps, include funding in the test.
5. Test at two or three cost levels
Run the backtest at your best guess, then at double it. A real edge should still hold up at the higher cost. If one small bump in costs flips the result, the edge is too thin to trust.
6. Watch the trade count
Compare the number of trades to the average result per trade. Many trades with a tiny average is the danger zone. Look at win rate vs expectancy to see why the average per trade matters more than the win rate.
7. Check it forward with real costs
Backtest costs are always a guess. Paper trading on new data with real fees shows whether the guess was close. In our simulation, an idea backtested with costs of 0.05% per trade was net positive in 73 of 100 runs. On new data with real costs of 0.15%, it was net positive in 51 of 100 (simulated). See Backtest vs Forward Observation and Paper Trading vs Live Trading.
Ways costs can fool you
- Zero-cost defaults. Many backtest tools and quick AI scripts leave fees at zero unless you set them. Always check.
- One-side fees. Charging the fee on entry but not on exit halves your real cost.
- Using the best fee tier. Your account may not get the lowest rate, and maker rates only apply if your orders actually sit on the book.
- Ignoring stop slippage. Stops usually fill as market orders, often during fast moves. That's where slippage is worst. More in How to Test a Stop-Loss.
- Tuning until it survives costs. If you tweak settings until the idea beats your cost guess, you've likely fitted it to past noise. See Backtest Overfitting Signs.
Where AI fits
AI tools like ChatGPT, Claude, Grok or Cursor can write a backtest in seconds. Many of those scripts quietly leave costs out, or use one flat number for everything. When your AI shows you a result, ask: what fee did you charge, on both sides? How much slippage? How many trades? Does it still hold up at double the cost?
How Pickled Lizard tests ideas like this
Pickled Lizard is an AI trading and research platform. You bring the idea, or your own AI does, and we test it the same way every time:
- Backtest on the full data set we have, with fees and next-candle timing.
- Paper forward testing on new market data, with real fees and timestamps. The idea shows as "still collecting" while it builds a record.
- Verified only when its forward results reach 80% of its own backtest trade rate and 80% of its backtest win rate.
Results show on the public paper trading leaderboard. Pickled Lizard isn't an exchange and doesn't hold your money. It's a non-custodial aggregator that connects to your own exchange accounts. Our servers are in Europe. The beta is free, and live trading is off during the beta.
Test it free at pickledlizardz.com/join
Quick recap
- Every trade pays fees and slippage, on the way in and the way out.
- Small costs add up: the same idea went from 81 of 100 net positive with no costs to 21 of 100 at 0.25% per trade (simulated).
- Ideas that trade often need a much bigger edge per trade to survive costs.
- Use your real fees, assume extra slippage, and test at double your cost guess.
- Confirm in paper trading with real costs before you trust it.
New here? Start with How to Backtest Without Fooling Yourself.