ZeinBot

Profit and Loss Calculator for Forex and Gold

Profit or loss = price difference × lots × contract size (reversed for sells). Buying 0.10 lots of gold at 2400 and closing at 2410 makes $100 before costs. The result is gross — spread, commission and swap come out of it.

Profit / loss calculator

What does this trade make or lose between two prices?

The result is gross, before spread, commission and swap, and in the quote currency for USD-quoted instruments.

The formula for longs and shorts

Buy: (exit − entry) × lots × contract size
Sell: (entry − exit) × lots × contract size

Two mirrored gold examples (0.10 lots, 100 oz contract):

TradeEntryExitResult
Buy24002410+$100
Sell24002410−$100

Same move, opposite outcomes — direction is part of the formula. See long and short positions.

What gets deducted from the result

Your net result is always below the gross. The three deductions:

  • The spread: paid implicitly at entry.
  • Commission: on some account types.
  • Swap: on positions held overnight — it matters most to swing traders.

Use this alongside the pip calculator and the position-size calculator to plan the whole trade before opening it.

Frequently asked questions

Why is my actual profit lower than the calculator shows?

Because the calculator gives the gross result between two prices, while your broker deducts the spread and possibly commission and swap. The natural gap roughly equals those costs.

Does the calculator work for sell trades?

Yes — choose "Sell" and the formula flips automatically: you profit when the exit is below the entry and lose when it is above.

⚠️ Educational tool, not financial advice. Verify contract specifications with your broker. Trading is high-risk. Risk Disclosure