Calculating Unrealized PnL
For Long Positions:
Unrealized PnL = (Mark Price - Entry Price) × Position SizeFor Short Positions:
Unrealized PnL = (Entry Price - Mark Price) × Position SizeExample (Long):
- Entry price: $50,000
- Current mark price: $52,000
- Position size: 1 BTC
- Unrealized PnL = ($52,000 - $50,000) × 1 = +$2,000
Example (Short):
- Entry price: $50,000
- Current mark price: $48,000
- Position size: 1 BTC
- Unrealized PnL = ($50,000 - $48,000) × 1 = +$2,000
Unrealized PnL and Margin
Your unrealized PnL directly affects your:
- Available margin: Profits increase it, losses decrease it
- Margin ratio: Determines how close you are to liquidation
- Liquidation price: Based on when unrealized losses exceed your margin
ROI vs Unrealized PnL
ROI (Return on Investment) considers your leverage:
- Unrealized PnL: +$2,000
- Initial margin (10x leverage on $50,000 position): $5,000
- ROI: $2,000 / $5,000 = 40%
Tax Implications
In most jurisdictions, unrealized PnL is not taxable — you only owe taxes on realized gains (when you close the position). However, tax rules vary by country. Consult a tax professional for your specific situation.