Gold XAUUSD profit and loss calculator
Your net result is not just the price difference. Spread and commission come off it. This tool shows each part separately.
Formula checked against worked examples · Last reviewed 2026-10-05
For learning examples, not a forecast. Swap and slippage are not included. The spread is a cost you pay as soon as you open a position.
How to use
- Choose buy or sell and enter entry and exit prices.
- Enter lots and contract size.
- Enter spread and commission if you know them.
Formula
Gross = (exit − entry) × direction × lots × contract size, then subtract spread × lots × contract size and commission × lots
Example
Buy at 2,000, exit at 2,010, 0.1 lot, contract 100 oz, spread 0.3 USD: gross 100 USD, spread cost 3 USD, net 97 USD.
Hypothetical example to explain the formula. It is not real market data and not a trading recommendation.
Frequently asked questions
- Is the spread a real cost?
- Yes. The spread is the gap between buy and sell prices, paid as soon as you open. The more you trade, the higher the total.
- Does this include swap?
- No. Swap (overnight financing) and slippage are not included. Check your account details.
Limits and risk
This tool is educational. Results are estimates from the numbers you enter and are not investment advice. Trading CFDs is high risk and you can lose everything. Read the full risk warning
Related articles
Gold spread and trading costs: what each trade really costs
See how spread and commission turn into a monthly cost and a fraction of your risk on every XAUUSD trade, with verified worked examples and a free calculator.
Read article →BasicsWhat is XAUUSD and how to read the quote
XAUUSD explained: what the symbol means, bid and ask, contract size, and how a one-dollar move in gold turns into profit or loss per lot, with verified examples.
Read article →BasicsGold CFD vs physical gold: what leverage does to gains and losses
Compare owning one ounce of gold with a leveraged XAUUSD CFD using the same price move. See the effect on return and on loss relative to the capital you post.
Read article →