How this liquidation calculator works
Most liquidation calculators handle one position in isolation. This one handles your actual book: switch between isolated and cross margin, add up to 10 positions, average into a position with extra rows, or mix longs and shorts to model a hedge.
Isolated mode: each direction, solved separately
Same-direction rows are merged into one average entry with their combined margin, then each direction liquidates independently: long at (avg entry − total margin ÷ total qty) ÷ (1 − MMR), short at (avg entry + total margin ÷ total qty) ÷ (1 + MMR). A 10x-style long with a 0.5% maintenance margin liquidates about 9.55% below entry.
Cross mode: the whole portfolio, one price
Enter your account balance and the calculator solves the price where balance + all unrealized PnL = total maintenance margin. The math handles averaging and hedging automatically — a perfectly hedged book still has a liquidation price, because maintenance margin grows with total notional as price moves. If the solver returns no positive price, the portfolio genuinely cannot be liquidated at that margin rate.
Simplifications to know
One maintenance margin rate for all positions (real exchanges apply tiers that rise with size), same-asset linear contracts, no funding or fee adjustments. Treat the output as the planning number it is — then size the trade with the position size calculator and check the winning side with the profit calculator.