Forex Margin Calculator: Margin, Margin Level and Stop Out

Leverage lets you open a large position with a small deposit, but part of your balance is locked as margin while the trade is open. Enter the pair, lot size, leverage, price and your account equity. You will see the margin you need, your margin level, your free margin and how many pips the market can move against you before the broker closes the trade at stop out. A table also shows the margin at each leverage from 1:30 to 1:1000.

How margin is calculated

Margin is a deposit, not a fee. The broker holds it back from your free margin while the position is open and gives it back when you close. The calculator works it out like this:

  • Margin = lots × contract size × price ÷ leverage, converted to your account currency
  • Margin level = equity ÷ used margin × 100%
  • Pips to stop out = (equity − stop-out level × used margin) ÷ pip value of the position

The contract size is 100,000 units for currency pairs and 100 ounces for gold. Equity is your balance plus or minus the profit or loss on open trades. The calculator starts with a stop out at a 50% margin level, a common setting; change it to your broker’s level, which is often between 20% and 50%. The pips to stop out assume this is your only open trade and leave out spread and swap. Many brokers also send a margin call earlier, often at 100%.

An example

You have $5,000 and buy 1 lot of EUR/USD at 1.0800 with 1:100 leverage. The position is worth 100,000 × 1.08 = $108,000, so the margin is $108,000 ÷ 100 = $1,080. With a EUR account the same trade needs exactly €1,000, because the margin is 1% of 100,000 euros.

Your margin level when you open is $5,000 ÷ $1,080 × 100 = 463%. Stop out at 50% happens when equity falls to $540. That leaves $5,000 − $540 = $4,460 of losses before the trade is closed, and at $10 a pip that is 446 pips.

Trade 3 lots instead and the margin is $3,240, stop out comes at $1,620 of equity and the market only needs to move about 113 pips against you. More lots on the same balance leaves much less room.

Key takeaway: high leverage lowers the margin, not the risk. Your profit and loss per pip depend on the lot size, so size the trade on your stop loss and use margin only as a ceiling.

Frequently asked questions

What is the difference between margin call and stop out?

A margin call is a warning that your margin level has fallen below the broker’s threshold, often 100%. Stop out is the level, for example 50%, at which the broker starts closing your trades automatically, beginning with the biggest loser.

Does leverage change my profit per pip?

No. One lot of EUR/USD is worth $10 a pip whether you use 1:30 or 1:500. Leverage only changes how much of your balance is held as margin.

Why does the margin on USD/JPY not depend on the yen price?

With a USD account the base currency is already dollars, so 1 lot is $100,000 and at 1:100 the margin is $1,000 whatever the yen rate. On pairs like EUR/USD the margin moves with the price.

Is margin on gold calculated the same way?

Yes, with 100 ounces per lot. Many brokers apply lower leverage to gold than to major pairs, so check the limit for each instrument.

Related guides

More calculators

For information only: the calculator gives estimates and is not financial advice. Contract sizes, margin rules and swap rates vary by broker and account, so check your broker’s figures before you trade.

CFDs are leveraged products and can lose value quickly. Only trade with money you can afford to lose.