If your account value falls too low to support your positions, GUM Perps closes
them for you. This is liquidation.

<Warning>
  Liquidation can't be undone. You lose the price move up to the close, plus the
  fees, and in a fast market the close can fill at worse prices.
</Warning>

## When it happens

**A sub-account is liquidated when its account value, at the
[mark price](/perps/overview#mark-price-and-last-price), drops below the
maintenance margin plus the fees to close its positions.** With cross margin,
the whole sub-account counts; with isolated margin, only that position's
margin. In the app, this is when **Liquidation risk** reaches 100%. See
[Account health](/perps/margin-and-leverage#account-health).

## Liquidation fee

Each close pays the taker fee plus a liquidation fee on the value closed, never
more than what's left in the sub-account.

<PerpsMarketLimits variant="liquidation" />

## What happens

1. Your open orders are cancelled, except reduce-only ones. You can't place
   orders, move USD out or change leverage until the liquidation ends.
2. Positions are closed with market orders on the order book, largest first.
   A position above its market's first
   [margin tier](/perps/margin-and-leverage#margin-tiers) goes first and is
   closed one tier at a time.
3. After each close, once the sub-account is back above the threshold,
   liquidation stops and any other positions stay open.

## How to avoid it

- **Add USD or reduce your positions** to move your liquidation price away.
- **Use less leverage.** For a cross position, lowering the setting alone
  doesn't help.
- **Use isolated margin** for riskier trades.
- **Watch liquidation risk and funding.** Paying [funding](/perps/funding)
  lowers your account value over time.
- **Plan around maintenance.** You can't trade, cancel orders or adjust margin
  during a maintenance window, but your positions stay open.

If a liquidation looks wrong, open a ticket on
[Discord](https://discord.gg/gum-ag).
