- Position value at entry = quantity × entry.
- Initial margin = position value ÷ leverage.
- PnL (USDT, before fees and funding) = quantity × (exit − entry) for a long, and quantity × (entry − exit) for a short.
- ROE = PnL ÷ initial margin × 100. Price move = (exit − entry) ÷ entry × 100, with the sign kept.
Leverage changes the margin, not the PnL. Bybit's P&L FAQ says the same: leverage "only affects the amount of initial margin required", while ROI is unrealized P&L divided by initial margin.