Calculation of expiry futures contracts' profit and loss

Опубліковано 20 черв. 2022 р.Оновлено 13 бер. 2025 р.5 хв читання

Term

Formula

Size

The number of contracts, crypto or fiat value you hold in a position。For One-way mode, the size of long positions is a positive number, and the size of short positions is a negative number. For Hedge mode, the size of both long and short positions is a positive number.

Remarks: "Size" used in below formulas are all positive number.

Entry Price

Increasing position size and reverse-open position will change the entry price. Settlement will replace the entry price with the settlement price.

Coin-margined contracts:

= (Current Size + Added Size) / (Current Size / Entry Price + Added Size / Added Size's Entry Price)

U-stablecoin-margined contracts:

= (Current Size x Entry Price + Added Size x Added Size's Entry Price) / (Current Size + Added Size)

Floating PnL

Coin-margined contracts:

Long positions PnL = Face value x |Size| x Multiplier x (1/Entry price - 1/Mark price)

Short positions PnL = Face value x |Size| x Multiplier x (1/Mark price - 1/Entry price)

U-stablecoin-margined contracts:

Long positions PnL = Face value x |Size| x Multiplier x(Mark price - Entry price)

Short positions PnL = Face value x |Size| x Multiplier x(Entry price - Mark price)

Floating PnL Ratio

(Floating PnL / Position's margin) x 100%

Closed PnL

Coin-margined contracts:

Long positions PnL = Face value x |Size| x Multiplier x(1/Entry price - 1/Close price)

Short positions PnL = Face value x |Size| x Multiplier x(1/Close price - 1/Entry price)

U-stablecoin-margined contracts:

Long positions PnL = Face value x |Size| x Multiplier x(Close price - Entry price)

Short positions PnL = Face value x |Size| x Multiplier x(Entry price - Close price)

Settlement PnL

Coin-margined contracts:

Long positions PnL = Face value x |Size| x Multiplier x(1/Entry price - 1/Settlement price)

Short positions PnL = Face value x |Size| x Multiplier x(1/Settlement price - 1/Entry price)

U-stablecoin-margined contracts:

Long positions PnL = Face value x |Size| x Multiplier x(Settlement price - Entry price)

Short positions PnL = Face value x |Size| x Multiplier x(Entry price - Settlement price)


Note: More information on the settlement rules can be found here.

Realized PnL

Closed PnL + Settlement PnL + Trading Fee


Note: More information on the trading fee rules can be found here.

Realized PnL Ratio

(Realized PnL / Closed position's margin) x 100%

Example

Entry price

U-stablecoin-margined contracts: Suppose you hold a long BTC-USDT expiry futures position, the position size is 10 contracts and the entry price is 100,000 USD. You now open 5 more contracts on the long BTC-USDT expiry futures position and the fill price is 160,000 USD.
Entry price:
= (Current Size x Entry Price + Added Size x Added Size's Entry Price) / (Current Size + Added Size)
= (100,000 x 10 + 160,000 x 5) / (10 + 5)
= 120,000 USDT

Coin-margined contracts: Suppose you hold a short BTC-USD expiry futures position, the position size is 10 contracts and the entry price is 100,000 USD. You now open 5 more contracts on the short BTC-USD expiry futures position and the fill price is 80,000 USD.
Entry price:
= (Current Size + Added Size) / (Current Size / Entry Price + Added Size / Added Size's Entry Price)
= (10 + 5) / (10 / 100,000 + 5 / 80,000)
= 92307 USD

Floating PnL

U-stablecoin-margined contracts: Suppose you hold a long BTC-USDT expiry futures position, the contract face value is 0.01 BTC, contract multiplier is 1, size is 10 contracts. The position's entry price is 100,000 USD and the mark price is 160,000 USD.
Long positions PnL:
= Face value x |Size| x Multiplier x(Mark price - Entry price)
= 0.01 x 10 x 1 x (160,000 - 100,000)
= 6000 USDT

Coin-margined contracts: Suppose you hold a short BTC-USD expiry futures position, the contract face value is 100 USD, contract multiplier is 1, size is 1000 contracts. The position's entry price is 100,000 USD and the mark price is 80,000 USD.
Short positions PnL:
= Face value x |Size| x Multiplier x(1/Mark price - 1/Entry price)
= 100 x 1000 x 1 x (1 / 80,000 - 1 / 100,000)
= 0.25 BTC

Floating PnL Ratio

U-stablecoin-margined contracts: Suppose you have a long BTC-USDT expiry futures position, the current floating pnl of the position is 6000 USDT, and the current position's margin is 1600 USDT.

Floating PnL Ratio:
= (Floating PnL / Position's margin) x 100%
= (6000 / 1600) x 100%
= 375%


This document is provided for informational purposes only. It is not intended to provide any investment, tax, or legal advice, nor should it be considered an offer to purchase, sell, hold or offer any services relating to digital assets. Digital asset holdings, including stablecoins, involve a high degree of risk, can fluctuate greatly, and can even become worthless. Leveraged trading in digital assets magnifies both potential gains and potential losses and could result in the loss of your entire investment. Past performance is not indicative of future results. You should carefully consider whether trading or holding digital assets is suitable for you in light of your financial condition, particularly if considering the use of leverage. You are solely responsible for your trading strategies and decisions, and OKX is not responsible for any potential losses. Not all products and promotions are available in all regions. For more details, please refer to the OKX Terms of Service and Risk & Compliance Disclosure.

© 2025 OKX. All rights reserved.