Overview of Perpetual Contract PnL Calculation
In cryptocurrency perpetual contract trading, understanding the calculation methods for Unrealized PnL and Realized PnL is crucial for traders to manage risk and evaluate trading performance. ZT Exchange, as one of the platforms offering perpetual contract services, typically follows industry-standard PnL calculation methods. These calculations involve multiple variables such as mark price, funding rate, and trading fees, and are not simply based on the buy-sell spread.

The complexity of perpetual contract PnL calculation lies in the potential discrepancy between the unrealized PnL displayed on the trading panel and the actual settlement upon closing a position. This is primarily because the "mark price" used for risk assessment may differ from the "latest market price" at which the trade is executed. Furthermore, the contract type also influences the calculation logic, mainly divided into USDT-margined (U-margined contracts) and coin-margined (inverse contracts). Currently, USDT-margined contracts are mainstream due to their linear PnL relationship.
Unrealized PnL Calculation
Unrealized PnL refers to the floating profit or loss estimated based on the current market price while holding a position. It does not include trading fees and funding fees, and is primarily used by exchanges to assess the liquidation risk of a position.
- Mark Price: This is the core of unrealized PnL calculation. The mark price is a composite index designed to reflect the "true" fair value of an asset, to smooth out short-term price fluctuations, prevent market manipulation, and serve as the trigger price for forced liquidation.
- USDT-Margined Contract (U-Margined Contract) Calculation Formula:
- Long Position: Unrealized PnL = (Mark Price - Average Entry Price) × Position Size × Contract Multiplier
- Short Position: Unrealized PnL = (Average Entry Price - Mark Price) × Position Size × Contract Multiplier

Please note that some exchanges may default to displaying unrealized PnL calculated based on the latest market price, but usually provide an option to switch to calculation based on the mark price. When traders view real-time data on market platforms like Svmuu, they should pay attention to the PnL calculation basis.
Realized PnL Calculation
Realized PnL refers to the portion of unrealized PnL that a trader converts into actual profit or loss through closing a position. This PnL deducts all trading fees and funding fees incurred during the holding period, reflecting the final outcome of the trade.

- USDT-Margined Contract (U-Margined Contract) Calculation Formula:
- Long Position: Realized PnL = (Closing Price - Average Entry Price) × Closed Quantity × Contract Multiplier - Trading Fees - Funding Fees Incurred During Holding Period
- Short Position: Realized PnL = (Average Entry Price - Closing Price) × Closed Quantity × Contract Multiplier - Trading Fees - Funding Fees Incurred During Holding Period
Among these, trading fees and funding fees are usually calculated based on the notional value of the position. Traders should fully consider the impact of these fees on the final PnL when closing positions.
Risk Warning and Important Notes

Traders need to thoroughly understand the PnL calculation rules for perpetual contracts, especially the mark price, funding rate, and liquidation mechanism. Misunderstanding these mechanisms can lead to unnecessary risks or liquidations. Mainstream exchanges such as Binance, Bybit, Gate.com, and KuCoin all provide detailed calculation rules in their help centers, and traders are advised to review them carefully. Industry analysts and media also frequently publish articles reminding traders to be aware of potential risks and "algorithmic traps" in perpetual contract trading to avoid losses due to calculation discrepancies.







