How DeFi lending works: collateral, the health factor and liquidations

DeFi lending replaces the loan officer with a smart contract and the credit check with collateral. That makes borrowing open to anyone — and makes liquidation automatic when prices move against you.

Neon sign of a pawn shop glowing at night

Photo: “File:Hong Kong Pawn Shop Logo.jpg” by Unknown, CC BY-SA 2.5, via Wikimedia (edited: cropped and resized).

Quick answer

In DeFi lending, depositors supply tokens to a smart-contract pool and borrowers draw loans from it against collateral worth more than the loan. Each position has a health factor; below 1, anyone may repay part of the debt and take collateral plus a bonus — a liquidation [1].

Key points

  • 1Lending pools match many suppliers with many borrowers through smart contracts, without identity checks.
  • 2Borrowers must over-collateralize: the collateral is the only protection lenders have.
  • 3Aave’s health factor = collateral value × liquidation threshold ÷ debt; below 1, the position can be liquidated.
  • 4Liquidators repay part of the debt and receive the borrower’s collateral plus a bonus, so liquidation always costs the borrower extra.
  • 5Rates follow how much of a pool is borrowed, along two slopes in Aave’s code [2]; rates, thresholds and prices all change, so a position that is safe today can be liquidated tomorrow.
On this page
  1. What is DeFi lending?
  2. How does a lending pool work?
  3. How does Aave set the interest rate?
  4. Why must borrowers lock more than they borrow?
  5. What is the health factor?
  6. What happens in a liquidation?
  7. Where does the protocol get its prices?
  8. What are E-Mode and other special modes?
  9. What are the main risks for lenders and borrowers?
  10. What mistakes do beginners make here?
  11. Frequently asked questions
  12. The bottom line
  13. Sources

What is DeFi lending?#

ethereum.org describes two kinds of decentralized borrowing: peer-to-peer, where a borrower borrows from a specific lender, and pool-based, where lenders put funds into a pool that borrowers draw from [3]. Aave, the protocol used in the examples below, follows the pool model [4]. Instead of checking who you are, the protocol requires the borrower to put up collateral that lenders automatically receive if the loan is not repaid [3].

Stablecoins sit at the centre of this market. The US Treasury’s 2021 report noted that stablecoins are frequently “locked” in DeFi to earn interest paid by people borrowing them for leveraged trading or other activities [5]. If stablecoins are new to you, start with what are stablecoins.

How does a lending pool work?#

Money flows in a pool-based lending protocol

Money flows in a pool-based lending protocol: Suppliers deposit — Tokens go into the pool; suppliers get an interest-bearing receipt token; Borrowers post collateral — Worth more than what they plan to borrow; Borrowers draw loans — Up to a limit set for each collateral asset; Interest accrues — Paid by borrowers, credited to suppliers; Repay or be liquidated — Repaying unlocks collateral; unhealthy positions are liquidatedMoney flows in a pool-based lending protocol: Suppliers deposit — Tokens go into the pool; suppliers get an interest-bearing receipt token; Borrowers post collateral — Worth more than what they plan to borrow; Borrowers draw loans — Up to a limit set for each collateral asset; Interest accrues — Paid by borrowers, credited to suppliers; Repay or be liquidated — Repaying unlocks collateral; unhealthy positions are liquidated
Simplified from ethereum.org and Aave documentation.

Suppliers receive a token that tracks their deposit plus interest. ethereum.org’s example: lend 100 Dai to Aave, receive 100 aDai, and watch the aDai balance grow with interest; you can withdraw Dai equal to your aDai balance at any time [3]. In practice, a withdrawal also needs enough unborrowed funds left in the pool.

Rates are not fixed by a bank. In ethereum.org’s words, interest rates are “determined by market activity and fluctuate based on real-time supply and demand” [6]. In Aave, that link is written into code: the next section shows how.

How does Aave set the interest rate?#

Aave’s rate contract works from one number: utilization, the share of a pool’s money that is currently lent out. In the code it is total debt divided by the funds still available plus total debt [2]. The contract’s own description says the model is “based on 2 slopes”: one up to a chosen optimal usage ratio, and another from that point to 100% [2].

Borrow rate = Base + Slope1 × U ÷ U_opt (when U ≤ U_opt); Base + Slope1 + Slope2 × (U − U_opt) ÷ (1 − U_opt) (when U > U_opt)

U is utilization and U_opt the optimal usage ratio. Below the optimal point, the rate rises in a straight line along Slope1 and reaches Base + Slope1 exactly at the optimal point; above it, Slope2 takes over, and at 100% utilization the rate is Base + Slope1 + Slope2, the contract’s maximum [2].

Suppliers earn less than borrowers pay: in the code, the supply rate is the average borrow rate, multiplied by the share of the pool that is borrowed, and then reduced by a parameter called the reserve factor [2]. In plain words: when only half the pool is lent out, only half of the money is earning interest, and that interest is shared by every supplier.

