Skip to content
Menu

Margin Level Calculator

By Chad Smith · Updated

On this page
  1. How to use it
  2. The formula
  3. Worked example
  4. What the result means
  5. Margin level versus free margin
  6. Common mistakes
  7. Related lessons and tools

A margin level calculator shows how healthy your account is while trades are open. It takes your balance, your open profit or loss and the margin in use, and returns your equity, free margin and margin level. Brokers use margin level to decide when to warn you and when to close your positions, so it is the number to watch when an account is under pressure.

Margin level calculator

USD
USD
USD
%
%
Margin level
475.00%
Equity
USD 9,500.00
Free margin
USD 7,500.00
Status
Above margin call

How to use it

  1. Enter your account balance.
  2. Enter the total floating profit or loss on open trades (negative for a loss).
  3. Enter the total used margin, or add your positions so the calculator works it out.
  4. Optionally enter your broker's margin call and stop-out levels.
  5. Read your equity, free margin and margin level, and the distance to each threshold.

The formula

Equity       = Balance + Floating profit or loss
Free margin  = Equity − Used margin
Margin level = Equity ÷ Used margin × 100

Swaps and commissions already charged on open trades are part of the floating profit or loss on most platforms.

Worked example

This is an illustrative example with simple numbers.

  • Balance: 2,000 USD
  • Open trades are down 600 USD
  • Used margin: 800 USD
Equity       = 2,000 − 600 = 1,400 USD
Free margin  = 1,400 − 800 = 600 USD
Margin level = 1,400 ÷ 800 × 100 = 175%

If the broker's stop-out level is 50%, positions start closing when equity falls to 400 USD (50% of 800). That leaves room for a further 1,000 USD of losses from here.

What the result means

A margin level well above your broker's thresholds means the account can absorb more losses before anything happens. As the level falls toward the margin call level, you may be warned or blocked from opening new trades. At the stop-out level, the broker starts closing positions, usually the largest loser first, until the level rises again.

Margin level is a warning light, not a plan. By the time it is low, the account has already lost a lot. The margin call calculator shows the price at which a given position would reach those levels, which is more useful before you trade.

Margin level versus free margin

Both numbers come from the same inputs, but they answer different questions. Free margin is a money amount: how much more you could commit to new trades, or how much more you can lose before the margin is no longer covered. Margin level is a ratio: how many times your equity covers the margin in use. A large account with one small trade can have a high margin level and a lot of free margin. A small account with several trades can have a low margin level even if no single trade looks big. Watching both helps you notice when the account as a whole is overextended.

Common mistakes

  • Watching balance instead of equity. Balance ignores open losses; margin calls are based on equity.
  • Opening more trades because free margin is available. More trades raise used margin and lower the margin level.
  • Assuming all brokers use the same thresholds. Margin call and stop-out levels vary, and some use different levels for different account types.
  • Forgetting that spreads widen. At rollover or around news, wider spreads increase floating losses and can push a weak account to stop-out.
  • Hedging to "save" margin. Some brokers reduce margin on hedged positions, but the losses on each leg are still real.

Frequently asked questions

What is margin level?

Margin level is your equity divided by your used margin, shown as a percentage. It tells you how well your account covers the margin on open positions.

What margin level is safe?

Higher is safer, because it means more equity is available to absorb losses. Brokers set their own margin call and stop-out levels, so compare your margin level with those figures rather than with a general rule.

Why is my margin level shown as blank or zero?

When you have no open positions, used margin is zero, so margin level cannot be calculated. Most platforms show it as empty until a trade is open.

How can I raise my margin level?

Close or reduce positions to cut used margin, or deposit funds to raise equity. Letting a losing trade run lowers it further.