What margin is and how it is calculated

Margin call and stop out in forex are two thresholds. At the first, the broker warns you that the collateral on your account is running short. At the second, the broker closes positions itself. To understand when they trigger, you first need to understand margin.

Margin is the part of your account money that the broker blocks as collateral for an open position. It is not a fee and not a payment. While the trade is open, the money stays yours, but you cannot use it for new trades. Once the position is closed, the collateral is released.

Leverage shows how many times larger the position is than the collateral. At 1:100 leverage, a position worth $100,000 requires $1,000 of collateral.

The basic formula for a currency pair:

Margin = volume in lots × contract size × price / leverage

Take EUR/USD at a price of 1.1000. A standard lot in forex is 100,000 units of the base currency, that is, 100,000 euros. In dollars that is 110,000.

  • 1 lot at 1:100 leverage: 110,000 / 100 = $1,100 of margin.
  • 0.1 lot at 1:100 leverage: $110.
  • 1 lot at 1:500 leverage: 110,000 / 500 = $220.

If you still mix up lots and pips, first read What Is a Lot in Trading: Pips and Pip Value With Examples. We will need the pip value all the time below.

Contract size and permitted leverage differ between instruments. For gold, indices and cryptocurrencies, the conditions are usually stricter than for major currency pairs. If your account currency differs from the currency of the pair, the margin is recalculated at the current exchange rate.

Equity, free margin and margin level

In a trading terminal, several more indicators are usually shown next to the balance. Let us go through them in order.

  • Balance is the money on your account without open positions taken into account.
  • Equity is the balance plus the current floating profit or minus the floating loss on open trades.
  • Margin (used margin) is the sum of collateral across all open positions.
  • Free margin is equity minus margin. This is the money you can still put to use.
  • Margin level is equity divided by margin, multiplied by 100%.

An example. Your account holds $1,000, and you opened 0.1 lot of EUR/USD at 1:100 leverage. The margin is $110. The pip value for 0.1 lot of this pair is about $1.

The price moves 50 pips against you:

  • floating loss: $50;
  • equity: $950;
  • free margin: 950 − 110 = $840;
  • margin level: 950 / 110 × 100% ≈ 864%.

Margin level is the key indicator on which margin call and stop out depend. It falls in two cases: when the loss grows (equity decreases) and when you open new positions (used margin grows).

Margin call and stop out: what is the difference

Margin call is the margin level threshold at which the broker warns you that collateral is getting low. It used to be literally a phone call asking you to top up the account, hence the name. Today it is usually a notification in the terminal or an email. Often, once this threshold is reached, you cannot open new positions. A margin call on its own does not close any trades.

Stop out is the threshold at which the broker forcibly closes positions without asking you. As a rule, the most losing trade is closed first. If the margin level is still below the threshold after that, the next one is closed, and so on until the level rises.

For the examples below we will use a margin call at 100% and a stop out at 50%. These are illustrative values. Thresholds differ between brokers, account types and jurisdictions, and the exact figures must be checked in your account specification.

What these thresholds mean in practice:

  • 100%: equity has become equal to margin, and no free margin is left;
  • 50%: equity equals half of the margin, and the broker starts closing positions.

The distance to stop out in pips is convenient to calculate this way:

(equity − margin × stop out level) / pip value

Why high leverage brings stop out closer: examples

There is an important subtlety here. With the same position volume, high leverage by itself does not bring stop out closer: the margin is smaller, and the closing threshold even moves further away. The danger lies elsewhere. High leverage lets you open a much larger volume on the same deposit, and the loss is calculated from the volume, not from the collateral.

Let us compare several situations. In all of them the pair is EUR/USD at a price of 1.1000, with a margin call at 100% and a stop out at 50%. For simplicity, we ignore spread, commissions and swaps.

Deposit, $Volume, lotsLeverageMargin, $Margin level at openingPips to margin callPips to stop out
1,0000.11:100110≈ 909%≈ 890≈ 945
1,00011:500220≈ 455%≈ 78≈ 89
1,00031:500660≈ 152%≈ 34≈ 22
5,00011:1001,100≈ 455%≈ 390≈ 445

