DeFi

Liquidation

Definition

Liquidation is the automatic closing of a DeFi loan or leveraged position when its collateral value falls below the protocol’s required threshold.

What is Liquidation?

Liquidation in crypto most commonly refers to what happens in DeFi when a loan or leveraged position becomes undercollateralized and the system forcibly closes it to protect lenders. In a typical lending protocol, you deposit collateral (like ETH or stablecoins) and borrow against it; if the market moves against you, the protocol can sell or seize some of your collateral to repay the debt plus fees. This risk is a core concept within what is defi a practical definition of decentralized finance, because DeFi replaces human credit committees with transparent, rule-based risk management enforced by smart contracts.

How to avoid defi liquidation

To avoid DeFi liquidation, manage your risk before the protocol has to manage it for you. The simplest approach is to keep a healthy buffer by borrowing well below the maximum allowed and monitoring your collateral ratio, especially when using leverage. Add more collateral when markets get volatile, or reduce the debt by repaying part of the loan—both actions increase your safety margin. Choose assets with lower volatility for collateral when possible, and understand that correlated assets can drop together, shrinking your buffer faster than expected. Finally, set up alerts and automation (where available) so you can react quickly; liquidation is usually triggered by on-chain thresholds, not by a human giving you a warning.

What is a liquidation price

A liquidation price is the approximate market price at which your position becomes eligible for liquidation because your collateral value no longer supports your borrowed amount under the protocol’s rules. It’s not just “the price of the collateral,” but a threshold derived from several inputs: the value of your collateral, the size of your debt, the protocol’s required collateralization (often expressed as a liquidation threshold), and any interest or fees that increase what you owe over time. Oracles typically supply the price used for this calculation, so the liquidation price is effectively “the oracle price level” where your health factor crosses the danger line. Because fees, interest, and oracle updates can shift the threshold, treat liquidation price as an estimate, not a guarantee.

Who liquidates defi positions

In most DeFi systems, liquidations are executed by third parties—often called liquidators—who run bots that watch the blockchain for positions that have crossed the liquidation threshold. When a position becomes liquidatable, these actors submit a transaction that repays some or all of the borrower’s debt and, in return, receive a portion of the collateral at a discount (a liquidation incentive). This incentive is what makes liquidation reliable without a centralized operator: it’s a market-driven service that keeps the lending protocol solvent. In some designs, the protocol itself can perform liquidation-like actions (for example, via internal auctions), but even then, external participants usually provide the capital and competition that makes the process efficient.

Can you recover from a liquidation

You generally can’t “undo” a DeFi liquidation once it has executed, because the smart contract has already swapped or transferred collateral to repay the debt according to predefined rules. What you can recover depends on how the protocol is designed: many systems liquidate only enough collateral to bring the position back above the threshold, leaving you with remaining collateral after penalties and fees; others may close the position more aggressively during fast moves. Practically, recovery means rebuilding: you can re-deposit collateral, open a new position with lower leverage, or switch to a different risk profile. It’s also worth reviewing broader failure modes—like what happens when a defi protocol gets hacked the on chain margin event timeline—because liquidations can be triggered or worsened by oracle issues, liquidity gaps, or protocol-level incidents.

Liquidation in Practice

Liquidation is a daily mechanism across major DeFi lending markets such as Aave and Compound, where users borrow against collateral and must maintain a minimum health factor. It also appears in on-chain perpetuals and margin systems like dYdX (and other perpetual DEX designs), where traders use leverage and can be liquidated if margin falls below maintenance requirements. While the interfaces differ—“health factor” in lending versus “maintenance margin” in perps—the core idea is the same: the system closes risky positions early to prevent bad debt.

In practice, liquidation is a trade-off. Borrowers get capital efficiency (they can borrow without selling their assets), while the protocol gets a safety mechanism that protects lenders and liquidity providers. The cost is that users must actively manage risk, because crypto markets can move quickly and liquidation penalties can be meaningful.

Why Liquidation Matters

Liquidation is one of the main reasons DeFi can offer overcollateralized borrowing without relying on identity checks or traditional credit scoring. By enforcing collateral rules automatically, protocols can remain solvent even when borrowers disappear, because repayment is sourced from collateral rather than promises. This is especially important in open networks where anyone can participate and positions can be created instantly.

Without liquidation, a lending protocol would accumulate bad debt whenever collateral values drop, harming depositors and potentially causing a bank-run dynamic. With liquidation, risk is pushed to the edges—borrowers who choose leverage and high utilization—while the system stays robust for passive lenders. In that sense, liquidation is a foundational building block of decentralized finance, complementing the broader concepts covered in what is defi a practical definition of decentralized finance.

Frequently Asked Questions

What is liquidation in DeFi?

Liquidation in DeFi is when a protocol automatically closes or partially closes a loan or leveraged position because it no longer has enough collateral backing it. The protocol sells or seizes collateral to repay the debt plus fees. This protects lenders from bad debt.

What triggers a liquidation?

A liquidation is triggered when your collateral ratio drops below the protocol’s required threshold, often due to a price move against your collateral or position. Interest accrual and fees can also push you closer to liquidation over time. The trigger is typically based on oracle prices.

Do you lose all your collateral when you get liquidated?

Not always. Many protocols liquidate only enough collateral to repay the debt and restore the position’s safety, plus a penalty, leaving you with remaining collateral. In fast markets or certain designs, more of the position may be closed than you expect.

How do liquidators make money in DeFi?

Liquidators earn a liquidation incentive, usually by receiving collateral at a discount after repaying a borrower’s debt. They also may capture arbitrage between collateral sold and debt repaid. Competition among bots tends to keep this incentive near the minimum needed for reliability.

Is liquidation the same as a margin call?

They’re related but not identical. A margin call is typically a warning in traditional finance to add funds, while DeFi liquidation is an on-chain action that can happen automatically once thresholds are breached. Some DeFi apps provide alerts, but the protocol doesn’t need your permission to liquidate.

Related Terms

Liquidation (DeFi) Meaning: Definition & Liquidation Price