What is margin in forex?
Margin is the part of your balance your broker locks while a position is open. It is not a fee: you get it back when the trade closes. What it limits is how much you can open at once. If losing trades eat into your free margin, the broker can close your positions for you.
How to use the margin calculator
- Pick your account currency and the instrument you want to trade.
- Check the price. Currency pairs and metals fill in automatically; for indices, type the price from your chart.
- Choose your leverage. Use the leverage your broker gives on that symbol, which is often lower on gold and indices than on currency pairs. Pick Custom to type any value.
- Set the lot size. The required margin updates as you type.
Margin calculation formula
Margin = Lots × Contract size × Price ÷ Leverage
The result comes out in the pair's quote currency, and the calculator converts it into your account currency.
There is one exception, and it matters for pairs like USDJPY, USDCHF and USDCAD. When the first (base) currency of the pair is your account currency, the position is already worth Lots × Contract size in your own currency, so the price drops out: Margin = Lots × Contract size ÷ Leverage. One lot of USDJPY on a USD account at 1:100 needs $1,000 whatever the price is. The same applies to a EUR account trading EURUSD.
Example: 1 lot of EURUSD is 100,000 euros. At 1.1400 that's $114,000, so at 1:100 the margin is $114,000 ÷ 100 = $1,140.
Margin examples
| Trade | Leverage | Margin |
|---|---|---|
| 1 lot EURUSD at 1.1400 | 1:100 | $1,140 |
| 1 lot USDJPY at 157.59 | 1:100 | ¥157,590 ≈ $1,000 |
| 0.10 lot XAUUSD at 4,286.20 | 1:100 | $428.62 |
| 1 lot XAUUSD at 4,286.20 | 1:10 | $42,862 |
| 1 lot NAS100 at 30,600 (contract size 1) | 1:20 | $1,530 |
Indices margin: NAS100, US30 and US500
Index CFDs use the same formula. With a contract size of 1, one lot moves $1 per index point and the margin is simply the price divided by the leverage:
| Index (contract size 1) | Price | 1:20 | 1:50 | 1:100 |
|---|---|---|---|---|
| NAS100 | 30,600 | $1,530 | $612 | $306 |
| US30 | 51,800 | $2,590 | $1,036 | $518 |
| US500 | 7,740 | $387 | $154.80 | $77.40 |
How leverage changes margin
Leverage only changes how much of your balance is locked. At 1:500 a trade needs one fifth of the margin it needs at 1:100, but every pip is still worth the same. Your risk per pip comes from the lot size, not the leverage. To see how much leverage your open trades actually use, try the leverage calculator.
Margin level and stop out
Your platform shows a margin level: equity divided by used margin, times 100. Brokers set a margin call level and a lower stop out level, where they start closing trades. The levels differ between brokers, so check yours before you trade close to the limit.
What each level does, and why on a prop firm account the drawdown limit almost always hits first, is in margin call vs stop out.