Updated 2026-09-11
Key takeaways
- Liquidation, not hacks, is the most common way people lose money in DeFi lending, and it scales directly with how close to max LTV you borrow.
- A liquidator repays your debt and takes your collateral at a discount — the liquidation penalty is meaningfully worse than closing voluntarily.
- Fast, sharp price moves are the real danger — slow declines usually give you time to add collateral or repay before hitting the threshold.
- Borrowing well below the maximum LTV, not up to it, is the single highest-leverage way to avoid liquidation.
- Cross-margin accounts like MarginFi's can be more capital-efficient but let a sharp move in one asset affect your whole account's liquidation risk.
Liquidation — not hacks — is the single most common way people lose money in DeFi lending, and it is entirely a function of how close to the maximum loan-to-value you choose to borrow. Understanding the mechanics is the best protection against it.
The core relationship
The following describes standard lending-protocol mechanics that are structurally true across the category; specific liquidation thresholds and penalty percentages vary by protocol and pool — check the current parameters in the app you’re actually using rather than assuming they match another protocol’s numbers.
When you borrow against collateral, the protocol tracks your loan-to-value (LTV) ratio: how much you’ve borrowed relative to your collateral’s current value. Every protocol sets a maximum LTV at which you can borrow, and a separate, higher liquidation threshold — if your actual LTV rises above that threshold (because your collateral’s value fell, your borrowed amount grew from accruing interest, or both), part or all of your position becomes eligible for liquidation.
What happens during a liquidation
A liquidator (often a bot, sometimes a specialized market participant incentivized by the protocol) repays some or all of your outstanding debt and receives your collateral in exchange, usually at a discount to market price — the liquidation penalty. That penalty is the direct cost to you beyond simply losing the collateral; it’s meaningfully worse than if you’d voluntarily closed the position yourself before hitting the threshold.
Why it catches people off guard
Liquidation is usually not a surprise in slow-moving markets — you can watch your LTV creep up and add collateral or repay debt before hitting the threshold. It becomes dangerous during fast, sharp moves: a rapid price drop in your collateral asset can push you past the liquidation threshold before you have a practical chance to react, especially if you’re not actively monitoring the position.
How to reduce your liquidation risk
- Borrow well below the maximum LTV, not up to it. The gap between your actual LTV and the liquidation threshold is your buffer against a sudden price move.
- Understand your collateral’s volatility. Borrowing against a stablecoin behaves very differently than borrowing against a volatile token or an LST that could itself experience a temporary depeg (see our LST depeg risk guide).
- Monitor your position, or use tools that alert you as your LTV approaches the threshold, rather than checking manually and infrequently.
- Understand oracle-driven liquidations. Your position can be liquidated based on the protocol’s price oracle, which may briefly diverge from prices you see elsewhere during extreme volatility.
Cross-margin adds a wrinkle
Protocols like MarginFi evaluate your collateral and borrowing together across a single account, rather than isolating each position. This can be more capital-efficient with diversified collateral, but also means a sharp move in one asset can affect your liquidation risk across the whole account, not just the position tied to that asset.
The bottom line
Liquidation risk is not an edge case — it’s the central risk of borrowing in DeFi, and it scales with how close to the maximum you choose to borrow. Leaving a comfortable buffer is the single highest-leverage thing you can do to avoid it. See our complete Solana lending guide for the broader picture.