TSE.
MathematicsFinanceHealthPhysicsEngineeringBrowse all

Finance & Economics · Portfolio Management · Portfolio Risk

Liquidation Price Calculator

Calculate the liquidation price for leveraged long or short positions in crypto and futures markets.

Calculator

Advertisement

Formula

P_{liq} is the liquidation price. P_{entry} is the position entry price. L is the leverage multiplier (e.g., 10 for 10×). M_{maint} is the maintenance margin rate as a decimal (e.g., 0.005 for 0.5%). For a long position, the price must fall to this level before liquidation; for a short position, the price must rise to this level.

Source: Standard cross-margin liquidation formula used by Binance, Bybit, and CME futures exchanges.

How it works

When trading with leverage, a trader only deposits a fraction of the total position value — known as the initial margin. The exchange loans the remaining capital. If the market moves adversely, the unrealized loss begins to erode the margin. The maintenance margin is the minimum equity level required to keep a position open. The moment the account equity falls to or below the maintenance margin threshold, the exchange's liquidation engine automatically closes the position to recover its loaned funds. This process is called forced liquidation.

The liquidation price formula for a long position is: Pliq = Pentry × L / (L + 1 − Mmaint × L), where L is the leverage multiplier and Mmaint is the maintenance margin rate as a decimal. For a short position, the formula becomes: Pliq = Pentry × L / (L − 1 + Mmaint × L). Notice that for longs, the liquidation price is always below the entry price, and for shorts, it is always above it. Higher leverage dramatically narrows the distance between entry price and liquidation price, increasing risk exponentially.

This calculator is widely applicable across Bitcoin and Ethereum perpetual swap markets on exchanges such as Binance, Bybit, OKX, and dYdX, as well as traditional futures markets on CME. Traders use it to set appropriate stop-loss orders safely above (for longs) or below (for shorts) the liquidation level, ensuring a position is exited on their own terms rather than the exchange's. Portfolio risk managers also use liquidation levels in aggregate to assess systemic exposure of leveraged books during stress scenarios.

Worked example

Suppose a trader opens a long position on Bitcoin at an entry price of $30,000 with 10× leverage on an exchange that applies a 0.5% maintenance margin rate.

Using the long liquidation formula:

Pliq = 30,000 × 10 / (10 + 1 − 0.005 × 10)

Pliq = 300,000 / (10 + 1 − 0.05)

Pliq = 300,000 / 10.95

Pliq$27,397.26

The initial margin rate is 1/10 = 10%, meaning the trader deposited $3,000 to control a $30,000 position. The distance to liquidation is (30,000 − 27,397.26) / 30,000 × 100 ≈ 8.67%. In other words, Bitcoin only needs to fall 8.67% from the entry price to trigger forced liquidation and wipe out the entire $3,000 margin deposit. A prudent trader would set a stop-loss at, say, $28,500 — well above the liquidation level — to exit voluntarily before reaching that catastrophic threshold.

Now consider a short position on the same asset: entry at $30,000, 10× leverage, 0.5% maintenance margin.

Pliq = 30,000 × 10 / (10 − 1 + 0.005 × 10) = 300,000 / (9 + 0.05) = 300,000 / 9.05 ≈ $33,149.17

Bitcoin rising above ~$33,149 would liquidate this short position, representing a 10.50% adverse move.

Limitations & notes

This calculator implements the standard cross-margin isolated liquidation formula and assumes that the entire initial margin is allocated to a single position with no partial fills, funding rate adjustments, or unrealized PnL from other positions. In practice, many exchanges use tiered maintenance margin schedules where larger positions carry higher maintenance margin rates — this calculator uses a single flat rate and may underestimate the liquidation price for very large positions. Additionally, funding rates in perpetual swap markets continuously adjust the effective cost basis of a position, meaning the true liquidation price drifts over time as funding is paid or received. In cross-margin mode, profits from other open positions can buffer the margin balance and push the liquidation price further away, while additional losses accelerate it. Always verify the liquidation price displayed by your exchange's own interface, as internal risk engine implementations may differ slightly from the generalized formula used here. This tool does not account for partial liquidations, ADL (auto-deleveraging) systems, or insurance fund mechanisms used by specific exchanges.

Frequently asked questions

What is a liquidation price in crypto trading?

The liquidation price is the market price at which your leveraged position is automatically closed by the exchange because your remaining margin has fallen to the maintenance margin threshold. At this point, the exchange seizes your remaining collateral to cover the loaned funds, resulting in a total loss of your initial margin deposit.

How does leverage affect the liquidation price?

Higher leverage dramatically compresses the distance between your entry price and your liquidation price. At 2× leverage, a long position might not be liquidated until the asset falls roughly 50%; at 20× leverage, a drop of just 5% can trigger liquidation. This is why risk management becomes exponentially more critical at higher leverage multiples.

What is the difference between maintenance margin and initial margin?

The initial margin is the collateral you deposit to open a leveraged position — it equals the position value divided by the leverage multiplier. The maintenance margin is the minimum equity level required to keep the position open, expressed as a percentage of position value. Maintenance margin rates are typically much lower than initial margin rates (e.g., 0.5% vs. 10%) but they define when liquidation is triggered.

Does this calculator work for both isolated and cross margin?

This calculator models an isolated margin scenario where only the dedicated margin for one position is considered. In cross-margin mode, the total account balance acts as collateral across all positions, which means the effective liquidation price can be different — additional funds in the account can delay liquidation. Use isolated margin mode on your exchange for the result to match this calculator most closely.

How can I avoid liquidation when trading with leverage?

The most effective way to avoid liquidation is to set a stop-loss order well above (for short positions) or below (for long positions) your calculated liquidation price. Using lower leverage gives you more breathing room for adverse price movements. Additionally, adding margin to a position under pressure can raise (for longs) or lower (for shorts) the liquidation price, but this practice — known as 'catching a falling knife' — can amplify total losses if the trend continues against you.

Last updated: 2025-01-15 · Formula verified against primary sources.