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.

-Position value
-Margin needed
-Free margin (no floating P&L)
-Margin level (no floating P&L)

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.

LotsPosition valueMargin at 1:30Margin at 1:100Margin at 1:200Margin 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

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

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?
Multiply lots by ounces per lot by the gold price to get the position value, then divide by your leverage. At 0.10 lots, 100 ounces per lot, a price of 2,650 and 1:100 leverage, the margin is $265.
How much margin does 0.01 lot of gold need?
At a price of 2,650 and 1:100 leverage, about $26.50. At 1:500 it is about $5.30. Your broker’s leverage for metals may differ from the account headline.
Is margin the amount I can lose?
No. Margin is a deposit held while the trade is open. The loss depends on the stop distance and the lot size.
Why does my terminal show a different margin?
Brokers set the leverage, margin mode and tiers per symbol. Read the symbol specification in your terminal.
Does the journal app record margin?
No. It records closed positions with their results, times and your notes. Write margin remarks in the notes if you want them.

Related guides

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