Skip to content
MT5MT4soonTradingViewsooncTradersoonNinjaTradersoonPythonsoon

Forex Margin Calculator: Required Margin, Margin Level and Stop-Out

Margin = position value ÷ leverage, and position value = lots × contract size × price, converted into your account currency. One standard lot of EURUSD at 1.0850 is worth $108,500, so at 1:100 leverage your broker locks $1,085 of your equity as margin. At 1:500 it locks $217; at 1:30 it locks $3,616.67.

Current price from your platform.
Standard lot = 100,000 units.
Some brokers set lower leverage on gold, indices and crypto.
Required margin1,085.00 USD
Position value
108,500.00 USD
Leverage
1:100

How to calculate margin in three steps

Margin is the part of your equity your broker sets aside while a position is open. It is a deposit, not a fee. You get it back when the trade closes, plus or minus the profit or loss.

The calculation is the same for every instrument:

  1. Position value. Multiply lots × contract size × price. One standard lot of a forex pair is 100,000 units of the base currency. One lot of gold is 100 troy ounces at most brokers. Index contracts vary widely, so check your broker's contract specification.
  2. Convert to your account currency. The value from step 1 is in the quote currency (the second currency of the pair, or USD for gold and US indices). If your account is in another currency, multiply by the exchange rate.
  3. Divide by leverage. At 1:100 leverage you put up 1/100 of the position value. At 1:30 you put up 1/30.

So the full formula is:

Margin = Lots × Contract size × Price × (quote → account rate) ÷ Leverage

A quick shortcut for USD accounts on pairs quoted in USD (EURUSD, GBPUSD, AUDUSD, gold): margin for 1 lot is simply contract size × price ÷ leverage. For pairs where USD is the base (USDJPY, USDCAD, USDCHF), the price and the conversion cancel out, so 1 lot always needs $100,000 ÷ leverage.

Worked examples: 1 lot of EURUSD and 1 lot of gold

Here is an example with round numbers on a USD account.

EURUSD at 1.0850, 1 lot, leverage 1:100

  • Position value = 1 × 100,000 × 1.0850 = $108,500
  • Margin = $108,500 ÷ 100 = $1,085

Change only the leverage and the deposit changes in direct proportion. At 1:30 the same lot needs $3,616.67. At 1:500 it needs $217. The full breakdown, including mini and micro lots, is in margin required for 1 lot of EURUSD.

Gold (XAUUSD) at $4,000, 1 lot, leverage 1:100

  • Position value = 1 × 100 oz × $4,000 = $400,000
  • Margin = $400,000 ÷ 100 = $4,000

Gold needs almost four times the margin of EURUSD for the same lot size, because one lot of gold controls a much larger position. Many brokers also give gold lower leverage than major pairs, which raises the number further. See how much margin 1 lot of gold needs for the 1:20 to 1:500 range.

Margin for 1 lot at 1:100 leverage on a USD account (example prices)Illustration
USDJPY (any price)
$1,000
EURUSD at 1.0850
$1,085
GBPUSD at 1.2700
$1,270
XAUUSD at $4,000
$4,000

The chart shows why "margin per lot" is not one number. The same 1:100 leverage locks $1,000 on USDJPY and $4,000 on gold, because the position value behind one lot is different.

Margin level, margin call and stop-out explained

The margin a trade needs is only half the picture. What closes accounts is margin level, which your platform recalculates every tick:

Margin level = Equity ÷ Used margin × 100%

  • Equity is your balance plus or minus the floating profit or loss of open trades.
  • Used margin is the total margin locked by all open positions.
  • Free margin is equity minus used margin: the money still available to open new trades or absorb losses.

Two broker thresholds sit on top of margin level:

  • Margin call: a warning level. Many brokers set it at 100%, meaning equity has fallen to the size of your used margin. Usually you cannot open new trades below it.
  • Stop-out: the level where the broker starts closing positions for you. 50% is common, but 20% to 80% all exist. Which position closes first also depends on the broker; closing the largest losing position first is common, not universal.
From equity to stop-out: how margin level falls
  1. 1EquityBalance ± floating P/L
  2. 2Used marginLocked by open trades
  3. 3Margin levelEquity ÷ used margin × 100%
  4. 4Margin callOften at 100%: no new trades
  5. 5Stop-outOften at 50%: broker closes positions
Thresholds vary by broker; 100% and 50% are common settings.

The calculator gives you the used-margin part of the equation. Your account's margin call and stop-out percentages are in your broker's account terms; write them down once, because the next section depends on them.

How far price can move before a stop-out

This is the question behind most margin searches: how much room does the trade have? You can work it out by hand.

Here is an example on a $2,000 account with 1 lot of EURUSD at 1:100, margin call at 100% and stop-out at 50%.

  1. Used margin = $1,085 (from the example above).
  2. Margin level at open = $2,000 ÷ $1,085 × 100% = 184%.
  3. Equity at margin call = 100% × $1,085 = $1,085. Loss allowed = $2,000 − $1,085 = $915.
  4. Equity at stop-out = 50% × $1,085 = $542.50. Loss allowed = $2,000 − $542.50 = $1,457.50.
  5. One lot of EURUSD moves $10 per pip, so the margin call arrives after about 91 pips against you and the stop-out after about 146 pips.
