V-Race Season 1 — Win up to $1,000 + Vantage gifts!Aug 14 – Sep 14, 2026 Join now

What Is Margin? How to Calculate Margin for Forex and XAU/USD

Published: 29/08/2026

Last updated: 29/08/2026

5 views

Bermouth

Rating:
4.8/5 - (5 votes)
Margin is the capital a broker temporarily locks to secure an open position, not a trading fee. Here is how to calculate margin for forex and XAU/USD at each leverage level, and how to stay clear of a margin call.
4.8/5 - (5 votes)

Have you ever tried to open a forex position only to be met with “Not enough money”, or watched part of your balance get locked away without understanding why? The cause is usually margin and the level of forex leverage you are running.

Understanding what is margin and how to calculate margin tells you exactly how much collateral a given trade size requires, instead of picking a lot figure on instinct.

In this article, Backcom.io focuses on three things:

  • How margin works, and why money gets locked when you open a position.
  • The formula for how to calculate margin from volume, price and leverage.
  • Worked examples for forex and gold (XAU/USD), with reference tables by leverage level.

With that, you can keep control of your collateral, hold a safe Free Margin buffer and reduce the risk of hitting a margin call or Stop Out.

What Is Margin in Forex Trading?

What is margin? Margin, or collateral, is the amount a broker temporarily locks in your account as security while you hold a position opened with forex leverage.

Margin is not a trading fee, and it is not money you are guaranteed to lose. When the position closes, that collateral is released back into the account, after the profit or loss on the trade has been booked.

For example:

  • Account balance: 1,000 USD
  • Margin required to open a trade: 200 USD
  • The broker locks 200 USD as Used Margin
  • How much capital you can still deploy depends on Equity and Free Margin

Getting forex margin right tells a trader how much room is left to open further positions, and stops them running size that is far too large for the account.

Margin Is Not a Cost — Get This Right and It Stops Being Scary

Beginners often confuse margin with spread, commission or some fee the broker charges on entry. In reality these are completely different things:

Understand the concepts correctly: margin, spread, commission and swap explained before trading forex
Get the basic concepts straight before you trade

If a broker asks for 100 USD of margin to open a position, that 100 USD does not vanish from the account.

It simply becomes temporarily unavailable for opening other positions. When the trade closes, the margin is released, and whether the account is up or down depends purely on the result of the trade.

4 Margin Concepts You Need to Know

To read your account correctly when trading on collateral, learn to separate these four figures:

ConceptWhat it means
Used MarginThe total the broker currently has locked to maintain your open positions
Free MarginThe capital still available to open more trades or absorb adverse moves
EquityThe real value of the account once open profit and loss is added or subtracted
Margin LevelThe ratio of Equity to Used Margin, used to judge how safe the account is

In plain terms:

  • Used Margin rises when you open more positions or increase lot size.
  • Free Margin falls as the account commits more collateral.
  • Equity moves constantly with the profit and loss on running trades.
  • The lower the Margin Level, the closer the account sits to a margin call or Stop Out.

So when working out what is margin, do not look only at the collateral on a single trade — track Equity, Free Margin and Margin Level across the whole account.

Forex Leverage and Its Inverse Relationship With Margin

Forex leverage lets a trader control a position larger than the capital actually in the account. Margin is the slice of capital the broker requires you to post to hold that position.

The relationship between the two is simple:

  • Higher leverage → less margin required.
  • Lower leverage → more margin required.

However, the profit and loss risk on the same lot size does not fall just because the margin is smaller.

Take a 1 lot EUR/USD position, with EUR/USD at 1.1000 and a contract size of 100,000 EUR:

LeveragePosition valueMargin required
1:100110,000 USD1,100 USD
1:200110,000 USD550 USD
1:500110,000 USD220 USD
1:2000110,000 USD55 USD
Reference table: margin by position value

The same 1 lot EUR/USD trade needs roughly 1,100 USD of collateral at 1:100, but only 220 USD once leverage moves to 1:500.

That is why how to calculate margin always has to account for three inputs at once:

  1. Trade volume.
  2. Contract value.
  3. The leverage in force.

Is High Leverage Dangerous?

High leverage does not automatically sink an account. The more dangerous factor is usually a trader running lot sizes that are far too large for their capital.

For example:

  • Trader A uses 1:100 leverage but opens 1 lot on a small account.
  • Trader B uses 1:500 leverage but only opens 0.01 lot.

Trader B is taking the lower risk of the two, despite running much higher forex leverage.

Worth remembering:

  • High leverage reduces the collateral locked away.
  • Less margin means more Free Margin.
  • But spending that Free Margin on extra positions or bigger lots pushes account risk up very fast.
  • Trade volume is what actually drives how much your account swings.

Some brokers offer very high leverage, in certain conditions even 1:Unlimited. Check the Exness trading conditions and rebates carefully before settling on a leverage level.

So do not pick leverage purely to shrink your margin. The sounder approach is to use leverage to optimise how much capital is tied up, while sizing positions according to a money management plan.

How to Calculate Margin in Forex: The Formula

