How to Calculate the Opening Cost of a Perpetual Contract
The examples below use Gold (XAUUSD) at USD 3,300, a position of 1 lot, and 10x leverage.
Key Terms
| Term | Meaning |
|---|---|
| Notional Value | The total value of the position: price × quantity × contract value. In the Gold example, 3,300 × 1 × 1 = USD 3,300. |
| Lot | The quantity unit used when placing an order. For the Gold contract in these examples, 1 lot represents 1 troy ounce. |
| Initial Margin | The margin required to open a position: Notional Value ÷ Leverage. |
| Maintenance Margin | The minimum margin required to maintain a position. Insufficient margin can trigger liquidation, meaning forced closure by the system. |
| Maintenance Margin Rate | The percentage used to calculate the maintenance margin requirement. The short-position example uses 0.5%. |
| Pre-freeze Amount | Funds temporarily held before an order fills, covering initial margin, the opening fee and a reserved closing fee. |
| Maker Fee Rate | The rate for an order that adds liquidity by entering the order book and waiting to be matched. |
| Taker Fee Rate | The rate for an order that removes liquidity by matching immediately with an existing order. Market orders and immediately executable limit orders can incur this rate. |
Where to Find the Values for Your Calculation
Before calculating:
- Select the relevant Perpetual Contract in the trading interface.
- Check the price, order quantity and selected leverage on the order interface.
- Open Contract Details to check the contract value, applicable maker and taker fee rates, and maintenance margin requirements.
- Compare your calculation with the estimated margin and fee displayed before submitting the order.
Use the values applicable to your selected contract. The rates below are illustrative, not a statement of current fees.
How Much Is Reserved for a Long Position?
For a long position, which is a buy position, the platform reserves the initial margin, opening fee and estimated closing fee before the trade fills:
Long Pre-freeze = Notional Value × (1 ÷ Leverage + 2 × Taker Fee Rate)
Long Position Example
Gold price: USD 3,300 Quantity: 1 lot Leverage: 10x Taker fee rate: 0.05%
- Notional Value: 3,300 × 1 × 1 = USD 3,300
- Initial Margin: 3,300 ÷ 10 = USD 330
- Opening Fee: 3,300 × 0.05% = USD 1.65
- Reserved Closing Fee: 3,300 × 0.05% = USD 1.65
Long Pre-freeze = 330 + 1.65 + 1.65 = USD 333.30
The opening cost is USD 331.65, while the amount reserved before execution is USD 333.30, including the closing fee reserve.
How Much Is Reserved for a Short Position?
For a short position, which is a sell position, use:
Short Pre-freeze = Notional Value × [(1 ÷ Leverage + Taker Fee Rate) × (1 + Taker Fee Rate) + Taker Fee Rate × (1 − Maintenance Margin Rate)]
Short Position Example
Gold price: USD 3,300 Quantity: 1 lot Leverage: 10x Taker fee rate: 0.05% Maintenance margin rate: 0.5%
Convert percentages to decimals when calculating: 0.05% = 0.0005 and 0.5% = 0.005.
Short Pre-freeze = 3,300 × [(0.1 + 0.0005) × 1.0005 + 0.0005 × (1 − 0.005)] = 3,300 × 0.10104775 ≈ USD 333.46
This is the amount reserved before the short order fills.
How Is the Opening Trading Fee Calculated?
The opening fee uses the actual execution price and quantity:
Opening Fee = Average Fill Price × Fill Quantity × Contract Value × Fee Rate
Using the example values:
Opening Fee = 3,300 × 1 × 1 × 0.05% = USD 1.65
Use the maker or taker fee rate applicable to the execution.
What Margin Remains After the Position Opens?
After the order fills, the opening fee is deducted from the account. The position margin retains the initial margin and reserved closing fee.
1. Long Position Margin
Long Position Margin = Average Entry Price × Position Size × Contract Value × (1 ÷ Leverage + Fee Rate)
Using the example values:
3,300 × 1 × 1 × (0.1 + 0.0005) = USD 331.65
2. Short Position Margin
Short Position Margin = Average Entry Price × Position Size × Contract Value × [(1 ÷ Leverage) × (1 + Fee Rate) + Fee Rate × (1 − Maintenance Margin Rate)]
Using the example values:
3,300 × 1 × 1 × [0.1 × 1.0005 + 0.0005 × 0.995] ≈ USD 331.81
Check the Figures Before You Trade
Actual pre-freeze amounts, position margins and fees depend on your contract settings and final execution. Review the estimated margin and fee on the order interface before confirming.
The maintenance margin rate used in these formulas is different from the account’s Margin Ratio, which measures margin risk.
Related Articles
- Perpetual Contract Fees explains trading and funding fees.
- How to Calculate the Liquidation Price of a Perpetual Contract explains liquidation price calculations.
Need More Help?
If you cannot find the applicable values or your calculation differs from the displayed amount, contact Customer Support through Live Chat on the Vantage app or website, or email support@vantagemarkets.com.
Include your Contract Account number, contract symbol, buy or sell direction, quantity, leverage and a screenshot of the estimated margin or fee. Never share passwords or verification codes.
Keywords: perpetual contract opening cost · initial margin · pre-freeze amount · opening fee · reserved closing fee · leverage · long position margin · short position margin · gold perpetual contract