Skip to content
Menu

Profit and Loss Calculator

By Chad Smith · Updated

On this page
  1. How to use it
  2. The formula
  3. Worked example
  4. What the result means
  5. Planning trades with P/L
  6. Common mistakes
  7. Related lessons and tools

A profit and loss calculator shows what a trade made or lost in money, based on the entry price, the exit price, the trade size and whether you bought or sold. It can include commission and swap, so the result matches what you see on your statement. Use it to plan targets before a trade or to check results after one.

Profit and loss calculator

lots
USD
USD
USD

Not needed for this pair and account.

Net profit or loss
USD 491.00
Pips
50.0
Gross P/L in USD
USD 500.00
Gross P/L in USD
USD 500.00
Costs and swap
-USD 9.00

How to use it

  1. Choose the instrument and your account currency.
  2. Choose buy or sell.
  3. Enter the entry price and the exit price.
  4. Enter the trade size in lots or units.
  5. Optionally enter commission and swap.
  6. Read the result in pips, in money and as a percentage of the account if you enter a balance.

The formula

Buy:  Price change = Exit − Entry
Sell: Price change = Entry − Exit

Pips = Price change ÷ Pip size

Gross P/L (quote currency) = Price change × Units
Gross P/L (account currency) = converted at the current rate

Net P/L = Gross P/L − Commission ± Swap

The bid and ask matter: a buy opens at the ask and closes at the bid, so the spread is already inside the entry and exit prices if you use the real fill prices.

Worked example

This is an illustrative example with simple numbers.

You sell 0.80 lots of EUR/USD at 1.1050 and buy back at 1.0990. Commission is 5.60 USD and the trade was held for one night with a swap of −2.40 USD.

Price change = 1.1050 − 1.0990 = 0.0060
Pips         = 0.0060 ÷ 0.0001 = 60 pips
Gross P/L    = 0.0060 × 80,000 = 480 USD
Net P/L      = 480 − 5.60 − 2.40 = 472 USD

If you had bought instead of sold, the same price move would be a loss of 480 USD before costs.

What the result means

The net figure is what changes your account balance. Comparing it with the amount you risked tells you the trade's result in multiples of risk, often called R. A trade that made 472 USD after risking 200 USD returned about 2.4R. Recording results in R, alongside money, makes it easier to judge a strategy across different account sizes.

For a series of trades, the expectancy calculator turns individual results into an average per trade.

Planning trades with P/L

The calculator works just as well before a trade as after it. Enter your planned entry, your stop loss as the exit, and you see the loss if the trade fails. Enter your target as the exit and you see the gain if it works. Doing both before you place the order tells you whether the trade fits your risk per trade limit and whether the possible reward is worth the risk. If the numbers do not fit, change the size, not the stop.

Common mistakes

  • Using the chart price for both legs. Charts usually show the bid; a buy enters at the higher ask.
  • Forgetting the direction. On a sell, a falling price is a profit.
  • Mixing up units and lots. 0.80 lots is 80,000 units, not 800.
  • Ignoring conversion. For pairs not quoted in your account currency, the result has to be converted.
  • Leaving out costs. Commission and swap can turn a small gross profit into a net loss.
  • Judging a strategy by one trade. A single result says little about whether the approach works.

Frequently asked questions

How do I calculate profit on a forex trade?

Take the price difference between entry and exit, convert it to pips, and multiply by the pip value for your lot size. For a sell, profit comes when the exit is below the entry.

Why is my platform profit different from the calculator?

Your platform includes the spread, commission and swap, and converts at live rates. Enter those costs in the calculator to match it more closely.

What is the difference between gross and net profit?

Gross profit is the result from price movement alone. Net profit subtracts commission, swap and any other charges.

Can I use it for gold or indices?

Yes. Enter the contract size and the value per point from your broker's specification, because these differ from currency pairs.