Margin is the amount of funds required to open and maintain a trading position. To calculate margin required to create an order, you need to know position size, contract size, account currency, and leverage settings. This article explains how margin is calculated for both fixed and floating leverage accounts at MH Markets, with practical examples for Forex pairs and Gold (XAUUSD).
In this article
- What is margin?
- What Factors Affect Margin Requirements?
- Margin Calculation with Fixed Leverage
- Margin Calculation with Floating Leverage
What Is Margin?
Margin is the amount of funds that must be available in your trading account to open a position.
When trading with leverage, you are not required to provide the full value of a trade. Instead, you only need to provide a percentage of the total position value as margin.
The higher the leverage, the lower the margin requirement.
You can check MH Markets floating leverage adjustment Understanding Leverage: Fixed vs. Floating & Auto Adjustments
Leveraged trading involves significant risk and may result in losses exceeding your initial investment. Always ensure you fully understand the risks before trading.
What Factors Affect Margin Requirements?
Required margin depends on 3 things:
Trade Size (Lot Size)
In Forex and CFD trading, position sizes are measured in lots.
MH Markets allows trade volumes from 0.01 lots up to the maximum volume permitted for the selected instrument.
Contract Size
Contract size represents the quantity of the underlying asset in one lot. For
| Instrument | Contract Size |
|---|---|
| EURUSD | 100,000 units |
| GBPUSD | 100,000 units |
| Gold (XAUUSD) | 100 ounces |
You can check contract size for the instrument you are trading by checking the Contract Specification page or by opening Product Specification in Meta Trader.
Leverage
Leverage reduces the margin you need. Higher leverage means lower margin requirement.
For example, with 100:1 leverage, you only need $1,000 to control $100,000 investment.
Leveraged trading carries a level of risk and may result in losses exceeding your initial investment. Make sure you understand how leverage works by checking our our comparison of fixed and floating leverage.
MH Market offers 2 types of leverage: Fixed and floating. You can learn more in the article on the Difference between Fixed and Floating Leverage.
Margin Calculation with Fixed Leverage
Fixed leverage means your account uses a fixed leverage ratio (e.g., 1:100, 1:500).
Margin = Lots × Contract Size × PriceLeverage
Example of Margin calculation with Fixed Leverage for Currency Pair:
Scenario
- Instrument: EURUSD
- Position Size: 0.23 lots
- Contract Size: 100,000
- Price: 1.2000
- Leverage: 1:100
Step 1: Calculate Margin in EUR
Margin = 0.23 × 100`000100 = 230 EUR
Step 2: Convert to USD
While calculating margin for currency pairs, the result will be in the pair’s base currency. To determine the exact amount that will be deducted from your trading account, you need to convert this amount into your account currency. Since MH Markets offers USD-denominated accounts, you should multiply the result by the open price to convert it to USD.
230 × 1.2000 = 276
Result
276.
Example of Margin with Fixed Leverage calculation for Gold:
Scenario
- Instrument: Gold (XAUUSD)
- Position Size: 0.10 lots
- Contract Size: 100
- Market Price: 4,281.85
- Leverage: 1:100
Calculation:
Margin = 0.1 × 100 × 4281.85100 = 428.185 USD
Result:
In Meta Trader, the amount will be rounded to two decimal places, showing Required margin as 428.19.
Margin Calculation with Floating Leverage
Floating leverage adjusts based on your real-time account equity and exposure. As your equity or open positions increase, leverage decreases to reduce risk. Higher equity or larger positions will mean lower leverage applied.
Margin = Number of Lots × Contract Size × PriceLeverage (based on equity)
To calculate floating leverage, you need to check floating leverage Auto Adjustment table.
Example of Margin calculation for Currency Pair:
Scenario 1:
- Instrument: EURUSD
- Position Size: 0.23 lots
- Contract Size: 100,000
- Price: 1.2000
- Equity: USD 600
- Applied Leverage: 1:1000
Based on the floating leverage auto adjustment table, got Gold and forex pairs, if account equity is above 500 and below $1,000, the applied leverage is 1:1000
Margin = 0.23 × 100`000 × 1.20001000=USD 27.6
Result
Required margin: USD 27.60
Scenario 2:
Let’s continue with the example and assume your account equity is now $1,200. At this level, any new positions in gold or Forex will be opened with 1:500 leverage. Everything else remains the same except your equity, so the applied leverage is lower. This means you’ll need more margin to open the same position.
Margin = 0.23 × 100`000 × 1.2000500=USD 55.2
Result
Required margin: USD 55.20. Although the trade size remains unchanged, the lower leverage increases the margin requirement.
Example of Margin calculation for Gold:
Scenario
- Instrument: Gold (XAUUSD)
- Position Size: 0.50 lots
- Contract Size: 100
- Market Price: 4,033.20
- Equity: USD 450
- Applied Leverage: 1:2000
Margin = 0.5 × 100 × 4`033.2 2000= 100.83 USD
Result
Required margin: USD 100.83
As you can see when calculating the Margin on the account using the floating leverage, leverage decreases, as your equity grows. Always refer to the floating leverage adjustment table and apply the correct formula to determine the margin required for each position. By doing so, you can manage your capital wisely and avoid unexpected margin calls.