PipLedger
Today's forex newsNFP, CPI, FOMC and other high-impact eventsEconomic calendarCalendar →

Forex Margin Calculator

Find out how much margin a trade needs before you open it. Works for 36 currency pairs, gold, silver, NAS100, US500 and US30, at any leverage and in 10 account currencies.

Loading prices…

Margin

Find out how much of your balance a trade will lock up as margin.

Lot size
Contract settings
These match most brokers. If yours differs, change them here and every calculator uses your numbers.

Disclaimer

Results are estimates for planning only. Your broker's prices, leverage, contract sizes and swap rates decide the real numbers, so check them in your trading platform before you place a trade. Trading forex and CFDs on margin carries a high risk of losing money.

What is margin in forex?

Margin is the part of your balance your broker locks while a position is open. It is not a fee: you get it back when the trade closes. What it limits is how much you can open at once. If losing trades eat into your free margin, the broker can close your positions for you.

How to use the margin calculator

  1. Pick your account currency and the instrument you want to trade.
  2. Check the price. Currency pairs and metals fill in automatically; for indices, type the price from your chart.
  3. Choose your leverage. Use the leverage your broker gives on that symbol, which is often lower on gold and indices than on currency pairs. Pick Custom to type any value.
  4. Set the lot size. The required margin updates as you type.

Margin calculation formula

Margin = Lots × Contract size × Price ÷ Leverage

The result comes out in the pair's quote currency, and the calculator converts it into your account currency.

There is one exception, and it matters for pairs like USDJPY, USDCHF and USDCAD. When the first (base) currency of the pair is your account currency, the position is already worth Lots × Contract size in your own currency, so the price drops out: Margin = Lots × Contract size ÷ Leverage. One lot of USDJPY on a USD account at 1:100 needs $1,000 whatever the price is. The same applies to a EUR account trading EURUSD.

Example: 1 lot of EURUSD is 100,000 euros. At 1.1400 that's $114,000, so at 1:100 the margin is $114,000 ÷ 100 = $1,140.

Margin examples

TradeLeverageMargin
1 lot EURUSD at 1.14001:100$1,140
1 lot USDJPY at 157.591:100¥157,590 ≈ $1,000
0.10 lot XAUUSD at 4,286.201:100$428.62
1 lot XAUUSD at 4,286.201:10$42,862
1 lot NAS100 at 30,600 (contract size 1)1:20$1,530

Indices margin: NAS100, US30 and US500

Index CFDs use the same formula. With a contract size of 1, one lot moves $1 per index point and the margin is simply the price divided by the leverage:

Margin for 1 lot at example prices. Contract sizes differ between brokers (some use 10 or more), so check your platform's symbol details.
Index (contract size 1)Price1:201:501:100
NAS10030,600$1,530$612$306
US3051,800$2,590$1,036$518
US5007,740$387$154.80$77.40

How leverage changes margin

Leverage only changes how much of your balance is locked. At 1:500 a trade needs one fifth of the margin it needs at 1:100, but every pip is still worth the same. Your risk per pip comes from the lot size, not the leverage. To see how much leverage your open trades actually use, try the leverage calculator.

Margin level and stop out

Your platform shows a margin level: equity divided by used margin, times 100. Brokers set a margin call level and a lower stop out level, where they start closing trades. The levels differ between brokers, so check yours before you trade close to the limit.

What each level does, and why on a prop firm account the drawdown limit almost always hits first, is in margin call vs stop out.

Frequently asked questions

Is margin the money I can lose?

No. Margin is a deposit the broker holds while the trade is open. What you can lose depends on your lot size and how far price moves against you, which can be more or less than the margin.

Why is margin so high on gold and indices?

One lot of gold is 100 ounces, worth over $400,000 at current prices, and many brokers and prop firms give lower leverage on gold and indices than on currency pairs. Both push the margin up.

Does margin change while my trade is open?

At most brokers, yes. Margin is recalculated as the price moves, so it rises when the price of the instrument rises. Leave some room instead of using every dollar of free margin.

Which leverage should I enter?

The leverage your account actually has on that symbol. In MT4 or MT5 you can see it in the symbol's specification or in your account details.

What is the margin calculation formula?

Margin = lots × contract size × price ÷ leverage, converted into your account currency. For 1 lot of EURUSD at 1.1400 and 1:100 leverage, that's 1 × 100,000 × 1.1400 ÷ 100 = $1,140.

How do I calculate margin for indices like NAS100?

Use the same formula with the index's contract size. With a contract size of 1, 1 lot of NAS100 at 30,600 needs $1,530 of margin at 1:20 and $306 at 1:100.

Is there an 80% margin rule at Zerodha?

No. The 80% margin rule is a prop firm rule: some firms don't let the margin of your open trades go above 80% of the account. Indian brokers such as Zerodha collect the margin set by the exchange and SEBI before an order goes through, and Zerodha's own margin calculator shows that amount for F&O. Zerodha used to let you use only 80% of the money from selling shares on the same day; it now gives the full amount. For a prop firm account, use the 80% margin rule calculator on this site.

More free calculators

Guides for forex and gold traders

All 88 guides →

Trading psychology

The habits that decide whether a good strategy makes money.

All 14 trading psychology guides