Margin Call Formula Explained for Long and Short Positions
Last updated: November 05, 2026
Quick Answer: The margin call formula is the maintenance test your broker applies to current account equity, and the trigger is usually the broker’s required maintenance percentage, such as 25% or 30%, of the relevant market value. This article explains the Margin Call Formula Explained for Long and Short Positions in plain terms for long and short accounts.
The formula you actually need for a margin call
The margin call formula is the equity test your broker uses against a maintenance margin level, usually expressed as a percentage such as 25% or 30%.[^1]
For a long position, the core relationship is:
Equity = Market value of securities − Loan balance
A margin call happens when:
Equity < Maintenance margin requirement
If the broker states maintenance as a percentage, the threshold is:
Equity / Market value of securities < maintenance percentage
For a short position, the account is judged differently because the position rises in value when the stock price rises. The practical formula becomes:
Equity = Short sale proceeds + margin deposit − Current market value of shares sold short
A margin call happens when:
Equity / Current market value of shares sold short < maintenance percentage
For long and short positions, the math is not identical, so the comparison has to match the position type. A long account compares equity to the value of the securities you own. A short account compares equity to the value of the shares you owe back. If a broker requires 30% maintenance, the trigger is 0.30 on the relevant market value, not on your original trade size.
This is the page for the formula itself, not a margin call calculator or a general definition. If you need the broader risk framework, the hub on margin call basics and margin trading risk is the better starting point.
How do you calculate the margin call formula for a long position?
For a long position, you compare your equity against the value of the stock you bought with borrowed money. The formula is straightforward:
Equity = Current market value − Loan balance
Then compare that equity to the maintenance requirement:
Required equity = Maintenance percentage × Current market value
If required equity is greater than actual equity, the account is under maintenance and a margin call can follow.[^1]
Here is the procedure in practice:
-
Find the current market value of the long position.
Multiply the current share price by the number of shares. If you own 100 shares at $40, the market value is $4,000. -
Subtract the margin loan balance.
If the loan balance is $2,500, equity is $1,500. That is the amount still owned by the account holder, not the broker. -
Apply the maintenance percentage.
A 25% maintenance rule on a $4,000 position means required equity of $1,000. -
Compare actual equity with required equity.
Since $1,500 is above $1,000, there is no call yet. If the stock falls and the market value drops to $3,000, the required equity becomes $750 while the equity is $500, which is below the threshold. -
Track the cushion, not just the trigger.
The cushion is the gap between actual equity and required equity. A narrow cushion can shrink quickly if the market moves against the position.
The key point is that the formula uses the current market value, not the price you paid. Brokers focus on today’s collateral value and today’s loan balance.
How do you calculate the margin call formula for a short position?
For a short position, the formula tracks what you owe to buy back the shares, so the math flips in a way that catches many traders off guard.
Use this structure:
Then test it against maintenance:
If that ratio falls too low, the broker can issue a margin call.[^1]
A short sale creates a liability because the borrowed shares must be returned later. If the stock rises from $50 to $70, the obligation gets larger. That is why the formula uses current market value on the liability side.
A simple way to think about it:
- Short sale proceeds are the cash received when the shares were sold.
- Margin deposit is the additional collateral the broker requires.
- Current market value of shares sold short is what it would cost to repurchase the shares right now.
If those repurchase costs climb enough, equity shrinks. The maintenance percentage then acts as the floor.
A common mistake is to reuse the long-position formula and simply swap a few words. That misses the key liability in a short account. Another mistake is to compare equity to the short sale proceeds instead of the current market value of the borrowed shares. The broker does not use your original cash inflow as the benchmark; it uses the cost to close the short now.
Short positions deserve extra caution because the loss side is not capped in the same way a long position is. That is why a short account can move from comfortable to stressed quickly, especially after a sharp price gap.
What counts as equity in a margin account?
Equity is the account’s net value after subtracting what is owed on the trade, and the exact formula depends on whether the position is long or short.
For a long margin account, equity is:
For a short margin account, equity is:
That difference is more than wording. It changes which side of the trade you treat as the asset and which side you treat as the liability.
A broker may also show related fields such as:
- Loan balance for long positions
- Cash collateral or proceeds for short positions
- Maintenance requirement
- Excess equity
- Margin deficit
Those labels are useful, but the calculation still comes back to a simple question: after the broker’s loan and the market’s current price are both accounted for, how much value is left in the account?
A reader who wants a clean rule can use this one:
Equity is what remains after subtracting the broker’s claim from the current market value exposure.
That rule is useful because it works across both position types, but only if you keep the exposure side straight. In a long position, exposure is the securities you own. In a short position, exposure is the shares you owe.
The trap here is assuming equity equals cash in the account. It does not. A margin account can show cash, securities, and borrowed funds at the same time. Equity is the net figure after those pieces are reconciled. On a broker statement, that usually means the number that drives maintenance compliance, not the balance you can spend.
Maintenance margin is the trigger, not the trade size
Maintenance margin is the minimum equity percentage the account must hold after the trade is open, and it is the number that turns a formula into a margin call risk.
The formula does not ask how much you originally invested. It asks whether the current equity still satisfies the maintenance percentage. If the broker’s rule is 30%, then the account must keep equity equal to at least 30% of the relevant market value. If the rule is 25%, the threshold is lower, but the logic is unchanged.[^1]
That matters because two accounts with the same starting trade size can have different outcomes if their maintenance levels differ. A 25% maintenance rule gives more room than a 40% rule. A 35% rule can produce a call much earlier than many traders expect, especially in fast-moving names.
This is also where leverage shows up indirectly. Higher leverage usually means a smaller equity cushion, which means less room before the maintenance percentage is breached. The formula itself does not change because leverage is higher; the distance to the trigger changes.
A broker may also impose house requirements above the minimum standard.[^1] That means the maintenance percentage in the account agreement can be stricter than the exchange or regulation minimum you may have read elsewhere. The relevant number is the one in the agreement that governs the account.
A practical way to read the rule is:
- Higher maintenance percentage = earlier risk of margin call
- Lower maintenance percentage = more room before a call
- Same formula, different trigger point
This is why a clean margin call formula is only useful when paired with the account’s actual maintenance rule. A generic percentage without the broker’s requirement can mislead you by a wide margin.
Common mistakes that break the math
The most common mistake is using the wrong denominator, and it can turn a healthy account into a false alarm or hide a real deficit.
Here are the errors that cause the most trouble:
-
Using purchase price instead of current market value.
This misstates the account because the broker values collateral at today’s price, not yesterday’s entry. If the stock moved 15%, the old price is already stale. -
Using the long formula for a short position.
A short account needs its own equity test because the liability grows when the stock rises. -
Ignoring the maintenance percentage.
Equity alone is not enough. A $2,000 equity balance can be fine in one account and insufficient in another, depending on whether the rule is 25%, 30%, or higher. -
Treating cash as the same thing as equity.
Cash is only one component. A margin account can hold cash and still fail the maintenance test if the borrowed exposure is too large. -
Forgetting that loan balance can change.
Interest, fees, and transaction adjustments can move the loan balance over time. That shifts the formula even if the stock price stays flat.
The fix is simple: use the broker’s current statement, the current market price, and the current maintenance rule on the same day. If any one of those three inputs is stale, the answer is suspect.
A small input error can matter more than the arithmetic itself. A one-day delay, or a misplaced decimal in share count, can produce a misleading margin picture.
A quick way to check the formula before the broker does
The quickest self-check is to compare your equity ratio to the maintenance percentage before the market closes.
Use this checklist:
- For a long position, compute equity = market value − loan balance
- For a short position, compute equity = short proceeds + margin deposit − current market value
- Divide equity by the relevant current market value
- Compare that ratio to the maintenance percentage in your account agreement
If the ratio is close to the requirement, treat the position as exposed even if no call has arrived yet. Markets can move sharply between the close and the next open, and a gap of just one session can erase a cushion that looked safe at 3:55 p.m.
This check is not a substitute for the broker’s own system, which may use house rules or intraday monitoring. It is a practical way to spot trouble early enough to reduce exposure, add funds, or close part of the position before the account tips below maintenance.
The point is not to predict every call. The point is to know which formula applies to your account type and to see the shortfall before it becomes a formal demand from the broker.
Margin call formula comparison table
| Position type | Equity formula | Maintenance test | What can trigger a call |
|---|---|---|---|
| Long | Market value of securities − Loan balance | Equity ÷ Market value of securities < maintenance percentage | Falling stock price |
| Short | Short sale proceeds + margin deposit − Current market value of shares sold short | Equity ÷ Current market value of shares sold short < maintenance percentage | Rising stock price |
Key Takeaways
- A margin call formula is a maintenance test, not a price prediction.
- Long and short positions use different math because the liabilities are different.
- Long accounts start with market value minus loan balance.
- Short accounts start with short sale proceeds and collateral, then subtract the current cost to buy shares back.
- The maintenance percentage is the line that matters most; the original trade size does not decide the call by itself.
- Equity can fall below the threshold even when the position still looks profitable on paper.
- The safest way to use the formula is with current market value, current loan balance, and the broker’s actual maintenance rule.
FAQ
Is the formula different for shorts?
Yes. Short positions use a different equation because the account owes shares back, so rising prices increase the liability instead of reducing it. For a long position, equity is market value minus loan balance. For a short position, equity is short sale proceeds plus margin deposit minus the current market value of the shares sold short.
Does leverage change the formula?
No. Leverage changes the size of the equity cushion, not the formula itself. A more leveraged account usually reaches the maintenance threshold sooner because the loan is larger relative to equity. The broker still applies the same maintenance percentage to the current market value or the current short exposure.
What is the equity formula for a margin account?
The equity formula depends on position type. For a long position, equity equals current market value of securities minus loan balance. For a short position, equity equals short sale proceeds plus margin deposit minus current market value of shares sold short. A broker then compares that equity to the maintenance margin requirement.
Where can I check the official maintenance rule?
You can check your broker’s account agreement, and for U.S. regulations on margin maintenance, see FINRA’s Rule 4210 and the SEC’s investor guidance on margin accounts.[^1][^2]
[^1]: FINRA, Rule 4210 (Margin Requirements): https://www.finra.org/rules-guidance/rulebooks/finra-rules/4210
[^2]: U.S. Securities and Exchange Commission, Margin Accounts: https://www.investor.gov/introduction-investing/investing-basics/glossary/margin-account
Drafted with AI; not yet reviewed by a person.