1. Home
  2. Crypto
  3. DeFi Lending and Borrowing

Guide · Crypto

DeFi Lending and Borrowing: Health Factor, Liquidation and Rates

DeFi lending protocols such as Aave and Compound let you deposit crypto to earn interest, or lock it up as collateral and borrow against it, without a bank or a credit check. There is no loan officer either. If your collateral falls far enough, a smart contract lets someone else repay part of your debt and take some of your collateral, plus a penalty, within seconds.

By Moneyncrypto team10 min readHow we work

This guide explains where the supply and borrow rates come from, how the health factor works, what happens in a liquidation and how much it costs, and how to keep a safe distance from it.

  • Liquidation startsHealth factor < 1on Aave
  • Aave v3 close factor50% of debt100% at health factor ≤ 0.95
  • Small positionsUnder $2,000can be liquidated in full on Aave v3
  • RatesVariablemove with pool utilisation

How a DeFi lending pool works

A lending protocol is a set of pools, one per asset. Suppliers deposit tokens into a pool and receive interest. Borrowers take tokens out of the pool, and pay interest, after depositing collateral worth more than what they borrow. Loans are over-collateralised: you cannot borrow $1,000 without first putting up more than $1,000 of something else.

That is the main difference from a bank loan. The protocol does not know who you are, so it cannot chase you for unpaid debt. Instead it holds your collateral and sells part of it if its value gets too close to the value of your debt.

Two designs are common:

  • Aave-style: many assets, and most of them can be both supplied and borrowed. Aave V4 went live on Ethereum at the end of March 2026 with a new design, while Aave V3 markets remain in use. This guide uses V3 rules unless it says otherwise.
  • Compound III-style: each market is built around a base asset, such as USDC, that borrowers take out and repay, plus a list of collateral assets that back those loans.

Enter your collateral, debt and liquidation threshold to see the price at which your loan can be liquidated.

Open the liquidation price calculator

Supply APY, borrow APY and utilisation

Rates in a lending pool are not set by a person. They follow a formula driven by utilisation, the share of the pool that is currently lent out:

utilisation = amount borrowed ÷ amount supplied

  • When utilisation is low, money is plentiful and the borrow rate is low.
  • As more of the pool is borrowed, the borrow rate rises. Aave describes its rate model as a base rate plus slopes for utilisation: above an optimal level the rate climbs much faster, to pull borrowers back and attract new supply.
  • Suppliers are paid from borrowers’ interest. Because only part of the pool is lent out, and protocols usually keep a share of the interest for their own reserves (on Aave this is called the reserve factor), the supply rate is lower than the borrow rate.

Example only. A USDC pool has $100 million supplied and $80 million borrowed, so utilisation is 80%. Borrowers pay 5% a year. Their interest is $4 million. If the protocol keeps 10% of it, suppliers share $3.6 million, which is 3.6% on $100 million. If a wave of borrowing pushes utilisation past the optimal point, the borrow rate can jump within minutes, and so can your cost if you are a borrower on a variable rate.

High utilisation has a second effect that suppliers often miss. If almost everything is lent out, there may not be enough cash in the pool for you to withdraw until borrowers repay or new suppliers arrive.

Collateral, LTV and liquidation threshold

Each collateral asset has two percentages set by the protocol’s governance:

  • Loan-to-value (LTV): the most you can borrow against it. Aave’s documentation gives the example of a 75% LTV, which lets you borrow up to 75% of the collateral’s value.
  • Liquidation threshold: a slightly higher percentage. Once your debt is larger than your collateral value multiplied by this threshold, you can be liquidated.

The gap between the two is your first buffer. Volatile assets get lower percentages; stablecoins and major assets get higher ones. The exact values differ by asset and market and change through governance votes, so read them on the asset’s page before you borrow.

The health factor

Aave sums up your position in one number:

health factor = (collateral value × liquidation threshold) ÷ debt value

Above 1 you are safe from liquidation. Below 1 anyone can liquidate you. Aave’s own help page gives the example of $10,000 of ETH supplied with an 80% liquidation threshold and $6,000 borrowed: a health factor of 1.33.

The health factor falls when your collateral price falls, when the price of what you borrowed rises, and slowly every day as interest is added to your debt.

Worked example: from a safe loan to liquidation

Example only, with made-up prices and parameters. You supply 5 ETH at $3,000, which is $15,000, as collateral. The liquidation threshold is 80%. You borrow $8,000 of USDC.

ETH priceCollateral valueHealth factorStatus
$3,000$15,0001.50Safe
$2,500$12,5001.25Safe, buffer shrinking
$2,200$11,0001.10Close to the line
$2,000$10,0001.00Liquidation price
$1,960$9,8000.98Can be liquidated

Your liquidation price is the price where the health factor hits 1: $8,000 ÷ (5 × 0.80) = $2,000. A 33% fall in ETH is all it takes.

At $1,960 a liquidator steps in. Because the health factor is above 0.95, on Aave V3 they can repay up to 50% of the debt, $4,000. They receive $4,000 of your ETH plus a liquidation bonus. If the bonus on this asset were 5%, they would take $4,200 of ETH, about 2.14 ETH.

Before liquidationAfter liquidation
Collateral5 ETH ($9,800)2.86 ETH ($5,600)
Debt$8,000$4,000
Health factor0.981.12
Cost to you$200 penalty, and you sold 2.14 ETH near the low

The penalty looks small, but the bigger cost is being forced to sell at the bottom of a fall. If ETH recovers to $3,000 a month later, the 2.14 ETH you lost would be worth about $6,430 against the $4,000 of debt it repaid.

