Category List
Cancel

MEXC Futures Calculation Guide: Fees, Unrealized PNL, and Closing Profit Explained

1. MEXC Futures Trading Fee Calculation


MEXC Futures trading fees are determined by whether your order is executed as a Maker (limit order) or Taker (market order).

Formulas
Taker fee = Average fill price × Position size × Contract size × Taker fee rate
Maker fee = Average fill price × Position size × Contract size × Maker fee rate

Example
Assume you buy 10,000 BTCUSDT contracts as a taker at 30,000 USDT, with a contract size of 0.0001 BTC.
Fee = 30,000 × 10,000 × 0.0001 × 0.02% = 6 USDT

2. MEXC Futures Funding Fee Calculation and Settlement Rules


Funding fees are a mechanism unique to Perpetual Futures that balances holding costs between long and short positions.

Formulas
Funding fee = Funding rate × Position value
Position value = Fair price × Number of contracts × Contract size

Whether funding is paid or received depends on two factors: the funding rate (positive or negative) and your position direction (long or short). When the funding rate is positive, longs pay shorts. When the funding rate is negative, shorts pay longs. At settlement, position value is calculated using the current fair price.

Example
You hold 10,000 BTCUSDT long contracts. The current fair price is 30,000 USDT, and the funding rate is +0.01%. Funding fee is then calculated as 30,000 × 10,000 × 0.0001 × 0.01% = 3 USDT (paid)
If the funding rate is –0.01%, you will receive 3 USDT.

3. MEXC Futures Closing PNL Calculation


Total realized PNL = Closing PNL + Funding fees − Opening fee − Closing fee

3.1 USDT-Margined Futures Closing PNL


Long closing PNL = (Closing price − Average entry price) × Position size × Contract size
Short closing PNL = (Average entry price − Closing price) × Position size × Contract size

Example
You open 5,000 BTCUSDT long contracts at 28,000 USDT and close at 30,000 USDT.
Closing PNL = (30,000 − 28,000) × 5,000 × 0.0001 = 1,000 USDT

3.2 Coin-Margined Futures Closing PNL


Long closing PNL = (1 / Average entry price − 1 / Closing price) × Position size × Contract value
Short closing PNL = (1 / Closing price − 1 / Average entry price) × Position size × Contract value

Example
You open 100 BTC coin-margined contracts (contract value 100 USD) at 30,000 USDT and close at 33,000 USDT.
Closing PNL = (1/30,000 − 1/33,000) × 100 × 100 = 0.0303 BTC

4. MEXC Futures Unrealized PNL


Unrealized PNL reflects the current unrealized profit or loss of an open position. It is calculated using the fair price, not the last traded price.

4.1 USDT-Margined Unrealized PNL


Long unrealizedPNL = (Fair price − Average entry price) × Position size × Contract size
Short unrealizedPNL = (Average entry price − Fair price) × Position size × Contract size

4.2 Coin-Margined UnrealizedPNL


Long unrealizedPNL = (1 / Average entry price − 1 / Fair price) × Position size × Contract value
Short unrealizedPNL = (1 / Fair price − 1 / Average entry price) × Position size × Contract value

Example
You hold 8,000 ETHUSDT long contracts, entry price 2,000 USDT, fair price 2,200 USDT, contract size 0.01 ETH.
Unrealized PNL = (2200 − 2000) × 8000 × 0.01 = 16,000 USDT

5. MEXC Futures ROI and Margin Calculation


Understanding ROI and margin helps you better evaluate trading performance and manage risk.
  • ROI= PNL / Initial margin
  • Initial margin= Position value × Initial margin rate
  • Initial margin rate= 1 / Leverage

Example
You open a position with 10× leverage, with a position value of 10,000 USDT.
  • Initial margin rate = 1 / 10 = 10%
  • Initial margin = 10,000 × 10% = 1,000 USDT
  • If profit = 500 USDT, ROI = 500 / 1000 = 50%

6. MEXC Futures Bankruptcy Price Calculation


The bankruptcy price is the price at which the position margin is fully lost.
  • Long bankruptcy price = (Position value − Position margin) / (Position size × Contract size)
  • Short bankruptcy price = (Position value + Position margin) / (Position size × Contract size)

Example
You hold 10,000 BTCUSDT long contracts.
  • Position value = 3,000 USDT
  • Position margin = 300 USDT
  • Contract size = 0.0001
  • Bankruptcy price = (3000 − 300) / (10,000 × 0.0001) = 2,700 USDT

7. Full Futures PNL Calculation Example


