Calculation of Profit and Loss for Expiry Futures Contracts

·

Key Terms and Formulas

| Term | Formula |
|------|---------|
| Size | Number of contracts held (positive for long positions, negative for short in One-way mode; both positive in Hedge mode). |
| Entry Price | Adjusted when adding/reversing positions or at settlement. Formulas differ by contract type:
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 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 Price. |
| Realized PnL | Closed PnL + Settlement PnL + Trading Fees |
| Realized PnL Ratio | (Realized PnL / Closed Position Margin) × 100% |


Practical Examples

1. Calculating Entry Price

U-stablecoin-margined Contracts:

Coin-margined Contracts:

👉 Learn more about position sizing strategies

2. Floating PnL Calculation

U-stablecoin-margined Long Position:

Coin-margined Short Position:

3. Floating PnL Ratio


FAQs

Q1: How does settlement affect my entry price?

A1: At settlement, the entry price is replaced by 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 closing trade.

👉 Explore advanced futures trading techniques

Q3: How do leverage and margin impact PnL ratios?

A3: Higher leverage amplifies both gains and losses, directly affecting PnL ratios relative to margin used.


Risk Disclosure

Trading futures involves significant risk, including potential loss of principal. Use leverage cautiously and ensure strategies align with your risk tolerance.

© 2025 OKX. All rights reserved.


### SEO Keywords:  
- Futures contracts  
- Profit and loss calculation  
- Coin-margined futures  
- U-stablecoin-margined futures  
- Floating PnL  
- Settlement PnL  
- Leverage trading