Let us look at the third row in more detail. At 1:100 leverage, opening 3 lots with a $1,000 deposit would be impossible: it would require $3,300 of collateral. At 1:500 leverage it works. The pip value for 3 lots is about $30.

  • A margin call will occur when equity falls to $660, that is, with a loss of $340. That is roughly 11 pips.
  • Stop out will trigger when equity falls to $330, that is, with a loss of $670. That is roughly 22 pips.

A little over twenty pips is an ordinary intraday fluctuation of EUR/USD. It turns out that a position can be closed not because of a strong market move, but because of ordinary noise.

Now compare the first and the fourth rows. The deposits are different, but the volume in each is proportional to the deposit, so the cushion before stop out in pips is comparable. What decides is not the amount on the account and not the leverage alone, but the ratio of position volume to equity.

How people lose money on margin: leverage, gaps and stop out closing

Margin trading allows you to lose a large part of your deposit in a short time. Here are the main mechanisms.

  • Too large a volume. If you use all the available leverage, only a few pips remain before stop out, as in the example with 3 lots. One unsuccessful trade takes most of the account.
  • Locking in the loss at the worst moment. Stop out closes the position at the point where the loss is already at its maximum for your account. Even if the price turns around afterward, you will no longer see it.
  • Gaps and slippage. A gap is a break in price, for example after a weekend or an important news release. Slippage is execution at a price worse than expected. In both cases the position is closed not at the stop out level but further away, and the loss turns out larger than calculated. In rare cases the balance goes negative. Whether your account has negative balance protection depends on the broker and the jurisdiction.
  • Spread widening. At night and during news releases, the difference between the buy and sell prices can grow noticeably. Equity on the account decreases, and stop out may trigger without any visible price move.
  • Swaps and commissions. A swap is a fee for carrying a position overnight. When you hold a position for a long time, swaps gradually reduce equity and bring the thresholds closer.
  • Changes in margin requirements. A broker has the right to raise collateral requirements ahead of weekends, holidays or major events. Margin grows, margin level falls, even though the price has not changed.
  • Shared collateral for all positions. Margin and equity are shared across the whole account. A loss on one trade eats the safety cushion of the others, and stop out may close positions that were fine on their own.
  • Copying trades. If you copy a trader, the volume on your account depends on the copying settings and the ratio of deposits. With proportional copying, a small account can carry the same load as the trader's account, but with a smaller cushion. And if the trader changes strategy and starts opening large volumes, your margin level will fall right after theirs.

Which account parameters to check with your broker and how to monitor margin level

Before you open trades, find the following in the account specification and in the agreement:

  1. Maximum leverage and whether you can choose a lower value.
  2. Margin call and stop out levels in percent.
  3. The order of forced closing: which position is closed first.
  4. Margin requirements by instrument. For metals, indices and cryptocurrencies they often differ from currency pairs.
  5. Rules for changing requirements before weekends, holidays and news.
  6. Negative balance protection: whether it exists and on what terms.
  7. Account currency, spreads, commissions and swaps.

Broker terms change, so reread the specification from time to time, not only when you open an account. Our calculations are based on general principles. Always check specific figures against the current terms of your account.

How to monitor margin level:

  • Look at margin level, not only at profit and loss. It immediately shows how much cushion is left.
  • Calculate the distance to stop out before entering a trade. The formula from the section above takes a minute. If the cushion is smaller than the instrument's usual daily move, the volume is too large.
  • Set your own stop loss. A stop loss is an order to close a position at a set loss. It should trigger well before stop out, so that the decision is made by you and not by the broker's mechanism.
  • Reduce the volume instead of topping up the account. A deposit pushes stop out further away, but it increases the amount at risk.
  • When copying, set limits if the platform allows it: maximum volume, drawdown limit, stopping the copying at a set loss.
  • Keep news and weekends in mind. In these periods, spreads, gaps and margin requirements change fastest.