Profit and loss calculator
Profit or loss of a trade from open and close price, size and direction — in your account currency and in pips, for forex, gold, indices and crypto.
XAUUSD now: 3724.39 / 3724.89 (bid / ask, IC Markets, November 18, 2026 at 09:44 PM UTC). 1 pip = 0.01. Profit currency: USD.
- Move
- 4,222.0 pips
- Return on margin
- 113.4%
Build the entry conditions without code and test them on years of history: the result in R, losing streaks, drawdown — before you risk the account.
Run a backtestHow it is calculated
Profit = (close − open) × lots × contract size for a buy, and (open − close) × lots × contract size for a sell. The result is in the profit currency of the instrument and is converted into your account currency at the current rate.
The calculator shows the result before costs. Commission, spread and swap are counted by the trade cost and swap calculators; in a backtest on 1nTest all three are deducted from every trade.
Questions
Why does the same move in pips give a different profit on different pairs?
Because the value of a pip depends on the contract and the profit currency. 50 pips on EURUSD and on GBPJPY are different amounts of money in a USD account.
Is this the profit I will see in the platform?
Close to it, minus commission and swap and with the exchange rate at the moment of closing. Spread is already inside the prices if you enter the actual fill prices.
What is return on margin?
Profit divided by the margin the position locked. It shows how hard the deposit worked, but it is not the risk: a position can lose much more than its margin when the stop is far.
Put this calculator on your site
Free, no registration. Copy the code into your page:
<iframe src="https://1ntest.com/en/embed/profit" width="100%" height="760" style="border:0;max-width:960px" loading="lazy" title="1nTest"></iframe>
For education. The figures are measured for one commission-charging broker at the reference date and are not a quote; your broker's conditions may differ.
← All calculators