◆ New — Strategy Validator, Code Fixer & Prop Compliance Checker are live. Try one free →
Home / Free tools / Profit / Loss Calculator
Costs · free, no login

Profit / Loss Calculator

P&L on a trade, long or short.

P/L (long)$400
P/L (short)$-400
Move4.00%

Educational tool only — not financial advice. Verify figures with your broker.

Built a strategy around this? Validate its Pine Scriptto catch look-ahead bias & repainting before you trade it.

What is the Profit / Loss Calculator?

The Profit / Loss Calculator is a trade-outcome tool that computes the gross profit or loss on a position from your entry price, exit price and size, for both long and short trades. It answers the question: given where I got in and out, how much did (or would) this trade make or lose?

How to use it

  1. Choose the direction of the trade — long (buy) or short (sell).
  2. Enter your entry price and your exit price (or a hypothetical target).
  3. Enter your position size in lots or units.
  4. Read the highlighted profit or loss figure — positive means a gain on those prices, negative a loss.

How it's calculated

For a long: P&L = (exit price − entry price) × position size in units. For a short: P&L = (entry price − exit price) × position size in units. In pip terms, P&L = price move in pips × pip value × lots. The result is gross — before costs.

Frequently asked

How do I calculate profit on a forex trade?

Multiply the price difference between entry and exit by your position size, using (exit − entry) for a long and (entry − exit) for a short. This forex profit calculator does that for you and flips the sign automatically for short positions.

How is profit different for a short trade?

On a short you profit when price falls, so the calculation reverses: entry minus exit. A higher exit than entry produces a loss on a short.

Does this include spread and commission?

No — it shows gross profit or loss from the prices you enter. Subtract your spread, commission and swap separately to get the net result.

Keep in mind: The figure is gross P&L based only on the prices and size you enter — it excludes spread, commission, swap and slippage, so your actual net result after costs will be smaller than a gain or larger than a loss shown here.

Catch the bug that compiles.Run auditGet Pro