Assume a user opens a long position of 10,000 BTCUSDT perpetual contracts at 7,000 USDT as a taker. The taker fee rate is 0.02%, maker fee rate is 0%, funding rate is −0.025% (long receives), fair price is 7,000 USDT, and contract size is 0.0001 BTC.

  • The opening fee is: 7000 × 10000 × 0.0001 × 0.02% = 1.4 USDT
  • The funding fee is: 7000 × 10000 × 0.0001 × (−0.025%) = −1.75 USDT (received)
  • Assume the user closes the position at 8,000 USDT(taker). The closing PNL is: (8000 − 7000) × 10000 × 0.0001 = 1000 USDT
  • The closing fee is: 8000 × 10000 × 0.0001 × 0.02% = 1.6 USDT
  • Therefore, the total realized PNL is: 1000 + 1.75 − 1.4 − 1.6 = 998.75 USDT

8. MEXC Maximum Contracts Calculation


Before opening a position, understanding how to calculate the maximum number of contracts helps you plan position size more effectively.

8.1 USDT-Margined Futures Maximum Contracts


Maximum contracts = Initial margin × Leverage / Contract size / Entry price

Example
You have 1,000 USDT margin, use 20× leverage, entry price 30,000 USDT, contract size 0.0001.
  • Maximum contracts = 1000 × 20 / 0.0001 / 30000 = 6,666.67 contracts

8.2 Coin-Margined Futures Maximum Contracts


Maximum contracts = Order cost × Leverage × Average entry price / Contract value

Example
You have 0.1 BTC margin, use 10× leverage, entry price 30,000 USDT, contract value 100 USD.
  • Maximum contracts = 0.1 × 10 × 30000 / 100 = 300 contracts

9. MEXC Average Entry Price Calculation (After Adding to a Position)


When you add to an existing position, the average entry price must be recalculated.

9.1 USDT-Margined Futures Average Entry Price


New average entry price = (Original average price × Original position size + New entry price × New position size) / (Original position size + New position size)

Example
Your original position is 5,000 long contracts at 29,000 USDT.
  • Add 3,000 contracts at 31,000 USDT
  • New average price = (29000 × 5000 + 31000 × 3000) / (5000 + 3000) = 29,750 USDT

9.2 Coin-Margined Futures Average Entry Price


New average entry price = (Original position size + New position size) / (Original position size / Original average price + New position size / New entry price)

Example Your original position is 100 contracts at 30,000 USDT.
  • Add 50 contracts at 32,000 USDT
  • New average price = (100 + 50) / (100 / 30000 + 50 / 32000) = 30,638.3 USDT

10. MEXC USDT-Margined Contract Unit Conversion


The following examples assume a contract size of 0.0001.
Scenario
Formula
Example
Contracts → USDT

USDT = Position size × Contract size × Current price
Given: Position size = 23,405; Current Price = 27,076.2
USDT = 23,405 × 0.0001 × 27,076.2 = 63,371.8461 USDT

USDT → Contracts
Contracts = Position value / Current price / Contract size
Given: Position value = 63,371.8461 USDT; Current Price = 27,076.2
Position size (Contracts) = 63,371.8461 / 27,076.2 / 0.0001 = 23,405
Contracts → Coin
Coin amount = Position size × Contract size

Given: Position size = 183
Coin amount = 183 × 0.0001 = 0.0183 BTC
Coin → Contracts
Position size = Coin amount / Contract size

Given: Coin amount = 0.0183 BTC
Position size (Contracts) = 0.0183 / 0.0001 = 183

11. MEXC Coin-Margined Contract Unit Conversion


The following example assumes a contract value of 10 ETH.
Scenario
Formula
Example
Coin amount → Contracts
Position size = Coin amount × Current Price / Contract value
Given: Coin amount = 0.19 ETH; Current Price = 3,100 USDT
Position size = 0.19 × 3100 / 10 = 58.9 contracts

12. MEXC Futures Account Asset Calculation


Understanding how account assets are calculated helps you manage funds and control risk more effectively.
  • Wallet balance = Bonus balance + Net transfers + Realized PNL
  • Available balance = Wallet balance − Position margin − Order margin

Available margin is calculated differently depending on whether auto-margin addition is supported:
  • If not supported: Available margin = Available balance − Unrealized loss
  • If supported: Available margin = Available balance + Unrealized PNL

Example Your wallet balance is 5,000 USDT, position margin is 2,000 USDT, order margin is 500 USDT, and the current unrealized profit is 300 USDT. If auto-margin addition is supported:
  • Available margin = (5000 − 2000 − 500) + 300 = 2,800 USDT.


