THE CHART MECHANICSTools & Education
Free calculator

Trading cost calculator

Turn spread, commission and slippage into one all-in number, in money and in pips, and see how much of your stop the costs use up before the trade has even moved.

Trading cost calculator

Results are arithmetic examples for learning, not advice. Check live prices, contract specifications and your broker's figures before acting on any number. All free calculators.

How it is worked out

pip value   = lots × 100,000 × pip size (in USD)
spread      = spread pips × pip value
slippage    = slippage pips × pip value
commission  = commission per lot × lots
total       = spread + slippage + commission

Every trade starts slightly behind. You buy at the ask and sell at the bid, so the spread is paid the moment you enter. A "raw" account has a tighter spread but charges commission instead, and slippage adds a little more in fast markets. Comparing brokers on spread alone hides half the picture.

The useful view is cost as a share of the stop. A strategy with tight stops and small targets pays a much larger share of each trade in costs than one aiming for bigger moves.

Worked example
1 lot EUR/USD, 0.2-pip spread, $7 commission round trip, 0.3 pips slippage, 20-pip stop
pip value   $10
spread      0.2 × $10 = $2.00
slippage    0.3 × $10 = $3.00
commission  $7.00
total       $12.00 = 1.2 pips = 6% of a 20-pip stop

These are the calculator's starting numbers, so you can follow each line above.

Common mistakes

  • Comparing a "standard" account's spread with a "raw" account's spread and ignoring the commission.
  • Using the advertised minimum spread. Spreads widen at the rollover, around news and in quiet sessions.
  • Leaving out overnight financing (swap) on trades held for days.

This calculator comes from TCM Forex Education, Module 7, where the topic is covered in full with worked examples and knowledge checks.

Questions

Which is cheaper, a raw or a standard account?

Add both up. A 1.2-pip standard spread costs $12 a lot; a 0.2-pip raw spread plus $7 commission costs $9. The cheaper one depends on the actual numbers your broker charges.

What is slippage?

The gap between the price you expected and the price you got. It can go either way, but stop orders in fast markets usually slip against you.

Are swaps included?

No. Overnight financing depends on the pair, direction and broker, and it can be charged at triple rate on one day of the week. Check your broker's swap table in MetaTrader's symbol specification.

Why measure cost as a share of the stop?

Because it shows how much of your planned risk goes to costs. Costs of 1 pip are trivial on a 100-pip stop and large on a 5-pip one.

Related

Free download

Get the TCM Risk & Position Size panel

A free MT4 and MT5 panel that sizes each trade from your risk and stop, shows the money at risk before you click, and works on any symbol. Enter your email, click the button in the confirmation email we send, and your download opens straight away. If you like, tick the box to get an occasional short email with new tools, updates and chart lessons too.

We email you the panel. Our email service, Kit, records whether our emails are opened and which links are clicked. See the privacy policy.