Margin and leverage calculator

How margin works

Margin is the deposit your broker sets aside while a leveraged position is open. It is not a fee and it is not the amount you can lose: it is a portion of your balance that cannot be used for other trades until the position closes. Leverage is the ratio between the position value and the margin: at 30:1, a position worth 30,000 needs 1,000 of margin.

The formulas

  • Position value = lots x contract size x price (for example 1 lot of EUR/USD is 100,000 euros).
  • Margin required = position value / leverage.
  • Free margin = equity – margin used.
  • Margin level = equity / margin used x 100.

Worked example

Buy 1.00 lot of EUR/USD at 1.1245 with 30:1 leverage. Position value = 1 x 100,000 x 1.1245 = $112,450.00. Margin = $112,450.00 / 30 = $3,748.33. On a 10,000 account that leaves $6,251.67 of free margin, and the margin level is 267%.

Margin is not your risk

The margin figure says how much of your account is tied up, not how much you can lose. The loss depends on the size of the position and where your stop-loss is. A small account can still be wiped out by a position that is too large for it even when the margin figure looks comfortable, which is why sizing from the stop comes first; use the position size calculator to do that. Higher leverage reduces the margin you need, but it does not change what a given position can lose.

Margin call and stop-out

If losses reduce your equity until the margin level falls to the broker’s margin-call level, the broker warns you or blocks new trades. If it keeps falling to the stop-out level, the broker closes positions automatically, often starting with the biggest loser. The levels differ by broker and account type, and rules for retail clients differ by region, so read your account terms. Our calculator lets you type your broker’s stop-out level and shows how far price has to move for that to happen.

Frequently asked questions

Is margin the most I can lose?

No. Margin is the deposit held for the position. On most retail accounts you can lose more than the margin on a trade, up to your whole balance, and in some regions or account types more than your balance. Check your broker’s negative balance protection terms.

Does higher leverage make me more profitable?

No. Leverage lets you open a larger position for the same margin, so it magnifies both gains and losses. It does not improve the quality of a trade.

Why does my broker’s margin differ from this calculator?

Brokers set their own leverage per instrument, may use different contract sizes, and some use tiered margin for large positions. Treat this as an estimate and confirm in your platform.

Related: pip value calculator, drawdown and risk of ruin, margin call vs stop out.

Educational content only, not financial advice. Trading involves substantial risk of loss. Read the full risk disclaimer.