> ## Documentation Index
> Fetch the complete documentation index at: https://docs.vanna.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Liquidation

> What happens when a margin account's health factor reaches 1.10, and how to avoid it.

When a margin account's health factor is **1.10 or below**, anyone can liquidate it. Liquidation exists to make sure lenders are repaid while the account still has more collateral than debt.

## How it works

1. A liquidator calls the program's public liquidation instruction on your account.
2. They **repay some of your debt** with their own tokens.
3. In return they **seize collateral** worth the repaid debt **plus a liquidation bonus** (set per asset, capped at 5%; each Earn pool page shows its bonus).
4. If needed, the liquidation can first unwind positions the account holds on other venues (for example a Kamino supply or a Phoenix position) so there's collateral to seize.

The program checks the account was liquidatable before, and that the liquidator received at least the minimum they asked for.

## What it costs you

You lose the seized collateral, including the bonus paid to the liquidator. The debt that was repaid is gone too, so your equity drops by roughly the bonus on each liquidation. The rest of the account stays yours.

## How to avoid it

* Watch the health factor and the **Collateral Left Before Liquidation** figure on Margin.
* Keep well above the 1.15 safety floor when markets are volatile.
* Repay debt or add collateral when the health factor drifts down.
* Remember what moves it: collateral prices, borrow interest, perp P\&L and funding, and vault share prices.
* Use [Flash repay](https://docs.vanna.finance/solana/guides/margin/repay.md#flash-repay) to unwind quickly.

## Watching the whole protocol

[Analytics](https://docs.vanna.finance/solana/guides/analytics.md) lists every account's health, the accounts that can be liquidated right now and the debt at risk.

> [!WARNING]
>
> Leverage can get your account liquidated. Prices, borrow interest, swap slippage, perp funding and vault share prices all move your health factor, which must stay **above 1.10**. Only use what you can afford to lose.

## Next steps

> **[Repay](https://docs.vanna.finance/solana/guides/margin/repay.md)**
>
> Pay down debt or use Flash repay.

> **[Analytics](https://docs.vanna.finance/solana/guides/analytics.md)**
>
> Accounts at risk across the protocol.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.