Forex Margin Calculator: Required Margin and Leverage

This free forex margin calculator works out the deposit your broker sets aside when you open a position on the major USD pairs or gold. Pick an instrument, enter your lot size and leverage, and the tool returns the required margin in your account currency. A second mode runs the math in reverse: give it the value of a position and your equity, and it shows the effective leverage you are really using. Everything runs in your browser.

Forex Margin Calculator

Margin is computed in the base currency (the first currency of the pair). Set 1 when your account currency equals the base currency. Otherwise enter the current rate from the base currency to your account currency. For EURUSD with a USD account, that is the EURUSD price itself.

Enter it to see the margin as a percent of your balance.

Required margin
1,090.00
in your account currency, locked while the position is open
Position notional value109,000.00

If floating losses drag your equity below your broker's margin-call level, the platform blocks new trades. At the stop-out level it starts closing positions automatically. Keep a wide buffer of free margin.

What margin actually is

Margin is a good-faith deposit, not a cost. When you open a position, your broker sets part of your balance aside as collateral for that trade. The money is not spent and it is not a fee. It stays in your account, locked while the position is open, and it is released the moment you close the trade. What you actually pay are the spread, any commission, and swap on positions held overnight.

The size of the deposit follows one formula. Take the notional value of the position in the base currency, then divide it by your leverage. One standard lot of EURUSD is 100,000 EUR. At 1:100 leverage the locked deposit is 1,000 EUR. If your account runs in USD, convert at the EURUSD rate: 1,000 × 1.09 = 1,090 USD. Gold works the same way with a 100-ounce contract. One lot of XAUUSD at a price of 2,400 carries a notional of 240,000 USD, so 1:100 leverage locks 2,400 USD.

Brokers often quote the same thing as a margin requirement in percent. A 1% requirement equals 1:100 leverage, 2% equals 1:50, and 3.33% equals 1:30. The two figures describe one rule from opposite ends, so use whichever your broker publishes.

Download the complete indicator database

Margin tells you what you can open. Risk tells you what you should. One email unlocks the full library of 1,380+ indicators with compiled MT4 and MT5 files, plus my TradingView scripts. No paywall, no spam, unsubscribe any time.

Get free access to my indicator database

One email unlocks 1,380+ free MT4, MT5 and TradingView indicators — the complete library. No single-tool download; you get the whole database.

  • 1,380+ indicators
  • MT4 and MT5 files
  • No spam, unsubscribe any time

How to use this forex margin calculator

The tool has two modes. Use the first before you open a trade and the second to audit a position you already hold.

  1. In Required margin mode, pick the instrument and enter your lot size.
  2. Select the leverage your broker applies to that instrument.
  3. Set the base-to-account exchange rate. Leave 1 when your account currency equals the base currency. Otherwise enter the current base-to-account rate; for EURUSD with a USD account that is simply the EURUSD price.
  4. Optionally add your account balance to see the margin as a percent of it, then press Calculate.
  5. In Implied leverage mode, enter the notional value of your open position in your account currency and your current equity. The tool divides one by the other and shows the multiple.

One habit worth building: check the required margin first, then size the trade with our position size calculator. Margin only tells you whether the platform will accept the order. It says nothing about how much the trade can lose.

Margin vs free margin vs margin level

Open the terminal window in MT4 or MT5 and you see five numbers. Balance is your deposited money plus the results of closed trades. Equity is balance plus the floating profit or loss on open positions. Margin is the locked deposit this calculator computes. Free margin is equity minus margin, the amount still available for new positions. Margin level is equity divided by margin, times 100.

Brokers watch that last figure. When margin level falls to the margin-call threshold, often 100%, the platform blocks new positions and many brokers send a warning. If losses keep growing and the level reaches the stop-out threshold, often 50% but sometimes lower or higher, the platform starts closing positions automatically, largest loser first, until the level recovers. Both thresholds vary by broker, so check the contract specifications. Our drawdown calculator shows how quickly a losing streak can push equity toward those levels.

In practice, treat margin level as an early warning, not a target. A healthy account trades with the level in the hundreds or thousands of percent. If yours sits near 150% or 200% in normal conditions, the positions are too large for the account. Reduce lot size, close something, or add funds before the market forces the choice for you.

Leverage amplifies both directions

Leverage does not change what the market does. It changes how large a position you can hold with the same deposit, and that cuts both ways. Consider two traders, each with 2,000 USD, both trading EURUSD at 1.09. At 1:30 leverage the largest position the account can support is about 60,000 USD of notional, or 0.6 lots. At 1:500 the same 2,000 USD can control 1,000,000 USD, a full 10 lots.

Now run the same 50-pip move against both. The 0.6-lot position loses 300 USD, or 15% of the account. Painful, but survivable. The 10-lot position would lose 5,000 USD on paper, more than twice the account. So the stop-out closes it long before the move completes. Flip the move and those same 50 pips pay 300 USD versus 5,000 USD. That gap is exactly why high leverage tempts people. The honest summary: leverage enables position size, and position size is the risk. Pairing modest sizing with clear entries from the best MT4 indicators matters far more than the leverage number on your account.

FAQ

What happens at margin call and stop out?

At the margin-call level, often when equity falls to 100% of used margin, the platform blocks new positions and many brokers warn you to add funds or close trades. At the stop-out level, often 50%, the platform closes open positions automatically, usually starting with the largest loser, until margin level recovers. Both thresholds are broker-specific, so check your contract specifications.

Does higher leverage increase risk by itself?

Not directly. Leverage only lowers the deposit needed per lot; a 1-lot EURUSD position loses the same amount per pip at 1:30 as at 1:500. The danger is what leverage enables. With less margin locked per trade, it becomes easy to open positions far larger than your account can absorb. Position size is the risk, and leverage is what lets it grow.

Why does my broker show a different margin than this tool?

Contract specifications differ. Some brokers use non-standard contract sizes, apply fixed margin rates per instrument, or raise margin requirements around news events and weekends. This tool uses the standard 100,000-unit forex contract and the 100-ounce gold contract. Treat its output as a close estimate and confirm the exact figure in your platform's contract specification window.

Can enough free margin protect me from losses?

No. Free margin only shows how much buying power remains; it does not cap what a position can lose. Keep risk per trade small and test your approach on a demo account first, because results are not guaranteed; past performance is not indicative of future results.

Related tools: atr position size calculator, risk reward calculator and breakeven calculator, plus the full free forex tools directory.

About the author

This guide was written by Dominic Walsh, a Forex trader and MT4/MT5 indicator developer. Every tool on forexmt4systems.com is tested on live charts before release and ships as ready-to-use compiled MT4 (.ex4) and MT5 (.ex5) files. Learn more about the trader and developer behind this site.