Backtesting Fees Calculator: Why Your Backtest Is Lying About Profits
The $227 Per Trade Problem
We ran the exact same RSI mean-reversion strategy on 720 bars of Kraken BTC/USD 4h data (Jun 28 – Sep 26 2026). Two runs. One difference: real fees.
Fees didn't reduce the profit. They flipped 5 of 7 trades from winners to losers.
What Most Backtests Ignore
| Cost Component | What It Is | Typical Impact |
|---|---|---|
| Maker fee | Limit orders that add liquidity | Kraken: 16 bps (0.16%) |
| Taker fee | Market orders that remove liquidity | Kraken: 26 bps (0.26%) |
| Spread cost | Half-spread paid on every fill | ~5 bps on liquid pairs |
| Slippage | Adverse price movement on fills | ~5 bps minimum |
On a 2% profit trade, these four costs can consume 40–60% of gross PnL. On a 0.5% scalp? They consume 300% — the trade becomes a guaranteed loss.
The Walk-Forward Reality Check
One-shot backtests fit the past. Walk-forward tests the future. We ran 6 rolling folds (35% train / 15% val / 15% test):
| Fold | Zero-fee net | Real-fee net | Verdict |
|---|---|---|---|
| 1 | −$310 | −$344 | Loss |
| 2 | −$4 | −$876 | Crushed |
| 3 | +$30 | −$29 | Flipped |
| 4 | +$62 | −$563 | Flipped |
| 5 | −$87 | −$412 | Loss |
| 6 | +$207 | +$45 | Survived |
5 of 6 folds negative with real fees. The one green fold made $45 before your time.
Calculate Your Own Cost Drag
Use this formula for any strategy:
Cost per round trip = (taker_fee_bps + spread_bps + slippage_bps) × 2 / 10000 × notional # Example: $10K position on Kraken = (26 + 5 + 5) × 2 / 10000 × $10,000 = 36 × 2 × $1 = $72 per round trip
Multiply by your expected trades/month. A strategy doing 20 trades/month pays $1,440/month in pure friction.
HonestFill Shows You the Real Number
Our backtester charges real maker/taker fees, spread, and slippage on every fill. Conservative wick rules (stops trigger only on wick cross, limits fill only on wick touch). Walk-forward validation built in.