MEXC Futures Calculation Guide: Fees, Unrealized PNL, and Closing Profit Explained

1. MEXC Futures Trading Fee Calculation


MEXC Futures trading fees are determined by whether your order is executed as a Maker (limit order) or Taker (market order).

Formulas
Taker fee = Average fill price × Position size × Contract size × Taker fee rate
Maker fee = Average fill price × Position size × Contract size × Maker fee rate

Example
Assume you buy 10,000 BTCUSDT contracts as a taker at 30,000 USDT, with a contract size of 0.0001 BTC.
Fee = 30,000 × 10,000 × 0.0001 × 0.02% = 6 USDT

2. MEXC Futures Funding Fee Calculation and Settlement Rules


Funding fees are a mechanism unique to Perpetual Futures that balances holding costs between long and short positions.

Formulas
Funding fee = Funding rate × Position value
Position value = Fair price × Number of contracts × Contract size

Whether funding is paid or received depends on two factors: the funding rate (positive or negative) and your position direction (long or short). When the funding rate is positive, longs pay shorts. When the funding rate is negative, shorts pay longs. At settlement, position value is calculated using the current fair price.

Example
You hold 10,000 BTCUSDT long contracts. The current fair price is 30,000 USDT, and the funding rate is +0.01%. Funding fee is then calculated as 30,000 × 10,000 × 0.0001 × 0.01% = 3 USDT (paid)
If the funding rate is –0.01%, you will receive 3 USDT.

3. MEXC Futures Closing PNL Calculation


Total realized PNL = Closing PNL + Funding fees − Opening fee − Closing fee

3.1 USDT-Margined Futures Closing PNL


Long closing PNL = (Closing price − Average entry price) × Position size × Contract size
Short closing PNL = (Average entry price − Closing price) × Position size × Contract size

Example
You open 5,000 BTCUSDT long contracts at 28,000 USDT and close at 30,000 USDT.
Closing PNL = (30,000 − 28,000) × 5,000 × 0.0001 = 1,000 USDT

3.2 Coin-Margined Futures Closing PNL


Long closing PNL = (1 / Average entry price − 1 / Closing price) × Position size × Contract value
Short closing PNL = (1 / Closing price − 1 / Average entry price) × Position size × Contract value

Example
You open 100 BTC coin-margined contracts (contract value 100 USD) at 30,000 USDT and close at 33,000 USDT.
Closing PNL = (1/30,000 − 1/33,000) × 100 × 100 = 0.0303 BTC

4. MEXC Futures Unrealized PNL


Unrealized PNL reflects the current unrealized profit or loss of an open position. It is calculated using the fair price, not the last traded price.

4.1 USDT-Margined Unrealized PNL


Long unrealizedPNL = (Fair price − Average entry price) × Position size × Contract size
Short unrealizedPNL = (Average entry price − Fair price) × Position size × Contract size

4.2 Coin-Margined UnrealizedPNL


Long unrealizedPNL = (1 / Average entry price − 1 / Fair price) × Position size × Contract value
Short unrealizedPNL = (1 / Fair price − 1 / Average entry price) × Position size × Contract value

Example
You hold 8,000 ETHUSDT long contracts, entry price 2,000 USDT, fair price 2,200 USDT, contract size 0.01 ETH.
Unrealized PNL = (2200 − 2000) × 8000 × 0.01 = 16,000 USDT

5. MEXC Futures ROI and Margin Calculation


Understanding ROI and margin helps you better evaluate trading performance and manage risk.
  • ROI= PNL / Initial margin
  • Initial margin= Position value × Initial margin rate
  • Initial margin rate= 1 / Leverage

Example
You open a position with 10× leverage, with a position value of 10,000 USDT.
  • Initial margin rate = 1 / 10 = 10%
  • Initial margin = 10,000 × 10% = 1,000 USDT
  • If profit = 500 USDT, ROI = 500 / 1000 = 50%

6. MEXC Futures Bankruptcy Price Calculation


The bankruptcy price is the price at which the position margin is fully lost.
  • Long bankruptcy price = (Position value − Position margin) / (Position size × Contract size)
  • Short bankruptcy price = (Position value + Position margin) / (Position size × Contract size)

Example
You hold 10,000 BTCUSDT long contracts.
  • Position value = 3,000 USDT
  • Position margin = 300 USDT
  • Contract size = 0.0001
  • Bankruptcy price = (3000 − 300) / (10,000 × 0.0001) = 2,700 USDT

7. Full Futures PNL Calculation Example


