How to calculate profit and loss when trading gold (XAUUSD)
XAUUSD is one of the most traded instruments, yet there is a lot of confusion around “pips”, “points” and lot value. Let’s start with a simple formula.
The core formula
Sell: PnL = (entry − exit) × lot × 100
Here 100 is the contract size: at most brokers, 1 standard lot of gold equals 100 troy ounces. The result is in US dollars because gold is quoted in dollars.
Examples
| Trade | Calculation | Result |
|---|---|---|
| Buy 0.10: 4012.30 → 4018.80 | 6.50 × 0.10 × 100 | +$65.00 |
| Sell 0.05: 4020.00 → 4026.40 | (4020.00 − 4026.40) × 0.05 × 100 | −$32.00 |
| Buy 0.01: 4000.00 → 4010.00 | 10 × 0.01 × 100 | +$10.00 |
Remember: at 0.01 lots, a $1 price move is $1; at 0.10 lots it is $10; at 1 lot it is $100.
Points vs pips: where the confusion comes from
Gold is usually quoted to two decimals (4012.30). The smallest step is 0.01, which MetaTrader calls a “point”, so a $1 move equals 100 points. A “pip”, however, is defined differently by different sources — some call $0.10 a pip, some $0.01, some $1. That is why “I caught 20 pips” is ambiguous on gold; it is better to record results as a price difference (e.g. $6.50) or in dollars.
What else affects the result?
- Spread — a Buy opens at the ask price, a Sell at the bid. Gold spreads widen around news.
- Commission — on some account types (raw/zero spread) it is charged separately per lot.
- Swap — if a trade is held overnight, a daily interest charge or credit is applied.
- Contract size — may differ at some brokers or on cent accounts. Check the specification.
Skip the manual math
In the Entry trading journal you enter the instrument, lot, entry and exit price, and PnL in dollars appears automatically — for XAUUSD, XAGUSD and other metals, 38 forex pairs, indices, energies and crypto. To pick the right size in advance, read how to calculate lot size.