Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
Free 30-min Web3 Consultation
Book Consultation
Smart Contract Security Audits
View Audit Services
Custom DeFi Protocol Development
Explore DeFi
Full-Stack Web3 dApp Development
View App Services
LABS
Glossary

Health Factor

A health factor is a numerical metric used in decentralized finance (DeFi) lending protocols to measure the risk level of a user's collateralized debt position (CDP).
Chainscore © 2026
definition
DEFI RISK METRIC

What is Health Factor?

A quantitative measure of the safety margin for a collateralized debt position in a decentralized finance (DeFi) lending protocol.

The Health Factor (HF) is a numerical value, typically expressed as a ratio like 1.5 or 2.0, that indicates the risk level of a user's borrowed position. It is calculated by dividing the total collateral value (in a base currency like USD) by the total borrowed value, often with adjustments for the liquidation threshold of each specific asset. A higher Health Factor signifies a safer, more overcollateralized position, while a value approaching 1.0 indicates imminent liquidation risk. For example, an HF of 2.0 means the collateral value is twice the borrowed value after threshold adjustments.

This metric is the core mechanism that enables permissionless lending without credit checks. Protocols like Aave and Compound continuously monitor this ratio using price oracles. If market volatility causes the value of the collateral to drop or the borrowed debt to increase, the Health Factor decreases. When it falls below a protocol-defined threshold (usually 1.0), the position becomes eligible for liquidation. At this point, keepers or liquidators can repay part of the debt in exchange for seizing the collateral at a discount, protecting the protocol from insolvency.

Users must actively manage their Health Factor to avoid liquidation. This can be done by depositing more collateral, repaying borrowed assets, or using a combination of both. The required minimum Health Factor varies by protocol and can even differ across money markets within the same protocol based on asset risk profiles. It is fundamentally a measure of solvency, ensuring the total value of the lending pool remains greater than the total liabilities, even during periods of high market stress and price slippage.

Understanding the components is key: the Loan-to-Value (LTV) ratio dictates how much can be borrowed initially, while the Liquidation Threshold is the LTV level at which liquidation triggers. The Health Factor dynamically reflects the gap between the current collateralization and this dangerous threshold. Advanced users monitor factors that affect HF, including interest accrual on variable-rate debts, which increases the borrowed amount over time, and the collateral factor of deposited assets, which determines their borrowing power.

how-it-works
DEFINITION & MECHANICS

How Health Factor Works

A technical overview of the Health Factor, a critical risk metric in decentralized finance (DeFi) lending protocols that determines the safety of a user's collateralized debt position.

