Margin Calculator

Margin is the deposit a broker holds against a leveraged position. Pick a market below: forex and CFDs (required margin, free margin and margin level), US stocks (loan, equity and the margin call price for long or short positions) or crypto and futures (isolated initial margin). Every formula is shown under the calculator.

This page is about trading margin. It does not calculate profit margin on sales.

Required margin–
Free margin–
Margin level–

Inputs Example values The defaults are made up: one standard lot of EUR/USD at 1.0850 in a USD account. Use a dot for decimals.

Account currency is

Position size
–
Notional value (quote currency)
–
Notional value (account currency)
–
Margin rate · leverage
–
Required margin, this trade
–
Total used margin
–
Free margin = equity − used margin
–
Margin level = equity ÷ used × 100
–
Equity at margin call level
–
Equity at stop-out level
–
Loss the account can take before stop-out
–

Everything runs in your browser. Nothing is saved or sent.

How to use the margin calculator

Forex and CFDs

  1. Enter the trade size. A standard lot is 100,000 units of the base currency, a mini lot 10,000 and a micro lot 1,000. Pick “units” to type the amount directly. CFD sizes differ by broker: use units.
  2. Enter the price and say which currency the account is in. If the account currency is neither side of the pair, enter how much of it one unit of the base currency buys.
  3. Enter the leverage or the margin rate your broker applies to that instrument. The two are the same thing: margin % = 100 ÷ leverage.
  4. Enter your equity, any margin already used, and your broker’s margin call and stop-out levels. The levels differ between brokers. The defaults (100% and 50%) are examples only.

US stocks

  1. Choose long or short, then enter the price and the number of shares.
  2. Enter the initial and maintenance margin. The defaults are the regulatory floors. Use your broker’s “house” numbers if they are higher, which is common.
  3. Optional: enter today’s price to see current equity, the requirement and any deficit.

Crypto and futures

  1. Enter the entry price, the position size and the leverage. The result is the initial margin an exchange locks for an isolated position.

Margin formulas

Forex and CFD required margin

Units = lots × lot size (100,000 / 10,000 / 1,000) Notional (quote) = units × price Notional (acct) = units if the account currency is the base = units × price if the account currency is the quote = units × rate otherwise (rate = account currency per 1 base) Margin % = 100 ÷ leverage Required margin = notional (acct) × margin % ÷ 100 Used margin = required margin + margin already used Free margin = equity − used margin Margin level % = equity ÷ used margin × 100

A margin call or stop-out happens when the margin level falls to the broker’s level. The calculator turns each level back into money: equity at the level = level ÷ 100 × used margin. The loss the account can absorb before stop-out is today’s equity minus that amount. Prices move the notional and the margin too, so treat this as a guide at today’s price.

US stock margin: long position

Value at purchase = price × shares Deposit = value × max(initial %, maintenance %) Loan = value − deposit Margin call price = loan ÷ (shares × (1 − maintenance %)) At current price P: equity = P × shares − loan requirement = maintenance % × P × shares

The call price comes from setting equity equal to the requirement: P × shares − loan = m × P × shares, so P = loan ÷ (shares × (1 − m)). The deposit uses the larger of the two percentages because FINRA Rule 4210(b) makes initial margin at least the maintenance amount.

US stock margin: short sale

Deposit per share = max(initial % × price, requirement at the sale price) Credit per share C = sale price + deposit per share (Reg T: 150% = 100% proceeds + 50%) Equity at price P = (C − P) × shares Requirement at P = max(maintenance % × P, FINRA minimum(P)) × shares FINRA minimum(P) = max($5.00, 30% × P) if P ≥ $5.00 = max($2.50, 100% × P) if P < $5.00 Margin call price = the P where C − P = requirement per share = C ÷ (1 + maintenance %) when the percentage applies

With the Reg T 150% and a 30% maintenance requirement, the call price is 1.5 × sale price ÷ 1.3, about 15.4% above the sale price. When a per-share minimum is larger than the percentage (for low-priced stocks), the calculator solves the equation numerically and the call price is lower. Untick the FINRA box to use only your percentage.

Crypto and futures isolated margin

Notional = entry price × position size Initial margin = notional ÷ leverage Margin rate = 1 ÷ leverage

A price move of 1 ÷ leverage against the position (10% at 10x) equals the whole initial margin. Exchanges liquidate earlier than that, at the maintenance margin.

Worked examples

1. Forex: one lot of EUR/USD in a USD account (the calculator’s example)

Hypothetical: 1 standard lot (100,000 EUR) at 1.0850, 50:1 leverage (a 2% margin rate), $5,000 equity, no other positions, margin call at 100% and stop-out at 50%.

