Calculation of Profit and Loss for Expiry Futures Contracts

·

Key Terms and Formulas

Below is a breakdown of essential terms and their corresponding formulas for calculating profit and loss in expiry futures contracts:

TermFormula Description
SizeNumber of contracts held. Positive for long positions (One-way mode), negative for short positions (One-way mode), and always positive in Hedge mode.
Entry PriceAdjusted when adding positions or reverse-opening. Coin-margined: (Current Size + Added Size) / (Current Size / Entry Price + Added Size / Added Size's Entry Price). U-stablecoin-margined: (Current Size × Entry Price + Added Size × Added Size's Entry Price) / (Current Size + Added Size).
Floating PnLCoin-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’s Margin) × 100%.
Closed PnLCoin-margined: Long: `Face Value × \Size\× Multiplier × (1/Entry Price - 1/Close Price). Short: Face Value × \Size\× Multiplier × (1/Close Price - 1/Entry Price)`. U-stablecoin-margined: Formulas mirror Floating PnL but use Close Price instead of Mark Price.
Settlement PnLReplaces Close Price with Settlement Price in Closed PnL formulas.
Realized PnLClosed PnL + Settlement PnL + Trading Fees.
Realized PnL Ratio(Realized PnL / Closed Position’s Margin) × 100%.

👉 Master futures trading strategies to optimize your PnL calculations.


Practical Examples

1. Calculating Entry Price

U-Stablecoin-Margined Contracts

Coin-Margined Contracts

2. Floating PnL Calculation

U-Stablecoin-Margined Long Position

Coin-Margined Short Position

3. Floating PnL Ratio


FAQs

1. How does settlement affect entry price?

Settlement replaces the entry price with the settlement price, recalculating PnL based on the final price.

2. What’s the difference between Floating and Realized PnL?

Floating PnL reflects unrealized gains/losses based on mark price, while Realized PnL includes closed trades, settlements, and fees.

3. Why is size negative in One-way mode for short positions?

Negative size simplifies PnL calculations by distinguishing long vs. short positions without separate formulas.

👉 Explore advanced trading tools to streamline your futures analysis.


Risk Disclaimer

Trading digital assets involves high risk, including potential loss of capital. Leverage magnifies risks and rewards. Past performance ≠ future results. Consult your financial advisor before trading.

© 2025 OKX. All rights reserved.


### Key Features:
- **SEO Optimization**: Keywords like "expiry futures contracts," "PnL calculation," and "margin trading" are naturally integrated.
- **Engagement**: Anchor texts encourage exploration of related resources.
- **Clarity**: Tables and examples simplify complex concepts.