The Health Factor (HF) is a numerical value, typically expressed as a ratio like 1.5 or 2.0, that represents the safety margin of a collateralized debt position (CDP) in a lending protocol. It is calculated by dividing the total collateral value (in the protocol's base currency, e.g., USD) by the total borrowed value, adjusted for each asset's liquidation threshold. A formula is often expressed as Health Factor = (Σ Collateral Amount * Collateral Price * Liquidation Threshold) / (Σ Borrowed Amount * Borrowed Price). When this value falls below 1.0, the position becomes undercollateralized and is eligible for liquidation.

The primary function of the Health Factor is to act as a real-time risk indicator for both the borrower and the protocol. For the borrower, it provides a clear gauge of how close their position is to being liquidated. For the protocol, it ensures the overall system remains solvent by triggering liquidations before the debt exceeds the value of the collateral. Key components influencing the HF are volatile asset prices (from oracles), the specific liquidation threshold set by governance for each collateral type (e.g., 80% for ETH, 65% for a riskier asset), and the accrual of borrow interest, which increases the debt side of the equation over time.

Users must actively manage their Health Factor to avoid liquidation. This can be done by depositing more collateral (increasing the numerator) or by repaying borrowed assets (decreasing the denominator). For example, if ETH price drops sharply, the collateral value in a user's position decreases, causing the HF to fall. To restore a healthy buffer, the user might deposit additional ETH. Protocols often display a "liquidation threshold" HF (e.g., 1.1) as a warning, and a "liquidation HF" at exactly 1.0, where any further decrease allows liquidators to repay part of the debt in exchange for seized collateral at a discount.

The Health Factor is intrinsically linked to a protocol's liquidation engine. When HF < 1.0, the position is flagged. Liquidators (often bots) can then repay a portion of the unhealthy debt and receive an equivalent value of the user's collateral, plus a liquidation bonus (or penalty for the borrower). This mechanism incentivizes rapid correction of undercollateralized positions, protecting the protocol from bad debt. Different protocols may implement variations, such as Compound Finance's Collateral Factor (which sets a borrowing limit) and Aave's distinct Health Factor and Loan-to-Value (LTV) ratios, but the core risk-management principle remains consistent.

Understanding and monitoring your Health Factor is a fundamental responsibility in DeFi borrowing. It is not a static number; it fluctuates with market conditions. Best practices include maintaining a significant safety margin above 1.0 (e.g., HF > 1.5), using price alert tools, and understanding the specific risk parameters of your chosen collateral assets. Failure to manage HF can result in a liquidation event, where a portion of your collateral is automatically sold, often at an unfavorable price, to repay your loan and keep the protocol solvent.

calculation-formula
DEFINITION

The Health Factor Formula

A precise mathematical expression used by DeFi lending protocols to quantify the risk of a user's collateralized debt position (CDP).

The Health Factor (HF) is a numerical metric, typically expressed as HF = (Total Collateral Value * Liquidation Threshold) / Total Borrowed Value. It acts as a real-time solvency ratio for a borrower's position within a decentralized finance (DeFi) lending protocol like Aave or Compound. A health factor greater than 1 (HF > 1) indicates the borrowed assets are sufficiently over-collateralized, keeping the position safe. As the value of the collateral falls or the borrowed debt rises, the health factor decreases, moving closer to the liquidation threshold of 1.

The formula's components are critical: Total Collateral Value is the sum of all deposited assets at current market prices. The Liquidation Threshold is a protocol-set parameter (e.g., 80% for ETH) representing the maximum percentage of the collateral's value that can be borrowed against; it acts as a safety buffer. Total Borrowed Value is the sum of all outstanding loans, plus accrued interest, valued in the same unit (often USD). This structure ensures that a position becomes eligible for liquidation when the borrowed value exceeds the discounted collateral value (HF <= 1), protecting the protocol from undercollateralized debt.

For example, if a user deposits $10,000 of ETH with a 75% liquidation threshold and borrows $5,000 of USDC, their health factor is ($10,000 * 0.75) / $5,000 = 1.5. If ETH's price drops, reducing the collateral value to $7,000, the HF becomes ($7,000 * 0.75) / $5,000 = 1.05. This positions the account dangerously close to liquidation. Monitoring this metric is essential for borrowers to manage risk, often requiring them to add more collateral or repay debt to increase their HF and avoid a costly liquidation event.

key-features
DECOMPOSED

Key Features of Health Factor

The Health Factor is a core risk metric in DeFi lending protocols, representing the safety margin for a user's collateralized debt position. It is calculated as the ratio of the collateral's value to the borrowed value, adjusted for asset-specific risk parameters.

01

Core Calculation

The Health Factor (HF) is calculated as HF = (Total Collateral Value * Collateral Factor) / Total Borrowed Value. The Collateral Factor (or Loan-to-Value ratio) is a risk parameter set by the protocol for each asset, representing the maximum percentage of its value that can be borrowed against. A higher HF indicates a safer position.

02

Liquidation Threshold

When the Health Factor drops to or below 1.0, the position becomes eligible for liquidation. This threshold signifies that the borrowed value (plus accrued interest) equals or exceeds the value of the collateral when discounted by its Liquidation Threshold (a separate, stricter parameter than the Collateral Factor). This buffer protects the protocol from undercollateralization.

03

Dynamic & Asset-Specific

The Health Factor is not static; it fluctuates based on:

  • Market Price Volatility: Changes in the oracle price of collateral or borrowed assets.
  • Accrued Interest: Borrowed amounts increase over time due to interest.
  • Protocol Parameters: Governance can adjust Collateral and Liquidation Factors for specific assets based on risk assessments.
04

Primary Risk Management Tool

For users, the HF is a real-time dashboard of position risk. For protocols like Aave and Compound, it is the central mechanism for ensuring solvency. Automated liquidation engines are triggered by low HF, allowing liquidators to repay a portion of the debt in exchange for seized collateral at a discount, restoring the protocol's health.

05

Comparison to Traditional Finance

The Health Factor is the DeFi analog to a Loan-to-Value (LTV) ratio in traditional margin lending or mortgages, but with key differences:

  • Real-time: Updates continuously with market prices via oracles.
  • Automated Enforcement: Liquidations are permissionless and algorithmic, not discretionary.
  • Multi-Asset: Often calculated across a basket of different collateral assets with varying risk profiles.
06

Improving Your Health Factor

Users can increase their Health Factor to avoid liquidation by:

  • Adding more collateral to the position.
  • Repaying a portion of the borrowed assets.
  • Swapping borrowed assets for ones with a higher collateral factor (if supported).
  • Closing the position entirely by repaying the full debt.
LIQUIDATION RISK ZONES

Health Factor Thresholds & Outcomes

Compares the risk level, protocol actions, and user options at different Health Factor (HF) values.

Health Factor (HF) RangeRisk ZoneProtocol ActionUser Action Required

HF > 2.0

Safe

None

None (Monitoring recommended)

1.5 < HF ≤ 2.0

Warning

None

Add collateral or repay debt to improve HF

1.1 < HF ≤ 1.5

Danger

Increased monitoring

Strongly advised to adjust position

1.0 < HF ≤ 1.1

Critical

Liquidation warnings triggered

Immediate adjustment required to avoid liquidation

HF ≤ 1.0

Liquidatable

Liquidation enabled

Position subject to partial or full liquidation by keepers

ecosystem-usage
IMPLEMENTATIONS

Protocols Using Health Factor

The Health Factor is a core risk metric pioneered by lending protocols. This section details the major platforms that have adopted and evolved the mechanism.

06

Key Variations & Comparisons

While the core concept is uniform, protocols implement Health Factor-like metrics with critical differences:

  • Calculation Inputs: Some use oracle prices with time-weighted averages (TWAP) to prevent manipulation.
  • Liquidation Mechanisms: Vary from auctions (Maker, Compound) to fixed discount sales (Aave V3, Liquity's Stability Pool).
  • Risk Parameter Governance: Set by decentralized governance (Aave, Compound) or algorithmically (Liquity).
  • Cross-Protocol Implications: A low HF on one protocol does not affect positions on another, highlighting isolated system risk.
security-considerations
HEALTH FACTOR

Security & Risk Considerations

The Health Factor is a critical risk metric in DeFi lending protocols, representing the safety margin of a borrower's collateralized position against liquidation.

01

Core Definition & Calculation

A Health Factor (HF) is a numerical value representing the safety margin of a collateralized debt position (CDP) in a lending protocol. It is calculated as the ratio of the collateral value (in the protocol's base currency) to the borrowed value, adjusted for each asset's Loan-to-Value (LTV) ratio. The formula is typically: HF = (Total Collateral Value * Collateral Factor) / Total Borrowed Value. A value above 1.0 indicates a safe position, while a value at or below 1.0 triggers liquidation.

02

Liquidation Threshold & Process

When the Health Factor falls to or below the liquidation threshold (usually 1.0), the position becomes eligible for liquidation. This process involves:

  • Liquidators repaying part or all of the user's debt.
  • Seizing a corresponding amount of the user's collateral, often at a liquidation discount (or penalty).
  • The discount incentivizes liquidators and protects the protocol from undercollateralized debt. A falling HF acts as an early warning system, prompting borrowers to add collateral or repay debt.
03

Key Risk Factors

A Health Factor is dynamic and primarily threatened by market volatility.

  • Collateral Value Decline: If the price of deposited collateral assets falls, the HF decreases.
  • Debt Value Increase: If the price of borrowed assets rises, the amount owed increases, lowering the HF.
  • Oracle Manipulation: Incorrect price feeds from oracles can falsely trigger or prevent liquidations.
  • Protocol Parameter Changes: Updates to LTV ratios or liquidation thresholds by governance can instantly affect all positions.
04

Best Practices for Users

To manage liquidation risk, users should:

  • Maintain a High HF: Operate with a significant buffer (e.g., HF > 1.5) to absorb market swings.
  • Monitor Actively: Use dashboards and alerts to track HF in real-time.
  • Understand Asset Risks: Be aware of the volatility and liquidity of both collateral and borrowed assets.
  • Prepare for Volatility: Have a plan (and funds) to add collateral or repay debt quickly during market stress.
05

Protocol Design & Safety

From a protocol perspective, the Health Factor is a core risk management mechanism. Key design choices include:

  • Setting conservative LTV ratios and liquidation thresholds for each asset.
  • Using robust, decentralized oracle networks for price feeds.
  • Implementing liquidation incentives (discounts) to ensure bad debt is cleared promptly.
  • Designing grace periods or soft liquidation mechanisms to reduce user penalty severity.
06

Related Metrics & Concepts

Health Factor interacts with several other DeFi risk concepts:

  • Loan-to-Value (LTV) Ratio: The maximum borrowing power against a collateral type.
  • Liquidation Threshold: The LTV level at which liquidation begins.
  • Liquidation Bonus/Discount: The incentive for liquidators.
  • Collateral Factor: Often synonymous with LTV in HF calculations.
  • Bad Debt: The protocol's loss if collateral value is insufficient after liquidation.
DEBUNKED

Common Misconceptions About Health Factor

The Health Factor is a critical metric in DeFi lending, but its mechanics are often misunderstood. This section clarifies the most frequent points of confusion to help users manage risk effectively.

No, a Health Factor of 1.0 is not safe; it is the exact threshold for liquidation. A Health Factor (HF) represents the safety margin of a loan. When HF = 1.0, the value of the collateral equals the liquidation threshold of the debt, meaning the position can be liquidated at any moment. Most protocols trigger liquidation slightly above 1.0 (e.g., 1.05) to account for price volatility and transaction delays. Users should maintain a significantly higher HF (e.g., 2.0 or more) to create a buffer against market fluctuations and avoid being the first in line for liquidation during a market dip.

Key Takeaway: Treat 1.0 as a danger zone, not a safe target.

HEALTH FACTOR

Frequently Asked Questions (FAQ)

Health Factor is a critical risk metric in DeFi lending protocols. These questions address its calculation, implications, and management.

A Health Factor (HF) is a numerical metric used by decentralized lending protocols like Aave and Compound to measure the safety of a user's loan position relative to the collateral backing it. It is calculated as the ratio of the total value of a user's collateral (adjusted by its collateral factor) to the total value of their borrowed assets. A Health Factor above 1.0 indicates the position is sufficiently collateralized and safe from liquidation. A Health Factor at or below 1.0 triggers a liquidation event, where a portion of the user's collateral is automatically sold to repay the debt and restore the protocol's solvency. This mechanism is fundamental to maintaining the protocol's overcollateralization and preventing bad debt.

ENQUIRY

Get In Touch
today.

Our experts will offer a free quote and a 30min call to discuss your project.

NDA Protected
24h Response
Directly to Engineering Team
10+
Protocols Shipped
$20M+
TVL Overall
NDA Protected Directly to Engineering Team
Health Factor: Definition & Calculation in DeFi | ChainScore Glossary