Leverage & Liquidation Risk Calculator
How much room does your leveraged position have — and what does an adverse move cost?
Enter your account and position. The calculator returns exposure, required margin, effective leverage, the dollar loss at your stop, an estimated liquidation / stop-out price, the distance to it, and whether your stop actually fires before liquidation. Everything runs in your browser; nothing is uploaded.
Your trade
Market selection changes the calculation model, the units and the terminology.
Verdict
Primary results
Model: Basic (simplified) · Isolated · Long
Liquidation risk meter & position health
The meter is driven by the objective variables below — not by an arbitrary proprietary score. Bands apply to the distance to liquidation.
| Effective leverage (notional ÷ equity) | — |
| Selected leverage | — |
| Margin utilization (used margin ÷ equity) | — |
| Maintenance margin requirement | — |
| Maintenance margin rate applied | — |
| Stop distance | — |
| Stop-to-liquidation buffer | — |
| Free / excess margin | — |
| Distance to liquidation (price) | — |
| Distance to liquidation (in daily σ) | — |
| Max safe leverage for this stop | — |
| Break-even price incl. fees | — |
| P&L at take-profit / R:R | — |
| Bankruptcy price (no maintenance) | — |
Price ladder: entry, stop, liquidation
Long positions are threatened from below, short positions from above. The warning zone is the band between your stop and liquidation.
Adverse-move simulator
What each adverse price move does to the position and to the account. A move beyond the liquidation distance is a forced close.
| Move | New price | Position P&L | Account impact | Remaining margin | Distance to liq. |
|---|
Leverage sensitivity
Same position, different leverage. Liquidation distance is recomputed with the maintenance-margin model in use, not with a bare 1 ÷ leverage shortcut.
| Leverage | Initial margin | Liquidation price | Liq. distance | Loss at stop | Acct. loss at stop |
|---|
What-if controls
Test the changes a trader actually makes mid-trade. Results above update instantly.
Comparison: Scenario A vs Scenario B
Scenario A is the trade configured in the form. Set Scenario B's leverage, position size and stop to compare two versions of the same idea.
| Metric | Scenario A | Scenario B | Difference |
|---|
Costs, funding and reality check
| Entry cost (taker) | — |
| Estimated exit cost at stop | — |
| Round-trip trading cost | — |
| Slippage allowance | — |
| Funding cost over holding period | — |
| Total cost of the round trip | — |
| Net loss at stop incl. costs | — |
| Net account loss at stop incl. costs | — |
| Fee-adjusted liquidation price | — |
Export & share
Formula transparency — how is liquidation calculated?
The exact formula behind the number you just saw, plus the limits of each model.
Exposure, margin and leverage
Position notional = position size × price Initial margin = notional ÷ leverage Effective leverage = notional ÷ account equity Margin utilization = used margin ÷ equity × 100 Margin level (FX) = equity ÷ used margin × 100
Simplified isolated liquidation (the classic formula)
Long : Liq ≈ Entry × (1 − 1/Leverage + MMR) Short: Liq ≈ Entry × (1 + 1/Leverage − MMR) Worked example — entry 50,000, 10×, MMR 0.5%, long: 50,000 × (1 − 0.10 + 0.005) = 45,250
Margin-balance vs maintenance-margin model (precise mode)
Liquidation is the price where margin balance = maintenance margin. Maintenance margin = position notional × MMR − maintenance amount Linear long : P = (qty·E − WB − mA) ÷ (qty × (1 − MMR)) Linear short: P = (WB + qty·E + mA) ÷ (qty × (1 + MMR)) with closing fee f (taker): Linear long : P = (qty·E − WB − mA) ÷ (qty × (1 − MMR − f)) Linear short: P = (WB + qty·E + mA) ÷ (qty × (1 + MMR + f))
Inverse (coin-margined) contracts
Long : Liq ≈ Entry × Leverage × (1 + MMR) ÷ (Leverage + 1) Short: Liq ≈ Entry × Leverage × (1 − MMR) ÷ (Leverage − 1) PnL in USD = dir × contracts × face × (1/E − 1/P) × P where face is the USD contract face value (e.g. 100), E is entry and P is the current price. Quantity is measured in contracts, not coins, for inverse.
Forex stop-out instead of a liquidation price
Margin level = equity ÷ used margin × 100 Equity at stop-out = stop-out level % × used margin Loss capacity = current equity − equilibrium equity at stop-out Price move = loss capacity (quote ccy) ÷ (lots × contract size) Stop-out price = entry ∓ price move
Frequently asked questions
What is liquidation price?
The price at which a leveraged position's remaining equity no longer covers the exchange's maintenance-margin requirement and the venue force-closes it. In crypto it is usually triggered by mark price rather than last traded price.
How do you calculate liquidation price?
For a simplified isolated linear contract: long = Entry × (1 − 1/Leverage + MMR), short = Entry × (1 + 1/Leverage − MMR). More precisely, liquidation is the price where margin balance equals the maintenance-margin requirement.
How does leverage affect liquidation?
Selected leverage sets how much margin the position consumes: notional ÷ leverage. Higher leverage means a smaller deposit, so a smaller adverse move wipes out the buffer and pushes the liquidation price closer to entry — roughly 1 ÷ leverage before maintenance margin is applied.
Does higher leverage increase liquidation risk?
Yes for a fixed position size: leverage reduces the margin cushion, so liquidation moves closer. It is worth separating the two ideas, however — leverage changes the deposit, while position size and account equity together determine effective leverage (notional ÷ equity), which is what actually scales the account impact of a move.
What is maintenance margin?
The minimum equity a position must hold to stay open. It is charged as a rate on notional, and on major venues it is tiered — the rate rises with position size, and a maintenance amount is deducted inside the bracket.
What is isolated margin?
Isolated margin ring-fences the collateral attached to a single position: that position can only lose the margin assigned to it, and its liquidation price is fixed by its own margin balance.
What is cross margin?
Cross margin shares the whole account as collateral, so the displayed liquidation price moves with account balance, other positions' unrealized P&L and funding. The estimate here ignores the notional of your other positions; in practice they all share the same collateral pool.
Everything you need to use the AlamToolKit calculator with confidence: every formula, every input, every output, plus worked examples, engineering context and answers to the questions traders actually ask.
Free, no sign-up, runs entirely in your browser · by AlamToolKit.com
1. Quick Start — Five Steps to Your Liquidation Number
The calculator updates live as you type. There is no “Calculate” button that you must press to see results — the numbers change with every keystroke. Follow these five steps to go from zero to a complete risk picture.
-
Pick your market
Choose Crypto (linear or inverse), Forex, Futures, or Stocks/CFD. The market selection changes the units, the terminology and the underlying formula.
-
Enter your account
Account balance, currency, and any other unrealized P&L if you are using cross margin. Extra margin and available margin are optional.
-
Describe the position
Entry price, direction (long/short), position size, contract size, and leverage. Optional: current mark price and take-profit price.
-
Set your stop
Enter the stop-loss price (or use the percentage / pips mode). The tool uses your stop to work out the loss at that point and whether the stop would fire before liquidation.
-
Read the verdict
The verdict card at the top tells you in one sentence whether your stop fires first, whether it sits beyond liquidation, and what the account impact is. Below it: full metrics, price ladder, adverse-move simulator, and leverage sensitivity.
2. Input Reference — What Every Field Does
Every input has a unique ID and a clear unit. The table below explains what each field does, its default value, and the most common mistake users make when filling it in.
| Field | Unit | What it does | Common mistake |
|---|---|---|---|
| Market / instrument | — | Selects the model (linear/inverse crypto, forex lots, futures multiplier, stock CFD margin %). | Leaving “crypto linear” selected for a forex trade — the contract-size field is then interpreted in the wrong units. |
| Direction | — | Long or short. Flips every sign downstream. | Forgetting to switch direction when reviewing a short idea. |
| Margin mode | — | Isolated (position-only collateral) or cross (whole account). | Selecting cross but ignoring other positions — cross margin uses the whole equity. |
| Calculation model | — | Basic uses the textbook formula; Precise solves for margin balance = maintenance margin. | Comparing Basic output against a live exchange terminal and expecting identical numbers. |
| Symbol | text | Optional label, used only for the live-price fetch. | Entering an unsupported symbol — the fetch fails gracefully. |
| Contract face value | USD | Inverse contracts only — the USD notional per contract (e.g. 100 for BTCUSD_PERP on many venues). | Entering the coin quantity instead of the face value. |
| Account balance | account ccy | Total balance before unrealized P&L. | Entering free margin instead of total balance. |
| Currency | — | Display symbol only — the calculator does not perform FX conversion. | Expecting a EUR account to auto-convert USD-denominated values. |
| Other positions' unrealized P&L | account ccy | Adds to equity in cross-margin calculations. | Leaving it blank when it should be negative (losses reduce equity). |
| Available / free margin | account ccy | Optional cross-check shown next to the calculated free margin. | Treating this as an input — it is a reference only. |
| Extra margin added | account ccy | Collateral added to the position; moves liquidation further away. | Forgetting that negative values model a withdrawal. |
| Entry price | quote ccy | Price at which the position was opened. | Using the current price instead of the actual fill. |
| Current / mark price | quote ccy | Used for the “distance from mark” metric; defaults to entry. | Leaving it blank when the position has moved significantly. |
| Position size — input method | — | Units, notional, margin, or lots. | Mixing lots with units — the fields are different. |
| Size in base units / coins / contracts | units | Quantity in coins, contracts, or shares. | Entering notional dollars instead of units. |
| Contract size per lot | units/lot | Lot size for forex or lot-based CFD (usually 100,000). | Using 1 when the broker quotes lots. |
| Leverage | × | Selected leverage multiplier (1× to 125×). | Confusing selected leverage with effective leverage — they are different. |
| Max available leverage | × | Your venue's cap; used to bound the slider. | Leaving 100× when your venue caps at 20×. |
| Maintenance margin rate (MMR) | % | Required maintenance percentage on notional. | Using 0.5% for an altcoin that actually needs 2%. |
| Maintenance amount / deduction | account ccy | Tier deduction inside the applicable bracket. | Leaving it at 0 when your tier table shows a non-zero value. |
| Maintenance tier table | mixed | Optional tiered MMR brackets; overrides the flat MMR when populated. | Forgetting to update the table when the symbol changes. |
| Stop input method | — | Price, distance %, or pips/ticks. | Entering pips while the calculator expects price. |
| Stop-loss price | quote ccy | Where the position is closed if hit. | Placing a long stop above entry. |
| Safety buffer target | pp | Used by the max-safe-leverage solver. | Setting 0 — the solver then returns almost no headroom. |
| Maker fee % | % | Fee paid when posting liquidity (limit orders). | Using maker when entering with market orders. |
| Taker fee % | % | Fee paid when taking liquidity (market orders). | Ignoring it and underestimating round-trip cost. |
| Slippage % | % | Adverse fill allowance on entry and exit. | Using 0 — real fills are rarely perfect. |
| Funding rate % | % / interval | Perpetual funding cost per interval. | Forgetting that funding compounds across intervals held. |
| Funding intervals held | count | Number of funding periods the position is expected to be open. | Leaving 0 when holding overnight or across a weekend. |
| Typical daily move (σ) % | % | Drives the volatility sub-score. Use the asset's ATR%. | Setting 0 — the volatility score then becomes infinite risk. |
| Take-profit price | quote ccy | Optional; unlocks R:R calculation. | Entering a TP on the wrong side of entry. |
| Broker stop-out level | % margin level | Forex only — the margin level at which the broker closes positions. | Using 50% when the broker uses 100%. |
| Conversion rate | × | Forex — 1 quote unit → account currency. | Forgetting to update when the pair quote currency differs from the account currency. |
| Contract multiplier | × | Futures — multiplier applied to the price to get notional. | Using 1 for ES (×50) or CL (×1,000). |
| Margin requirement % | % | Stocks/CFD only — initial margin as a percentage of notional. | Using the exchange's maintenance % instead of the broker's initial %. |
3. Every Formula Used in the Results
All outputs are deterministic — no network calls, no hidden state. Here is exactly how each number in the results panel is computed.
3.1 Exposure, Margin & Effective Leverage
Units: Notional and margin in account currency. Effective leverage is dimensionless (×). Margin utilization is a percentage.
3.2 Loss at Stop
Units: Loss and fees in account currency. Account loss % is a percentage of equity.
3.3 Linear Crypto / Futures Liquidation (Basic Mode)
Units: Result in the quote currency (same as entry price).
Worked example — BTC long at 60,000, 10×, MMR 0.5%
3.4 Linear Liquidation (Precise Mode — Margin-Balance Model)
Units: Result in the quote currency. The iteration is transparent — the results note shows the number of re-checks performed.
3.5 Inverse (Coin-Margined) Contracts
Units: Result in the quote currency (USD). PnL is converted back to USD using the current price.
3.6 Forex Stop-Out
Units: Result in the quote currency of the pair.
3.7 Distance, Buffer & Max Safe Leverage
Units: Distances in percent of entry. Buffer in percentage points. L_max is dimensionless (×).
3.8 Costs & Funding
Units: All costs in account currency.
3.9 Bankruptcy Price
3.10 Risk Score
Units: Score is 0–100. Bands: 0–25 Low, 26–50 Moderate, 51–75 High, 76–100 Critical.
4. Visual Overview — How the Numbers Flow
The diagram below shows every step from your inputs to the four headline outputs. Each arrow represents a formula you can verify by hand using the block above.
5. Worked Examples — Reproduce These in the Tool
5.1 Example 1 — Crypto Long, 10×, Stop Below Entry
Inputs: $10,000 balance · long BTC · entry $60,000 · stop $57,000 · 0.5 coins · 10× isolated · MMR 0.5% · 0.05% taker · 0.02% slippage.
| Estimated liquidation price | $54,300 | Distance to liq. | 9.50% |
| Stop-to-liq buffer | +4.50 pp | Stop fires before liq.? | Yes |
| Loss at stop incl. fees | $1,530 | Account loss at stop | 15.30% |
How to read it: the stop sits 5% away and liquidation sits 9.5% away, so you have a 4.5 percentage-point cushion. If BTC trades down to the stop, you lose 15.3% of the account. Reasonable for a high-conviction setup; too aggressive for a beginner.
5.2 Example 2 — Crypto Long, 50×, Stop Too Close
Same trade, but leverage is cranked to 50× to free up capital.
Verdict: Stop will never fire. The position is closed by margin at $59,100 — well before your $57,000 stop. This is the classic “leveraged up to free capital, got liquidated instead” mistake. The risk score is forced to Critical (78+).
5.3 Example 3 — Forex Stop-Out
Inputs: $5,000 account · long EUR/USD · entry 1.0850 · 1 standard lot (100,000 units) · 30× leverage · stop-out level 50%.
How to read it: EUR/USD would need to fall ~319 pips to trigger the broker's stop-out. Your actual stop-loss should sit well inside this distance — otherwise you get closed by margin, not by your plan.
6. Engineering-Grade Explanation — What This Calculation Is For
6.1 What Is This Calculation Used For?
Liquidation-risk analysis is the trading equivalent of a factor-of-safety check in structural engineering: given a load (position size), a material strength (margin cushion), and a failure criterion (maintenance margin), does the design survive the expected adverse conditions before it fails? Just as an engineer computes the load at which a beam yields, a trader computes the price at which a leveraged position is force-closed — and then sizes so that the failure point sits well beyond the noise.
6.2 Where Engineers and Traders Apply It
- Quantitative strategy design: backtested strategies must be stress-tested at realistic leverage and margin tiers before deployment.
- Prop-firm evaluations: daily-drawdown rules are enforced by a liquidation-style mechanism; the same math applies.
- Portfolio margin calibration: on cross-margin accounts, every position contributes to the shared collateral pool — the isolated liquidation model here is the building block.
- Risk-limit setting: the “max safe leverage” solver gives a direct answer to “what is the highest leverage I can use and still keep my stop inside the margin cushion?”
- Broker/exchange comparison: the maintenance-margin tier table lets you plug in each venue's published schedule and compare liquidation distances on equal footing.
6.3 Common Mistakes (Engineering View)
- Confusing selected leverage with effective leverage: leverage sets the deposit, not the exposure. Effective leverage (notional ÷ equity) is what drives account impact.
- Ignoring the buffer: a stop that sits inside the liquidation distance will fire; one that sits beyond it never will.
- Using a flat MMR for every size: real venues tier the MMR — larger positions pay a higher rate and carry a deduction.
- Skipping fees: taker fees of 0.05% per side add 0.10% to the round-trip cost — meaningful when combined with slippage at high leverage.
- Forgetting funding: a perpetual held across multiple funding intervals can pay more in funding than it earns in directional P&L.
6.4 Real-World Usage
Professional desks use this same math to construct positions: they compute the liquidation price at the intended size, then back off the leverage until the liquidation sits at least two standard deviations of daily volatility beyond the stop. The “distance in daily σ” metric in this tool exposes exactly that ratio — a value below 1.0 σ means the liquidation is inside one day's typical move, which is uncomfortably close.
7. Accuracy Note — What This Estimate Is and Isn't
8. Frequently Asked Questions
Click any question to expand its answer. Multiple items can stay open at once.
What is a liquidation price?
How do you calculate liquidation price?
Entry × (1 − 1/Leverage + MMR), short = Entry × (1 + 1/Leverage − MMR). More precisely, liquidation is the price at which margin balance equals the maintenance-margin requirement — the “Precise” mode in this calculator solves that equation iteratively so the tier bracket at the liquidation price matches the notional at that price.How does leverage affect liquidation?
notional ÷ leverage. Higher leverage means a smaller deposit, so a smaller adverse move wipes out the cushion — roughly 1 ÷ leverage of price movement, before maintenance margin is applied. At 10× that is roughly 10% of price; at 100× it is roughly 1%.Does higher leverage increase liquidation risk?
notional ÷ equity), and it is effective leverage that scales the account impact of an adverse move.What is maintenance margin?
What is the difference between isolated and cross margin?
Why does my exchange show a slightly different liquidation price?
What does “buffer in percentage points” mean?
How is the risk score calculated?
Does position size affect the liquidation price?
What is an inverse (coin-margined) contract?
contracts × face × (1/E − 1/P) × P in USD. Because the payoff is convex, an inverse long earns more coin per unit of adverse move than a linear long. The calculator handles inverse math separately so you do not accidentally use the linear formula.9. Key User Pain Points — and How This Calculator Solves Them
| Pain point | How AlamToolKit solves it |
|---|---|
| “I don't know my real liquidation price.” | Computes it deterministically from entry, leverage, MMR and margin mode, and shows the distance in percent and in daily-σ units. |
| “My stop keeps getting jumped by liquidation.” | The buffer metric (percentage points) flags the exact case where the stop sits beyond liquidation, and the verdict card says so in plain English. |
| “I can't compare 10× vs 25× properly.” | The leverage sensitivity table shows liquidation price, distance, loss at stop and account loss % for 2×, 5×, 10×, 20×, 25×, 50× and 100× side by side. |
| “I don't know if my other positions are helping or hurting.” | Cross-margin mode integrates other positions' unrealised P&L into equity, and the free-margin field shows the shared cushion. |
| “I can't be bothered with maintenance tiers.” | The tier table accepts the exact published brackets from Binance, Bybit, OKX or any other venue, and the liquidation engine re-solves so the tier used at liquidation matches the notional at that price. |
| “I have no idea if my stop is too tight or too wide.” | Distance-in-daily-σ converts the liquidation gap into a volatility multiple, making “too tight” and “too wide” objective rather than vague. |
| “I want to know what happens if BTC drops 10%.” | The adverse-move simulator tabulates position P&L, account impact, remaining margin and distance to liquidation across −0.5%, −1%, −2%, −5% and −10% moves — plus a custom move field. |
| “I want to size the position so the risk is 1% of the account.” | The risk-based sizing solver outputs the maximum notional that keeps account loss at your chosen percentage over the current stop distance. |
| “I need to send this to my trading journal.” | Export panel: copy all data, copy summary, download CSV, print/PDF, and a shareable URL that encodes every input. |