How utilization drives the rates (hypothetical settings: Base 0%, Slope1 4%, optimal 90%, Slope2 60%, reserve factor 10%)
UtilizationWhich slope appliesBorrow rateSupply rate
45%Slope12.00%≈ 0.81%
80%Slope1≈ 3.56%≈ 2.56%
90% (optimal)End of Slope14.00%3.24%
95%Slope234.00%≈ 29.07%
100%Slope2 (maximum)64.00%57.60%

Computed with the formulas above, assuming all debt is at the variable rate. The 4% at 90% utilization echoes an example in Aave’s V3 technical paper [4]; Base, Slope2 and the reserve factor here are our own assumptions.

The numbers are not protocol-wide constants: in the Aave V3 core code cited here, the base rate, both slopes and the optimal ratio are passed in when each rate-strategy contract is deployed [2], and later Aave versions may handle them differently, and Aave’s technical paper gives an asset whose optimal utilization is 90% only as an example [4]. Check the protocol’s page for the asset you use. The arithmetic does show one thing clearly: if Slope2 is set much steeper than Slope1, rates jump once a pool is borrowed past its optimal point.

Why must borrowers lock more than they borrow?#

Because there is no court, credit score or debt collector. If a borrower walks away, the only thing lenders can rely on is the collateral. So every collateral asset has two limits. The loan-to-value (LTV) sets the borrowing power for new loans; the liquidation threshold is the level at which a position counts as undercollateralized and can be liquidated [4]. The threshold is set higher than the LTV, and Aave’s paper calls the gap between them “a soft protection for borrowers” [4].

What is the health factor?#

Health factor = (Total collateral value × Weighted average liquidation threshold) ÷ Total borrow value

Above 1, the position is safe from liquidation; below 1, it can be liquidated [1]. Aave’s own example: supply $10,000 of ETH with an 80% liquidation threshold, borrow $6,000 of GHO, and the health factor is 1.333.

The health factor moves every time prices move. If your collateral rises in value, it goes up; if your collateral falls, it goes down [1]. Aave says there is no universally “safe” health factor: it depends on how volatile your assets are and how closely collateral and debt move together [1].

StepValue
No change: 10,000 × 0.80 ÷ 6,0001.333
ETH falls 10% → collateral $9,0001.200
ETH falls 20% → collateral $8,0001.067
ETH falls 25% → collateral $7,5001.000 (liquidation line)
ETH falls 30% → collateral $7,0000.933 (can be liquidated)

A 25% fall in ETH is enough to wipe out the buffer. EU supervisors warn that crypto prices can fall and rise quickly over short periods [7]; see crypto volatility and risk.

How much you borrow decides how big a price fall you can survive ($10,000 collateral, 80% threshold)
Amount borrowedHealth factorCollateral fall that reaches 1.0
$4,0002.00050.0%
$5,0001.60037.5%
$6,0001.33325.0%
$7,0001.14312.5%
$7,500 (a hypothetical 75% LTV maximum)1.0676.25%

Assumes the debt is a stablecoin whose value does not change and ignores interest that slowly increases the debt.

What happens in a liquidation?#

  1. Health factor drops below 1

    Collateral no longer covers the debt with the required margin [1].

  2. Anyone may act

    Liquidations are permissionless; in practice bots compete to be first [1].

  3. Liquidator repays debt

    Up to 50% of it while the health factor is above 0.95 and both collateral and debt are at least $2,000; up to 100% at 0.95 or below, or for smaller positions [1].

  4. Liquidator takes collateral plus a bonus

    An equivalent value of the borrower’s collateral, plus a liquidation bonus [1].

StepValue
Health factor = 7,400 × 0.80 ÷ 6,000≈ 0.987
Maximum repayable (above 0.95, both sides over $2,000) = 50% × 6,000$3,000
Collateral the liquidator receives = 3,000 × 1.05$3,150
Position afterwards$4,250 collateral, $3,000 debt
New health factor = 4,250 × 0.80 ÷ 3,000≈ 1.133
Extra cost to the borrower (the bonus)$150

The borrower keeps the $6,000 they borrowed but loses $3,150 of collateral to clear $3,000 of debt. Aave’s newer v4 documentation describes liquidation bonuses that follow a Dutch auction, so lower health factors bring higher bonuses [8].

ethereum.org compares DeFi liquidations to margin calls in traditional finance and notes that the borrower usually pays a hefty liquidation fee, part of which goes to the liquidator [9]. Aave adds that partial liquidations must leave at least $1,000 of both collateral and debt; otherwise the position must be fully cleared [1].

Where does the protocol get its prices?#

A smart contract cannot look up prices on the internet. It relies on an oracle, a service that brings outside data on-chain. ethereum.org explains that a lending protocol needs current market prices for deposited collateral to work out how much can be borrowed [10]. ethereum.org calls the difficulty of getting correct, up-to-date outside data on-chain the “oracle problem”: data from an oracle must be correct for a smart contract to execute correctly [10]. For a lender, a wrong price means a wrong view of every position’s collateral. Aave V3 added protections such as supply and borrow caps to limit risks like oracle manipulation [4].

