Trading Cost Calculator

A trading cost calculator adds up what a trade costs before the price moves your way, from the spread, the commission and the overnight swap. On 1.00 lot of a USD-quoted pair, a 2-pip spread alone costs 2 × $10 = $20.

10 for a USD-quoted pair in a USD account. The pip value calculator works it out for other symbols.

Total cost of the trade
20.00 USD
Spread
20.00 USD
Commission
0.00 USD
Swap
0.00 USD
That is 2 pips of price movement before the trade breaks even.

Cost = spread × pip value × lots + commission × lots − swap × lots × nights.

2 × 10 × 1 + 0 × 1 − 0 × 1 × 0 = 20.00 USD

Costs make every win smaller and every loss larger.

How do you calculate the cost of a trade?

The total cost of a trade = spread cost + commission + swap, each worked out in your account currency for the lots you trade. Spread is paid on every trade, commission depends on the account, and swap applies only to positions held overnight. The parts are:

Dividing the total by the pip value of your position gives the cost in pips: how far the price must move in your favour before the trade breaks even.

What is a worked example of trading cost?

One lot of a USD-quoted pair with a 2-pip spread, $7 commission and two nights of −$2.50 swap costs $32 in total, or 3.2 pips. In a USD account one pip on 1 lot is worth $10, so the price must move 3.2 pips in your favour to cover it.

1.00 lot of a USD-quoted pair in a USD account, so one pip is worth $10. The spread is 2 pips, the commission $7 per lot round turn, and the swap −$2.50 per lot per night, held for 2 nights.

PartCalculationCost
Spread2 × $10 × 1$20.00
Commission$7 × 1$7.00
Swap$2.50 × 1 × 2$5.00
Total$20 + $7 + $5$32.00

$32 ÷ $10 a pip = 3.2 pips. The price must move 3.2 pips in your favour before the trade covers its own cost. What each cost is, and when it is charged, is explained in the lesson Spread, Commission and Swap.

What does each input mean?

The calculator needs the pip value per lot, your position size, the spread, the commission per lot, the swap per night and the nights held. Take the spread, commission and swap from the symbol specification in MetaTrader 5. The pip value calculator gives the pip value for any symbol.

What are the assumptions and limits?

The result covers the three costs you enter, spread, commission and swap, for one trade held for the nights you choose. Spreads widen around news and at the daily rollover, and swap rates change. How swap works overnight is covered in the carry trade and swap lesson.

Frequently asked questions

What is a round-turn commission?

It is the commission for both opening and closing a position. If an account quotes commission per side, the round turn is twice that figure. Enter the round-turn amount per lot.

Is the spread charged when I close the trade?

The spread is paid once per trade. You open at one side of the quote and close at the other, so the gap between the buy and sell price is the cost, whichever way the trade goes.

Why is swap sometimes positive?

Swap reflects the interest-rate difference between the two currencies, adjusted by the broker. Depending on the pair and the direction, it can be charged or credited. Check the symbol's long and short swap in its specification.

How many pips do I need to cover my costs?

Divide the total cost by the pip value of your position. In the worked example, $32 ÷ $10 = 3.2 pips. The calculator shows this figure under the total.

Do costs matter more for short trades?

Yes. The spread and commission are the same however long you hold, so they are a larger share of a small target. A trade aiming for 10 pips with 3 pips of cost keeps much less of the move than one aiming for 100.

Sources

Practise what you learned

Open an account to use MetaTrader 5. Start on a demo account before risking real money.

Open Account