Your position
USDT perps, isolated marginResult
Link to this calculation- Net PnL
- ROE
- Gross PnL
- Fees (open + close)
- Initial margin
- Position value
- Price move
- Exit price for target ROE
Estimate: These are estimates. Exchanges use tiered maintenance margin (bigger positions need more), liquidate on the mark price rather than the last trade, and handle fees and cross margin their own way. Check your exchange's position screen before you trade.
Worked example
BTC long, the numbers above- You buy 0.1183 BTC at $84,534.90: a $10,000.48 position. At 10x the initial margin is $10,000.48 ÷ 10 = $1,000.05.
- Gross PnL = (exit − entry) × quantity = $500.02 for a close at $88,761.60 (+5.00%).
- Fees = 0.05% × (entry value + exit value) = $10.25, so net PnL is $489.77.
- ROE = net PnL ÷ initial margin = $489.77 ÷ $1,000.05 = +48.97%. Leverage multiplies the price move: +5.00% × 10 before fees.
- To make +50.00% ROE after fees you would close at $88,848.34.
The formula
Long PnL = (Exit − Entry) × Quantity − fees · Short PnL = (Entry − Exit) × Quantity − fees
Fees = fee rate × (Entry × Quantity + Exit × Quantity) · ROE = PnL ÷ (Entry × Quantity ÷ Leverage)
Target price (long) = Entry × (1 + fee + ROE/Leverage) ÷ (1 − fee) · (short) = Entry × (1 − fee − ROE/Leverage) ÷ (1 + fee)
PnL is the price difference times the coins you hold, less the trading fee on the way in and out. ROE compares that with the margin you put up, which is why leverage multiplies it. Funding payments are not included.