What are E-Mode and other special modes?#

Aave V3 introduced High Efficiency Mode (E-Mode) for assets whose prices move together, such as stablecoins. In the paper’s example, an E-Mode stablecoin category has a 97% LTV, a 98% liquidation threshold and a 2% liquidation bonus [4]. Higher limits mean more borrowing power and a thinner buffer: at the maximum 97% loan, the health factor is only about 1.01, so a fall of about 1% in the collateral’s value relative to the debt would reach the liquidation line. Isolation Mode lets governance list an asset as “isolated”: borrowers using it as collateral can borrow only stablecoins approved for this mode, and only up to a set debt ceiling [4].

What are the main risks for lenders and borrowers?#

Who carries which risk
RiskHits borrowersHits suppliers
Collateral price fallsLiquidation and bonus costUsually protected — unless prices gap faster than liquidations
Oracle error or manipulationWrongful liquidationBad debt if collateral was overvalued
Smart contract bug or hackLoss of collateralLoss of deposits
Stablecoin de-pegDebt or collateral value jumpsDeposits worth less than $1 each
Pool fully borrowedRates riseWithdrawals may have to wait

Our general summary of how these risks fall, not taken from a single source. Each protocol’s documentation describes its own safeguards.

Aave lending rules in one box

Liquidation trigger
Health factor below 1 [1]
Max share of debt liquidated (HF above 0.95, both sides ≥ $2,000)
50% [1]
Max share of debt liquidated (HF 0.95 or below, or small positions)
100% [1]
Minimum left after a partial liquidation
$1,000 of both collateral and debt [1]
Who can liquidate
Anyone (permissionless) [1]

What mistakes do beginners make here?#

  • Borrowing up to the maximum

    At the maximum LTV, a single-digit percentage fall in collateral can reach the liquidation line. The smaller the loan relative to the collateral, the larger the fall needed before liquidation.

  • Watching the price but not the health factor

    Both collateral and debt move. Borrowing a volatile token can push your health factor down even if your collateral holds steady.

  • Forgetting interest

    Debt grows over time with interest, slowly lowering the health factor even when prices do not move.

  • Assuming you can always withdraw supplied funds

    If most of a pool is borrowed, there may not be enough left for every supplier to withdraw at once.

  • Treating the liquidation as the end of the loss

    The liquidation bonus is paid from your collateral, so you lose more than the debt that is repaid.

Frequently asked questions#

Can I borrow in DeFi without collateral?

Ordinary loans require collateral. Flash loans are an exception: borrowed and repaid within one transaction, or the transaction reverts as if nothing happened [3]. They are a tool for developers, not a way to get cash.

What health factor is safe?

Aave says there is no universally safe level; it depends on the volatility and correlation of your assets [1]. Lower debt means a bigger buffer.

How do I improve my health factor?

Supply more collateral or repay part of the loan [1].

Who are the liquidators?

Usually automated bots. Aave notes that liquidations are highly competitive and often need custom-coded bots [1]; ethereum.org describes searchers racing to submit liquidation transactions first [9].

Is borrowing against crypto a way to avoid selling?

It can let you keep a token while getting stablecoins, as ethereum.org describes [3], but it adds liquidation risk. Tax treatment depends on your country; we do not give tax advice.

Why did my borrowing rate jump suddenly?

In Aave’s model the variable rate follows utilization, and above the optimal usage ratio a second, separate slope applies [2]. If many people borrow from the same pool, utilization rises and so can your rate.

The bottom line#

DeFi lending is a machine with simple rules: deposit to earn what borrowers pay, borrow only against collateral, and get liquidated automatically if the health factor drops below 1. The rules are public and enforced by code, which is useful — but they are also unforgiving, and the parameters behind them can change.

To understand the tokens most often borrowed and lent, read how stablecoins keep their peg. To see how analysts measure the money deposited in protocols like these, see total value locked.

Sources#

Grade A = primary source (regulator, protocol specification, client code, original author). Grade B = expert secondary source used for explanation only.

  1. AAave (help centre). Health Factor & Liquidations, 2026.
  2. AAave (aave/aave-v3-core on GitHub). DefaultReserveInterestRateStrategy.sol (Aave V3 core contracts), 2026. Source code, master branch, retrieved 3 October 2026.
  3. Aethereum.org. What is DeFi?, 2026.
  4. AEmilio Frangella, Lasse Herskind (Aave). Aave V3 Technical Paper, 2022.
  5. AU.S. Department of the Treasury — President’s Working Group on Financial Markets, FDIC and OCC. Report on Stablecoins (interagency report), 2021.
  6. Aethereum.org. Stablecoins explained: What are they for?, 2026.
  7. AEuropean Supervisory Authorities (EBA, ESMA, EIOPA). EU financial regulators warn consumers on the risks of crypto-assets, 2022.
  8. AAave Protocol Documentation. Liquidations (Aave v4 documentation), 2026.
  9. Aethereum.org. Maximal extractable value (MEV), 2026.
  10. Aethereum.org. Oracles, 2026.