# How to Calculate Contract PNL

1. Unrealized PNL

The unrealized PNL refers to the profit and loss of the position held from the last settlement (0:00, 8:00, 16:00, UTC) to the current moment, also known as Paper profit or Paper loss, which is estimated at the Mark price or the latest price.

Please be noted that the Unrealized PNL is only an estimated value and will not affect the settlement PNL.

2. Realized PNL

Realized PNL refers to the final profit and loss of your closed positions, including the settlement PNL, decreased/closed position settlement PNL, the paid trading fees, and the funding fees.

The calculations of each settlement PNL are as follows:

(1) Linear Contract

(Long) Settlement PNL = Position Amount * (Current Settlement Price - Last Settlement Price)

(Short) Settlement PNL = Position Amount * (Last Settlement Price - Current Settlement Price)

(2) Inverse Contract

(Long) Settlement PNL = Position Amount * Contract Value * (1 / Last Settlement Price  - 1 / Current Settlement Price)

(Short) Settlement PNL = Position Amount * Contract Value * (1 / Current Settlement Price - 1 / Last Settlement Price)

The calculations of the PNL when closing or decreasing positions are as follows:

(1) Linear Contract

(Long) Realized PNL = Position Amount * (Closing Price - Settlement Price)

(Short) Realized PNL = Position Amount * (Settlement Price - Closing Price)

(2) Inverse Contract

(Long) Realized PNL = Contract Amount * Contract Value * (1 / Settlement Price - 1 / Closing Price)

(Short) Realized PNL = Contract Amount * Contract Value * (1 / Closing Price - 1 / Settlement Price)

Please refer to What's Settlement price for how to calculate settlement price when Pyramiding Auto-Settlement is enabled.

3. Funding Fee

The funding fee is generated every 8 hours, respectively at 0:00, 8:00, and 16:00 (UTC). You only need to withdraw or pay the fee if you hold a position at these time points.

The trading fee will be charged when buying or selling contracts. The calculations are as follows.

Linear Contract Trading fee = Fee Rate * Position Amount * Limit Price to Buy or Sell

Inverse Contract Trading fee = Fee Rate * Position Amount * Contract Value / Limit Price to Buy or Sell

Related articles:

Introduction to PNL Analysis

How to Profit From Futures Trading

How to Activate and View My PNL Analysis