ExplainerLearn the foundationsLeaves: Go deeper

DeFi Lending Explained: How On-Chain Borrowing and Liquidation Work

Understand DeFi lending protocols: over-collateralization, utilization-based borrow rates, Loan-to-Value (LTV), health factors, and keeper bot liquidations.

CoinBeaver TeamPublished Jul 21, 2026Updated Jul 21, 2026
A mascot beaver guide checking an over-collateralized loan Health Factor gauge on a smart contract vault platform
On this page

Quick read

DeFi lending protocols like Aave and Compound allow users to borrow assets instantly against crypto collateral without credit checks or bank approval. This explainer details how over-collateralization works, how interest rates adjust algorithmically based on pool utilization, how Health Factors are calculated, and how keeper bots execute automated liquidations during volatility.

What to remember

  • DeFi loans require over-collateralization—you must deposit more dollar value in collateral than the amount you borrow.
  • Borrow and supply interest rates adjust dynamically based on the pool's utilization rate (ratio of borrowed funds to total deposits).
  • Your Health Factor measures loan safety: a Health Factor above 1.0 is safe, while a factor below 1.0 triggers immediate liquidation.
  • Liquidations are executed by automated keeper bots, which repay your debt and claim your collateral at a discounted liquidation penalty fee.
  • Holding borrowed leverage during market downturns risks total collateral liquidation if collateral prices drop faster than you can repay.

Traditional banks evaluate credit scores, income, and legal contracts before approving a loan. Decentralized Finance (DeFi) eliminates human underwriters entirely, relying on smart contracts to execute permissionless lending.

To prevent defaults in an anonymous, permissionless environment, DeFi protocols enforce .


1. The Over-Collateralization Model

Because a DeFi protocol cannot garnish your wages or take you to court if you fail to repay, you must deposit collateral worth significantly more than the amount you wish to borrow.

Key Lending Terms:

  • Maximum LTV (Loan-to-Value): The maximum percentage of your collateral's value you can borrow (e.g., an 80% LTV on $10,000 of ETH allows borrowing up to $8,000 of USDC).
  • Liquidation Threshold: The percentage threshold at which your loan becomes under-collateralized and vulnerable to liquidation (e.g., 85%).
  • Liquidation Penalty: A fee (typically 5% to 10%) deducted from your collateral to reward the bot that liquidates your unsafe loan.

2. Dynamic Interest Rates and Pool Utilization

DeFi protocols do not charge fixed interest rates set by human committees. Instead, borrow and supply rates adjust algorithmically based on the pool's Utilization Rate:

  • Utilization Rate Formula: Utilization Rate = Total Borrowed Assets / Total Deposited Assets

Two-Slope Kinked Interest Rate Model

Explore how borrow and supply APYs react as pool utilization moves past the optimal kink target.

Optimal Kink: 80%
Utilization80%
Borrow APY5.0%
Supply APY3.6%
Optimal Kink (80%)Borrow APYSupply APYPool Utilization Rate (%)Interest Rate APY (%)
Figure 1: Two-slope piecewise interest rate model (e.g. Aave/Compound). Move the utilization slider to observe the sharp interest rate spike past the 80% kink point.

What Problem Does the Kink Solve?

In permissionless DeFi lending, depositors expect to withdraw their funds at any time. However, if a pool reaches 100% utilization (meaning all deposited funds are lent out), 0 liquid capital remains in the pool contract, temporarily locking suppliers out of their funds.

If a pool used a single flat linear interest rate curve, borrowing would stay cheap even when available liquidity was nearly exhausted, triggering severe withdrawal halts.

To solve this liquidity risk, protocols implement a two-slope kinked interest rate model (as shown in Figure 1):

  1. Below the Kink (0% to 80% Utilization): The interest rate curve has a gentle, shallow slope (R₁). Borrowing is affordable, encouraging capital deployment while leaving an 80% safety buffer for daily withdrawals.
  2. Above the Kink (80% to 100% Utilization): The moment utilization exceeds the optimal kink threshold, the interest rate curve hits an inflection point and spikes upward along a steep vertical slope (R₂).

