Free calculator · SEPT

Slippage and trading cost calculator

A backtest that ignores costs looks better than real trading. Enter your commission, slippage, number of trades and shares per trade to see total costs, your net result and how much of the gross profit the costs take.

Result before costs
Commission
Gross result+$2,000
Total costs−$600
Net result+$1,400
Costs as % of gross profit30.0%
Cost per trade (entry + exit)$3.00
Same trades at a flat cost per share, each way
At 1¢ per share+$1,600
At 2¢ per share+$1,200

Costs take 30.0% of the gross profit. Hypothetical; your broker’s fees and real fills may differ.

How it's calculated

Cost per trade = 2 × commission (per share × shares, or per order) + 2 × slippage per share × shares. Two, because each trade has an entry and an exit.

Net result = gross result − cost per trade × number of trades.

Gross result = your own number, or trades × (win rate × average win − loss rate × average loss).

Where do the numbers come from? Backtest your setup; results include 1¢ per share each way.

Worked example

200 trades of 100 shares, 45% won, average win $120, average loss $80: a +$2,000 gross result.

With $0.005 per share commission and 1¢ per share slippage, each way, every trade costs $3.00, so costs are $600. Net result +$1,400: costs took 30% of the gross profit. At a flat 1¢ per share each way they would net +$1,600; at 2¢, +$1,200.

FAQ

How much do slippage and commissions change a backtest?

Often more than traders expect. Costs are paid on every trade, win or lose, and on both the entry and the exit, so a setup with many small trades can lose most of its edge to them. Put your own numbers in the calculator to see how much.

What is slippage?

The difference between the price you planned to trade at and the price you actually got. It is usually bigger on fast moves, on stop orders and on stocks with wide spreads or low volume.

Why does the calculator count costs twice per trade?

Every trade has two orders: one to enter and one to exit. Commission and slippage are paid on both.

What costs does a SEPT backtest include?

SEPT backtest results include 1¢ per share each way and also show what they look like at 2¢, so you can see how much costs change the result.

Add this calculator to your site

Free to use. Paste this code where you want the calculator to show.

<iframe src="https://septinvesting.com/embed/slippage-calculator" width="100%" height="520" loading="lazy"></iframe><p>Calculator by <a href="https://septinvesting.com/tools/slippage-calculator">SEPT Investing</a></p>

More free tools

Test it on real past data

Test it on real past data

Tools and math, not investment advice.