DeFi Liquidation Calculator

Find out exactly at what price your DeFi lending position gets liquidated. Enter your collateral, debt, and protocol, and this calculator instantly shows your health factor, liquidation price, safe margin, and how much more you can borrow. The interactive chart visualizes your entire risk profile so you can see how close you are to the danger zone. Works with Aave V3, Compound V3, MakerDAO, Spark, and Morpho.

Position Calculator

Select your protocol and enter your collateral and debt details below. All outputs update instantly as you change any input.

Open Aave V3 App
Health Factor
1.72
Liquidation Price
$1,455
Safe Margin
41.8%
Max Additional Borrow
$8,500
Collateral Value
$25,000
Liquidation Penalty
5.0%
LTV / Liquidation Threshold
80.0% / 82.5%
Health Factor Scale
01.01.52.03.0+

Liquidation Zone Visualization

Safe Zone Warning Zone Danger Zone Liquidation Zone

Monitor Your Positions in Real-Time

Track health factors across all your lending positions in one dashboard. Get alerts before liquidation hits.

Set Up Liquidation Alerts

Never get caught off guard. Automated tools can warn you and even auto-repay your loan to prevent liquidation.

How DeFi Liquidation Works

Liquidation is the enforcement mechanism that keeps DeFi lending protocols solvent. Here is the step-by-step process from deposit to potential liquidation:

1
You deposit collateral. You supply an asset (like ETH) to a lending protocol. The protocol assigns a Loan-to-Value (LTV) ratio to your collateral - for example, 80% on Aave V3 for ETH. This determines the maximum amount you can borrow relative to your collateral value.
2
You take out a loan. Based on your collateral and the LTV ratio, you borrow stablecoins or other tokens. If you deposit $25,000 worth of ETH at 80% LTV, you can borrow up to $20,000. Borrowing the maximum puts you very close to the liquidation boundary.
3
The market moves against you. If the price of your collateral asset drops, the dollar value of your collateral falls while your debt stays the same. Your health factor - the ratio of your risk-adjusted collateral to your debt - begins to decline.
4
Health factor crosses below 1. When your collateral value relative to your debt falls below the liquidation threshold (a slightly higher percentage than LTV), your health factor drops below 1.0. At this point, your position becomes eligible for liquidation.
5
A liquidator repays your debt. Third-party bots and liquidators monitor the blockchain for positions with health factor below 1. They repay some or all of your debt and receive your collateral in return - plus a liquidation penalty (bonus for the liquidator). On Aave, up to 50% of the debt can be liquidated in a single transaction.
6
You lose collateral. After liquidation, you keep the borrowed tokens but lose a portion of your collateral equal to the repaid debt plus the penalty. For a 5% penalty on Aave, losing $10,000 in debt repayment means losing $10,500 worth of ETH. The remaining collateral stays in the protocol.

Health Factor Explained

The health factor is the single most important number in any DeFi lending position. It tells you how safe your position is and how far you are from liquidation.

Health Factor Formula
Health Factor = (Collateral Value × Liquidation Threshold) ÷ Total Debt

For example: if you deposit 10 ETH at $2,500 each ($25,000 total) on Aave V3 with an 82.5% liquidation threshold, and borrow $12,000 in DAI:

Example Calculation
HF = ($25,000 × 0.825) ÷ $12,000 = $20,625 ÷ $12,000 = 1.72

A health factor of 1.72 means your collateral could lose about 42% of its value before you reach the liquidation threshold. Here is what different health factor ranges mean in practice:

Health FactorRisk LevelRecommendation
> 2.0Low riskComfortable buffer. Position can withstand significant price drops.
1.5 – 2.0Moderate riskReasonable for less volatile assets. Monitor during high-volatility periods.
1.0 – 1.5High riskDangerously close. Add collateral or repay some debt immediately.
< 1.0LiquidationYour position can be liquidated. Bots will execute liquidation within minutes.

Liquidation Penalty: What Happens to Your Collateral

When a position is liquidated, the borrower does not just lose collateral equal to their debt - they lose an additional percentage called the liquidation penalty (sometimes called the liquidation bonus from the liquidator's perspective).

The penalty exists to incentivize third-party liquidators to act quickly. Without it, nobody would spend gas to liquidate underwater positions, and the protocol would accumulate bad debt. The penalty varies significantly by protocol and by asset:

ProtocolAssetPenaltyNotes
Aave V3ETH5.0%Up to 50% of debt liquidated per transaction
Aave V3wBTC6.5%Higher penalty due to lower liquidity
Aave V3stETH5.0%Liquid staking derivative, treated similarly to ETH
Compound V3ETH5.0%Absorbed by protocol reserves first
MakerDAOETH-A13.0%Dutch auction system, penalty can be lower if auction is competitive
SparkETH5.0%Forked from Aave V3, same mechanics
MorphoVaries5–15%Depends on vault configuration and underlying market

Concrete example: You have 10 ETH ($25,000) as collateral on Aave V3 and borrowed $15,000 in DAI. ETH price drops and your health factor hits 0.95. A liquidator repays $7,500 of your debt (50% maximum) and receives $7,875 worth of your ETH (the $7,500 debt plus the 5% penalty). After liquidation, you have roughly 6.85 ETH remaining in the protocol and $7,500 in outstanding debt - plus you still hold the original $15,000 in DAI you borrowed.

Tips to Avoid Liquidation

🛡

Keep a High Health Factor

Target a health factor of at least 2.0 for volatile assets like ETH and wBTC. This gives you a 50%+ price drop buffer. For stablecoin-collateralized positions, 1.5 is often sufficient since price deviation is typically small.

🔔

Set Up Automated Alerts

Use tools like DeFi Saver, Tenderly Alerts, or HAL Notify to get email or Telegram notifications when your health factor drops below a threshold you set (e.g., 1.5).

🤖

Use Auto-Repay / Auto-Boost

DeFi Saver offers automated strategies that automatically repay your debt (by selling collateral) when your health factor drops too low, or boost your position when it is too high.

💰

Keep Reserve Capital

Always have stablecoins or ETH in your wallet ready to either add as additional collateral or repay part of your debt. Do not deploy 100% of your capital into a single leveraged position.

📉

Use This Calculator Regularly

Simulate worst-case scenarios before entering a position. Ask yourself: "What happens if ETH drops 30% overnight?" If your health factor would fall below 1.2, you are taking on too much risk.

🔄

Consider Stablecoin Strategies

If you want leverage with minimal liquidation risk, consider borrowing stablecoins against stablecoin collateral. The liquidation price is extremely far from current price, though yields are also lower.

Protect Your Positions

The best time to set up liquidation protection is before you need it. These tools help you monitor and automate your DeFi lending strategy.

Learn more: Aave Overview · Compound Overview · MakerDAO Overview

Top Lending Protocols to Supply Collateral

After modeling your position above, open your chosen protocol and supply collateral to start. All links go directly to the app.

Some links may be affiliate links. We may earn a commission at no extra cost to you.