This steep interest spike past the kink acts as an automated algorithmic circuit breaker that accomplishes two vital risk objectives:

  • Forces Debt Repayment: High borrow APYs (which can jump from 5% to 60%+) make holding open debt prohibitively expensive, forcing borrowers to quickly repay their loans.
  • Attracts Fresh Depositors: Elevated supply APYs entice yield-seeking LPs to deposit new funds into the pool.

Together, these dual incentives rapidly drag utilization back down below the kink target, maintaining liquid reserves so suppliers can always withdraw their capital on demand.


3. Understanding the Health Factor

Protocols like Aave summarize your loan safety into a single metric called the :

  • Health Factor Formula: Health Factor = (Total Collateral Value × Liquidation Threshold) / Total Borrowed Debt Value

  • HF > 1.5 (Safe Zone): Your collateral comfortably exceeds debt requirements.

  • 1.0 < HF ≤ 1.5 (Caution Zone): Market price drops reduce your margin buffer.

  • HF < 1.0 (Liquidation Trigger): Your position is immediately eligible for automated liquidation.


4. Step-by-Step Liquidation Example

Step-by-Step Liquidation Timeline:

  1. Initial Position: You deposit 1 ETH (valued at $3,000) into Aave with an 85% Liquidation Threshold. You borrow $2,000 USDC.
    • Maximum Liquidation Debt Limit = $3,000 × 0.85 = $2,550.
    • Initial Health Factor = $2,550 / $2,000 = 1.275.
  2. Market Drop: ETH price drops from $3,000 to $2,300.
    • New Collateral Liquidation Value = $2,300 × 0.85 = $1,955.
    • New Health Factor = $1,955 / $2,000 = 0.977 (Below 1.0!).
  3. Bot Execution: A third-party detects your Health Factor < 1.0. The bot pays off $1,000 of your USDC debt and seizes $1,050 worth of your ETH collateral (including a 5% liquidation penalty).

Pro Tips for Managing DeFi Loans

To navigate permissionless lending markets safely without risking sudden collateral liquidation, keep these actionable practices in mind:

  1. Target a Health Factor Buffer (1.5+ HF): Never borrow up to your maximum LTV limit. Maintain a Health Factor buffer of at least 1.5 to withstand 20%+ market drawdowns without needing immediate manual intervention.
  2. Monitor Volatile Asset Beta: If using volatile altcoins as collateral, lower your borrow ratio significantly. High-beta tokens can experience sharp 30%+ intraday drops, shrinking your Liquidation Threshold faster than you can react.
  3. Use Stablecoin Debt for Market Hedges: Borrowing stablecoins (USDC/USDT) against ETH collateral allows you to access liquidity or yield without introducing short-side asset price risk on your debt.
  4. Set Automated Health Factor Alerts: Utilize notification tools (such as DeFi Saver, Push Protocol, or wallet push notifications) to receive instant Telegram, email, or mobile warnings if your Health Factor falls below 1.25.

Conclusion

DeFi lending protocols replace central banks and credit underwriters with transparent, code-governed money markets. Over-collateralization ensures protocol solvency in permissionless environments, while dynamic kinked interest rate curves algorithmically balance capital efficiency with instant withdrawal liquidity.

While borrowing against your crypto enables capital-efficient leverage and tax-deferred liquidity, it shifts 100% of risk management onto the user. By keeping Health Factors comfortably above 1.5, understanding fee structures, and actively monitoring collateral price swings, traders can harness the power of decentralized money markets while avoiding automated liquidations.


Frequently Asked Questions


Sources and further reading

Protocol documentation for decentralized lending markets:

This article is educational. It is not financial or lending advice. LTV ratios, interest rates, and liquidation penalties are controlled by governance and change dynamically.

Related coins

Keep learning

Recommended next reads based on this lesson.