Skip to main content
Some brokers pay us when you open an account from our links. It never changes a score. Some brokers pay us. It never changes a score. How we make moneyHow74 to 89% of retail CFD accounts lose money.

What is margin in forex, and how do you calculate it?

The deposit your broker holds while a leveraged trade is open.

By Guilherme Jovanovic. Updated 18 November 2026

What margin is

Margin is the amount of money your broker requires as collateral to open and hold a leveraged position. It is not a fee or a cost. It stays yours, but the broker holds it as security while the trade is active.

Suppose you want to control a position worth $100,000, which is one standard lot, and you have $1,000 in your account. With leverage of 100:1 the broker lets you do that by setting aside your $1,000 as margin.

When the position closes, at a profit or a loss, the margin is released back into your account and the profit or loss is added or subtracted.

Margin and leverage

The two terms describe the same relationship from opposite sides.

  • Leverage is a ratio, such as 100:1, 200:1 or 500:1. It says how many times your deposit you can control in market exposure.
  • Margin is a percentage, such as 1%, 0.5% or 0.2%. It says what share of the position value you must put up.

Margin % = 1 ÷ leverage × 100. Leverage of 1:100 is a 1% margin requirement. Leverage of 1:500 is 0.2%. Our leverage guide covers the other side.

The required margin formula

Required margin = (trade size × current price) ÷ leverage.

For one standard lot of EUR/USD at 1.0850 with leverage of 1:100, that is (100,000 × 1.0850) ÷ 100 = $1,085. At 1:500 the same position needs $217. The exposure is the same $108,500 either way.

Margin for a $10,000 position at different leverage

LeverageMarginRequired for $10,000Where you see it
1:1010%$1,000EU and UK retail cap for commodities other than gold
1:205%$500EU and UK retail cap for minor pairs and gold
1:303.33%$333EU, UK and Australian retail cap for major pairs
1:502%$200US retail cap for major pairs
1:1001%$100Offshore entities
1:2000.5%$50Offshore entities
1:5000.2%$20Offshore entities

Higher leverage means a smaller margin requirement. It also means a smaller move against you can use up what is left in the account. A $20 margin on a $10,000 position leaves almost no buffer.

Free margin and used margin

While you have positions open, your equity is split into two parts.

  • Used margin is the total margin locked across all open positions. You cannot use it for new trades.
  • Free margin is equity minus used margin. It is what is available to open new positions or absorb losses.

With equity of $5,000 and two open trades using $2,000 of margin, free margin is $5,000 − $2,000 = $3,000.

Free margin is also your buffer against moves that go the wrong way. If open trades lose money and your equity falls towards your used margin, you are approaching a margin call.

What a margin call is

Brokers track margin level, which is equity divided by used margin, times 100. A margin call happens when margin level falls to a threshold the broker sets, often 100%. At that point the platform warns you and stops you opening new positions. Nothing is closed yet.

If margin level keeps falling to the broker’s stop-out level, the platform starts closing positions automatically. Retail accounts at EU and UK regulated brokers are closed out at 50% of required margin by rule. Elsewhere the broker chooses the level, and some set it much lower, so check the account terms. What happens at stop-out level works through an example.

The way to stay clear of both is sensible position sizing, modest leverage, and knowing how much free margin you have before you open a new trade.

Using the margin calculator

You do not need to work this out by hand before every trade. The margin calculator takes the currency pair, the lot size and your account leverage, and shows the required margin in your account currency.

It belongs in a pre-trade check next to the pip calculator and the position size calculator. All of them are on the calculators page.

CFDs are complex instruments and carry a high risk of losing money quickly because of leverage. Most retail accounts lose money trading them. This article is educational and is not financial advice.

Questions

Is margin a fee?

No. Margin is collateral. The broker sets it aside from your balance while the trade is open and releases it when the trade closes. What you gain or lose on the trade is separate.

How do I calculate required margin?

Multiply the trade size by the current price and divide by the leverage. One standard lot of EUR/USD at 1.0850 with 1:100 leverage needs (100,000 × 1.0850) ÷ 100 = $1,085.

What is free margin?

Free margin is equity minus used margin. It is what you have left to open new positions or absorb losses on the ones already open. With $5,000 of equity and $2,000 of used margin, free margin is $3,000.

What is the difference between a margin call and a stop-out?

A margin call is a warning that your margin level has fallen to a threshold set by the broker, often 100%. A stop-out is the broker closing positions automatically when the margin level falls further, to its stop-out level.

Keep reading

Looking for a broker?

Every broker we review, scored the same way, with the licences and fees we read on their own sites.