DeFi Lending
DeFi lending lets people deposit crypto into smart-contract money markets such as Aave to earn interest, while borrowers pledge more crypto than they take out. If the collateral falls too far in value, the protocol lets anyone sell it to repay the loan.
DeFi lending is borrowing and lending run by code instead of a bank. Depositors pool their tokens in a Smart Contract, borrowers lock up Collateral worth more than their loan, and the rates move with demand. There is no loan officer and no phone call before a margin problem: once a position crosses the protocol’s line, it can be liquidated within seconds. This entry explains how money markets such as Aave (AAVE), Compound (COMP) and Morpho (MORPHO) work, how the health factor is calculated, and where the risks sit.
- Category
- Cryptocurrency and Blockchain
- Reading time
- 6 min
- Also called
- Crypto lending, Lending protocol, Borrowing crypto
- Updated
DeFi lending in plain words
Lenders deposit tokens into a shared pool and earn interest, while borrowers draw from pools that lenders fund.1 Neither side has to identify itself or pass a credit check.1
Instead of a credit score, the protocol relies on collateral. Each collateral asset has a factor that sets what share of its value can be borrowed; at 85%, for example, $100 of a token supports up to $85 of debt.2
If prices move against the borrower and the position becomes unsafe, anyone can repay part of the debt and take collateral at a discount. That is a Liquidation.3
How a DeFi loan works, step by step
Supply collateral
Deposit a token the market accepts as collateral. In Compound III, collateral raises borrowing power but earns no interest.2
Check the limits
Each collateral asset has a liquidation threshold set by governance, and a share of its value that can be borrowed.3 See Loan-to-Value Ratio.
Borrow
Take out the loan asset, often a Stablecoin. The borrow must stay inside the collateral limits.2
Pay a floating rate
Rates follow utilization: borrows divided by supply. Past a set kink they rise much faster.4
Watch the health factor
Health factor = collateral value × liquidation threshold ÷ debt. Below 1, the position can be liquidated.3
Repay or top up
Repaying debt or adding collateral lifts the health factor. Interest keeps accruing every second until you do.4
Worked examples
Example 1 — Opening a loan
HealthyHypothetical: you deposit $10,000 of ETH in a market with an 80% liquidation threshold and borrow $6,000 of a stablecoin.
| Collateral × threshold | $10,000 × 0.80 = $8,000 |
| Debt | $6,000 |
| Health factor | $8,000 ÷ $6,000 = 1.33 |
A health factor above 1 means the position is safe for now; the gap above 1 is your buffer.3
Example 2 — ETH falls 30%
LiquidatableHypothetical: the same ETH collateral drops from $10,000 to $7,000. The debt is unchanged.
| Collateral × threshold | $7,000 × 0.80 = $5,600 |
| Debt | $6,000 |
| Health factor | $5,600 ÷ $6,000 = 0.93 |
Below 1, anyone can liquidate. In Aave, a health factor of 0.95 or lower allows up to 100% of the debt to be liquidated in one go.3
Example 3 — Finding the liquidation price
Safety marginHypothetical: you borrow $40,000 against 1 wrapped BTC priced at $80,000 in a market with an 80% liquidation LTV.
| Loan-to-value now | $40,000 ÷ $80,000 = 50% |
| Collateral × LLTV | 1 × 0.80 = 0.80 |
| Liquidation price | $40,000 ÷ 0.80 = $50,000 |
Liquidation price = debt ÷ (collateral amount × LLTV). Accrued interest raises the debt, so this price creeps up even if BTC does not move.5
DeFi loan vs. broker margin loan
| Aspect | DeFi lending | Broker margin |
|---|---|---|
| Who lends | A pool funded by depositors | The broker |
| Identity check | None | Account opening and checks |
| Risk control | Health factor and liquidation | Maintenance margin and Margin Call |
| Who sells collateral | Any liquidator, often a bot | The broker |
| Rate | Floats with pool utilization | Set by the broker |
Why people use DeFi lending
Earn on idle tokens
Suppliers of the loan asset earn the pool’s supply rate.4
Borrow without selling
Borrowing against ETH avoids selling it, which can be a taxable event.1
Leverage
Borrowed stablecoins can buy more of the collateral asset, which magnifies both gains and losses.
Building block
Other strategies such as Yield Farming and Flash Loan arbitrage rely on lending pools.
Advantages and disadvantages
Advantages
Disadvantages
- Loans must be overcollateralized, so capital efficiency is low.
- Liquidation is automatic and fast, with a bonus paid out of your collateral.5
- Smart-contract bugs and exploits can cause losses.1 See Reentrancy and Oracle Manipulation.
- Prices come from oracles; a bad price feed can trigger wrong liquidations. See Blockchain Oracle.
Going deeper
Read as far as you need. Each level builds on the one before it.
Collateral first, loan second
Beginner
A DeFi loan works like a pawn shop that never closes: you hand over more value than you borrow, and if your pledged item loses too much value, it is sold. The health factor is the number that tells you how close you are.
Utilization and the kink
Intermediate
Utilization is total borrows divided by total supply. Below a governance-set kink the rate rises gently; above it, a steeper slope applies to push utilization back down.4
When a pool is almost fully borrowed, lenders may not be able to withdraw until borrowers repay or new deposits arrive, which is why the steep slope exists.
Liquidation incentives and bad debt
Advanced
In Morpho, the liquidation incentive depends on the market’s LLTV: at an 86% LLTV the liquidator receives about 4.4% more collateral than the debt it repays.5
If collateral falls faster than liquidators can act, a position can end up with more debt than collateral. How that bad debt is shared among lenders depends on the protocol and vault version.5
Aave lets liquidators clear at most half of the debt while the health factor is above 0.95 and the position is not small, and all of it at 0.95 or below.3
Common mistakes
Borrowing up to the limit
A health factor just above 1 leaves no room for a normal price swing.
Forgetting accrued interest
Debt grows every second, so the health factor drifts down even if prices are flat.4
Expecting collateral to earn yield
In Compound III, supplied collateral earns no interest.2
Ignoring protocol risk
Audits do not guarantee safety; bugs, oracle failures and governance changes all matter.
Check your understanding
Test yourself before moving on. Each answer comes with an explanation.
Key points to remember
- DeFi lending pools tokens from depositors and lends them to overcollateralized borrowers.
- Health factor = collateral value × liquidation threshold ÷ debt; below 1 means liquidation.
- Rates float with utilization and rise sharply above the kink.
- Liquidators are paid a bonus from the borrower’s collateral.
- Smart-contract, oracle and liquidity risk come on top of price risk.
Frequently asked questions
Why do DeFi loans need more collateral than the loan?
Who liquidates a DeFi position?
Is DeFi lending the same as lending on a crypto exchange?
Further learning
- Aave (AAVE)
The largest pool-based money market.
- Compound (COMP)
Utilization-based rates and single-asset borrowing.
- Morpho (MORPHO)
Isolated markets with a fixed liquidation LTV.
- Liquidation
What happens when collateral runs short.
Sources
This article is written in our own words. The sources below support the specific facts, rules and figures marked with a number in the text. Links open the original publisher’s page.
- ethereum.org. Decentralized finance (DeFi) (opens in a new tab) Checked .
- Compound Docs. Compound III collateral and borrowing (opens in a new tab) Checked .
- Aave. Liquidations (Aave Help Center) (opens in a new tab) Checked .
- Compound Docs. Compound III interest rates (opens in a new tab) Checked .
- Morpho. Liquidation (opens in a new tab) Checked .
Educational content, not financial advice. Examples use hypothetical prices and simplified costs; actual fees, margin rules and regulations vary by broker, market and country. We are not affiliated with any publisher linked above. Last reviewed . Report an error or request a source credit.