Understanding how profits and fees are calculated in contract trading is essential for any trader looking to maximize returns while minimizing costs. On OKX, one of the world’s leading digital asset exchanges, both futures and perpetual contracts follow transparent yet nuanced calculation methods. This guide breaks down the exact formulas used for profit calculation and fee structure, helping traders—especially beginners—navigate the platform with confidence.
Whether you're holding a long or short position, trading with or without leverage, or using limit versus market orders, knowing the math behind your trades empowers smarter decision-making. Let’s dive into the core mechanics step by step.
🔹 Profit Calculation in OKX Contract Trading
OKX supports two main types of derivative products: delivery contracts and perpetual contracts. The profit calculation varies slightly depending on whether your position has undergone settlement.
📌 Basic Profit Formulas
For long positions (buy):
Long Profit = (Face Value × Number of Contracts / Entry Price) - (Face Value × Number of Contracts / Exit Price)For short positions (sell):
Short Profit = (Face Value × Number of Contracts / Exit Price) - (Face Value × Number of Contracts / Entry Price)Where:
- Face Value: The nominal value of one contract (e.g., 10 XRP per contract).
- Entry Price: Average price when opening the position.
- Exit Price: Average price when closing the position.
- Number of Contracts: Quantity held.
✅ Note: These formulas apply directly only if the position hasn’t gone through settlement.
👉 Discover how to calculate your real-time trading profits instantly with advanced tools.
🧩 Case 1: Position Without Settlement
When a trade is opened and closed within the same settlement cycle, the system uses the actual entry price for calculations.
Example:
- Contract: XRPUSD
- Face Value: 10 XRP
- Contracts: 1
- Entry Price: 0.233
- Exit Price: 0.2361
Profit =
(10 / 0.233 - 10 / 0.2361) × 1 = 0.5635 XRP
This represents a straightforward gain from price movement without interference from periodic settlements.
🧩 Case 2: Position With Settlement
Futures contracts on OKX are settled daily at 16:00 UTC. After settlement, the settlement price becomes the new entry price for accounting purposes—even though your actual entry remains unchanged.
Example:
- Original Entry: 0.237
- Settlement Price (previous day): 0.2447
- Exit Price: 0.2435
- Contracts: 1
Displayed Profit (on bill):
(10 / 0.2447 - 10 / 0.2435) × 1 = -0.2208 XRP
However, this doesn’t reflect the full picture.
Actual Realized Profit:
(10 / 0.237 - 10 / 0.2435) × 1 = 1.1263 XRP
📌 The discrepancy occurs because the exchange splits profit into:
- Pre-settlement profit: From open to settlement
- Post-settlement profit: From settlement to close
Always check both segments in your transaction history for accuracy.
🧩 Case 3: Position With Settlement and Additional Leverage (Adding to Position)
When you add to a position after settlement, the platform recalculates the average entry based on updated margin inputs.
Scenario:
- First Buy: 1 contract at 0.28
- Second Buy (after settlement): 1 contract at 0.2741
- Leverage: 10x
- Settlement Benchmark Price: 0.276
First, calculate fixed margin per leg:
- Margin 1 = (10 / 0.28) / 10 × 1 = 3.5714 ETH
- Margin 2 = (10 / 0.2741) / 10 × 1 = 3.6483 ETH
- Total Margin = ~7.2197 ETH
Now derive combined entry:
7.2197 = (10 / Entry / 10) × 2 → Entry ≈ 0.277But since first leg was settled at 0.276, use that as adjusted cost basis:
- Adjusted Margin 1 = (10 / 0.276) / 10 × 1 = 3.6232 ETH
- Total Adjusted Margin = ~7.2715 ETH
- New Effective Benchmark = ~0.275
Bill-Shown Profit (using benchmark):
(10 / 0.275 - 10 / 0.2567) × 2 = -5.1847 XRP
True Economic Profit:
(10 / 0.277 - 10 / 0.2567) × 2 = -5.7098 XRP
👉 Learn how to optimize your entry and exit strategies using real-time market data tools.
While displayed profits may differ due to settlement logic, your actual PnL depends on original execution prices.
🔹 How Trading Fees Are Calculated on OKX
Trading fees are an inevitable part of contract trading and directly affect net profitability.
💡 Key Concepts:
- Taker Fee: Charged when your order executes immediately against existing orders (market orders or aggressive limit orders).
- Maker Fee: Lower fee for providing liquidity by placing limit orders that wait in the order book.
For Level 1 users:
- Taker Fee: 0.05%
- Maker Fee: -0.02% (yes, you get paid to place resting orders!)
✅ Negative maker fees mean OKX rebates traders for adding liquidity—a strong incentive for strategic order placement.
📊 Fee Calculation Examples
Assume:
- Asset: ETH
- Leverage: 10x
- Initial Margin: 1 ETH → Position Size = 10 ETH
Scenario A: Full Taker Order (Market Order)
Fee = Position Size × Taker Rate = 10 ETH × 0.05% = **0.005 ETH**Scenario B: Full Maker Order (Limit Order Filled Passively)
Fee = 10 ETH × (-0.02%) = **-0.002 ETH** (i.e., you receive a rebate)Scenario C: Mixed Execution (Partial Taker + Maker)
If half fills as taker, half as maker:
(5 × 0.05%) + (5 × -0.02%) = 0.0025 - 0.001 = **+0.0015 ETH fee**You still pay only a fraction—or even earn—depending on execution style.
🧮 Formula Summary
For contracts priced per contract size:
Fee = Face Value × Number of Contracts / Execution Price × Fee RateFor contracts based on coin quantity:
Fee = Number of Coins Traded × Fee RateYour user tier (VIP level), referral status, and use of OKB can further reduce fees over time.
❓ Frequently Asked Questions (FAQ)
Q1: Why does my profit differ from what I expected?
A: Daily settlement resets the accounting entry price to the settlement benchmark, splitting gains into pre- and post-settlement components. Your true economic profit considers your original entry—not just the post-settlement value shown in reports.
Q2: What’s the difference between taker and maker fees?
A: Takers remove liquidity (e.g., market orders), so they pay higher fees (~0.05%). Makers add liquidity by placing limit orders that wait, earning rebates (~-0.02%). Using passive orders strategically can lower overall trading costs.
Q3: Does leverage affect fee amounts?
A: No—fees are based on position size, not leverage ratio. However, higher leverage increases position size for the same margin, indirectly increasing fees because you're trading more volume.
Q4: Can I reduce my trading fees on OKX?
A: Yes! You can qualify for lower rates by increasing trading volume (VIP tiers), holding OKB, or becoming a referral partner. Active market makers also benefit from negative maker fees.
Q5: How often are futures contracts settled?
A: Daily at 16:00 UTC for most delivery contracts. Perpetual swaps don’t have maturity dates but incur funding fees every 8 hours instead.
Q6: Are there hidden costs in contract trading?
A: Not typically—but be aware of funding rates in perpetual contracts and potential liquidation penalties if risk management fails. Always monitor your maintenance margin.
🔚 Final Thoughts
Mastering OKX contract trading means going beyond simple buy/sell decisions—it requires understanding how profits are computed across settlement cycles and how fees accumulate based on execution type.
By leveraging limit orders, monitoring settlement impacts, and calculating net PnL accurately, traders can gain a significant edge in competitive markets.
Whether you're scalping short-term moves or holding strategic positions, clarity in calculations leads to better outcomes.
👉 Start applying these insights with zero risk using a free demo trading account today.