
Maintenance Margin is essential for sustaining a position in trading. This article will delve into the calculation process specifically for Inverse Contracts.
What is the Maintenance Margin?
Maintenance Margin is the minimum amount of margin a trader must maintain in their position or account to continue holding a position. When unrealized losses cause the position margin in a position or account to fall below the required maintenance margin level, liquidation will be triggered.
As traders hold larger contract values (position value + order value), the maintenance margin required will also increase by a fixed percentage as the contract value rises to a specific level. Each trading pair has its maintenance margin base rate, which adjusts according to changes in the risk limit tiers.
For example, when you open a BTCUSD position with a position value of 150 BTC or below, the maintenance margin rate (MMR) required for the position is 0.5% of the position value. If the position value increases to 300 BTC, the MMR required will also increase to 1% of the position value.
For more details regarding risk limits, please refer to our guide here.
Calculation of Maintenance Margin Rate (MMR)
The Maintenance Margin Rate (MMR) for each position is determined using a tier-based calculation according to the margin level of the position value. Any excess beyond a particular tier is subject to the calculation based on the MMR of the new tier.
Illustration
The table below shows the margin parameters of XYZUSD contracts.
Tier |
Risk Limit (XYZ) |
Maintenance Margin Rate Required |
1 |
0 - 10 |
1% |
2 |
>10 - 20 |
2% |
3 |
> 20 - 30 |
3% |
4 |
> 30 - 40 |
4% |
5 |
> 40 - 50 |
5% |
Assuming the mark price remains unchanged at 400 USD, a trader enters a long position of 10,000 contracts with 10x leverage at 400 USD, the contract’s position value would be 25 XYZ.
Position Value = Contract quantity / Mark price
= 10,000 / 400 = 25 XYZ
Initial Margin = Position Value / Leverage
= 25 / 10 = 2.5 XYZ
Maintenance Margin = Position Value x MMR
= (10 x 1%) + (10 x 2%) + (5 x 3%)
= 0.45 XYZ
This means that the position can withstand a maximum unrealized loss (calculated using Mark Price) of 1.95 XYZ (2.5 XYZ - 0.45 XYZ) before liquidation takes place.
Formula
Now that you understand how the maintenance margin is calculated, as seen in the illustration above, the calculation can be quite tedious when dealing with large position values. Therefore, for the sake of simplicity, we can use the following formula to calculate the position maintenance margin.
Position Value = Contract quantity / Mark price
Maintenance Margin (MM) = (Position Value x MMR) - Maintenance Margin Deduction
whereas,
MM Deduction on Tier n = Risk Limit on Tier n-1 x (Difference between MMR on Tier n and Tier n-1) + MM Deduction on Tier n-1
Since the position value is calculated as (contract size/mark price), and the mark price keeps changing, the position value will also change accordingly. As a result, your risk limit tier adjusts in real time, which in turn affects the required maintenance margin rate (MMR). For example, if the mark price increases and causes your position value to rise, your risk limit tier may move from Tier 2 to Tier 3, resulting in a higher MMR requirement and increased account risk.
The MMR required for each risk limit tier and the Maintenance Margin Deduction amount can be easily found on the Margin Parameters page.
Examples
The table below shows the Margin Parameters for ETHUSD.
Tier |
Risk Limits |
Max. Leverage |
Maintenance Margin Rate |
Maintenance Margin Deduction |
1 |
0 - 500 |
100 |
0.5% |
0 |
2 |
>500 - 3,000 |
50 |
1% |
500 x (0.5%) + 0 = 2.5 |
3 |
>3,000 - 6,000 |
33.34 |
1.5% |
3,000 x (0.5%) + 2.5 = 17.5 |
4 |
>6,000 - 9,000 |
25 |
2% |
6,000 x (0.5%) + 17.5 = 47.5 |
5 |
>9,000 - 12,000 |
20 |
2.5% |
9,000 x (0.5%) + 47.5 = 92.5 |
*The above table is merely an illustration and does not represent actual margin parameters. Please always refer to this page for the most updated margin parameters.
Example 1
Trader A uses 10x leverage and opens a long position of 8,000,000 USD at a price of 2,000 USD. Assuming the Mark Price is 2,000 USD.
Position Value = 8,000,000 / 2,000 = 4,000 ETH (Tier 3)
Initial Margin = 4,000 / 10 = 400 ETH
Maintenance Margin = 4,000 x 1.5% - 17.5 = 42.5 ETH
This means the position can withstand a maximum unrealized loss of 357.5 ETH (400 ETH - 42.5 ETH) before liquidation is triggered.
Example 2
Trader B utilizes 10x leverage and opens the ETHUSD long position of 8,000,000 USD at 4,000 USD, while simultaneously having a buy limit order for 8,000,000 USD at 2,000 USD. Assuming Mark Price for ETH is 4,000 USD.
Position Value = Contract quantity / Mark price
= 8,000,000 / 4,000 = 2,000 ETH (Tier 2)
Position Maintenance Margin = 2,000 x 1% - 2.5 = 17.5 ETH
Order Value = Contract Quantity / Order Price
Order Maintenance Margin = 8,000,000 / 2,000 x 1.5% = 60 ETH
Total Maintenance Margin Required = 17.5 + 60 = 77.5 ETH
As a result, we can see that when an order is not filled, the order maintenance margin is calculated based on the corresponding MMR of the tier determined by the (position value + order value) instead of the tier-based calculation.
Assuming the buy order is now filled and the position opened, the Mark Price for ETH has now become 2,500 USD. The total maintenance margin required has now become:
Position Value = [(8,000,000 / 2,500) + (8,000,000 / 2,500)] = 6,400 ETH (Tier 4)
Initial Margin = 6,400 / 10 = 640 ETH
Maintenance Margin = 6,400 x 2% - 47.5 = 80.5 ETH
After the order is filled, the overall maintenance margin required is reduced to 80.5 ETH. This means the position can withstand a maximum unrealized loss of 559.5 ETH (640 ETH - 80.5 ETH) before the liquidation is triggered.
Maintenance Margin Display on Position Tab
The maintenance margin (MM) required by the position can be found in the position tab.
You may notice that the MM displayed on the position tab will be higher due to the reason that it includes the estimated fee to close the position.
The estimated fee to close for long and short positions is calculated slightly differently as follows:
Estimated Fee to Close (Long Position) = Position Size ÷ Entry Price × (1 − 1 / Leverage ) × Taker Fee Rate
Estimated Fee to Close (Short Position) = Position Size ÷ Entry Price × (1 + 1 / Leverage) × Taker Fee Rate
Example
Revisiting Example 1, Trader A holds a long position of 8,000,000 USD contract at a price of 2,000 with 10x leverage. Assuming the Mark Price is 2,000 USD.
Maintenance Margin (MM) = 42.5 ETH
Estimated Fee to Close Position = 8,000,000 ÷ 2,000 × (1 - 1/10) × 0.055% = 1.98 ETH
In this case, the total maintenance margin displayed on the position tab will be 44.48 ETH (42.5 ETH + 1.98 ETH).
Conclusion
Understanding the calculation process for both position and order maintenance margins is essential for traders to manage their risk effectively on Bybit. By comprehending how these margins are calculated, traders can make informed decisions to reduce liquidation risk and optimize their trading strategies.

