Understanding how profit and loss (PnL) are calculated in expiry futures contracts is essential for traders navigating the volatile world of digital assets. Whether you're trading coin-margined or U-stablecoin-margined futures, accurate PnL calculations help assess performance, manage risk, and make informed trading decisions. This guide breaks down the core formulas, explains key terms, and walks through practical examples—ensuring clarity and precision.
Key Definitions in Futures Trading
Before diving into PnL calculations, it's important to define foundational concepts used across trading platforms.
Size
The "size" refers to the number of contracts or the crypto/fiat value held in a position. In One-way mode, long positions have a positive size, while short positions carry a negative value. In Hedge mode, both long and short positions are represented with positive sizes, allowing independent management of directional exposure.
Entry Price
Your entry price reflects the average cost basis of your position. Adding to an existing position or opening a reverse trade will adjust this value. After settlement, the entry price is replaced by the settlement price.
For U-stablecoin-margined contracts:
Entry Price = (Current Size × Entry Price + Added Size × Added Size's Entry Price) / (Current Size + Added Size)For coin-margined contracts:
Entry Price = (Current Size + Added Size) / (Current Size / Entry Price + Added Size / Added Size's Entry Price)All size values used in these formulas are treated as positive numbers.
👉 Discover how real-time PnL tracking enhances trading accuracy and speed.
Floating PnL: Measuring Unrealized Gains or Losses
Floating PnL (Profit and Loss) represents unrealized gains or losses based on current market conditions. It fluctuates with the mark price—the fair market value used to determine your position’s health.
For U-Stablecoin-Margined Contracts
- Long Positions:
Face value × |Size| × Multiplier × (Mark price - Entry price) - Short Positions:
Face value × |Size| × Multiplier × (Entry price - Mark price)
For Coin-Margined Contracts
- Long Positions:
Face value × |Size| × Multiplier × (1/Entry price - 1/Mark price) - Short Positions:
Face value × |Size| × Multiplier × (1/Mark price - 1/Entry price)
These inverse calculations account for pricing in the base currency (e.g., BTC), where changes in USD value affect BTC-denominated profits differently.
Example: Calculating Floating PnL
Suppose you hold a long BTC-USDT expiry futures position:
- Face value: 0.01 BTC
- Multiplier: 1
- Size: 10 contracts
- Entry price: $100,000
- Mark price: $160,000
Floating PnL:
= 0.01 × 10 × 1 × (160,000 – 100,000)
= 6,000 USDT
This means your unrealized profit stands at $6,000.
Now consider a short BTC-USD coin-margined contract:
- Face value: $100
- Size: 1,000 contracts
- Entry price: $100,000
- Mark price: $80,000
Floating PnL:
= 100 × 1,000 × 1 × (1/80,000 – 1/100,000)
= 0.25 BTC
You’ve unrealized a gain of 0.25 BTC due to the drop in price.
Floating PnL Ratio: Assessing Return on Margin
The Floating PnL Ratio shows how much return you're generating relative to the margin allocated to a position.
Formula:
(Floating PnL / Position's Margin) × 100%
Example:
You have a long BTC-USDT position with:
- Floating PnL: 6,000 USDT
- Position margin: 1,600 USDT
Ratio:
= (6,000 / 1,600) × 100% = 375%
A high ratio indicates strong performance but may also signal elevated risk if leverage is involved.
Closed PnL: Realizing Gains from Trade Exit
Closed PnL measures the profit or loss when a position is partially or fully closed. Unlike floating PnL, this is a realized figure based on the actual close price.
U-Stablecoin-Margined Contracts
- Long:
Face value × |Size| × Multiplier × (Close price - Entry price) - Short:
Face value × |Size| × Multiplier × (Entry price - Close price)
Coin-Margined Contracts
- Long:
Face value × |Size| × Multiplier × (1/Entry price - 1/Close price) - Short:
Face value × |Size| × Multiplier × (1/Close price - 1/Entry price)
This metric helps evaluate individual trade outcomes after execution.
Settlement PnL: Final Adjustment at Contract Expiry
At expiry, open positions are settled at the final settlement price. Settlement PnL captures the difference between your entry and settlement prices.
Formulas mirror Closed PnL but use the settlement price instead of close price. This adjustment finalizes your profit or loss before the contract terminates.
👉 See how automated settlement simplifies end-of-contract processing.
Realized PnL: Total Net Gain or Loss
Realized PnL combines all finalized profits and costs:
Realized PnL = Closed PnL + Settlement PnL + Trading Fees
Trading fees are typically deducted from your margin and reduce net gains. Always factor them in for accurate performance analysis.
The Realized PnL Ratio is calculated as:
(Realized PnL / Closed Position's Margin) × 100%
This percentage reveals efficiency—how much return was generated per unit of capital risked.
Frequently Asked Questions (FAQ)
Q: What’s the difference between floating and realized PnL?
A: Floating PnL reflects unrealized gains or losses while a position is open. Realized PnL is the actual profit or loss after closing or settling a position.
Q: Why do coin-margined contracts use inverse pricing formulas?
A: Because profits are denominated in the base cryptocurrency (like BTC), not USD. As the USD value changes, the BTC-equivalent gain/loss requires inverse math for accuracy.
Q: How does adding to a position affect my entry price?
A: It recalculates your average entry cost. For U-margined contracts, it's a weighted average of USDT prices. For coin-margined, it involves harmonic averaging due to inverse pricing.
Q: Can my Floating PnL Ratio exceed 100%?
A: Yes—especially with leverage. A ratio above 100% means your unrealized gain exceeds the margin used, but it also increases liquidation risk.
Q: Are trading fees included in Closed PnL?
A: No—fees are accounted for separately in Realized PnL. Always subtract fees to understand true profitability.
Q: What happens to my position if I don’t close before expiry?
A: It will be automatically settled at the final settlement price, and Settlement PnL will be realized.
Core Keywords for SEO
- Expiry futures PnL calculation
- Futures profit and loss formula
- Coin-margined vs U-margined contracts
- Floating PnL vs Realized PnL
- Futures trading entry price
- Settlement PnL explained
- Leverage trading risk management
Understanding these metrics empowers traders to monitor performance, optimize strategies, and maintain control over risk exposure. With precise calculations and clear interpretation, you can navigate expiry futures with greater confidence.
👉 Access advanced tools that automate PnL tracking and improve trading precision.