Tools

Liquidation price calculator

Enter a position to see the mark price at which it would be liquidated, the margin it locks and how far the price can move before that, with isolated or cross margin. Below it, the position size a stop-loss allows.

Educational calculator with general formulas for linear, USDT-margined perpetual futures, without fees. Exchanges apply their own rules, and their figure is the one that counts. No investment advice.

Side
Margin mode

The position's value: quantity × entry price.

The rate your exchange sets for the position; the ZK Futures testnet uses 0.5%.

Cross margin only: the balance that backs the position (the calculator assumes it is the only open position).

Position size from a stop-loss

How large can a position be if a stop-loss should lose no more than a share of the account you choose? It uses the side, entry price, leverage, margin mode and maintenance margin rate above.

The share of the account the stop-loss may lose; your own choice, the calculator suggests none.

Result

Liquidation price54,271.36 USDT

Price move to liquidation
9.55% below the entry
Initial margin
100.00 USDT
Maintenance margin at entry
5.00 USDT
Quantity
0.0166667
How the number comes about
  1. Quantity = 1000 ÷ 60000 = 0.0166667
  2. Initial margin = 1000 ÷ 10 = 100
  3. Liquidation price = (0.0166667 × 60000 − 100) ÷ (0.0166667 × (1 − 0.005)) = 54,271.36 USDT

Position size from a stop-loss

Fill in the account balance, the risk share and the stop-loss price to see the position size.

How the liquidation price is calculated

  • A position is liquidated when its equity, the margin plus the unrealized profit or loss, falls to the maintenance margin: the maintenance margin rate times the position value at the mark price.
  • Quantity = position size ÷ entry price. With isolated margin the margin is position size ÷ leverage; with cross margin the wallet balance backs the position.
  • Long: liquidation price = (quantity × entry price − margin) ÷ (quantity × (1 − maintenance margin rate)).
  • Short: liquidation price = (quantity × entry price + margin) ÷ (quantity × (1 + maintenance margin rate)).
  • With isolated margin this becomes entry price × (1 − 1 ÷ leverage) ÷ (1 − rate) for a long and entry price × (1 + 1 ÷ leverage) ÷ (1 + rate) for a short: the higher the leverage, the closer the liquidation price is to the entry.

What the formula leaves out

  • Trading fees and the liquidation fee, which some exchanges reserve from the margin.
  • Funding payments, which are paid from or added to the margin of an isolated position.
  • Tiered maintenance margin rates: larger positions usually have higher rates.
  • The mark price: exchanges liquidate at their mark price, not at the last traded price.
  • Other positions under cross margin, and partial liquidations.

Guides on these topics

Embed this calculator

Paste the code into your own site: the tool shows there with a link to this page.