Profit, loss and trade cost calculator

How the result is worked out

  • Gross result = (exit price – entry price) x lots x contract size, reversed for a sell.
  • Spread cost = spread x lots x contract size. You pay it once, when you open and close at the quoted prices.
  • Commission = the broker’s round-trip fee per lot x lots.
  • Swap = the overnight rate per lot x lots x nights held. It can be a charge or a credit.
  • Net = gross – spread – commission + swap.

Worked example

Buy 1.00 lot of EUR/USD at 1.1245 and sell at 1.1345, a 100-pip move. Gross = 0.0100 x 100,000 = $1,000.00. The spread is 1 pip, which costs $10.00, and commission is $7.00 per lot. Net = $1,000.00 – $10.00 – $7.00 = $983.00. The costs took 1.7% of the gain.

Why costs matter more than they look

On a 100-pip move, 17 dollars of costs barely register. On a 5-pip scalp, the same costs are more than a third of the gain, and a trade that moves in your favour can still end in a loss. That is why a rule that looks profitable before costs often does not survive them; see our lesson on spreads and costs, and how a moving-average rule’s results change with costs in our 50/200 crossover test.

Frequently asked questions

What is a swap?

The overnight interest charge or credit for holding a position past the daily rollover. It depends on the interest rate gap between the two currencies and the broker’s markup, and many brokers charge triple on one day a week.

Where do I find my spread and commission?

In your broker’s contract specifications and in the platform’s quote window. Spreads change with the time of day and news, so use the figure you actually get at the time you trade, not an advertised minimum.

Does this include slippage?

No. Slippage, the difference between the price you wanted and the price you got, is not predictable, so it is not in the calculation. Add it to the spread if you want a cautious estimate.

Related: reward to risk calculator, position size calculator, compounding and recovery calculator, market maker vs ECN brokers and cost per lot.

Educational content only, not financial advice. Trading involves substantial risk of loss. Read the full risk disclaimer.