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.
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.
| Step | Value |
|---|---|
| Position size (notional) | $100,000.00 |
| Leverage | 100:1 |
| Margin % = 100 ÷ leverage | 1% |
| 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) × 100 | 500% |
| Effective account leverage = notional ÷ equity | 20× |
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:
| Leverage | Margin % | Margin on $50,000 |
|---|---|---|
| 1:1 | 100% | $50,000.00 |
| 2:1 | 50% | $25,000.00 |
| 4:1 | 25% | $12,500.00 |
| 5:1 | 20% | $10,000.00 |
| 10:1 | 10% | $5,000.00 |
| 20:1 | 5% | $2,500.00 |
| 50:1 | 2% | $1,000.00 |
| 100:1 | 1% | $500.00 |
| 200:1 | 0.5% | $250.00 |
| 500:1 | 0.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 level | Zone | Typical broker action |
|---|---|---|
| Above 300% | Healthy buffer | No action — normal trading continues |
| 150–300% | Moderate | Monitor closely; consider reducing size |
| 100–150% | Warning zone | Broker may issue a margin call warning |
| ~100% | Margin call | Most brokers issue a formal margin call |
| Below 50% | Stop-out risk | Broker 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
Sources
- FINRA — Margin Accounts (Rule 4210 / Reg T)
- SEC — Understanding Margin Accounts (Investor Bulletin)
- ThisMatter — Forex Leverage, Margin and Pips
- Alpari — Calculating Margin Requirements
- BabyPips — What Is Margin Level?
Formula and data last reviewed by the TheCalculatorVault team on 4 July 2026. Figures are for general information, not professional advice.
Related calculators
Work out exactly how many shares to buy or short on a trade so a stopped-out loss stays within 1–2% of your account. Enter account size, risk %, entry and stop-loss to get the share count, max loss, capital required and dollar risk — for a long or short, in any currency.
Risk : RewardCalculate the risk:reward ratio of any stock, forex or crypto trade from your entry, stop-loss and target prices. See the “1 : X” ratio, total risk and reward for your position size, the breakeven win rate you must clear, and your expected P&L per trade — for a long or short.
Options P&LCalculate call and put option profit at expiry for long or short positions. Enter the strike, premium, lot size and underlying price at expiry to get your total P&L, break-even price, maximum profit and loss, return on premium and an interactive payoff diagram. Single-leg, intrinsic value at expiry — works for US and NSE India options.