TheCalculatorVault

Trading Margin Calculator

Calculate required margin for a leveraged position — forex, stocks or crypto — from position size and leverage, plus free margin, margin level and effective account leverage.

Currency

Results update live as you type

Required Margin
1% of your notional position must be posted to open this trade.
Margin Requirement
= 100 ÷ leverage
Free Margin
equity − required margin
Margin Level
(equity ÷ required margin) × 100
Effective Account Leverage
position size ÷ equity

Capital allocation

Of your account equity, $1,000.00 is locked as required margin and $4,000.00 stays free.

How to read this: Required margin is the good-faith deposit your broker locks to open the trade; a low margin percentage means high leverage, not low risk.

Assumptions in this estimate
  • Leverage is defined on the full notional value of the position: required margin = notional ÷ leverage.
  • The notional is already in your account currency; any forex/futures conversion (lots × contract size × price) is done before input.
  • This is the INITIAL margin to open the position, not a maximum-loss figure — a leveraged position can lose far more than the posted margin.
  • No fees, spreads, swap/rollover or slippage are included, and a single flat leverage tier is assumed (no tiered or SPAN/portfolio margin).

Educational estimate — not trading advice. Results are based only on the values you enter and exclude live market conditions. This calculator does not guarantee profitability.

Like this? Share: Email

Required margin is the broker/exchange initial deposit to control a position — not a maximum-loss figure. On a leveraged position you can lose more than the posted margin, especially with gap risk or no guaranteed stop. Margin rules vary by market, instrument and jurisdiction (Reg-T 50% for US equities; ESMA/FCA 30:1, CFTC/NFA 50:1 for retail forex majors; offshore brokers may offer 500:1+). Enter the leverage your broker actually applies. This calculator does not guarantee profitability and is not financial advice; see our Terms.

What the Trading Margin Calculator tells you

When you trade with leverage, you only post a fraction of a position's full value as a good-faith deposit. This calculator turns your position size and leverage into the exact required margin — the cash your broker locks to open the trade — and, if you supply your account equity, your free margin, margin level and effective account leverage. The same formula applies across forex, stocks and crypto: enter the notional value and the leverage your broker actually gives you.

It answers the practical question “how much do I need to open this position?” and, just as importantly, how much cushion you have left before a margin call. Pair it with our position size calculator to decide the trade size in the first place, and the risk/reward calculator to judge whether the trade is worth taking.

How required margin is calculated

Leverage is defined on the notional value of the position — the full market value you control. Every figure follows from that single relationship:

Margin % = 100 ÷ Leverage
Required Margin = Position Size ÷ Leverage = Position Size × (Margin % ÷ 100)
Free Margin = Account Equity − Required Margin
Margin Level = (Account Equity ÷ Required Margin) × 100
Effective Leverage = Position Size ÷ Account Equity

Leverage and margin percentage are exact inverses: 100:1 leverage means a 1% margin requirement; 2:1 (US Reg-T equity margin) means 50%. Higher leverage lowers the deposit but leaves the full notional exposed to the market.

A low required margin is not the same as low risk. At 500:1 leverage a $100,000 position needs just $200 of margin — but a 0.2% move against you wipes out that entire deposit, and the position can lose far more than you posted. Margin sizes the deposit; your stop-loss sizes the risk.

Worked example — $100,000 at 100:1 with $5,000 equity

These are the exact figures the calculator returns for the default inputs, produced by the same engine — so the article can never drift from the tool.

StepValue
Position size (notional)$100,000.00
Leverage100:1
Margin % = 100 ÷ leverage1%
Required margin = notional ÷ leverage$1,000.00
Account equity$5,000.00
Free margin = equity − required margin$4,000.00
Margin level = (equity ÷ required margin) × 100500%
Effective account leverage = notional ÷ equity20×

Required margin is only $1,000, leaving $4,000 free. But the $5,000 equity is backing a $100,000 position, so the effective leverage on the whole account is 20:1 — meaningfully lower than the 100:1 the broker allows, because you posted five times the minimum margin.

Leverage vs margin % reference

The margin requirement is the inverse of leverage, so the same table works for any broker. Here it is applied to a $50,000 notional position:

LeverageMargin %Margin on $50,000
1:1100%$50,000.00
2:150%$25,000.00
4:125%$12,500.00
5:120%$10,000.00
10:110%$5,000.00
20:15%$2,500.00
50:12%$1,000.00
100:11%$500.00
200:10.5%$250.00
500:10.2%$100.00