Equity thresholds for 1 lot EURUSD on a $2,000 account at 1:100Illustration
$1,457.50 of loss before stop-outEquity at open (184%)2000.00Margin call at 100%1085.00Stop-out at 50%542.50

The general rule is: pips to stop-out = (Equity − Stop-out % × Used margin) ÷ Pip value of all open positions. Run it whenever you add a trade, because each new position raises used margin and pip value at the same time, and the room shrinks from both sides. Treat this as an approximation: on many accounts the margin itself shifts slightly as price moves, and spread widening near the stop-out level can trigger it earlier.

If the number of pips to stop-out is smaller than a normal day's range for that instrument, the position is too large for the account, whatever the leverage. Our guide on how to avoid a margin call turns this into a set of sizing rules.

Margin on forex vs gold vs indices

Leverage is not the same across instruments. Brokers usually set lower leverage on gold, indices and crypto than on major pairs, and regulated retail accounts in the EU and UK have hard caps by asset class.

InstrumentTypical contract size (1 lot)Example position valueMargin at 1:100Margin at 1:20Retail cap in EU/UK
EURUSD100,000 EUR$108,500 at 1.0850$1,085$5,4251:30
XAUUSD100 oz at most brokers$400,000 at $4,000$4,000$20,0001:20
NAS100Varies (1, 10 or 20 per point)$20,000 at 20,000, contract 1$200$1,0001:20
US30Varies (1, 10 or 20 per point)$40,000 at 40,000, contract 1$400$2,0001:20

The index rows are the ones traders get wrong most often, because the contract size changes from broker to broker. A "1 lot" NAS100 position with a contract size of 20 needs twenty times the margin of one with a contract size of 1. The details are in margin for NAS100 and US30.

How to use this calculator and read the result

Pick the instrument and your account currency, enter the current price, check the contract size against your broker's specification, then enter the lot size and the leverage your broker shows for that symbol. If the pair is quoted in a currency that is not your account currency (for example EURGBP on a USD account), the calculator asks for the conversion rate.

The result panel shows three numbers:

  • Required margin: what the broker will lock from your equity when this position opens. Compare it with your free margin, not your balance.
  • Position value: the full size of the exposure in your account currency. This is what your profit and loss is really based on.
  • Leverage: the ratio used, so you can confirm you entered the symbol's leverage and not your account's headline leverage.

A useful habit: divide your equity by the required margin. That is your margin level at open if this is your only trade. In the stop-out example above, 184% left 1 lot of EURUSD only about 146 pips of room, so a low number here is a reason to run the pips-to-stop-out formula before you open.

Common margin mistakes and how to spot them

  • Treating "enough margin" as "safe size". A $1,000 account has enough margin for about 0.92 lots of EURUSD at 1:100, but on that size every pip costs about $9 and the account is already at margin call. Size from your stop loss first, then check margin. The numbers are in how many lots you can open with $1,000.
  • Using the account leverage for every symbol. If your account says 1:500 but gold is set to 1:100, the calculator will understate gold margin by five times. Look up the symbol's own leverage.
  • Ignoring tiered leverage. Many brokers lower leverage as position size grows, for example full leverage on the first few lots and less beyond. A large order then needs more margin than the simple formula shows.
  • Forgetting that margin moves with price. If gold rises from $4,000 to $4,400, the margin on 1 lot at 1:100 rises from $4,000 to $4,400. Long-running positions slowly use more margin when price moves in the direction that raises the position value.
  • Reading margin level as risk. A 1,000% margin level with no stop loss is still an open-ended risk. Margin level tells you how far you are from forced closure, not how much you plan to lose.
  • Assuming higher leverage changes your loss per pip. It does not. The comparison in 1:100 vs 1:500 leverage shows the same lot size losing the same dollars at any leverage.

Pre-trade margin checklist

  • I know the leverage my broker applies to this symbol, not just the account headline.
  • I checked the contract size for gold, indices or crypto.
  • My lot size comes from my stop loss and risk per trade, not from the maximum the margin allows.
  • Required margin for this trade is well below my free margin.
  • I know my broker's margin call and stop-out percentages.
  • With all open trades included, pips to stop-out are larger than my stop loss with a wide buffer.
  • I know whether my broker raises margin before weekends, holidays or major news.

Questions

Why does my broker show a different margin from the calculator?

The usual causes are a different price (bid, ask or mid), a different contract size, tiered leverage on larger orders, or a symbol-specific leverage lower than your account setting. Some brokers also charge a fixed margin per lot on indices or crypto instead of a percentage. Enter your broker's exact leverage, contract size and price, and the numbers should match within a few cents.

Does margin change after I open a trade?

It depends on the broker. Many recalculate margin with the live price, so margin rises as position value rises. For pairs where your account currency is the base (USDJPY on a USD account), margin stays fixed at contract size ÷ leverage. Some brokers also raise margin temporarily before weekends or major news, which can cut free margin without any price move.

Do hedged positions need margin?

Rules vary. Some brokers charge margin only on the larger side of a hedge, some charge a reduced "hedged margin" per lot, and some charge full margin on both sides. A hedge also does not protect you from stop-out if spreads widen, because both legs pay the spread. Check the hedged-margin value in your broker's contract specification.

Does a bigger deposit or lower leverage protect me from stop-out?

A bigger deposit does, because equity rises while used margin stays the same, so margin level goes up. Lower leverage raises the margin you need, which brings margin call closer for the same lot size. What keeps you away from both is the size of the position relative to equity.