Close factor and liquidation penalty

The close factor is how much of your debt a liquidator can repay in one go. According to Aave’s help pages for its current protocol:

  • Up to 50% of the total debt can be liquidated while the health factor is above 0.95 and both collateral and debt are worth at least $2,000.
  • Up to 100% can be liquidated once the health factor is 0.95 or lower, or when either collateral or debt is below $2,000.
  • A partial liquidation must leave at least $1,000 of both collateral and debt; otherwise the position is cleared in full.

The liquidation penalty, which Aave calls the liquidation bonus because it is the liquidator’s reward, is set per asset and comes out of your collateral. In Aave V4 the bonus works like a Dutch auction: according to Aave’s developer documentation, the lower the health factor, the higher the bonus. Compound III works differently: according to its documentation, an account past its liquidation limits is “absorbed”. The protocol takes over all of its debt and collateral and credits the borrower with the collateral’s value minus a penalty set per asset, paid in the base asset. The seized collateral is then sold to buyers at a discount.

Small loans are the most exposed. On Aave V3, a position under $2,000 can be wiped out in one liquidation rather than trimmed.

How to avoid liquidation

  • Borrow well below the maximum. Borrowing the full LTV leaves only the small gap to the liquidation threshold. A health factor of 2 or more means your collateral can roughly halve before liquidation, if the debt is a stablecoin.
  • Know your liquidation price and compare it with how far the asset has fallen in past crashes, not in a normal month.
  • Keep a top-up ready. Adding collateral or repaying part of the debt raises the health factor. Keep stablecoins in your wallet for this, because exchanges and networks get congested when prices crash.
  • Set alerts. Several wallets and dashboards can warn you when your health factor drops below a level you choose.
  • Avoid borrowing a volatile asset against another volatile asset. Both legs can move against you at once.
  • Watch the borrow rate. A variable rate that jumps can erode your health factor faster than you expect, and can make the loan cost more than the reason you took it.
  • Be careful with loops. Borrowing, re-depositing and borrowing again multiplies both the yield and the liquidation risk.

The other risks of DeFi lending

  • Smart-contract risk: a bug in the protocol can freeze or drain funds. Audits reduce this risk but do not remove it.
  • Oracle risk: liquidations depend on price feeds. A faulty or manipulated price can trigger liquidations that should not happen.
  • Bad debt: if collateral falls so fast that liquidations cannot cover the debt, the shortfall can fall on suppliers or on a protocol safety fund.
  • Stablecoin and collateral depegs: a stablecoin you supplied, or a wrapped token you use as collateral, can lose its peg.
  • Wallet security: your collateral is only as safe as the keys that control it. See how to store crypto safely.

DeFi loans vs CeFi crypto loans

Centralised lenders, apps and exchanges that offer crypto-backed loans or interest accounts, look similar from the outside: you deposit crypto and borrow against it or earn a rate. The difference is who controls the collateral and how the rules are enforced.

DeFi protocolCeFi lender
Who holds the collateralA smart contract you can inspectThe company
Liquidation rulesPublic code, automaticTerms of service, can change
Can lend out your coinsOnly through the pool’s rulesOften yes, at its discretion
Main failure riskCode bugs, oracles, bad debtCompany insolvency, frozen withdrawals
Identity checksUsually none at protocol levelYes

Neither is insured like a bank deposit. In 2022 several large CeFi crypto lenders froze withdrawals and went bankrupt, leaving customers as creditors. We cover what happened in stablecoin yields vs high-yield savings.

Key takeaway

DeFi loans are over-collateralised and enforced by code. Rates move with utilisation, and you are liquidated when your health factor drops below 1, losing part of your collateral plus a penalty. Borrow far below the limit, know your liquidation price and keep funds ready to top up.

Keep the keys to your collateral offline. When you borrow in DeFi, the wallet that holds the position is the only way to repay or add collateral. A hardware wallet keeps its private keys off your computer and asks you to confirm each transaction on the device. It does not protect you from liquidation if prices fall.

See Ledger hardware wallets

Frequently asked questions

What is a good health factor on Aave?

There is no official safe level, only the liquidation line at 1. Many borrowers stay well above it, often 2 or higher for volatile collateral, so a large price fall does not reach the line before they can react.

How much do you lose in a DeFi liquidation?

The liquidator repays part of your debt and takes the same value of your collateral plus a bonus set per asset. You keep the borrowed funds, but you lose the bonus and you sell collateral at a low price. On Aave V3 up to 50% of the debt can go in one liquidation, or all of it below a health factor of 0.95.

Why do borrow rates suddenly jump?

Because rates follow utilisation. When most of a pool is borrowed and it passes the optimal level, the rate model raises the borrow rate steeply to attract new supply and push borrowers to repay.

Can I always withdraw what I supplied?

Not always at once. If utilisation is close to 100%, there may not be enough unborrowed tokens in the pool until borrowers repay or new deposits arrive.

Is DeFi lending safer than a crypto lending app?

It carries different risks. You avoid trusting a company with your coins, but you take on smart-contract, oracle and liquidation risk. Neither is covered by deposit insurance.

This page contains affiliate links: if you buy through them we may earn a commission at no extra cost to you. How we make money.

Crypto is high-risk; you can lose all the money you put in. Lending and borrowing rates are variable, and the examples on this page use made-up prices and parameters.

For information only: this is not financial or investment advice. Products, prices and rules change, so check the provider's current terms and, if in doubt, speak to a qualified adviser before you decide.