Profit and cost

Profit and loss calculator

Updated 24 Nov 2026 · Free, no sign-up · Inputs stay in your browser

In shortA profit and loss calculator measures what a trade made or lost. For a long trade, P/L equals exit price minus entry price, times quantity, minus fees. For a short trade the price difference is reversed. The result is in the currency the price is quoted in.

Calculator

Profit or loss from entry, exit and size, with fees.

Direction
Commission and other costs for both sides.
Net profit / loss
+100.00
+10.00% of position value
Gross P/L
+100.00
Fees
0.00
Price move
+10.00%
Position value at entry
1,000.00

Calculations are for information only and are not a recommendation to trade.

AdvertisementAdSense placeholder · responsive leaderboard, below the result

Formula

  • Long P/L = (exit − entry) × quantity − fees
  • Short P/L = (entry − exit) × quantity − fees
  • Return % = net P/L ÷ (entry × quantity)

Worked example

Direction
Long
Entry price
100
Exit price
110
Quantity
10 units
Total fees
0
  1. Gross P/L = (110 − 100) × 10 = +100.00
  2. Net P/L = 100.00 − 0 fees = +100.00
  3. Return = 100 ÷ (100 × 10) = +10.00% of position value

Net profit = +100.00 (+10.00% of position value)

Units and currency

The result is in the currency the price is quoted in. Shares priced in USD give P/L in USD. For forex, quantity is in units and P/L comes out in the quote currency, so a EUR/USD trade shows USD.

Futures P/L is ticks times tick value, which the futures tick value calculator covers.

Fees and percentages

The fees field takes total costs for both sides of the trade, including commission and any financing. The tool subtracts them from gross P/L.

The percentage is measured against position value at entry, without leverage. On a leveraged account, the change relative to margin or equity is larger.

A loss shows with a minus sign. When fees exceed the gross profit, the net result is negative even on a trade where price moved in its favor.

Frequently asked questions

How do you calculate profit on a trade?

Subtract the entry price from the exit price and multiply by the quantity. Then subtract fees. Buying 10 units at 100 and selling at 110 gives (110 − 100) × 10 = 100 before costs.

How is profit calculated on a short trade?

A short profits when price falls. Profit equals entry price minus exit price, times quantity, minus fees. Selling 10 units at 110 and buying them back at 100 gives a profit of 100 before costs.

How do I get forex profit in my account currency?

A profit and loss calculator returns forex P/L in the quote currency. To convert, multiply by the rate from the quote currency to your account currency. For EUR/USD on a USD account, no conversion is needed.

Does the P/L include the spread?

Only if the prices entered already reflect it. Actual fill prices, such as the bid on exit for a long, capture the spread. Commission and overnight swap charges belong in the fees field.