The Health Factor (HF) is a numerical ratio that quantifies the risk of a loan being liquidated in a DeFi lending protocol like Aave or Compound. It is calculated by dividing the total value of a user's collateral (in USD) by the total value of their borrowed assets, with both values adjusted by their respective collateral factors (or Loan-to-Value ratios). A higher Health Factor indicates a safer, more overcollateralized position, while a value approaching 1.0 signals imminent liquidation risk. For example, an HF of 2.0 means the collateral value is twice the adjusted debt value.
Health Factor
What is Health Factor?
A core risk metric in decentralized finance (DeFi) lending protocols that measures the safety of a user's collateralized debt position.
The primary function of the Health Factor is to trigger automatic liquidations to protect the protocol from bad debt. If market volatility causes the value of the collateral to fall or the borrowed debt to rise, the HF will decrease. Each protocol sets a specific liquidation threshold (commonly an HF of 1.0). When a user's Health Factor drops below this threshold, their position becomes eligible for liquidation, where a portion of their collateral is automatically sold by liquidators to repay the debt, incurring a liquidation penalty for the borrower.
Users must actively monitor their Health Factor to avoid liquidation. It dynamically changes with market prices for both collateral and borrowed assets. To improve a low Health Factor, a user can either deposit more collateral or repay a portion of their debt. This metric is foundational to the overcollateralized lending model, allowing for permissionless borrowing without credit checks by ensuring the protocol always remains solvent. Understanding and managing HF is therefore crucial for any DeFi participant engaging in lending or leverage strategies.
How Health Factor Works
A technical overview of the Health Factor, a critical risk metric in decentralized finance (DeFi) lending protocols.
The Health Factor (HF) is a numerical metric used by lending protocols like Aave and Compound to measure the safety of a user's collateralized debt position (CDP). It is calculated as the ratio of the total collateral value (adjusted by its liquidation threshold) to the total borrowed value. An HF greater than 1.0 indicates a safe position, while an HF dropping to or below 1.0 triggers liquidation, where the protocol automatically sells a portion of the collateral to repay the debt and restore solvency. This mechanism protects the protocol from undercollateralized loans.
The calculation is dynamic and responds to market volatility. For example, if a user deposits 10 ETH (valued at $30,000) as collateral with a 75% liquidation threshold and borrows $15,000 in stablecoins, their Health Factor would be ($30,000 * 0.75) / $15,000 = 1.5. If the price of ETH drops by 20%, the new collateral value is $24,000, and the HF becomes ($24,000 * 0.75) / $15,000 = 1.2. This demonstrates how price fluctuations directly impact the safety buffer. Each asset in a protocol has a specific loan-to-value (LTV) and liquidation threshold, which are factored into the aggregate HF for a portfolio of multiple collateral and debt assets.
Users must actively monitor their Health Factor to avoid liquidation. Key actions that affect the HF include: - Depositing more collateral, which increases the numerator and raises the HF. - Repaying borrowed assets, which decreases the denominator and raises the HF. - Market price movements of collateral or borrowed assets, which can cause the HF to fluctuate unpredictably. Protocols often provide liquidation thresholds (e.g., 1.0 for major assets, higher for volatile ones) and may offer warnings when a user's HF approaches dangerous levels. Maintaining a significantly higher HF (e.g., above 1.5 or 2.0) is considered prudent risk management to withstand normal market volatility.
Key Features of Health Factor
The Health Factor is a core risk metric in DeFi lending protocols that quantifies the safety margin of a borrower's collateralized position. It is a dynamic ratio calculated in real-time based on market prices.
Liquidation Threshold
The Liquidation Threshold is the maximum Loan-to-Value (LTV) ratio at which a position can be borrowed against before it becomes eligible for liquidation. It is a protocol-defined parameter set per collateral asset, representing a safety buffer below the collateral's total value. For example, if ETH has an 80% threshold, a $100 deposit can borrow up to $80 before the Health Factor drops to 1.0.
- Risk Parameter: Set by governance based on asset volatility.
- Buffer Zone: Creates a margin of safety between borrowing and liquidation.
Real-Time Price Oracle Dependency
The Health Factor is highly sensitive to oracle-reported prices. It is recalculated continuously using real-time market data feeds to determine the current value of collateral and debt.
- Volatility Impact: Sudden price drops in collateral or spikes in borrowed assets can cause rapid Health Factor decay.
- Oracle Security: Relies on decentralized oracles (e.g., Chainlink) to prevent manipulation.
- Example: If the price of your collateralized ETH falls 10%, your Health Factor decreases proportionally, increasing liquidation risk.
The Liquidation Line (HF = 1.0)
A Health Factor of exactly 1.0 is the critical threshold where the value of the collateral equals the liquidation value of the debt. Crossing below this line triggers the liquidation process.
- Automatic Trigger: The protocol's smart contracts automatically flag positions with HF < 1.0.
- Liquidation Penalty: Borrowers incur an additional fee (e.g., 5-15%) paid to liquidators.
- Key Distinction: HF > 1.0 = safe, HF <= 1.0 = liquidatable.
Multi-Asset Portfolio Calculation
For positions with multiple collateral and debt assets, the Health Factor is an aggregate metric. It sums the total liquidation value of all collateral and compares it to the total debt value across all borrowed assets.
- Formula:
HF = (Σ Collateral_i * Price_i * LiquidationThreshold_i) / Σ Debt_j * Price_j - Diversification Effect: Using less-correlated assets can reduce portfolio risk.
- Cross-Asset Risk: A drop in one collateral asset can endanger the entire position, even if others are stable.
Primary User Actions to Improve HF
Users can directly increase their Health Factor through two main on-chain actions:
- Deposit More Collateral: Adding more assets to the position increases the numerator in the HF ratio.
- Repay Debt: Reducing the borrowed amount decreases the denominator in the HF ratio.
Proactive Management is required, as the HF can deteriorate passively due to market movements, accrued interest, or governance parameter updates.
Protocol Design & Safety Buffers
Protocols design Health Factor mechanics with embedded safety buffers to protect the system's solvency and give users time to react.
- Liquidation Threshold < LTV Ratio: The threshold is always set lower than the maximum LTV for initial borrowing.
- Health Factor Warnings: Many interfaces show color-coded warnings (e.g., green > 2.0, yellow 1.0-2.0, red < 1.0).
- Goal: Maintain a system where
Total Collateral Value > Total Debt Valueat all times to ensure over-collateralization.
Health Factor vs. Related Metrics
A comparison of Health Factor with other key risk and collateral metrics used in DeFi lending protocols.
| Metric / Feature | Health Factor (HF) | Loan-to-Value (LTV) | Collateral Factor (CF) | Liquidation Threshold (LT) |
|---|---|---|---|---|
Primary Purpose | Real-time risk indicator for a specific position | Maximum initial loan amount against collateral | Borrowing power coefficient for an asset | Collateral value at which liquidation is triggered |
Typical Range |
| e.g., 75% for ETH | e.g., 80% for ETH | e.g., 82% for ETH |
Direction of Safety | Higher is safer | Lower is safer (more conservative) | Lower is safer (more conservative) | Higher is safer (more buffer) |
Formula (Simplified) | ∑(Collateral * LT Price) / ∑(Debt) | Loan Amount / Collateral Value | Synonym for LTV in some protocols | Fixed parameter per asset |
Dynamic vs. Static | Dynamic (changes with prices & debt) | Static (used at loan origination) | Static (protocol parameter) | Static (protocol parameter) |
Trigger for Action | HF < 1.0 initiates liquidation | Exceeding max LTV prevents new borrowing | Defines borrowing limit for an asset | Defines the HF = 1.0 boundary |
User-Facing Display | Prominently shown in UI | Shown in asset details | Often shown as Max LTV | Shown in asset details / docs |
Direct Control by User | Indirect (via managing debt/collateral) | Yes (when taking a loan) | No (set by protocol governance) | No (set by protocol governance) |
Protocol Implementation Examples
The Health Factor is a core risk metric in lending protocols, calculated as the ratio of a user's collateral value to their borrowed value. Different protocols implement this concept with unique formulas, liquidation thresholds, and safety mechanisms.
Key Implementation Variables
Protocols customize health factors by adjusting core parameters:
- Loan-to-Value (LTV) Ratio: Max borrow amount against collateral.
- Liquidation Threshold: The HF level that triggers liquidation (often > LTV for a buffer).
- Liquidation Penalty: Fee applied to the debt during liquidation.
- Price Oracle Security: The reliability of the asset price feed is critical, as a stale price can cause false liquidations or missed ones.
Health Factor
A Health Factor is a numerical metric used in decentralized lending protocols to measure the risk of a user's collateralized debt position being liquidated. It is calculated as the ratio of the total collateral value to the total borrowed value, adjusted for asset-specific risk parameters.
Core Calculation
The Health Factor (HF) is computed as: HF = (Σ Collateral Value × Collateral Factor) / Σ Borrowed Value. A Collateral Factor (or Loan-to-Value ratio) is a risk parameter, set per asset, that discounts the collateral's value. For example, if you deposit $100 of ETH (Collateral Factor: 0.8) and borrow $50 of USDC, your HF is (100 * 0.8) / 50 = 1.6.
Liquidation Threshold
A Health Factor falling below 1.0 triggers liquidation. This safety mechanism ensures the protocol remains solvent. Different protocols may have varying thresholds (e.g., Aave triggers at HF < 1.0, while Compound uses a close factor model). Users must monitor their HF and can improve it by:
- Adding more collateral
- Repaying borrowed assets
- Supplying less volatile collateral assets.
Key Risk Parameters
Protocol governance sets parameters that directly impact the Health Factor:
- Collateral Factor (LTV): The maximum percentage of an asset's value that can be borrowed against (e.g., 75% for ETH).
- Liquidation Threshold: The HF level at which liquidation begins.
- Liquidation Penalty: An additional fee charged during liquidation, paid to the liquidator. These parameters are asset-specific, reflecting volatility and liquidity risks.
Real-World Example: Aave & Compound
Aave V3: Displays HF prominently in its UI. If HF ≤ 1.0, the position is eligible for liquidation.
Compound Finance: Uses a similar model called Collateral Factor. A user's account becomes undercollateralized when (Borrows × 100) / (Collateral × Collateral Factor) > 100.
Both models create a safety buffer between the borrowing power and the liquidation point.
Oracle Dependency & Volatility
Health Factor is highly dependent on price oracles. A sudden drop in collateral price or a spike in borrowed asset price can cause HF to plummet, triggering instantaneous liquidations. This is a key systemic risk during market volatility. Protocols use time-weighted average prices (TWAPs) and multiple oracle sources to mitigate manipulation.
Related Concepts
- Loan-to-Value (LTV): The inverse of the collateral factor; the borrow amount divided by collateral value.
- Liquidation: The process of forcibly selling a user's collateral to repay their debt when HF < 1.
- Collateralization Ratio: A similar metric used in systems like MakerDAO, representing total collateral value divided by debt (e.g., a 150% ratio).
- Account Health: A general term for the state of a borrowing position.
Visualizing Health Factor Dynamics
An exploration of how a loan's Health Factor is calculated and the critical thresholds that determine its safety and risk of liquidation.
The Health Factor (HF) is a real-time, numerical metric that quantifies the safety margin of a collateralized debt position (CDP) in decentralized finance (DeFi) lending protocols like Aave and Compound. It is calculated as the ratio of the user's collateral value (adjusted by its Loan-to-Value (LTV) ratio) to their total borrowed value, expressed in the borrowed asset. The formula is typically: Health Factor = (Σ Collateral Amount * Collateral Price * LTV) / (Σ Borrowed Amount * Borrowed Price). A higher HF indicates a safer, more overcollateralized position.
Visualizing this metric involves tracking its movement relative to two key thresholds. The liquidation threshold, set by the protocol for each asset, is the critical line; if the HF falls to or below 1.0, the position becomes eligible for liquidation. Protocols often set a higher target health factor (e.g., 1.5 or 2.0) as a recommended safety buffer. Monitoring tools and dashboards graphically display the HF's proximity to these lines, often using color codes—green for safe, yellow for caution, and red for danger—giving users an immediate visual cue of their position's risk.
Several dynamic forces cause the Health Factor to fluctuate. The most common are price volatility of the collateral and borrowed assets, which changes the numerator and denominator of the HF formula. A drop in collateral price or a rise in debt value pushes the HF down. Other factors include interest accrual on the debt, which steadily increases the denominator, and actions by the user such as depositing more collateral (increasing HF) or borrowing more assets (decreasing HF). Real-time charts that plot HF against asset prices are essential for proactive management.
For effective risk management, users must understand the liquidation process triggered when HF ≤ 1.0. A portion of the user's collateral is sold by a liquidator at a discount to repay the debt, incurring a liquidation penalty for the borrower. To avoid this, users can take corrective actions visualized as "levers" to pull: adding collateral, repaying debt, or a combination of both. Advanced interfaces may offer simulations, showing how a proposed action (e.g., repaying 10% of the debt) would immediately improve the projected Health Factor.
Beyond individual positions, aggregate Health Factor data is crucial for protocol-level risk analysis. Analysts and developers monitor the distribution of HF across all users to assess systemic risk within a lending pool. A concentration of positions with low health factors indicates vulnerability to a market downturn that could trigger cascading liquidations. This macro visualization helps in parameter governance, such as adjusting LTV or liquidation thresholds, and is a key metric for auditors and risk assessors evaluating the stability of a DeFi protocol.
Common Misconceptions About Health Factor
Health Factor is a critical risk metric in DeFi lending, but its mechanics are often misunderstood. This section clarifies prevalent myths to help users manage positions more effectively.
No, a Health Factor of 1.0 is not safe; it is the exact threshold for liquidation. A Health Factor (HF) is calculated as (Collateral Value * Liquidation Threshold) / Total Borrowed Value. When HF reaches 1.0, your collateral value, discounted by the liquidation threshold, exactly equals your debt, triggering an immediate liquidation. Due to price volatility and network congestion, a position at 1.01 can be liquidated within minutes if asset prices move unfavorably or a liquidator's transaction is processed first. Safe management requires maintaining a significant buffer, often above 1.5 or 2.0, depending on asset volatility.
Technical Deep Dive
The Health Factor is a critical risk metric in DeFi lending protocols, representing a user's loan collateralization level and proximity to liquidation.
A Health Factor (HF) is a numerical metric used by decentralized lending protocols to assess the risk of a user's borrowed position relative to their supplied collateral. It is calculated as the ratio of the total collateral value (adjusted by its Loan-to-Value (LTV) ratio) to the total borrowed value. An HF above 1.0 indicates a safe, overcollateralized position, while an HF at or below 1.0 triggers liquidation, where collateral is automatically sold to repay the debt. For example, on Aave and Compound, a typical safe HF is >1.5, with liquidations occurring at HF ≤ 1.0.
Key Components:
- Total Collateral Value (in USD): The sum of all deposited assets.
- Collateral Factor / LTV: The maximum percentage of an asset's value that can be borrowed against.
- Total Borrowed Value (in USD): The sum of all outstanding loans plus accrued interest.
Frequently Asked Questions (FAQ)
Common questions about the Health Factor, a core risk metric in DeFi lending protocols that determines the safety of a user's collateralized debt position.
A Health Factor (HF) is a numerical metric used in decentralized lending protocols to measure the safety of a user's collateralized debt position. It is calculated as the ratio of the Total Collateral Value (in USD) multiplied by the Liquidation Threshold to the Total Borrowed Value (in USD). For example, if you have $10,000 of ETH as collateral with an 80% liquidation threshold and have borrowed $5,000 of USDC, your Health Factor is ($10,000 * 0.80) / $5,000 = 1.6. The protocol uses this number to determine if your position is at risk of being liquidated. A Health Factor above 1.0 is considered safe, while a Health Factor at or below 1.0 triggers liquidation.
Get In Touch
today.
Our experts will offer a free quote and a 30min call to discuss your project.