Calculation of Profit and Loss for Expiry Futures Contracts

·

Key Terminologies and Formulas

| Term | Definition & Calculation |
|------|--------------------------|
| Size | Number of contracts held (long = positive, short = negative in One-way mode; both positive in Hedge mode). |
| Entry Price | Adjusted when adding/reversing positions or during settlement:
Coin-margined: (Current Size + Added Size) / (Current Size / Entry Price + Added Size / New Entry Price)
U-stablecoin-margined: (Current Size × Entry Price + Added Size × New Entry Price) / (Current Size + Added Size) |
| Floating PnL | Coin-margined:
Long: Face Value × |Size| × Multiplier × (1/Entry Price - 1/Mark Price)
Short: Face Value × |Size| × Multiplier × (1/Mark Price - 1/Entry Price)
U-stablecoin-margined:
Long: Face Value × |Size| × Multiplier × (Mark Price - Entry Price)
Short: Face Value × |Size| × Multiplier × (Entry Price - Mark Price) |
| Floating PnL Ratio | (Floating PnL / Position Margin) × 100% |
| Closed PnL | Similar to Floating PnL but uses close price instead of mark price. |
| Settlement PnL | Uses settlement price instead of mark/close price. |
| Realized PnL | Closed PnL + Settlement PnL + Trading Fees |
| Realized PnL Ratio | (Realized PnL / Closed Position’s Margin) × 100% |

👉 Learn advanced trading strategies


Practical Examples

1. Calculating Entry Price

Scenario (U-stablecoin-margined):

Scenario (Coin-margined):

2. Floating PnL Computation

U-stablecoin-margined Long Position:

Coin-margined Short Position:

3. Floating PnL Ratio

👉 Explore margin trading insights


FAQs

Q1: How does settlement affect my entry price?

A1: Settlement replaces your entry price with the settlement price, recalculating PnL based on this new benchmark.

Q2: Why is my realized PnL different from closed PnL?

A2: Realized PnL includes trading fees and settlement adjustments, not just the close price difference.

Q3: Can negative sizes occur in Hedge mode?

A3: No. Hedge mode treats both long/short sizes as positive values.

Q4: How is mark price determined?

A4: Exchanges use aggregated data from major markets to prevent manipulation.


Disclaimer: Trading digital assets involves high risk. Past performance ≠ future results. OKX provides tools but assumes no liability for trading outcomes.

© 2025 OKX. All rights reserved.