To find the collateral a trade needs, apply the standard forex margin formula:

Margin = (Lots × Contract size × Price) ÷ Leverage

Where:

  • Lots: the volume you want to trade.
  • Contract size: in forex, usually 100,000 units of the base currency per standard lot.
  • Price: the current rate of the pair.
  • Leverage: the level the broker applies to the account or the instrument.

How to Calculate Margin at Each Leverage Level

Suppose a trader buys:

  • 1 lot EUR/USD
  • EUR/USD price: 1.1030
  • Contract size: 100,000 EUR
  • Leverage: 1:100

Applying the formula:

Margin = (1 × 100,000 × 1.1030) ÷ 100 = 1,103 USD

So opening 1 lot of EUR/USD at 1:100 requires around 1,103 USD of margin.

Keep the volume and the price the same but change the leverage:

LeverageCalculationMargin required
1:100110,300 ÷ 1001,103 USD
1:500110,300 ÷ 500220.60 USD
1:2000110,300 ÷ 2,00055.15 USD
Reference table: margin by leverage level

The table shows that how to calculate margin never changes. The only thing that moves is the denominator — the leverage in use.

The higher the leverage, the less capital is locked as collateral, but the position is still worth 110,300 USD. The profit or loss on that 1 lot does not shrink just because the trader chose more leverage.

For pairs with USD as the base currency, such as USD/JPY, the arithmetic is simpler: the notional is already denominated in USD, so there is no need to multiply by the rate as you do with EUR/USD.

Use Your Broker’s Calculator for a Quick Check

In practice you do not have to do the arithmetic by hand every time. Most brokers provide a Trading Calculator that works it out instantly:

How to calculate margin with a trading calculator: required margin, pip value, spread, swap and position value
What a trading calculator can work out for you

You enter the instrument, the lot size and the leverage, then check the result before placing the trade.

The Exness Trading Calculator is one option for cross-checking your own figures.

Even so, understanding how to calculate margin by hand matters, because it shows you immediately why the requirement rises or falls when you change lot size, price or forex leverage.

How to Calculate Margin for XAU/USD (Gold) by Leverage

Gold follows the same principle as forex, but the difference lies in the contract size.

Typically:

  • 1 standard forex lot = 100,000 currency units
  • 1 lot XAU/USD = 100 ounces of gold

So the gold formula can be written:

XAU/USD margin = (Lots × 100 × Gold price) ÷ Leverage

For example, a trader opens:

  • Volume: 0.1 lot XAU/USD
  • Assumed gold price: 4,000 USD per ounce
  • Leverage: 1:500

Applying the formula:

Margin = (0.1 × 100 × 4,000) ÷ 500 = 80 USD

So 0.1 lot of gold at 4,000 USD with 1:500 leverage needs about 80 USD of collateral.

Note that the higher the price of XAU/USD, the larger the notional value of the position — and the more margin it needs, with everything else held constant.

XAU/USD Margin Table by Leverage

The table below assumes a gold price of 4,000 USD per ounce and a contract size of 100 ounces per lot, to illustrate the requirement at each volume.

Reference price: XAU/USD = 4,000 USD per ounce (29/08/2026).

VolumeLeverage 1:100Leverage 1:500Leverage 1:2000
0.01 lot40 USD8 USD2 USD
0.1 lot400 USD80 USD20 USD
1 lot4,000 USD800 USD200 USD
Reference table: XAU/USD margin by leverage level

Two factors drive the requirement directly:

  1. Bigger volume → more margin.
  2. Higher leverage → less margin.

Take the same 1 lot XAU/USD trade:

  • At 1:100: around 4,000 USD of margin.
  • At 1:500: around 800 USD.
  • At 1:2000: only around 200 USD.

But the requirement dropping from 4,000 USD to 200 USD does not mean the risk on 1 lot of gold falls with it. The position is still worth roughly 400,000 USD in this example.

This is exactly why traders should not see a small collateral figure and start scaling volume freely.

Why Does Gold Margin Differ Between Brokers?

In practice, the XAU/USD figure can differ between brokers even at the same volume and the same account leverage.

Common reasons include:

  • The broker applies separate leverage to XAU/USD.
  • Gold leverage can be lower than the account maximum.
  • Some brokers use a fixed margin rate for precious metals.
  • Leverage can be tiered by position size.
  • Requirements can be raised when markets turn volatile or around major data releases.

An account showing 1:500 does not mean every instrument gets 1:500. The broker may cap XAU/USD at something lower.

So before trading gold, check the following:

What to check before trading XAU/USD: contract size, forex leverage, collateral requirements and the broker's margin change conditions
Check these before you trade gold

Treat the table above as a way to understand the formula and estimate the requirement — not as a fixed figure that holds at every broker.

The most reliable approach is to read the Contract Specification or run your broker’s Trading Calculator before opening the position.

Margin Call and Stop Out: What Happens When Margin Runs Out?

When the market moves against a position, Equity falls while Used Margin stays locked. If the ratio drops far enough, the account moves into margin call territory and then Stop Out.

