Quick answer
The health factor in DeFi is a single number that shows how close a collateralized loan is to liquidation: above 1 the position is safe, at or below 1 it can be liquidated. It is calculated by multiplying the value of your collateral by its liquidation threshold and dividing the result by the value of your debt.
The related collateral ratio expresses the same relationship as a percentage of collateral to debt. Both move every time prices change, so a loan that looks comfortable today can approach liquidation after a sharp market drop. Understanding the health factor DeFi lending apps display is the core of borrowing safely.
Key terms: collateral ratio, LTV and thresholds
DeFi loans are overcollateralized: you lock more value than you borrow. If you are new to the mechanics, start with our guide to DeFi lending and borrowing. Four terms do most of the work:
Collateral ratio
Collateral value divided by debt value, shown as a percentage. Depositing $10,000 and borrowing $4,000 gives a collateral ratio of 250%. Some protocols set a minimum collateral ratio, such as 150% for a given asset, below which the position is liquidated.
Loan to value (LTV)
The inverse view: debt divided by collateral. The same $4,000 debt on $10,000 collateral is a 40% loan to value. Each asset has a maximum LTV that caps how much you can borrow against it.
Borrow limit
Collateral value multiplied by maximum LTV. With $10,000 collateral and a 75% maximum LTV, the borrow limit is $7,500. Reaching it does not trigger liquidation, but it blocks further borrowing.
Liquidation threshold
The LTV at which the position becomes eligible for liquidation. It is set a little above the maximum LTV, for example 80%, to create a buffer. The health factor is built on this threshold, not on the maximum LTV.
Health factor DeFi formula: how it is calculated
In protocols that use this metric, such as Aave, the formula is:
Health factor = (collateral value x liquidation threshold) / total debt value
With several collateral assets, each one is multiplied by its own threshold and the results are added together. Hypothetical example: you deposit collateral worth $10,000 with an 80% liquidation threshold and borrow $4,000 of a stablecoin. The health factor is $10,000 x 0.80 / $4,000 = 2.0.
A health factor of 2.0 means the risk-adjusted collateral is twice the debt. It can halve before liquidation becomes possible, assuming the debt value stays the same.
What moves the health factor
The number is not fixed after you open the loan. It changes when any input changes:
Collateral price falls. The most common cause of liquidations. A volatile collateral asset can lose a large share of its value in hours.
Debt asset price rises. If you borrow a volatile token rather than a stablecoin, a rally in that token increases your debt in dollar terms.
Interest accrues. Borrow interest is added to the debt continuously, slowly lowering the health factor even in a flat market.
Parameter changes. Governance can adjust thresholds or LTVs for an asset, which can change the health factor of existing positions.
Stablecoin depegs. If a stablecoin used as collateral loses its peg, or a stablecoin you borrowed trades above $1, the ratio shifts. Our article on stablecoin depegging explains how that happens.

What happens when the health factor drops below 1
Once the health factor falls to 1 or below, the position becomes open to liquidation. Liquidators, often automated bots, repay part of your debt and receive a matching amount of your collateral plus a liquidation bonus. That bonus is effectively a penalty paid by the borrower.
Liquidation usually does not wipe out the whole position at once. Many protocols allow only a portion of the debt to be repaid per liquidation, though larger shares can be liquidated if the health factor falls very low. Either way, you lose collateral at a discount, and in a fast crash several liquidations can happen in a row.
Price data comes from oracles, so liquidation follows the oracle price rather than the price on any single exchange. Gas spikes during market stress can also make it expensive to rescue a position at the last minute.
Worked example: borrowing at the limit vs borrowing conservatively
These numbers are hypothetical and only illustrate the math. Assume 5 units of a token at $2,000 each, so $10,000 of collateral, with a 75% maximum LTV and an 80% liquidation threshold. You borrow a stablecoin.
Conservative loan: borrow $4,000. Health factor = 8,000 / 4,000 = 2.0. Liquidation starts when collateral is worth $4,000 / 0.80 = $5,000, a token price of $1,000. The token can fall 50% before liquidation.
Loan at the borrow limit: borrow $7,500. Health factor = 8,000 / 7,500, about 1.07. Liquidation starts when collateral is worth $7,500 / 0.80 = $9,375, a token price of $1,875. A drop of only 6.25% is enough.
The difference between these two positions is not the protocol but the choice of how much to borrow. Your liquidation price is simply debt divided by (collateral amount x liquidation threshold), so it is worth calculating before you borrow.
DeFi risk management for borrowers
Pick a target health factor. Many cautious borrowers aim well above 1.5 for volatile collateral. There is no universal safe number, but buffers matter more as volatility rises.
Know your liquidation price. Write it down and compare it with the asset's recent swings.
Prefer stable debt against volatile collateral. Borrowing a volatile asset adds a second source of risk.
Keep a top-up reserve. Funds ready to add collateral or repay debt can save a position during a drop.
Set alerts. Use the protocol interface or a third-party tracker to warn you when the health factor falls below your chosen level.
Watch loops and leverage. Re-depositing borrowed funds to borrow again multiplies exposure. See our leveraged lending strategy article for how quickly this tightens the margin.
Crypto prices are volatile and smart contracts carry their own risks, so do your own research before borrowing.
How different protocols present the same idea
Not every lending app uses the term health factor. Some show a collateralization ratio with a minimum required level, others show borrowing power used as a percentage, or a liquidation risk bar. The underlying logic is the same: collateral, adjusted for risk, must stay above debt. Read each protocol's documentation for its exact thresholds, liquidation bonus and oracle setup. For a hands-on walkthrough, see our Aave depositing and lending instruction.
FAQ
What is a good health factor for a DeFi loan?
Anything above 1 avoids liquidation, but a small buffer can vanish in one volatile day. Many borrowers keep a much higher level for volatile collateral and adjust it to the asset's typical swings.
What is the difference between LTV and liquidation threshold?
Maximum LTV limits how much you can borrow. The liquidation threshold is a slightly higher level at which the position becomes eligible for liquidation.
Can my health factor fall if prices do not move?
Yes. Borrow interest keeps adding to the debt, and governance can change asset parameters, both of which can lower the health factor over time.
How do I raise my health factor?
Add more collateral, repay part of the debt, or switch to collateral with a higher liquidation threshold. Each option increases the ratio of risk-adjusted collateral to debt.
Do I lose everything when liquidated?
Usually not. Liquidators repay part of the debt and take collateral plus a bonus, so you lose that portion and the penalty, while the rest of the position remains.