Initial margin vs maintenance margin

The figure this calculator returns is the initial margin — what you post to open. Brokers also enforce a lower maintenance margin you must keep while the trade is open; fall below it and you get a margin call or a forced stop-out.

  • US equities (Reg T): 50% initial (2:1), 25% maintenance (4:1 under FINRA Rule 4210).
  • US retail forex (CFTC/NFA): up to 50:1 on major pairs, 20:1 on minors.
  • EU/UK retail forex (ESMA/FCA): capped at 30:1 on major pairs.
  • Offshore forex/crypto brokers: often 100:1 to 500:1 or higher — with correspondingly higher risk.

Margin level zones — what the number means

Margin level = (Equity ÷ Used Margin) × 100. Brokers monitor it continuously; the table below shows how most retail brokers interpret the number. Your own broker may set different thresholds — always confirm in their risk policy.

Margin levelZoneTypical broker action
Above 300%Healthy bufferNo action — normal trading continues
150–300%ModerateMonitor closely; consider reducing size
100–150%Warning zoneBroker may issue a margin call warning
~100%Margin callMost brokers issue a formal margin call
Below 50%Stop-out riskBroker may force-close positions to protect margin

Effective account leverage is a companion figure: it tells you how exposed your whole account is — a more honest risk gauge than the instrument's nominal maximum leverage.

How to avoid a margin call

A margin call is not inevitable — it follows from holding an oversized position relative to your equity. These four steps keep you well above the danger zone:

  • Size the position from your risk, not your leverage. Use the position size calculator to set the notional value first; your broker's leverage is an upper limit, not a sizing guide.
  • Target a margin level well above 200%. A level near 100% means a small adverse move will trigger a margin call. A buffer of 300%+ gives normal volatility room to play without forcing a close.
  • Use a stop-loss on every trade. A hard stop-loss limits the adverse move that can eat into your equity, keeping margin level from falling too far.
  • Never treat free margin as spare capacity. Free margin is a cushion against losses on open positions, not a budget for opening new ones at maximum leverage.

Professional tips

  • Size by risk first, then check margin. Decide the trade with the position size calculator, then confirm the margin fits — don't let available leverage decide your size.
  • Keep a margin-level buffer well above the stop-out threshold so normal volatility doesn't trigger a forced close at the worst moment.
  • Enter the leverage your broker actually applies for that instrument, not the headline account maximum — many pairs and symbols have their own tighter tiers.

Common mistakes

  • Treating required margin as the most you can lose. It is only the deposit; the exposure is the full notional.
  • Using maximum leverage as default. Just because a broker offers 500:1 doesn't mean the position should be that large relative to your equity.
  • Forgetting other open positions. Margin level here assumes the equity you enter isn't already tied up elsewhere.

Assumptions and limitations

  • Leverage is applied to the notional value; the notional must already be in your account currency (convert forex/futures lots × contract size × price beforehand).
  • A single flat leverage tier is assumed — tiered leverage that steps down above certain notional bands is not modeled.
  • No fees, spreads, swap/rollover financing or slippage are included; this is the margin to open the position only.
  • SPAN / portfolio-margin (futures and options net-risk margining) does not reduce to the simple notional ÷ leverage formula used here — use your broker's figure for those.
  • Free margin and margin level are only as accurate as the equity you supply and ignore floating P&L on other open positions.

Frequently asked questions

What is margin in trading?+

Margin is the amount of capital a trader must deposit with their broker to open a leveraged position. It is a percentage of the position's full notional value — for example, at 100:1 leverage the margin requirement is 1% (100 ÷ 100 = 1). Margin does not represent the maximum you can lose; it is simply the good-faith deposit that lets you control a much larger notional amount than your own capital.

How do I calculate required margin from leverage?+

Required margin = Position size ÷ Leverage. Equivalently, required margin = Position size × (Margin % ÷ 100), since Margin % = 100 ÷ Leverage. For example, a $100,000 position at 100:1 leverage requires $100,000 ÷ 100 = $1,000 in margin. Both forms always give the same answer because margin percentage and leverage are mathematical inverses of each other.

What is the difference between initial margin and maintenance margin?+

Initial margin is the deposit required to open a position. Maintenance margin is the minimum equity you must keep while the position is open — it is always lower than initial margin. For US equities, Regulation T sets initial margin at 50% (2:1 leverage); FINRA Rule 4210 sets the maintenance floor at 25% (4:1). If your equity falls below the maintenance threshold, your broker issues a margin call.

