Skip to content
PipsMorrow

Profit/Loss Calculator

See what a buy or sell trade makes or loses between its open and close price, in pips, USD, and Thai baht (THB). This result doesn't include spread, swap, or commission, so your broker's actual number will land a little lower.

  • Free
  • No data stored
  • Formula shown
Direction
$
$

Converts the result into THB.

Profit or loss

+125.00USD

+4,082.50 THB (Profit)

Price move
+12.50
Pips
+1,250.0
Value of 1 pip at this lot size
0.1000
Direction
Buy
Instrument
Gold (XAU/USD)
Worked examples

Try it with real numbers

Example 1 — Gold (XAU/USD), buy

Instrument
Gold (XAU/USD)
Direction
Buy (long)
Lots
0.10
Open → close
$2,400.00 → $2,412.50

Price move = 2,412.50 − 2,400.00 = +$12.50, or +1,250.0 pips. This buy closes with a profit of +$125.00 (+4,082.50 THB).

Example 2 — USD/JPY, buy

Instrument
USD/JPY
Direction
Buy (long)
Lots
1.00
Open → close
$147.50 → $146.80

Price move = 146.80 − 147.50 = -$0.70, or -70.0 pips. Because USD/JPY isn't quoted in USD, pip value converts at the close price, 146.80. This buy closes with a loss of -$476.84 (-15,573.57 THB).

The formula

How to calculate profit and loss

Price move = close price − open price (for a sell, use open price − close price)
Pips = price move ÷ pip size
Profit or loss (USD) = pips × value of 1 pip (USD) × lots
If the quote currency isn't USD, value of 1 pip is converted at the USD/quote rate

What each variable means:

  • Price move — The difference between the close price and the open price, in the instrument's own units. A sell flips the subtraction, since a falling price is a profit when you're short.
  • Pips — A pip (percentage in point) is the standard unit of price movement in forex and gold trading. Dividing the price move by the pip size tells you how many pips the trade covered.
  • Pip size — The smallest price move counted as 1 pip for a given instrument: 0.01 for XAU/USD and most JPY pairs, 0.0001 for most other forex pairs.
  • Value of 1 pip (USD) — Pip size × contract size, scaled to your lot size. It's the dollar amount that changes hands for every pip the price moves.
  • Lots — The size of your position: 1.00 lot (standard), 0.10 lot (mini), and 0.01 lot (micro) are common sizes.
  • Direction — Buy (long) profits when the price rises; sell (short) profits when it falls, which is why the price move formula flips for a sell.

Example: buying 0.10 lot of XAU/USD at $2,400.00 and closing at $2,412.50 gives a price move of $12.50, or 1,250.0 pips at a pip size of 0.01. Value of 1 pip (USD) at 0.10 lot = 0.01 × 100 × 0.10 = $0.10, so profit = 1,250.0 × 0.10 = $125.00.

Why buy and sell measure the price move in opposite directions

A buy (long) position profits when the close price ends up higher than the open price, so profit or loss follows close price minus open price directly. A sell (short) position profits when price falls, so the calculator flips the subtraction to open price minus close price. Getting the direction right matters, because using the wrong sign turns a profit into a loss on paper.

Why USD/JPY and similar pairs convert at the close price

XAU/USD and EUR/USD already price in USD, so their pip value never needs converting. USD/JPY, USD/CHF, and USD/CAD quote in a currency other than USD, and that exchange rate moves with the market just like the trade itself. Converting pip value at the close price keeps the calculation tied to the same moment the trade actually ended, rather than a rate you typed in separately.

Why your real profit will likely come in a little lower

This calculator works from the open and close price alone, so it doesn't include the spread (the gap between a broker's buy and sell price), any swap (the overnight financing charge for holding a position past end of day), or a commission your broker might charge per trade. Each of those costs chips a small amount off the result shown here. Check your broker's trade confirmation for the number that actually landed in your account.

FAQ

Frequently asked questions

Does this number include spread, swap, or commission

No. This tool works out profit or loss purely from the open price, close price, lots, and direction you enter. Your broker's spread, any swap charged for holding overnight, and any per-trade commission all come out of the raw result, so the amount that lands in your account is usually a little smaller.

Why is the pip value for USD/JPY different from XAU/USD

XAU/USD already prices in USD, so its pip value needs no conversion. USD/JPY quotes in Japanese yen, so the pip value has to be converted back to USD using the exchange rate at the close price, and that rate shifts as the market moves.

Why does a sell trade profit when the price falls

A sell (short) position is a bet that the price will drop, so the calculator measures the move as open price minus close price for a sell instead of close minus open. A lower close price than open price then produces a positive result.

What does it mean if the calculator shows Break-even

Break-even means the close price came back to exactly the open price, so the price move and the profit or loss both round to zero. It doesn't account for spread, swap, or commission, so a real break-even trade usually costs you a small amount once those are included.

Can I use this before I open a trade, not just after

Yes. Enter your planned open price and a target close price, such as a take profit or stop loss level, to see the profit or loss that outcome would produce before you place the trade.

Next steps

Related tools and lessons

Pip Calculator

Find the value of one pip for XAU/USD and major pairs, in USD and THB.

Example 1 lot XAU/USD = $1.00/pip

Open tool

Lot Size Calculator

Work out the right lot size from your account balance and the risk you accept per trade.

Example $1,000 account, 2% risk, SL $2.00 = 0.10 lot

Open tool

Learn more about pip value and trade sizing in Chapter 04: Trading XAU/USD on a Forex Platform → · See the full curriculum →