In plain terms:

  • Margin call: a warning that the account is short of safe collateral.
  • Stop Out: the broker automatically closes some or all positions to stop Equity falling further.

The exact thresholds depend on the broker and the account type.

Margin Level — The Account’s Health Check

Margin Level shows how safe the account is relative to the collateral currently in use.

The formula:

Margin Level = (Equity ÷ Used Margin) × 100%

For example:

  • Equity: 1,000 USD
  • Used Margin: 200 USD

That gives:

Margin Level = (1,000 ÷ 200) × 100% = 500%

If losing trades pull Equity down to 400 USD:

Margin Level = (400 ÷ 200) × 100% = 200%

Which tells you:

  • A higher Margin Level: the account still has plenty of cushion.
  • A lower Margin Level: the account is closing in on a margin call or Stop Out.

So when working out how to calculate margin, do not stop at “can I afford to open this trade” — check how much Free Margin is left afterwards.

Margin Call and Stop Out Thresholds by Broker

Margin call and Stop Out levels are not the same across brokers.

Following the general framework brokers use:

Margin call and Stop Out thresholds under the general framework brokers use, and when a broker may close positions automatically
Margin call and Stop Out levels under the general broker framework

A worked assumption:

  1. The account has its margin call set at 100%.
  2. Stop Out sits at 50%.
  3. When Margin Level falls to 100%, the trader gets a warning.
  4. If Equity keeps falling and Margin Level touches 50%, the broker may start closing positions automatically.

The important point is that a margin call is not a fee or a penalty. It is a signal that current Equity has become too small relative to the forex margin already committed.

3 Ways to Avoid a Margin Call

To stop the account sitting permanently short of collateral, focus on three principles:

Size positions against your capital

  • Do not choose a lot size just because the account still has enough collateral to open the trade. A position you can open is not necessarily one the account can afford to carry.
  • Apply a rule such as risking 1% per trade to cap the maximum loss before you decide on volume.

Always use a Stop Loss

  • A Stop Loss caps the damage on each trade before Equity falls too far.
  • Without one, a large position running against you can drain Free Margin quickly and push the account into a margin call.

Keep Free Margin generous

  • Do not spend nearly all your buying power simply because forex leverage allows more positions.
  • Hold a Free Margin buffer large enough to absorb short-term price swings, particularly when trading XAU/USD or during volatile market periods.

In short, the point of working out forex margin is not to find the biggest lot the account can open. It is to know how much collateral a trade needs and how much safety buffer remains once it is open.

Conclusion

Margin is the capital a broker temporarily locks to secure an open position — not a trading cost. Reading forex margin correctly tells a trader how much collateral the account needs and how much Free Margin is left after entry.

When applying how to calculate margin, just remember three things:

  1. Forex: the requirement depends on lot size, contract size, price and leverage.
  2. XAU/USD: the same formula, but contract size is usually 100 ounces per lot rather than 100,000 units.
  3. Higher forex leverage → less margin required, but the risk on the same lot size does not fall with it.

What matters most is not the biggest lot the account can open, but choosing a size that fits your capital and holding enough Free Margin to stay clear of a margin call or Stop Out.

Once the formula is clear, pair it with a forex money management rule such as the 1% rule to arrive at a sensible position size.

If you trade forex and want to cut your costs further, take a look at the Exness trading conditions and rebates at Backcom.io.

Frequently Asked Questions About Margin (FAQ)

Do You Lose the Margin Money?

No. Once you understand what is margin, it is clear this is only capital the broker locks temporarily to secure an open position — it is not a trading fee. When the trade closes, the margin is released. Whether the account rises or falls depends entirely on the profit or loss of the trade.

What Forex Leverage Is Sensible for a Beginner?

No single level of forex leverage suits every trader. Beginners might consider somewhere between 1:100 and 1:500, but keeping lot sizes small and managing risk tightly matters far more. High leverage only becomes dangerous when it is used to open positions that are too large for the capital behind them.

What Should You Do After a Margin Call?

After a margin call, ease the pressure by closing some positions, cutting volume, or adding funds if it is genuinely necessary. The lasting fix, though, is not topping up repeatedly — it is revisiting how to calculate margin, your lot sizes, your Stop Loss and your money management plan before each trade.

Disclaimer

Trading Crypto Assets, Forex and CFDs involves significant risk and may result in the loss of your invested capital. You should not invest more than you can afford to lose and should make sure you fully understand the risks involved. Trading leveraged products may not be suitable for all investors. Before trading, please consider your level of experience and investment objectives, and seek independent financial advice if necessary. Please read our legal documents and make sure you fully understand the risks before making any trading decision.

Join the Backcom.io Community

Get the latest on trading rebates, trading tips, and broker deals — and connect with thousands of traders worldwide.

Backcom mascot
Ultima

Choose Your Backcom Link — Ultima

Ultima offers 3 link types with different spreads to choose from. You can pick the link type that best fits your trading strategy!

Link type

Spread

Rebate

Register

No Markup

Normal

$6,4

Markup 1

+1 pip

$14.4

Markup 2

+2 pip

$22.4