Margin Call & Liquidation Calculator
Margin Call & Liquidation Calculator
A margin call calculator shows the price where your broker demands extra funds, while a liquidation calculator shows where your position is force-closed. This free tool does both for stocks, forex and crypto futures – with distance, buffer, stress scenarios and required deposit.
Results are simplified estimates. Exchanges and brokers use tiered maintenance margin, mark price, fees and funding, so actual trigger levels can differ – always verify with your provider.
Quick examples
Results
Price risk ladder
Interactive price slider
Drag the price to see what happens to your position in real time.
Stress test scenarios
| Price move | Price | P&L | Equity | Margin level | Status |
|---|
What-if comparisons
If leverage were different
| Leverage | Initial margin | Liquidation price | Distance to liquidation |
|---|
If you added margin
| Added margin | New liquidation price | New distance | New margin level |
|---|
How the calculation works
Every result shows the formula behind it, the assumptions used, and a classification of how exact the estimate is. This keeps the tool transparent rather than pretending a generic formula matches every broker.
Formulas used
Stocks – long margin call price
\( P_{call} = P_{entry} \times \frac{1 - IM}{1 - MM} \)Stocks – short margin call price
\( P_{call} = P_{entry} \times \frac{1 + IM}{1 + MM} \)Crypto linear – long liquidation
\( P_{liq} \approx P_{entry} \times \left(1 - \tfrac{1}{L} + MMR\right) \)Crypto linear – short liquidation
\( P_{liq} \approx P_{entry} \times \left(1 + \tfrac{1}{L} - MMR\right) \)General engine (with fees & collateral)
\begin{aligned} P_{liq}^{long} &= \frac{P_{entry}(1 + MMR) - E_0/Q}{1 - f} \\ P_{liq}^{short} &= \frac{P_{entry} + E_0/Q}{1 + MMR + f} \end{aligned}Forex margin level
\( ML\% = \frac{Equity}{Used\ Margin} \times 100 \)ROE and effective leverage
\( ROE = \frac{Unrealized\ P\&L}{Initial\ Margin} \times 100 \qquad L_{eff} = \frac{Notional}{Equity} \)Margin call vs. liquidation vs. stop-out
| Event | What happens | Typical threshold |
|---|---|---|
| Margin call | Broker warns / demands more funds; position stays open | Margin level ≈ 100% (forex) or equity ≤ 50% of initial margin |
| Stop-out | Broker starts force-closing positions | Margin level ≈ 20–50% (forex) |
| Liquidation | Exchange closes the position at mark price | Equity ≤ maintenance margin (MMR tier) |
Frequently asked questions
What is a margin call?
A margin call is a broker’s warning that your equity has fallen below a required level, asking you to deposit funds or reduce the position before forced closing begins.
What is a liquidation price?
The price at which an exchange force-closes your leveraged position because equity no longer covers the maintenance margin requirement.
What is the difference between margin call and liquidation?
A margin call is a warning – you can still act. Liquidation is the forced close itself. This calculator shows both prices so you can see your full safety buffer.
How is a liquidation price calculated?
For a simplified isolated linear contract: long \( P_{liq} \approx Entry \times (1 - 1/L + MMR) \), short \( P_{liq} \approx Entry \times (1 + 1/L - MMR) \). Real venues add fees, funding, tiered MMR and mark-price triggers.
Does leverage increase liquidation risk?
Yes – higher leverage moves the liquidation price closer to your entry. The leverage comparison table above quantifies exactly how much.
Why does the exchange liquidate at mark price?
Mark price is an index-based fair price that resists manipulation and temporary wicks, so exchanges use it for liquidation and unrealized P&L instead of the last traded price.
Does funding affect liquidation?
Yes – accrued funding changes your equity over time, slowly shifting the effective liquidation price even when the market price stands still.
Can adding margin lower liquidation risk?
Yes – extra collateral moves the liquidation price further from entry. Use the “desired liquidation price” solver above to compute the exact deposit needed.
More free trading tools
AlamToolKit.com home – related calculators for different search intents:
Position Size Calculator Leverage Calculator Funding Rate Calculator Profit & Loss CalculatorDisclaimer: educational tool, not financial advice. Estimates use simplified isolated/linear models unless advanced options are set. Verify maintenance margin rates, tiers, fees and liquidation rules with your broker or exchange before trading.
Margin Call & Liquidation Calculator — Step-by-Step User Guide
The Margin Call & Liquidation Calculator from AlamToolKit.com helps you find the exact price where your broker will demand more funds (margin call) and where your position will be force-closed (liquidation). This guide walks through every field, shows worked examples, and explains how to interpret the results. The calculator supports crypto futures, forex/CFD, and stock margin positions.
What is this calculation used for?
Use this tool to answer three critical questions before you trade:
- Margin call price — the price at which your broker warns you to add funds or reduce your position.
- Liquidation / stop-out price — the price where your position is automatically closed to prevent further losses.
- Safety buffer — how far the current price is from those danger levels, expressed in percent and absolute price.
Where it applies: crypto perpetual futures (Binance, Bybit, OKX, Kraken), forex and CFD trading (EUR/USD, GBP/JPY), and US stock margin accounts (Reg T, FINRA).
1. Visual: How Margin Call & Liquidation Relate to Price
The diagram below shows a long BTC position with entry at $60,000, 10× leverage, and a 0.5% maintenance margin rate. The current price is $60,000. The margin call sits at $57,000 and liquidation at $54,150. Green is safe, amber is warning, red is danger.
2. Choosing Your Market & Direction
Market type tabs
Three tabs sit at the top of the calculator card:
- Crypto & Futures — for Binance, Bybit, OKX, Kraken Futures, and similar perpetual or linear contracts.
- Forex / CFD — for currency pairs and CFD brokers that use a margin-level percentage.
- Stocks / ETFs — for Reg T margin accounts and short selling.
Switching a tab instantly swaps the input fields and recalculates.
Long / Short toggle
Click Long if you profit when the price rises, or Short if you profit when the price falls. The calculator flips all liquidation formulas and the risk-ladder direction accordingly.
Simple vs. Advanced mode
Simple mode (default) hides advanced fields and derives collateral directly from position size ÷ leverage. Perfect for a fast estimate.
Advanced mode reveals extra inputs: margin mode, contract type, fees, funding rate, days held, stop-loss price, and a desired-liquidation solver.
3. Crypto & Futures Panel — Field-by-Field
| Field | What it means | Units / example | Common mistake |
|---|---|---|---|
| Symbol | Name of the contract; label only in reports. | Text, e.g. BTCUSDT | Using a spot pair instead of a perpetual. |
| Entry price | Your average fill price. | USD, e.g. 60000 | Using the current price instead of your actual entry. |
| Current / mark price | Price used for P&L and liquidation on most venues. | USD, e.g. 60000 | Confusing last price with mark price — they can differ. |
| Size input method | Choose Quantity + Leverage or Notional + Margin. | Dropdown | Mixing up quantity (coins) with notional (USD). |
| Position size (coins / contracts) | Base-currency units, e.g. 0.1 BTC. | Coins, e.g. 0.1 BTC | Entering USD value instead of coin quantity. |
| Leverage | Multiplier applied to your margin (1–125×). | e.g. 10 for 10× | Forgetting that higher leverage moves liquidation closer. |
| Notional value | Total position size in quote currency. | USDT, e.g. 6000 | Visible only in Notional mode; leverage is derived. |
| Margin (collateral) | Collateral assigned to this position. | USDT, e.g. 600 | Used with notional to derive leverage. |
| Maintenance margin rate (MMR %) | Exchange’s minimum maintenance margin. | Percent, e.g. 0.5 | Using 0% — every real venue has a non-zero MMR. |
| Margin call level (%) | Equity as % of initial margin that triggers a warning. | Percent, e.g. 50 | Assuming this is the same as liquidation level. |
| Margin mode ADV | Isolated or Cross. | Dropdown | Using cross-mode numbers without accounting for other positions. |
| Position margin ADV | Collateral assigned to the position in isolated mode. | USD | Entering initial margin instead of current collateral. |
| Account equity (cross) ADV | Shared collateral supporting the position in cross mode. | USD | Only shown when margin mode = Cross. |
| Extra margin added ADV | Additional funds you have added. | USD, default 0 | Adding margin without updating the field. |
| Contract type ADV | Linear (USDT/USDC-margined) or Inverse (coin-margined). | Dropdown | Using linear formulas for inverse contracts. |
| Taker fee % ADV | Fee charged on open + estimated close. | Percent, e.g. 0.05 | Ignoring fees — they slightly widen the danger zone. |
| Funding rate % per 8h ADV | Periodic payment between longs and shorts. | Percent, e.g. 0.01 | Assuming funding never affects equity — it does. |
| Days held ADV | How long you expect to hold. | Days, e.g. 1 | Setting 0 for a multi-day hold. |
| Liquidation trigger basis ADV | Mark price, last price, or index price. | Dropdown | Choosing “last price” when your exchange uses mark price. |
| Venue preset ADV | Loads typical MMR/fees for Binance, Bybit, OKX, or Kraken. | Dropdown | Forgetting to adjust after the preset loads. |
| Stop-loss price (optional) ADV | Your protective stop level. | USD | Placing a stop beyond the liquidation price — it may never trigger. |
| Desired liquidation price (optional) ADV | Target liquidation level for the solver. | USD | Entering a price on the wrong side of entry. |
4. Forex / CFD Panel — Field-by-Field
| Field | What it means | Units / example | Common mistake |
|---|---|---|---|
| Currency pair | e.g. EUR/USD; label only. | Text | Using a pair with a different pip size. |
| Entry price | Your average fill price. | e.g. 1.0850 | Using the current price instead of your fill. |
| Current price | Live or simulated market price. | e.g. 1.0850 | Swapping bid/ask. |
| Lots | Position size in lots. | Lots, e.g. 0.5 | Entering units instead of lots. |
| Leverage | Broker leverage, e.g. 30 for 1:30. | Number | Using 1:500 when your broker caps at 1:30. |
| Account balance | Cash in your account. | USD | Forgetting to include/exclude other open trades. |
| Contract size (per lot) ADV | Units per standard lot, typically 100000. | Number | Using 10,000 for a standard lot. |
| Pip size ADV | Price value of one pip. | 0.0001 (0.01 for JPY) | Using 0.001 for EUR/USD. |
| Account currency ADV | Your deposit currency, e.g. USD. | Text | Mismatching with your broker. |
| Quote → account conversion ADV | Rate to convert profit currency into account currency. | Number | Leaving at 1 for GBP/JPY with a USD account. |
| Margin call level % | Broker’s warning threshold, default 100. | Percent | Confusing with stop-out level. |
| Stop-out level % | Broker’s forced-close threshold, default 50. | Percent | Using 0% — brokers never let margin reach zero. |
| Stop-loss price (optional) ADV | Your protective stop. | Price | Placing it inside the stop-out zone. |
5. Stocks / ETFs Panel — Field-by-Field
| Field | What it means | Units / example | Common mistake |
|---|---|---|---|
| Purchase / entry price | Price per share when you bought (or shorted). | USD, e.g. 100 | Using the current price. |
| Current price | Latest market price. | USD | Stale data. |
| Shares | Number of shares. | Count, e.g. 200 | Entering dollar value. |
| Initial margin % | Reg T minimum is 50%. | Percent | Using 100% for a cash account — this tool is for margin. |
| Maintenance margin % | FINRA minimum is 25%. | Percent | Using 0% — brokers require a buffer. |
| Margin loan balance ADV | Amount borrowed from the broker. | USD | Forgetting to update after a partial paydown. |
| Margin interest rate % / year ADV | Annual interest on the loan. | Percent, e.g. 8 | Ignoring interest for long holds. |
| Days held ADV | Holding period. | Days | Setting 0 for a multi-month hold. |
| Stop-loss price (optional) ADV | Protective stop. | USD | Setting it below the maintenance level. |
6. Action Buttons
| Button | What it does |
|---|---|
| Calculate | Recalculates all results. Results also update live as you type. |
| Copy all data | Copies a plain-text snapshot (inputs + results) to your clipboard. |
| Export CSV | Downloads a spreadsheet-friendly report of every input, result, and scenario. |
| Print / PDF | Opens your browser’s print dialog — choose “Save as PDF” for a clean report. |
| Save scenario | Stores the current inputs in your browser’s local storage (max 10 scenarios). |
| Copy share link | Copies a URL containing your inputs so you can share the exact setup. |
| Reset | Restores every field to its default value. |
7. Reading the Results Panel
Status banner
A large colour-coded banner tells you the overall risk state:
- SAFE (green) — comfortable buffer to both warning and forced-close levels.
- WATCH (amber) — buffer is tightening; monitor closely.
- NEAR MARGIN CALL (amber) — margin call level is less than 5% away.
- NEAR LIQUIDATION (red) — less than 3% from forced close.
- MARGIN CALL (red) — equity is at or below the warning threshold.
- LIQUIDATED (red) — price is at or beyond the forced-close level.
Metrics grid
Key numbers appear in a card grid. Depending on the market, you will see:
- Margin level — equity ÷ used margin × 100.
- Margin call price — where the broker warns you.
- Liquidation / stop-out price — where the position is force-closed.
- Distance to margin call / liquidation — percentage move remaining.
- Price buffer — absolute price cushion (and pips for forex).
- Position notional, collateral, P&L, equity, free margin.
- Max loss at liquidation — worst-case realized loss.
- Top-up to avoid liquidation now — deposit needed immediately.
- ROE, nominal leverage, effective leverage.
- Bankruptcy price — where equity reaches zero.
- Estimated fees + funding — cost of holding.
Price risk ladder
An SVG bar chart shows your entry, current price, margin call, and liquidation levels on one horizontal axis. Green zones are safe, amber is the warning zone, and red is the danger zone.
Interactive price slider
Drag the slider to simulate any price between the chart bounds. The output cards update in real time, showing P&L, equity, margin level, distance to forced close, and the status label at that price.
8. Stress Test Scenarios
A table automatically shows what happens if the market moves −1%, −2%, −5%, −10%, −20%, −30%, and −50% (long positions) or the positive equivalents (short positions). Each row shows:
- Price move and resulting price
- P&L at that price
- Equity at that price
- Margin level
- Status (SAFE / WATCH / MARGIN CALL / LIQUIDATED)
Two extra rows appear at the margin-call price and the forced-close price.
9. What-If Comparisons
If leverage were different
Shows liquidation price and distance for a range of leverage values (2×, 5×, 10×, 20×, 50×, 100× for crypto; 1:5 to 1:100 for forex; different maintenance margins for stocks). Use this to see how reducing leverage widens your safety buffer.
If you added margin
Shows the new liquidation price, distance, and margin level if you added 10%, 25%, 50%, or 100% of your current collateral.
Stop-loss check
If you entered a stop-loss price, this box tells you whether it triggers before the margin call (good protection), between the call and liquidation (broker may act first), or beyond liquidation (it may never execute).
Desired-liquidation solver
Enter a target liquidation price and the calculator tells you the exact extra margin (crypto), deposit (forex), or loan paydown (stocks) required to reach it.
10. Saved Scenarios
Press Save scenario to store the current setup in your browser. Up to 10 scenarios are kept. Each saved row has:
- Load — restores every input and recalculates.
- Delete — removes that scenario.
11. Worked Example — BTC 10× Long
Let’s walk through a concrete scenario using the Crypto & Futures panel.
Inputs
- Symbol: BTCUSDT
- Entry price: 60,000 USDT
- Current / mark price: 60,000 USDT
- Size input method: Quantity + Leverage
- Position size: 0.1 BTC
- Leverage: 10×
- Maintenance margin rate: 0.5%
- Margin call level: 50%
- Margin mode: Isolated
- Position margin: 600 USDT
- Contract type: Linear
- Taker fee: 0.05%
- Funding: 0.01% per 8h, 1 day
Results
Formula used (linear long)
Pliq ≈ Entry × (1 − 1/Leverage + MMR + fee)
= 60,000 × (1 − 0.1 + 0.005 + 0.0005) = 60,000 × 0.9055 = 54,330
(simplified) — the calculator uses the full collateral-based engine to produce 54,150.
12. More Real-World Examples
Example 1: ETH 20× long
Entry: $3,000 · Size: 2 ETH · Leverage: 20× · MMR: 0.5%
Liquidation: ≈ $2,865 · Margin call: ≈ $2,925
Distance to liq: 4.5%
Example 2: EUR/USD 1:30 long
Entry: 1.0850 · Lots: 1.0 · Balance: $10,000 · Stop-out: 50%
Used margin: $3,616.67 · Stop-out price: ≈ 1.0776
Pips to stop-out: 74
Example 3: Stock margin long
Entry: $100 · Shares: 200 · IM: 50% · MM: 25%
Margin call price: ≈ $66.67 · Loan: $10,000
Equity ratio: 50%
Example 4: BTC inverse contract
Entry: $60,000 · Qty: 6,000 USD · Collateral: 0.1 BTC · MMR: 0.5%
Liquidation: ≈ $54,340 · P&L in BTC
Inverse contract mode
13. Input Validation & Common Mistakes
The calculator checks for invalid entries and shows a message. Here are the most frequent issues:
- Zero or negative entry/current price: “Entry price must be greater than zero.”
- Leverage below 1: “Leverage must be at least 1.”
- MMR of 0%: allowed but unrealistic — you’ll get a liquidation price far away.
- Maintenance margin ≥ 100%: “Maintenance margin must be between 0% and 100%.”
- Forex lots ≤ 0: “Lot size must be greater than zero.”
- Stock shares ≤ 0: “Share count must be greater than zero.”
14. Accuracy Note — How Precise Are These Numbers?
This calculator uses simplified models that assume a flat maintenance margin rate, ignore tiered margin tables, and approximate fees and funding. Real exchanges and brokers use:
- Tiered maintenance margin (larger positions have higher MMR).
- Mark price and index price for liquidation triggers.
- Dynamic fees, funding rates, and auto-deleveraging rules.
- Cross-margin account-level equity calculations.
15. Key User Pain Points & How This Calculator Solves Them
| Pain point | How AlamToolKit solves it |
|---|---|
| “I don’t know how close I am to liquidation.” | Shows distance in percent and absolute price, plus a colour-coded status banner. |
| “Every exchange has different maintenance margin rules.” | Venue presets for Binance, Bybit, OKX, and Kraken; editable fields for any custom broker. |
| “I need to know how much margin to add to avoid liquidation.” | Desired-price solver computes the exact top-up amount. |
| “I want to compare leverage options.” | Leverage comparison table shows liquidation price for 2×, 5×, 10×, 20×, 50×, and 100×. |
| “I’m not sure if my stop-loss is placed correctly.” | Stop-loss check tells you whether the stop triggers before the margin call, between call and liquidation, or beyond liquidation. |
16. Formulas Used
Stocks — long margin call price
P_call = P_entry × (1 − IM) ÷ (1 − MM)
Stocks — short margin call price
P_call = P_entry × (1 + IM) ÷ (1 + MM)
Crypto linear — long liquidation
P_liq ≈ P_entry × (1 − 1/L + MMR)
Crypto linear — short liquidation
P_liq ≈ P_entry × (1 + 1/L − MMR)
General engine (with fees & collateral)
P_liq_long = [P_entry(1 + MMR) − E₀/Q] ÷ (1 − f)
P_liq_short = [P_entry + E₀/Q] ÷ (1 + MMR + f)
Forex margin level
ML% = Equity ÷ Used Margin × 100
ROE and effective leverage
ROE = Unrealized P&L ÷ Initial Margin × 100
L_eff = Notional ÷ Equity
17. Margin Call vs. Liquidation vs. Stop-Out
| Event | What happens | Typical threshold |
|---|---|---|
| Margin call | Broker warns / demands more funds; position stays open. | Margin level ≈ 100% (forex) or equity ≤ 50% of initial margin. |
| Stop-out | Broker starts force-closing positions. | Margin level ≈ 20–50% (forex). |
| Liquidation | Exchange closes the position at mark price. | Equity ≤ maintenance margin (MMR tier). |
18. Frequently Asked Questions
What is a margin call?
A margin call is a broker’s warning that your equity has fallen below a required level, asking you to deposit funds or reduce the position before forced closing begins.
What is a liquidation price?
The price at which an exchange force-closes your leveraged position because equity no longer covers the maintenance margin requirement.
What is the difference between margin call and liquidation?
A margin call is a warning — you can still act. Liquidation is the forced close itself. This calculator shows both prices so you can see your full safety buffer.
How is a liquidation price calculated?
For a simplified isolated linear contract: long P_liq ≈ Entry × (1 − 1/L + MMR), short P_liq ≈ Entry × (1 + 1/L − MMR). Real venues add fees, funding, tiered MMR and mark-price triggers.
Does leverage increase liquidation risk?
Yes — higher leverage moves the liquidation price closer to your entry. The leverage comparison table above quantifies exactly how much.
Why does the exchange liquidate at mark price?
Mark price is an index-based fair price that resists manipulation and temporary wicks, so exchanges use it for liquidation and unrealized P&L instead of the last traded price.
Does funding affect liquidation?
Yes — accrued funding changes your equity over time, slowly shifting the effective liquidation price even when the market price stands still.
Can adding margin lower liquidation risk?
Yes — extra collateral moves the liquidation price further from entry. Use the “desired liquidation price” solver above to compute the exact deposit needed.
19. Quick Tips
- Always use the mark price when checking how close you are to liquidation.
- Switch to Advanced mode to include fees and funding for a more realistic buffer.
- Use the leverage comparison table before increasing leverage on a live position.
- Set a stop-loss and verify it triggers before the margin call.
- Save scenarios for different positions so you can compare them later.
- Export a CSV or PDF before making a major trade — it helps you review your risk plan.