When you close a leveraged crypto futures position, your real result is gross price move minus the fees you paid on both legs. This calculator computes the full breakdown for long or short trades on both linear (USDT-margined) and inverse (coin-margined) contracts, including return on equity.
How it works
For a linear contract the quantity in coins drives everything:
qty = size in coins, or sizeUSD / entry
long gross PnL = qty × (exit − entry)
short gross PnL = qty × (entry − exit)
fees = (qty×entry + qty×exit) × feeRate
net PnL = gross − fees
margin = (qty × entry) / leverage
ROE % = net PnL / margin × 100
For an inverse (coin-margined) contract, profit settles in the base coin and uses reciprocal prices:
long PnL(coin) = notionalUSD × (1/entry − 1/exit)
short PnL(coin) = notionalUSD × (1/exit − 1/entry)
margin(coin) = notionalUSD / (entry × leverage)
Example and notes
Going long 1,000 USD of BTC at 60,000 and closing at 66,000 on a linear contract returns roughly 100 USD gross before fees, and with 10× leverage that is a 100% ROE on the 100 USD margin. The same move on an inverse contract returns a small amount of BTC. Funding, slippage, and liquidation are not modelled, so treat the output as a clean trade estimate, not a guaranteed result.