What is free margin and how is it calculated?+

Free margin is the portion of your account equity not locked up as required margin for open positions: Free Margin = Account Equity − Required Margin. It represents the capital you can use to open additional positions or absorb further losses without triggering a margin call. A negative free margin means your current equity cannot cover the margin required to keep the position open.

What is margin level and when does a broker issue a margin call?+

Margin level is the ratio of your account equity to the total margin used by open positions, expressed as a percentage: Margin Level = (Equity ÷ Used Margin) × 100. Most retail brokers issue a margin call warning when the level falls to around 100% and execute a stop-out (forced close) at 50% or lower. A high margin level (e.g. 500%) means you have plenty of buffer; a margin level at or below 100% means your equity barely covers the locked margin.

Does required margin equal the maximum I can lose on a trade?+

No. Required margin is the deposit needed to open the position, not a cap on your loss. On a leveraged position you can lose up to the full notional value (and in extreme cases more, if the market gaps through your stop), which can far exceed the posted margin. For example, a $1,000 margin on a $100,000 position leaves you exposed to the full $100,000 move. This is why risk management — including stop-loss orders — is essential when trading on margin.

How is Regulation T margin different from forex margin?+

Regulation T (Reg T) is the US Federal Reserve rule that sets a 50% initial margin requirement for equities bought on margin in a US brokerage account, meaning you can borrow up to 50% of the purchase price (2:1 leverage). Forex margin is set by individual brokers and regulators: US retail forex is capped at 50:1 for major pairs and 20:1 for minor pairs by the CFTC/NFA; EU and UK retail brokers are limited to 30:1 on major forex pairs by ESMA/FCA. Offshore forex brokers can offer leverage up to 500:1 or beyond.

What is effective leverage on equity and why does it differ from the position’s leverage?+

Effective leverage on equity = Position size ÷ Account equity. It measures how levered your entire account is given the position you hold, not just the instrument’s allowed maximum. For example, if your broker allows 100:1 leverage (1% margin) but your $100,000 position is backed by $5,000 in equity rather than the minimum $1,000, the effective leverage is only 20:1 (not 100:1). The two figures differ whenever you post more than the minimum required margin.

What happens if I enter a position where my free margin is negative?+

A negative free margin means your current account equity is less than the required margin for the position you want to open. Most brokers will refuse to let you open or will immediately issue a margin call. On this calculator, a negative free margin result is a warning: you need either more equity in your account, lower leverage, or a smaller position size before you can safely open this trade.

Can I use this margin calculator for stocks, forex and crypto?+

Yes. The required-margin formula is the same across asset classes: Required Margin = Notional Value ÷ Leverage. The key is to enter the correct notional value and the leverage or margin percentage your specific broker actually applies for that instrument. For stocks, the notional is simply shares × price; for forex, it is lots × contract size × price (converted to your account currency); for crypto, it is your position size in the account currency. The calculator does not model asset-specific rules such as SPAN margining for futures or ESMA leverage caps — use your broker’s confirmation for exact regulatory requirements.

What is the margin requirement for common leverage ratios?+

Leverage and margin percentage are exact inverses: 2:1 = 50%, 4:1 = 25%, 10:1 = 10%, 20:1 = 5%, 50:1 = 2%, 100:1 = 1%, 200:1 = 0.5%, 500:1 = 0.2%. The lower the margin percentage, the higher the leverage and the larger the position you control per unit of deposited capital — but also the larger the loss per 1% adverse move in the underlying.

What is a good margin level to maintain?+

A margin level above 300% is generally considered healthy — it gives your open positions enough room to move against you before the broker needs to take action. A margin level between 100% and 150% is a warning zone where most retail brokers will issue a margin call, and below about 50% many brokers will start force-closing (stopping out) your positions to protect the required margin. The exact thresholds vary by broker, so check your broker's risk policy directly. As a practical rule: if your calculator shows a margin level below 200%, consider reducing your position size or adding equity to the account before opening the trade.

Disclaimer

This calculator is provided for general educational and informational purposes only. Its results are estimates based on the values you enter and do not account for fees, slippage, taxes or live market conditions. Trading and investing carry a real risk of loss, and hypothetical results do not guarantee future performance. It is not investment or trading advice — please do your own research and consult a qualified professional where appropriate.

Sources

Formula and data last reviewed by the TheCalculatorVault team on 4 July 2026. Figures are for general information, not professional advice.