Calculating Profit and Loss for Expiry Futures Contracts

·

Understanding Key Concepts

Contract Size

Entry Price Dynamics

Entry prices adjust when:

  1. Increasing position size
  2. Reverse-opening positions
  3. Settlement (replaces entry price with settlement price)

Formulas:
👉 Discover advanced trading strategies

Coin-margined Contracts:

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

U-stablecoin-margined Contracts:

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

Profit and Loss Calculations

MetricFormulaNotes
Floating PnL Unrealized gains/losses
Coin-margined (Long)`Face Value ×Size× Multiplier × (1/Entry Price - 1/Mark Price)`
Coin-margined (Short)`Face Value ×Size× Multiplier × (1/Mark Price - 1/Entry Price)`
USDT-margined (Long)`Face Value ×Size× Multiplier × (Mark Price - Entry Price)`
USDT-margined (Short)`Face Value ×Size× Multiplier × (Entry Price - Mark Price)`
Floating PnL Ratio(Floating PnL / Position Margin) × 100%Measures ROI
Closed PnL Realized upon position closure
Coin-margined (Long)Replace "Mark Price" with "Close Price" in Floating PnL formula
USDT-margined (Short)Replace "Mark Price" with "Close Price" in Floating PnL formula
Settlement PnLReplace "Mark Price" with "Settlement Price" in Floating PnL formulasOccurs at contract expiry
Realized PnLClosed PnL + Settlement PnL + Trading FeesIncludes all finalized gains/losses
Realized PnL Ratio(Realized PnL / Closed Position's Margin) × 100%Post-trade performance

Practical Examples

Example 1: Entry Price Calculation

USDT-margined Contract

Coin-margined Contract

👉 Optimize your entry strategies

Example 2: Floating PnL

USDT-margined Long Position

Coin-margined Short Position

Example 3: PnL Ratios

Floating PnL Ratio


FAQ Section

1. How does leverage affect PnL calculations?

Leverage amplifies both gains and losses but doesn't change the underlying PnL formulas. It impacts margin requirements and liquidation risks.

2. Why do entry prices change when adding to positions?

The system calculates a weighted average price to reflect your true cost basis across multiple entries.

3. What's the difference between Floating and Realized PnL?

4. How often are mark prices updated?

Mark prices typically update in real-time to ensure accurate PnL reflection.

5. Do fees impact PnL calculations?

Yes, trading fees are factored into Realized PnL but not Floating PnL.

6. Can PnL ratios exceed 100%?

Absolutely, especially with high leverage or significant price movements.


Risk Disclosure

Digital asset trading involves substantial risk. Leverage magnifies volatility exposure, potentially leading to total margin loss. Past performance never guarantees future results. Consult financial advisors to assess suitability. OKX provides no investment warranties—users bear full responsibility for trading decisions.

© 2025 OKX. All rights reserved.