Assume a user opens a long position of 10,000 BTCUSDT perpetual contracts at 7,000 USDT as a taker. The taker fee rate is 0.02%, maker fee rate is 0%, funding rate is −0.025% (long receives), fair price is 7,000 USDT, and contract size is 0.0001 BTC.

  • The opening fee is: 7000 × 10000 × 0.0001 × 0.02% = 1.4 USDT
  • The funding fee is: 7000 × 10000 × 0.0001 × (−0.025%) = −1.75 USDT (received)
  • Assume the user closes the position at 8,000 USDT(taker). The closing PNL is: (8000 − 7000) × 10000 × 0.0001 = 1000 USDT
  • The closing fee is: 8000 × 10000 × 0.0001 × 0.02% = 1.6 USDT
  • Therefore, the total realized PNL is: 1000 + 1.75 − 1.4 − 1.6 = 998.75 USDT

8. MEXC Maximum Contracts Calculation


Before opening a position, understanding how to calculate the maximum number of contracts helps you plan position size more effectively.

8.1 USDT-Margined Futures Maximum Contracts


Maximum contracts = Initial margin × Leverage / Contract size / Entry price

Example
You have 1,000 USDT margin, use 20× leverage, entry price 30,000 USDT, contract size 0.0001.
  • Maximum contracts = 1000 × 20 / 0.0001 / 30000 = 6,666.67 contracts

8.2 Coin-Margined Futures Maximum Contracts


Maximum contracts = Order cost × Leverage × Average entry price / Contract value

Example
You have 0.1 BTC margin, use 10× leverage, entry price 30,000 USDT, contract value 100 USD.
  • Maximum contracts = 0.1 × 10 × 30000 / 100 = 300 contracts

9. MEXC Average Entry Price Calculation (After Adding to a Position)


When you add to an existing position, the average entry price must be recalculated.

9.1 USDT-Margined Futures Average Entry Price


New average entry price = (Original average price × Original position size + New entry price × New position size) / (Original position size + New position size)

Example
Your original position is 5,000 long contracts at 29,000 USDT.
  • Add 3,000 contracts at 31,000 USDT
  • New average price = (29000 × 5000 + 31000 × 3000) / (5000 + 3000) = 29,750 USDT

9.2 Coin-Margined Futures Average Entry Price


New average entry price = (Original position size + New position size) / (Original position size / Original average price + New position size / New entry price)

Example Your original position is 100 contracts at 30,000 USDT.
  • Add 50 contracts at 32,000 USDT
  • New average price = (100 + 50) / (100 / 30000 + 50 / 32000) = 30,638.3 USDT

10. MEXC USDT-Margined Contract Unit Conversion


The following examples assume a contract size of 0.0001.
Scenario
Formula
Example
Contracts → USDT

USDT = Position size × Contract size × Current price
Given: Position size = 23,405; Current Price = 27,076.2
USDT = 23,405 × 0.0001 × 27,076.2 = 63,371.8461 USDT

USDT → Contracts
Contracts = Position value / Current price / Contract size
Given: Position value = 63,371.8461 USDT; Current Price = 27,076.2
Position size (Contracts) = 63,371.8461 / 27,076.2 / 0.0001 = 23,405
Contracts → Coin
Coin amount = Position size × Contract size

Given: Position size = 183
Coin amount = 183 × 0.0001 = 0.0183 BTC
Coin → Contracts
Position size = Coin amount / Contract size

Given: Coin amount = 0.0183 BTC
Position size (Contracts) = 0.0183 / 0.0001 = 183

11. MEXC Coin-Margined Contract Unit Conversion


The following example assumes a contract value of 10 ETH.
Scenario
Formula
Example
Coin amount → Contracts
Position size = Coin amount × Current Price / Contract value
Given: Coin amount = 0.19 ETH; Current Price = 3,100 USDT
Position size = 0.19 × 3100 / 10 = 58.9 contracts

12. MEXC Futures Account Asset Calculation


Understanding how account assets are calculated helps you manage funds and control risk more effectively.
  • Wallet balance = Bonus balance + Net transfers + Realized PNL
  • Available balance = Wallet balance − Position margin − Order margin

Available margin is calculated differently depending on whether auto-margin addition is supported:
  • If not supported: Available margin = Available balance − Unrealized loss
  • If supported: Available margin = Available balance + Unrealized PNL

Example Your wallet balance is 5,000 USDT, position margin is 2,000 USDT, order margin is 500 USDT, and the current unrealized profit is 300 USDT. If auto-margin addition is supported:
  • Available margin = (5000 − 2000 − 500) + 300 = 2,800 USDT.