How net PnL and ROE are calculated
Gross PnL is the price difference multiplied by quantity. Net PnL subtracts what the exchange keeps: two fees, one on the entry fill and one on the exit fill, each charged on that fill’s notional value.
Gross = (Exit − Entry) × Qty
Fees = Entry × Qty × entryRate + Exit × Qty × exitRate
Net = Gross − Fees
ROE = Net ÷ (Entry × Qty ÷ Leverage) × 100
ROE is not profit. It is profit divided by the margin you posted. The same 70% ROE is 70 USDT on a 100 USDT margin and 7,000 USDT on a 10,000 USDT margin. Traders compare ROE across trades and then size the next position as if the percentage were money.
Fees are charged on notional — price × quantity — which is why leverage never reduces the fee. At 20x a full taker round trip costs 0.10% of notional, or about 2% of the margin, before the position has moved at all.
Worked example: 0.5 BTC long from $75,000 at 20x
Margin posted is 1,875 USDT. Taker fees on both sides, no BNB discount:
| Exit | Gross PnL | Fees | Net PnL | ROE |
|---|---|---|---|---|
| $78,000 | +1,500.00 | 38.25 | +1,461.75 | +77.96% |
| $75,075.04 | +37.52 | 37.52 | 0.00 | 0.00% |
| $75,000 | 0.00 | 37.50 | −37.50 | −2.00% |
| $73,000 | −1,000.00 | 37.00 | −1,037.00 | −55.31% |
| $71,536.14 | −1,731.93 | 36.63 | −1,768.56 | liquidated |
$75,075.04 is the breakeven exit after both taker fees. The last row is the isolated liquidation price at 0.40% MMR — the position is closed there before the full loss is realised as PnL.
Three things the percentage hides
- Fees on both fills. Switching both orders to Maker halves the cost; switching only the exit keeps half the damage.
- Funding. A position held across a funding interval pays or receives the rate on its notional. It does not appear in the PnL above — use the funding calculator for that.
- Slippage. Market orders fill at the next available price. On a thin book the difference can exceed the fee, which is why the realised result is often a little worse than this estimate.