Profit & Loss Calculator

See exactly what a trade makes or loses. Enter your entry, exit, position size and direction to get the gross and net result, the percentage return, and the leveraged return on margin.

$
$
×
%
Result
Gross P/L+$100.00
P/L %+10.00%
ROE %+10.00%
Net P/L (after fees)+$100.00
Ready to automate?
Backtest this across history

One trade is one data point. A bot can run this idea across thousands of past candles and paper-trade it live, with no real money at risk.

Create a free bot

How profit and loss is calculated

  1. 01

    Take the price change from entry to exit and multiply it by your position size. For a short, the sign flips.

  2. 02

    Divide the gross result by the cost of the position to get the percentage return.

  3. 03

    With leverage, the return on your margin (ROE) is that percentage multiplied by the leverage. Subtract fees for the net result.

P/L = (Exit - Entry) × Size × direction

Worked examples

10 units, $100 to $110

A long of 10 units from $100 to $110 makes ($110 - $100) × 10 = $100 gross, a 10% return. At 10x leverage that is a 100% ROE on margin.

A losing short

A short of 10 units from $100 to $105 loses ($105 - $100) × 10 = $50, because the price rose against the position.

Frequently asked questions

What is ROE in trading?

Return on equity (ROE) is your profit measured against the margin you posted, not the full position value. Leverage multiplies it: a 10% price move at 10x is a 100% ROE, up or down.

Does this include fees?

Yes, if you enter a fee per side. It applies that percentage to both the entry and the exit and shows the net result. Leave it blank to see the gross figure only.

What is the difference between P/L % and ROE %?

P/L % is the return on the full position value. ROE % is the return on the margin you actually put up, so it equals P/L % multiplied by your leverage.

Related calculators

Not financial advice. This calculator is an educational tool, not financial advice. Trading carries substantial risk and you can lose some or all of your capital. Figures are estimates. Verify against your exchange's own margin, fee and liquidation rules before trading.