- Buy: P/L = (close − open) × contract size × lots. Sell: P/L = (open − close) × contract size × lots.
- For JPY-quoted pairs, divide the yen result by the closing price to get US dollars.
- Pips moved = price difference ÷ pip size (0.0001, 0.01 for JPY, 0.10 for gold in our examples).
- Spreads, swaps and any commissions shown in the app also change the final result.
Forex profit calculator: the profit and loss formula
Every CFD trade earns or loses the price difference multiplied by the size of the position. For a buy (long) trade: P/L = (close − open) × contract size × lots. For a sell (short) trade the sign flips: P/L = (open − close) × contract size × lots. A positive number is a profit, a negative number a loss.
The result comes out in the quote currency — the second currency in the pair. For EURUSD, gold and US indices that is already US dollars. For USDJPY it is Japanese yen, so the calculator divides by the closing USDJPY rate to show the answer in dollars. If you are unsure what base and quote mean, see our forex trading basics and the glossary of pips, lots and spreads.
| Instrument | Illustrative contract size | Pip size used | Result currency |
|---|---|---|---|
| EURUSD, GBPUSD | 100,000 | 0.0001 | USD |
| USDJPY | 100,000 | 0.01 | JPY, converted to USD |
| XAUUSD | 100 oz | 0.10 | USD |
| US30, NAS100 | 1 per point | 1 point | USD |
Example 1: EURUSD buy
For example, you buy 0.5 lot of EURUSD at 1.0800 and close at 1.0850. The price difference is 0.0050, which is 0.0050 ÷ 0.0001 = 50 pips. P/L = 0.0050 × 100,000 × 0.5 = +250 dollars.
If instead the price had fallen to 1.0770 and you closed there, the difference would be −0.0030, or −30 pips, and the loss would be 0.0030 × 100,000 × 0.5 = −150 dollars. A quick check: at 0.5 lot each pip is worth about 5 dollars.

Example 2: XAUUSD sell
Selling gold profits when the price falls. For example, you sell 0.2 lot (20 ounces) of XAUUSD at 2,050.00 and close at 2,038.50. Using the sell formula, the difference is 2,050.00 − 2,038.50 = 11.50 dollars, which is 115 pips if a pip is 0.10. P/L = 11.50 × 100 × 0.2 = +230 dollars.
Had gold risen to 2,058.00 instead, the same position would lose (2,050.00 − 2,058.00) × 100 × 0.2 = −160 dollars. Gold moves of several dollars in a session are common, which is why position sizing matters so much; see how to trade gold.
Example 3: USDJPY buy (converting yen to dollars)
For example, you buy 1 lot of USDJPY at 150.00 and close at 150.60. The move is 0.60, which is 0.60 ÷ 0.01 = 60 pips. P/L in yen = 0.60 × 100,000 × 1 = 60,000 yen.
To express it in dollars, divide by the closing rate: 60,000 ÷ 150.60 ≈ +398 dollars. This conversion is why a pip on USDJPY is worth slightly less than 10 dollars per lot, and why the value changes as the rate moves. The pip value calculator shows the pip value at any price.

What the calculator leaves out: spread, swap and commission
The calculator measures the move between two prices. Your real result in the app also includes trading costs. You buy at the ask and sell at the bid, so the spread is a cost on every trade. Positions held overnight may be charged or credited a swap, and some accounts charge a commission. The app shows these figures for each instrument and position; check them there rather than relying on any fixed number.
Prices can also gap or slip in fast markets, so the close you get may differ from the level you planned. CFDs are complex and carry a high risk of losing money rapidly due to leverage — treat every profit figure as a scenario, not a forecast.
- Plan entry, stop loss and take profit levels on the chart.
- Enter entry and stop as open and close to see the loss if you are wrong.
- Enter entry and target to see the profit if you are right.
- Compare the two with the risk reward calculator before placing the order.
Questions & answers
How do I calculate profit in forex?
For a buy, subtract the open price from the close price and multiply by contract size and lots; for a sell, subtract the close from the open. Convert to US dollars if the pair is not quoted in dollars.
How much is 1 pip worth on EURUSD?
With a 100,000-unit contract, one pip (0.0001) is worth about 10 dollars per standard lot, 1 dollar per mini lot (0.1) and 0.10 dollars per micro lot (0.01).
How is profit calculated on gold?
Multiply the dollar move by the ounces you hold. With 100 ounces per lot, a 1-dollar move on 0.1 lot (10 ounces) is worth 10 dollars.
Why is my app P/L different from the calculator?
The calculator ignores spread, swap and commission, and uses illustrative contract sizes. The app shows your actual costs and the exact contract specification of the instrument.



