Margin Calculator Guide: How to Calculate Margin Requirements and Manage Leverage

Buying $20,000 of stock with $10,000 cash means 50% initial margin. If the stock falls 25% ($5,000 loss), your equity drops to $5,000 — the broker's maintenance margin of 25% means you get a margin call. Here's how to calculate margin requirements and avoid forced liquidation.

Margin is the amount of your own money required to open and maintain a leveraged position. In stock trading, Regulation T in the US sets the initial margin requirement at 50% — you must put up at least half the purchase price in cash. The maintenance margin, set by FINRA at 25%, is the minimum equity you must maintain after the position is open. These percentages determine how much leverage you can use and how far a position can move against you before you get a margin call. Understanding how to calculate these numbers is essential for anyone trading on margin. For a broader introduction to leverage, see our margin trading guide.

Key numbers: Initial margin = 50% (Reg T) for stocks. Maintenance margin = 25% (FINRA). Forex margin varies by broker and currency pair, typically 2-5% (20:1 to 50:1 leverage). The formula for margin call price is: Margin Call Price = (Loan Amount) / (1 - Maintenance Margin %). For a $20,000 position with $10,000 loan and 25% maintenance: $10,000 / (1 - 0.25) = $13,333. If the stock drops below $13,333, you get a call.

Initial Margin Calculation

Initial margin is calculated as a percentage of the total purchase price. Under Regulation T, the initial margin for stocks is 50%. This means if you want to buy $20,000 of stock, you need at least $10,000 in cash in your margin account. The other $10,000 is borrowed from your broker. The formula is simple: Initial Margin Required = Purchase Price x Initial Margin %. For a $50,000 purchase at 50%: $50,000 x 0.50 = $25,000 cash required. Different securities have different initial margin requirements. Options typically require 100% (no borrowing allowed for uncovered options), while some ETFs and mutual funds may have lower requirements. Your broker can set higher initial margin requirements for volatile stocks. Position sizing is critical when using margin.

For forex trading, initial margin is expressed as a percentage of the notional trade size. A standard lot (100,000 units) of EUR/USD at 2% margin requires $2,000 to control $100,000. At 50:1 leverage, the margin is 2%. At 30:1 (the maximum for major pairs under current regulations), the margin is approximately 3.33%. Forex margin requirements vary by broker and currency pair, with exotic pairs requiring higher margin. Learn more about forex leverage and margin.

Maintenance Margin and Margin Calls

Maintenance margin is the minimum equity you must maintain in your margin account after the position is open. FINRA sets the minimum at 25% for stocks, but many brokers impose higher maintenance requirements of 30-40% for volatile stocks. Your equity is calculated as the current market value of your securities minus the amount borrowed. If your equity falls below the maintenance requirement, the broker issues a margin call, demanding you deposit additional cash or securities to bring equity back to the initial margin level (not just the maintenance level).

The margin call price formula is: P = L / (1 - M), where P is the stock price triggering a margin call, L is the loan amount per share, and M is the maintenance margin percentage. Example: You buy 1,000 shares at $20 per share with 50% margin. Your cash: $10,000. Loan: $10,000 ($10 per share). With 25% maintenance: P = $10 / (1 - 0.25) = $13.33. If the stock falls to $13.33, your equity becomes $13,330 - $10,000 = $3,330. Maintenance requirement: 25% of $13,330 = $3,332.50. Your equity of $3,330 is below $3,332.50 — margin call.

Real-World Margin Call Scenario

Scenario: You have a $50,000 margin account. You buy $100,000 of a stock at $50 per share (2,000 shares), using $50,000 of margin. The loan is $50,000 ($25 per share). Your broker's maintenance margin is 30% (higher than FINRA minimum because the stock is volatile). The margin call price: $25 / (1 - 0.30) = $35.71. If the stock drops to $35, the position is worth $70,000. Your equity: $70,000 - $50,000 = $20,000. Maintenance requirement: 30% of $70,000 = $21,000. Equity of $20,000 is below $21,000 — you get a margin call. You must deposit $1,000 in cash or enough securities to bring equity to the initial margin level of $35,000 (50% of $70,000).

If you cannot meet the margin call, the broker liquidates positions until the requirement is met. In this case, the broker might sell enough shares to reduce the loan amount. If they sell 500 shares at $35 ($17,500 proceeds), the new loan is $50,000 - $17,500 = $32,500. The remaining 1,500 shares are worth $52,500. New equity: $52,500 - $32,500 = $20,000. Maintenance: 30% of $52,500 = $15,750. The remaining equity of $20,000 now exceeds the maintenance requirement. But you have lost significant value and now have fewer shares if the stock recovers. Study risk management to avoid forced liquidations.

Forex Margin Calculation

Forex margin is calculated differently than stock margin. In forex, margin is the amount of capital required to open and maintain a position, expressed as a percentage of the full position size. For example, at 50:1 leverage, the margin requirement is 2% ($2,000 margin for $100,000 position). The formula: Required Margin = (Trade Size / Leverage) x Exchange Rate. For a standard lot (100,000 units) of USD/JPY at 50:1 leverage: $100,000 / 50 = $2,000. Margin requirements change with the exchange rate — as the base currency strengthens, the margin requirement increases.

Forex brokers also enforce a maintenance margin, typically 50-100% of the initial margin requirement. This means if your equity falls below half of the required margin, you get a margin call. The closer your margin level (Equity / Used Margin x 100) gets to 100%, the closer you are to a margin call. Most brokers automatically close positions when the margin level reaches a stop-out level, usually 20-50%. This is called a margin close-out. Forex risk management is essential for survival.

What is the difference between initial margin and maintenance margin?

Initial margin is the minimum equity you must put up to open a position — 50% for stocks under Regulation T. Maintenance margin is the minimum equity you must keep in the account after the position is open — 25% for stocks under FINRA rules. You can lose money after opening a position, but if your equity drops below the maintenance margin, the broker issues a margin call. Brokers can set both requirements higher than the regulatory minimums.

How do I calculate the price at which I get a margin call?

Use the formula: Margin Call Price = Loan Amount per Share / (1 - Maintenance Margin %). For example, you buy $20,000 of stock with $10,000 cash (loan is $10,000). At 25% maintenance margin: $10,000 / (1 - 0.25) = $13,333. So the stock must fall to $13,333 before you get a margin call. If you bought at $20, that is a 33% decline. The exact formula depends on your broker's maintenance requirements and the amount borrowed.

Can margin requirements change after I open a position?

Yes. Brokers can increase margin requirements at any time, especially during periods of high volatility or if the stock becomes more risky. If your broker raises the maintenance margin from 25% to 40%, you might immediately face a margin call even if the stock price has not changed. This is called a house margin call. Brokers can also lower margin requirements for certain securities, but this is less common. Always maintain a buffer above the minimum margin requirements to protect against this risk.

What is a margin close-out level in forex?

In forex trading, the margin close-out level is the threshold at which your broker automatically closes your positions. It is expressed as a margin level percentage: Equity / Used Margin x 100. Most brokers set the stop-out level at 20-50%. If your margin level falls below this threshold, the broker starts closing your positions from the largest losing trade first, without your consent. The close-out continues until the margin level rises above the stop-out threshold. Unlike stock margin calls where you have days to respond, forex margin close-outs happen instantly.

Related Resources