StepArithmeticResult
Units1 lot × 100,000100,000
Notional (USD)100,000 × 1.0850108,500.00
Margin rate100 ÷ 502.00%
Required margin108,500.00 × 2%2,170.00
Free margin5,000 − 2,170.002,830.00
Margin level5,000 ÷ 2,170.00 × 100230.41%
Equity at the 100% margin call level1.00 × 2,170.002,170.00
Equity at the 50% stop-out level0.50 × 2,170.001,085.00
Loss before stop-out5,000 − 1,085.003,915.00

The same trade in a EUR account (the base currency) at 30:1 has a notional of €100,000 and needs €3,333.33 of margin. With €5,000 of equity the margin level is 150.00%.

2. Forex: a cross pair in a third currency

Hypothetical: 0.5 lot of GBP/JPY at 190.00 in a USD account, with 1 GBP = 1.30 USD and a 5% margin rate (20:1).

StepArithmeticResult
Units0.5 lot × 100,00050,000
Notional (JPY)50,000 × 190.009,500,000.00
Notional (USD)50,000 GBP × 1.3065,000.00
Required margin (USD)65,000.00 × 5%3,250.00

3. US stocks: buying 200 shares at $50 (the calculator’s example)

StepArithmeticResult
Position value200 × $50$10,000.00
Deposit (Reg T 50%)$10,000.00 × 50%$5,000.00
Margin loan$10,000.00 − $5,000.00$5,000.00
Margin call price (25%)$5,000.00 ÷ (200 × 0.75)$33.33
Fall before a call1 − 33.3333 ÷ 5033.33%

At a 40% house requirement the same position gets a call at $41.67. A higher maintenance percentage moves the call price closer to the purchase price.

4. The FINRA and Investor.gov examples, checked

FINRA’s margin accounts page buys $100,000 of stock with a $50,000 loan; the value then falls to $60,000. Enter 1,000 shares at $100, 50% and 25%, and a current price of $60: equity $10,000.00, requirement $15,000.00, deficit $5,000.00. FINRA reaches the same $5,000 maintenance call. The SEC’s Investor Bulletin buys $16,000 of securities with an $8,000 loan that fall to $12,000. With 160 shares at $100 and a current price of $75, equity is $4,000.00. At 25% the requirement is $3,000.00 (no call). At 40% it is $4,800.00, a deficit of $800.00, the same $800 shortfall the bulletin describes.

5. US stocks: short sales

CaseArithmeticResult
100 shares short at $40, 30% maintenancedeposit 50% × $4,000 = $2,000.00; credit $6,000.00; call = 1.5 × $40 ÷ 1.30$46.15 (+15.38%)
Same short, 40% house maintenance1.5 × $40 ÷ 1.40$42.86 (+7.14%)
500 shares short at $8, 30% maintenancedeposit max($4.00, FINRA $5.00) × 500 = $2,500.00; credit $6,500.00; $13.00 − P = $5.00$8.00 (+0.00%)

The $8 case shows why the per-share minimum matters. Reg T alone would ask for a $4 deposit per share, but FINRA’s $5.00-a-share minimum is higher, so the deposit is $5 and the position sits exactly at its requirement from the start. Any rise in the price creates a deficit.

6. Crypto: 0.5 BTC at 10x

Hypothetical: 0.5 × $60,000 = $30,000.00 notional. Initial margin = $30,000.00 ÷ 10 = $3,000.00, a 10% margin rate. A 10% move against the position equals the whole $3,000.00.

Margin rules by market

US stocks: Regulation T and FINRA Rule 4210

The Federal Reserve’s Regulation T sets the initial requirement. Its supplement, 12 CFR 220.12, requires for a margin equity security “50 percent of the current market value of the security or the percentage set by the regulatory authority where the trade occurs, whichever is greater.” For a short sale of a nonexempted security it requires “150 percent of the current market value of the security”.

FINRA Rule 4210(c) sets maintenance. Long: “25 percent of the current market value of all margin securities”. Short: “$5.00 per share or 30 percent of the current market value, whichever amount is greater, of each stock ‘short’ in the account selling at $5.00 per share or above”, and “$2.50 per share or 100 percent of the current market value, whichever amount is greater” for short stock below $5.00. Rule 4210(b) also requires “equity of at least $2,000 except that cash need not be deposited in excess of the cost of any security purchased”.

Brokers can ask for more. The SEC’s Investor Bulletin says that “many brokerage firms have higher maintenance requirements, typically between 30 to 40 percent, and sometimes higher depending on the type of securities purchased.” FINRA lists three triggers for a margin call: trades that create a deficit, a fall in account value, and a broker raising its house requirement.

US retail forex: 17 CFR 5.9

The CFTC rule for retail forex dealers sets a floor on the security deposit of “2% of the notional value of the retail forex transaction for major currency pairs and 5% of the notional value of the retail forex transaction for all other currency pairs”. That is a leverage cap of 50:1 on major pairs and 20:1 on the rest. The National Futures Association decides which currencies count as major and may set higher deposits.

EU retail CFDs: ESMA

