MT5 margin level explained: formula, margin call and stop out

Margin level tells you how much room your account has before positions are closed. How it is calculated, where to find it and what it does not tell you.

What margin level is

Margin level is the figure in MetaTrader 5 that tells you how much room your account has before the broker starts closing positions. It is calculated as equity divided by used margin, shown as a percentage: margin level = equity / margin x 100. A higher number means more room. A lower number means less. When you have no open positions there is no margin in use, so the field is empty.

You will find it on the account line at the top of the Trade tab in the Toolbox (press Ctrl+T if the Toolbox is hidden), next to Balance, Equity, Margin and Free Margin. The terminal recalculates it as prices move, which is why it can change many times a minute while you hold a trade.

The four numbers behind it

FieldWhat it isHow it moves
BalanceYour deposits plus the results of closed tradesChanges only when a trade closes or money moves in or out
EquityBalance plus the floating profit or loss of open positionsChanges with every price tick while you hold a trade
MarginThe amount the broker holds back to keep your open positionsChanges when you open, add to or close positions, or when leverage or the price changes
Free marginEquity minus margin: what is left to open new tradesFalls as you add positions or as floating losses grow
Margin levelEquity divided by margin, as a percentageFalls when equity falls or when more margin is used

The balance is the quiet number and the equity is the honest one. If you hold a losing trade, the balance still shows the old figure while the equity already shows the damage. See MT5 balance vs equity for how the two drift apart.

A worked example (hypothetical numbers)

Take an account with a $5,000 balance and 1:100 leverage. You buy 1.00 lot of EURUSD at 1.0850. The notional value is 100,000 x 1.0850 = $108,500, so the margin is about $1,085. Right after opening, with no floating profit or loss, equity is $5,000, free margin is $3,915 and margin level is 5,000 / 1,085 = about 461%.

Floating resultEquityMarginFree marginMargin level
$0$5,000$1,085$3,915461%
-$1,500$3,500$1,085$2,415323%
-$3,000$2,000$1,085$915184%
-$4,457.50$542.50$1,085-$542.5050%

The last row is the point at which a broker with a 50% stop-out level would begin closing positions. The numbers are invented and ignore spread, swap and any change in the margin requirement, but they show the shape: the margin stays put while the equity melts, and the margin level falls with it. Notice also that the account could not have survived that loss by waiting. By the time the margin level is low, the free margin is already gone.

Margin call and stop out

Brokers define two thresholds on the margin level. They are set by the broker, not by MetaTrader, and they differ between brokers, account types and sometimes instruments.

Do not take a number from this page. Open the contract specification of your own account type, or your broker’s support page, and write the real figures into your trading plan. A trader who thinks the stop-out is at 20% when it is at 50% has half the room they believe.

Why margin level is not your risk limit

It is tempting to treat a margin level of 300% as safe. It is not a risk measure. A position can sit at a comfortable margin level and still lose far more than you meant to risk, because the stop-out only protects the broker from your losses going below zero. It does nothing to protect your plan.

What to watch in practice

What a journal can and cannot tell you about it

A stop-out is visible afterwards: the closed trade appears in your History with a broker comment that usually says so (see MT5 history comments: sl, tp and so). What a journal built from closed trades cannot show is how close you came. AI Trading Journal reads closed positions from your MetaTrader 5 history, so it does not record the margin level, the floating profit and loss of open trades or the moment-by-moment equity. If you want to log your margin level at entry as a habit, write it in the notes field of the Journal page next to the setup and the reason for the trade. Over a few weeks that note tells you whether your worst losses came at the times your margin level was already low.

The same closed-trade view gives you the cost side: whether stop-out trades appear in your results, how large they were, and how they compare with trades that hit your own stop. That is the data that changes behaviour. The dashboard guide shows what the numbers look like once the journal is filled.

Honest limits

Next in the chain: MT5 stop out and margin call explained, with a worked example and how a forced close appears in your history.

Frequently asked questions

How is margin level calculated in MT5?
Margin level is equity divided by used margin, multiplied by 100 to give a percentage. With $3,500 equity and $1,085 margin the level is about 323%.
What is a good margin level?
There is no single good figure. A higher level means more room before a margin call or stop-out, but margin level is not a measure of risk per trade. Size positions by the loss you accept first.
Where do I see margin level in MetaTrader 5?
In the Trade tab of the Toolbox (Ctrl+T), on the account line with Balance, Equity, Margin and Free Margin. It is blank when no positions are open.
What is the stop-out level?
It is the margin level at which your broker starts closing positions automatically. It is set by the broker, so read your own account specification.
Does AI Trading Journal record my margin level?
No. It reads closed positions from your MT5 history. You can write the margin level in the notes of a journal entry if you want to track it.

Related guides

Keep a record of every trade, stop-outs included: free for 7 days

Free for 7 days, no card required. After that, a one-time $19.99 purchase. No subscription. Also on the Microsoft Store.

One-time $19.99, no monthly fee · your MT5 login never leaves your PC · trades go into your own journal on your PC, not through our servers.

Start free 7-day trial