# How to use the MDEX Futures Calculator

You can use the MDEX Futures Calculator to calculate your Initial Margin, PnL, and ROE for each order.

1. Click the [

**Calculator**] icon as shown below.2.You can use the Calculator to calculate your PnL, Target Price, or Liquidation Price.

3. After choosing an option, select

**[Long]**or**[Short]**, then enter the Entry Price, Exit Price, and Quantity. You can also adjust the leverage multiplier here. Fill in the order details, then click**[Calculate]**. ApolloX will then automatically calculate your Initial Margin, PnL, and ROE.**USDⓈ-M Perpetual Futures**

Initial Margin = Quantity * Entry Price * Initial Margin Rate(IMR)

Initial Margin Rate (IMR) = 1 / leverage Multiplier

Calculation for PnL:

Long = (Exit Price - Entry Price) * Number of Contracts

Short = (Entry Price - Exit Price) * Number of Contracts

ROE% = PnL / Initial Margin = Order Direction * (1 - Entry Price / Exit Price) / Initial Margin Rate

Last modified 1yr ago