In its 27 March 2018 product intervention, ESMA set leverage limits for retail clients on opening a CFD position: “30:1 for major currency pairs; 20:1 for non-major currency pairs, gold and major indices; 10:1 for commodities other than gold and non-major equity indices; 5:1 for individual equities and other reference values; 2:1 for cryptocurrencies”. It also set a margin close-out rule “at 50% of minimum required margin” per account. These were ESMA’s temporary measures. The rules that apply today come from each country’s regulator, so check with yours.

Crypto and futures

Exchanges set their own leverage tiers, margin rates and liquidation rules, and these differ by contract and position size. Use the figures your exchange shows for the contract.

Margin level, margin call and stop-out

Risks of trading on margin

FINRA Rule 2264 requires brokers to give every new margin customer a disclosure statement “to alert you to the risks involved with trading securities in a margin account”. It lists, among other points:

The SEC’s bulletin adds that “Margin accounts can be very risky and they are not appropriate for everyone.” A margin call price from this calculator is a guide. A broker can act sooner, for example after raising its requirement.

FAQ

How do you calculate forex margin?

Multiply the position size in units by the price to get the notional value, convert it to the account currency, then multiply by the margin rate. Margin rate = 100 ÷ leverage, so 50:1 is 2%. One standard lot of EUR/USD (100,000 EUR) at 1.0850 is 108,500 USD of notional; at 2% the required margin is 2,170 USD. If the account is in EUR (the base currency), the notional is simply 100,000 EUR.

What is margin level and how is it calculated?

Margin level = equity ÷ used margin × 100. Equity is the balance plus open profit or loss; used margin is the deposit locked by all open positions. With 5,000 of equity and 2,170 of used margin the margin level is 230.41%. Brokers compare it with their margin call and stop-out levels, which differ from broker to broker.

How do you calculate the margin call price for a stock?

For a long position: margin call price = loan ÷ (shares × (1 − maintenance margin)). Buying 200 shares at $50 with a $5,000 loan and a 25% maintenance requirement gives $5,000 ÷ (200 × 0.75) = $33.33. For a short sale with the Reg T 150% credit: margin call price = 1.5 × sale price ÷ (1 + maintenance margin), so a $40 short at 30% maintenance gets a call at $46.15, unless FINRA's per-share minimums for low-priced stock apply.

What are the margin requirements for US stocks?

Regulation T sets initial margin at 50% of the purchase price for margin equity securities and 150% of the market value for short sales. FINRA Rule 4210 sets maintenance at 25% of market value for long stock and the greater of $5.00 a share or 30% for short stock at $5 or more, and requires at least $2,000 of equity. The SEC notes that many brokers set higher maintenance requirements, typically 30% to 40%.

What leverage is allowed for forex in the US and the EU?

In the US, CFTC rule 17 CFR 5.9 sets a minimum security deposit of 2% of notional for major currency pairs and 5% for all other pairs, which is 50:1 and 20:1 leverage. For EU retail CFD clients, ESMA's 2018 measures set 30:1 for major currency pairs, 20:1 for non-major pairs, gold and major indices, 10:1 for other commodities and non-major indices, 5:1 for individual equities and 2:1 for cryptocurrencies. Brokers may require more margin.

What is the difference between a margin call and a stop-out?

A margin call is a warning: the margin level has fallen to the broker's call level, and new positions may be blocked until you add funds or close trades. A stop-out is the level at which the broker starts closing positions on its own, usually the largest losing one first. ESMA's rule for EU retail CFDs closes positions at 50% of the minimum required margin. In US stock accounts a broker can sell without a call at all.

Related tools

Sources

  1. Board of Governors of the Federal Reserve System, Regulation T, 12 CFR 220.12 Supplement: margin requirements (eCFR). 50% initial margin; 150% for short sales.
  2. FINRA, Rule 4210, Margin Requirements. Initial margin, $2,000 minimum equity and maintenance margin for long and short positions.
  3. FINRA, Rule 2264, Margin Disclosure Statement. The risks of purchasing on margin and trading in a margin account.
  4. FINRA, Margin Accounts (worked example) and Know What Triggers a Margin Call.
  5. U.S. SEC Office of Investor Education and Advocacy, Investor Bulletin: Understanding Margin Accounts, 10 June 2021.
  6. Commodity Futures Trading Commission, 17 CFR 5.9 Security deposits for retail forex transactions (eCFR).
  7. European Securities and Markets Authority, ESMA agrees to prohibit binary options and restrict CFDs to protect retail investors, 27 March 2018.

Web sources retrieved 6 Nov 2026.

Educational tool only, not financial or investment advice. Results come from the numbers you enter and the formulas above. Your broker’s requirements, house rules, margin interest, fees and the way it values the whole account decide when it actually calls or closes positions. Trading on margin can lose more than you deposit. All prices in the examples are hypothetical.