XAUUSD margin calculator for gold traders
How much margin does a gold trade tie up? Enter lots, price and leverage, and see margin, free margin and margin level. No sign-up.
Enter the lots, the gold price, your account leverage and the number of ounces in one lot. The calculator shows the position value, the margin the position ties up and, if you enter a balance, the free margin and margin level before any floating profit or loss. The starting numbers are invented: 0.10 lots at 2,650 with 1:100 leverage on a $1,000 balance.
The formula for gold margin
The usual formula for a leveraged CFD is position value divided by leverage. Position value is lots times the contract size times the price. On most MetaTrader 5 brokers one lot of XAUUSD is 100 troy ounces, so 0.10 lots is 10 ounces. At a price of 2,650 that is a position worth $26,500, and at 1:100 leverage the margin is $265.
Three inputs move the answer. A higher price raises the margin in proportion. A larger lot raises it in proportion. A higher leverage figure lowers it in proportion. Everything else on the screen of your broker, such as the margin currency, is just the same arithmetic expressed in your account currency.
Margin for gold by lot size and leverage (computed, hypothetical price)
The table uses a gold price of 2,650 and 100 ounces per lot. It is the same formula as the calculator, so you can check it by hand.
| Lots | Position value | Margin at 1:30 | Margin at 1:100 | Margin at 1:200 | Margin at 1:500 |
|---|---|---|---|---|---|
| 0.01 | $2,650 | $88.33 | $26.50 | $13.25 | $5.30 |
| 0.10 | $26,500 | $883.33 | $265.00 | $132.50 | $53.00 |
| 0.50 | $132,500 | $4,416.67 | $1,325.00 | $662.50 | $265.00 |
| 1.00 | $265,000 | $8,833.33 | $2,650.00 | $1,325.00 | $530.00 |
A price of 2,650 is only an example. If gold trades higher, every figure in the table rises with it.
Why your broker may show a different number
- Leverage by instrument. Many brokers apply a different leverage to metals than to currency pairs, so a 1:500 account may still use a lower figure for gold. Read the symbol specification.
- Tiered leverage. Some brokers reduce the available leverage as the position grows, which raises the margin on large trades.
- Margin calculation mode. The symbol specification names the mode and the margin rate. Some symbols use a fixed margin per lot instead of price-based margin.
- Account currency. If your account is not in dollars, the margin is converted at the broker’s rate.
- Regulation. Retail accounts in some regions have a leverage cap that applies to metals as well.
When the calculator and your terminal disagree, trust the terminal: it uses your broker’s own rules. The calculator is for planning, not for settling the number.
Margin is not risk
Margin is a deposit the broker holds while the position is open. It says nothing about how much you can lose. Your possible loss is set by the stop distance and the lot size. On the example above, a stop 5.00 away on 10 ounces risks $50 whether the margin is $53 or $265. Size the trade from the loss you accept, then check that the margin fits. The XAUUSD lot size table and the position size calculator do the first step.
From margin to margin level
Margin level is equity divided by used margin, times 100. With a $1,000 balance and $265 of margin the level is about 377% before any floating result. A losing trade lowers equity and the level falls; brokers set a margin call and a stop-out level, and those thresholds are theirs, not MetaTrader’s. The page on MT5 margin level explains the Trade tab figures, and balance versus equity explains why equity moves while a trade is open.
A worked example (hypothetical)
A trader with a $2,000 account wants to buy 0.20 lots of gold at 2,650 on an account with 1:100 leverage and a contract size of 100 ounces. Position value: 0.20 x 100 x 2,650 = $53,000. Margin: $530. Free margin before floating result: $1,470. Margin level: 2,000 / 530 x 100 = 377%. The stop is 4.00 away, so the planned loss is 0.20 x 100 x 4.00 = $80, which is 4% of the balance. The margin looks comfortable, yet the loss is the number to judge against the trading plan. If the same trade used 0.40 lots, the margin would double to $1,060, the level would drop to about 189% and the planned loss would be $160, or 8%.
Using margin as a journal field
Over a month it is useful to know how much of the account your trades tied up. AI Trading Journal reads each closed position from your MetaTrader 5 history and records its result, symbol, size and times, and you can add notes, a rating and tags. It does not record margin level or floating equity while a trade is open, so if margin pressure is part of your review, write it in the notes at entry. The MT5 trading journal guide lists other fields worth adding by hand.
Limits of this calculator
- It uses the simple price-based formula. Your broker may use another margin mode.
- It ignores floating profit and loss, spread and commission, so the margin level shown is a starting point only.
- It assumes a dollar account. For other currencies the figures are converted by your broker.
- It is arithmetic for planning, not trading or investment advice.
For the reasoning behind the numbers, read XAUUSD leverage explained, and use the pip value calculator to see what a move is worth.
Frequently asked questions
How do I calculate margin for XAUUSD?
How much margin does 0.01 lot of gold need?
Is margin the amount I can lose?
Why does my terminal show a different margin?
Does the journal app record margin?
Related guides
- Free position size calculator (forex and gold)
- Free risk to reward calculator
- Free drawdown recovery calculator
- Free trading expectancy calculator
- Free forex and gold profit and loss calculator
- Free margin calculator for forex and gold
- Free trading compounding calculator
- Free losing streak calculator
- Prop firm drawdown calculator (daily and maximum loss)
- Prop firm risk calculator: how many losing trades until the limit
- All trading journal comparisons
Review the size of every closed gold trade: free for 7 days
Free for 7 days, no card required. After that, a one-time $19.99 purchase. No subscription. Also on the Microsoft Store.
One-time $19.99, no monthly fee · your MT5 login never leaves your PC · trades go into your own journal on your PC, not through our servers.
Start free 7-day trial