yieldlogic

Perpetual Futures Liquidation & Leverage Calculator

Calculate exact liquidation prices for Long and Short perpetual positions, required maintenance margin, maximum loss buffers, and risk thresholds.

INPUTS
USD
20×
%
%
OUTPUT
LIQUIDATION PRICE
$95,550
-4.45% from entry
BANKRUPTCY PRICE
$95,000
naive 1/leverage
BUFFER LOST
11.0%
to MMR + fees
LeverageNaive BufferActual BufferLiq Price
// formula
liq_long = entry × (1 − 1/leverage + mmr + closing_fee)

How it works

Calculate crypto perpetual futures liquidation price, distance to liquidation, bankruptcy price, and margin buffer for Long and Short leveraged trades. Designed for derivatives traders, perpetual swap users (hyperliquid, dydx, gmx, binance futures), and delta-neutral hedgers.

// formula
Long: P_liq = P_entry × (1 - 1/Lev + MMR) | Short: P_liq = P_entry × (1 + 1/Lev - MMR)

FAQ

▶What is Maintenance Margin Rate (MMR) and why does it matter?

Maintenance Margin Rate is the minimum equity percentage required by an exchange to keep a leveraged position open. If your margin balance drops below this threshold due to adverse price movements, the liquidation engine takes control of your position.

▶What is the difference between Liquidation Price and Bankruptcy Price?

Bankruptcy price is where your entire margin collateral is completely depleted to zero. Liquidation price triggers before bankruptcy (determined by the MMR) so the exchange insurance fund or liquidator can close the trade before incurring bad debt.

▶How does higher leverage affect distance to liquidation?

Distance to liquidation scales inversely with leverage. At 10x leverage, an adverse price move of ~9.5% triggers liquidation. At 50x leverage, an adverse move of less than 1.8% wipes out the collateral.