CFDs and forex are complex instruments and come with a high risk of losing money rapidly due to leverage. Risk disclosure

What is margin in forex

This page explains what margin is, how the required margin is worked out, and how to check it with the margin calculator before you open a position.

Extrade Pakistan editorial team ·

On this page
  1. Margin meaning in simple words
  2. The required margin formula
  3. Which currency margin is in
  4. Used margin vs free margin
  5. How margin changes with price
  6. What else changes the margin requirement
  7. Margin and risk
  8. Frequently asked questions

Margin meaning in simple words

Margin is the part of your own money that a broker sets aside while a leveraged position is open. It is not a fee and it is not spent. It is a deposit that guarantees the position. When you close the trade, the margin is released back to your free funds, and your balance changes only by the profit or loss of the trade and its costs.

Margin exists because of leverage. With leverage you control a position larger than your deposit. The broker asks you to lock up a share of the position's value, and that share is the margin. If you are new to leverage, read What is leverage first.

Margin does not limit your loss. You can lose more than the margin set aside for a trade, up to your whole account balance. Leveraged forex and CFD trading can lose money fast.

0.20 lot EUR/USD 1.0850 → 1.0820, 1:100Balance 1,000.00floating P/L -60.00Equity 940.00margin 217.00free margin 723.00Equity =Balance + floating P/Lfree margin =Equity − marginMargin level =Equity / margin × 100% = 433%
Account anatomy for one open position: equity is the balance plus the floating result, free margin is what is left for new trades. Illustrative example: made-up numbers for learning, not real prices or a broker's conditions.

The required margin formula

The margin requirement is the amount needed to open a position. For forex and most CFDs it is calculated like this:

Required margin = lots × contract size × open price ÷ leverage

Each part means:

Some brokers express the requirement as a margin percentage instead of leverage. It is the same idea: the percentage is the share of the position's value you must set aside.

Use the calculator to see the actual number for your trade:

Required margin1,112.7 USD
Position value111,270 USD

Enter the instrument, lot size, price, leverage and account currency. The calculator shows the required margin with the inputs you used, so you can check each part of the formula.

Which currency margin is in

Margin is first calculated in the margin currency of the instrument and then converted into your account currency.

Used margin vs free margin

Once trades are open, the platform shows several related figures:

Term What it means
Balance Money in the account, not counting open trades
Equity Balance plus or minus the floating profit or loss of open trades
Used margin The total margin locked by all open positions
Free margin Equity minus used margin, the amount available for new trades or to absorb losses
Margin level Equity divided by used margin, shown as a percentage

Free margin shrinks when open trades lose money and grows when they gain, even though used margin may stay the same. If free margin falls too far, the broker can issue a margin call and then close positions at the stop out level. More detail: Free margin, Margin level, Equity vs balance.

How margin changes with price

Many traders assume margin is fixed once a trade is open. That depends on the instrument and the account currency.

The exact method of recalculation depends on the platform and broker settings. Check the instrument specification in your trading platform.

What else changes the margin requirement

For experienced traders, these points often matter more than the basic formula:

If you trade with Exness, check the current margin and leverage conditions for each instrument in the Exness personal area or on the official site.

Margin and risk

Low required margin makes a position look small, but the profit or loss depends on the full position size, not on the margin. A trade that needs little margin can still move your equity sharply. Plan position size from the amount you are prepared to lose, using a stop loss and the calculators on Calculators, and read Risk management. Practising on a demo account shows how used and free margin behave without risking money.

Before trading from Pakistan, also read Law and regulators and Regulation and Safety.

Frequently asked questions

What is margin in forex?

It is the part of your funds locked as a deposit while a leveraged position is open. It is released when the position closes.

Is margin a cost or a fee?

No. Costs are the spread, commission and swap. Margin is held, not charged. See Total trading costs.

How do I calculate the margin requirement?

Multiply lots by contract size and open price, then divide by leverage, and convert into your account currency. The margin calculator on this page does this with your inputs.

Why is my used margin changing while the trade is open?

Either the margin currency differs from your account currency, or the instrument's margin is recalculated at the current price, as with many metals and index CFDs.

Can I lose more than the margin?

Yes. Margin is not a loss limit. Losses come from the full position size and can take your whole balance.

What happens if free margin runs out?

The broker may warn you with a margin call and then close positions at the stop out level, starting with the most losing trades on many platforms.

Related pages