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 in decentralized finance (DeFi) lending protocols that represents the safety margin of a borrowing position, calculated as the ratio of the collateral's adjusted value to the total borrowed value.
Chainscore © 2026
definition
DEFI RISK METRIC

What is Health Factor?

A quantitative measure of the safety of a user's collateralized debt position in a decentralized finance (DeFi) lending protocol.

The Health Factor (HF) is a numerical value, typically calculated as HF = (Collateral Value * Collateral Factor) / Total Borrowed Value, that determines the risk of a position being liquidated. A health factor above 1.0 indicates the collateral value sufficiently covers the loan, while a value at or below 1.0 triggers a liquidation event, where a portion of the collateral is automatically sold to repay the debt. This mechanism protects lenders from undercollateralized loans and is a core risk-management feature of protocols like Aave, Compound, and MakerDAO.

Several variables directly impact the Health Factor. The collateral value fluctuates with the market price of the deposited assets (e.g., ETH, wBTC). The collateral factor (or Loan-to-Value ratio) is a protocol-set parameter defining the maximum percentage of an asset's value that can be borrowed against. The borrowed value includes the principal and accrued interest. Therefore, a Health Factor is dynamic: it decreases if the collateral's price falls, the borrowed asset's price rises, or interest accrues, moving the position closer to the liquidation threshold.

Users must actively monitor their Health Factor to avoid liquidation. A liquidation threshold (e.g., 1.0) is the specific HF value at which the position becomes eligible for liquidation. To improve a declining HF, a user can either deposit more collateral or repay part of the debt. Protocols often implement a liquidation penalty, an additional fee taken from the collateral during liquidation, making it a costly event for the borrower but providing an incentive for liquidators to participate and clear the bad debt.

The concept is analogous to the margin call in traditional finance but is executed trustlessly via smart contracts. In overcollateralized lending, the Health Factor ensures the system remains solvent even during high volatility. Advanced users may employ health factor monitoring tools and set up automated alerts. Understanding this metric is fundamental for managing risk in DeFi, as it quantifies the buffer between a safe position and one subject to forced closure.

key-features
DECOMPOSED

Key Features of Health Factor

The Health Factor is a critical risk metric in DeFi lending protocols, representing the safety margin of a user's collateralized debt position. A lower value indicates higher risk of liquidation.

01

Core Calculation

The Health Factor (HF) is calculated as the ratio of the Total Collateral Value to the Total Borrowed Value, adjusted for each asset's Loan-to-Value (LTV) ratio. The formula is typically:

HF = (Σ Collateral Amount * Collateral Price) / (Σ Borrowed Amount * Borrowed Price)

Where each collateral and borrowed asset is weighted by its specific risk parameters set by the protocol.

02

Liquidation Threshold

A Health Factor of 1.0 is the critical boundary. When HF ≤ 1.0, the position becomes eligible for liquidation.

  • Below 1.0: The collateral value is insufficient to cover the debt at the protocol's defined risk ratios, triggering a liquidation event.
  • Above 1.0: The position is considered safe, with a buffer against market volatility. Protocols often set a Liquidation Threshold slightly above 1.0 (e.g., 1.1) for different assets to account for price feed latency.
03

Dynamic Risk Metric

Health Factor is not static; it fluctuates in real-time based on:

  • Market Price Movements: Changes in the oracle-reported price of collateral or borrowed assets.
  • Debt Accumulation: Taking on additional debt decreases the HF.
  • Collateral Deposition: Adding collateral increases the HF.
  • Interest Accrual: As interest compounds on borrowed assets, the debt increases, gradually lowering the HF over time if not managed.
04

Asset-Specific Parameters

Protocols assign unique risk parameters to each supported asset, which directly impact the Health Factor calculation:

  • Loan-to-Value (LTV): Maximum borrowing power against collateral (e.g., 80% for ETH).
  • Liquidation Threshold: The HF level at which liquidation is triggered for that asset.
  • Liquidation Penalty: A fee applied during liquidation. A position with riskier collateral (lower LTV) will have a lower effective Health Factor for the same debt amount.
05

Primary Use Case: Risk Management

The HF serves as the central dashboard metric for users and protocols:

  • For Users: A real-time gauge of position safety. Users can add collateral or repay debt to increase their HF.
  • For Protocols: An automated trigger for the liquidation engine, ensuring the protocol remains over-collateralized and solvent.
  • For Liquidators: Identifies under-collateralized positions to arbitrage, paying off debt in exchange for discounted collateral.
06

Related Concept: Safety Buffer

A Safety Buffer is the practical margin users maintain above HF = 1.0 to avoid liquidation from normal market volatility. It is often expressed as a percentage or absolute HF value.

  • Example: A user with an HF of 2.0 has a 100% safety buffer.
  • Best Practice: Maintaining a high safety buffer (e.g., HF > 1.5) is crucial during periods of high market volatility to account for sudden price drops and liquidation cascades.
how-it-works
MECHANISM

How Health Factor Works: The Calculation

A technical breakdown of the mathematical formula that determines the solvency risk of a leveraged position in a decentralized lending protocol.

The Health Factor (HF) is a numerical metric calculated by a lending protocol to assess the risk of a user's collateralized debt position becoming undercollateralized. It is defined as the ratio of the Total Collateral Value (in the protocol's base currency, e.g., USD) to the Total Borrowed Value, adjusted by each asset's Liquidation Threshold. The canonical formula is: Health Factor = (Σ Collateral Amount * Collateral Price * Liquidation Threshold) / (Σ Borrowed Amount * Borrowed Price). A health factor above 1.0 indicates a safe position, while a value at or below 1.0 makes the position eligible for liquidation.

Breaking Down the Components

Each variable in the formula is dynamically sourced from the protocol's oracle system and risk parameters. The Collateral Amount and Borrowed Amount are the raw token quantities deposited and loaned. The Collateral Price and Borrowed Price are real-time market prices provided by a decentralized oracle like Chainlink. The Liquidation Threshold is a risk parameter set by the protocol governance, expressed as a percentage (e.g., 80%), representing the maximum loan-to-value (LTV) ratio before liquidation is triggered. This threshold acts as a safety buffer below the asset's maximum LTV for borrowing.

The calculation is portfolio-based, meaning it aggregates all a user's supplied collateral and outstanding debts across different assets within the protocol. For example, a user might supply 10 ETH and 10,000 USDC as collateral, and borrow 15,000 DAI. The health factor is not calculated per asset but for the entire account, summing the adjusted collateral value of ETH and USDC and dividing by the total debt value in DAI. This holistic view means a price drop in one collateral asset can endanger debts backed by multiple assets.

A critical feature is the dynamic and real-time nature of the health factor. It fluctuates continuously with market prices. A falling collateral price (e.g., ETH dropping) decreases the numerator, while a rising borrowed asset price increases the denominator—both actions lower the HF. Users must monitor this ratio closely, as crossing the Liquidation Threshold (HF ≤ 1) allows liquidators to repay part of the debt in exchange for seized collateral, often at a discount, to restore the protocol's solvency.

Understanding this calculation is essential for risk management. Developers integrate health factor queries into dashboards and alert systems, while users employ strategies like overcollateralization (depositing more collateral than the minimum required) and maintaining a health factor buffer (e.g., keeping HF > 1.5) to avoid liquidations during normal market volatility. The precise formula and parameters are immutable protocol logic, typically verified through audits and visible on block explorers like Etherscan.

protocol-examples
IMPLEMENTATION COMPARISON

Health Factor in Major Protocols

While the core concept of a Health Factor (HF) is universal—a numerical representation of a loan's safety—its calculation and risk thresholds vary significantly across major lending and borrowing protocols.

06

Common Liquidation Triggers

Despite different calculations, all protocols trigger liquidation to protect solvency. The primary triggers are:

  • Health Factor/Collateral Ratio ≤ Liquidation Threshold: The standard case due to market movements.
  • Oracle Price Updates: A sharp price drop in collateral or rise in borrowed asset value, as reported by the oracle.
  • Interest Accrual: For protocols with compounding interest (like Compound, Aave), the growing debt can slowly push HF downward.
  • Protocol-wide Emergency States: Like Liquity's Recovery Mode or Aave's freeze actions, which can change parameters globally.
LIQUIDATION RISK MATRIX

Health Factor States and Consequences

A comparison of user positions based on their Health Factor value, detailing the associated risks and potential protocol actions.

Health Factor RangeRisk StateProtocol ActionUser Action Required

HF > 1.5

Safe

None

Monitoring recommended

1.0 < HF ≤ 1.5

At Risk

None

Add collateral or repay debt

HF = 1.0

Liquidation Threshold

Liquidation enabled

Immediate action required

HF < 1.0

Unhealthy

Partial liquidation triggered

Position is being liquidated

HF << 1.0 (e.g., < 0.95)

Critically Unhealthy

Full liquidation likely

Position will be closed

user-actions-impact
MECHANICS

How User Actions Affect Health Factor

A user's Health Factor is a dynamic metric that changes with every on-chain interaction involving their collateral or debt positions. Understanding these actions is critical for managing liquidation risk.

01

Depositing Collateral

Depositing additional collateral assets into a lending protocol increases the total value of the user's collateral. This directly increases the numerator in the Health Factor calculation, thereby raising the Health Factor and improving the safety margin against liquidation.

  • Example: Adding 1 ETH as collateral when ETH is worth $3,000 increases your collateral value by $3,000.
  • This is the primary action to recover a low Health Factor.
02

Withdrawing Collateral

Withdrawing collateral reduces the total value securing the loan. This decreases the numerator in the Health Factor formula, lowering the Health Factor and bringing the position closer to the liquidation threshold.

  • Key Risk: This action can trigger immediate liquidation if the resulting Health Factor falls below 1.0.
  • Protocols often prevent withdrawals that would make the Health Factor unsafe (e.g., below 1.1).
03

Borrowing Assets

Taking out a new loan or increasing an existing debt position increases the total borrowed value. This increases the denominator in the Health Factor calculation (adjusted for asset-specific Loan-to-Value ratios), which lowers the Health Factor.

  • The impact is magnified by the LTV factor of the borrowed asset.
  • Example: Borrowing a stablecoin with a 75% LTV has a greater negative impact on HF than borrowing an asset with a 50% LTV, for the same dollar amount.
04

Repaying Debt

Repaying borrowed assets (principal or interest) reduces the total debt owed. This decreases the denominator in the Health Factor calculation, which raises the Health Factor and improves the position's safety.

  • This is the most direct way to improve a low Health Factor aside from adding collateral.
  • Partial repayments provide a proportional improvement.
05

Asset Price Volatility

While not a direct user action, the oracle-reported price of collateral and borrowed assets constantly changes. A drop in collateral value or a rise in borrowed asset value decreases the Health Factor.

  • Users must monitor price feeds as external market movements can silently degrade their Health Factor.
  • This is why volatile assets have lower LTV ratios to create a larger safety buffer.
06

Liquidation as a Forced Action

When Health Factor falls below the protocol's liquidation threshold (typically 1.0), a liquidation is triggered. This is a forced action by the protocol or liquidators that:

  • Sells a portion of the user's collateral at a discount to repay their debt.
  • Charges a liquidation penalty (e.g., 5-15%).
  • The goal is to restore the Health Factor above 1.0, often leaving the user with significantly less collateral.
security-considerations
HEALTH FACTOR

Security and Risk Considerations

The Health Factor is a critical risk metric in DeFi lending protocols, representing the safety margin of a user's collateralized debt position. It directly determines the risk of liquidation.

01

Definition & Core Mechanism

A Health Factor (HF) is a numerical ratio that measures the safety of a collateralized debt position (CDP). It is calculated as (Collateral Value * Collateral Factor) / Borrowed Value. A value above 1.0 indicates a safe position, while a value at or below 1.0 triggers liquidation. This mechanism ensures the protocol remains over-collateralized.

02

Liquidation Threshold & Process

When the Health Factor drops to the liquidation threshold (e.g., 1.0), the position becomes eligible for liquidation. This occurs when:

  • The collateral value falls (e.g., market crash).
  • The borrowed value rises (e.g., stablecoin depeg). A liquidator repays part of the debt in exchange for seized collateral at a liquidation penalty, restoring the HF above 1.0.
03

Key Risk Factors

Several variables impact HF stability and liquidation risk:

  • Volatility: High volatility in collateral assets causes rapid HF fluctuations.
  • Collateral Factor (LTV): The maximum loan-to-value ratio set by the protocol; a lower factor provides a larger safety buffer.
  • Oracle Risk: HF relies on price oracles. Stale or manipulated prices can cause inaccurate HF calculations and unjust liquidations.
  • Interest Rates: Variable borrow rates can increase the debt balance over time, slowly eroding the HF.
04

Monitoring & Risk Mitigation

Users must actively monitor their HF to avoid liquidation. Mitigation strategies include:

  • Adding Collateral: Depositing more assets to increase the numerator.
  • Repaying Debt: Reducing the borrowed amount to decrease the denominator.
  • Using Safer Assets: Choosing less volatile collateral with higher collateral factors.
  • Automated Tools: Utilizing liquidation protection services or setting up wallet alerts for HF thresholds.
05

Protocol-Specific Variations

While the core concept is universal, implementations differ:

  • Aave: Uses a single HF; positions are liquidated down to an HF of 1.0.
  • Compound: Uses a related Collateral Factor and Liquidation Threshold; liquidation occurs when Borrowed Value > Collateral Value * Liquidation Threshold.
  • MakerDAO: Uses a Collateralization Ratio (inverse of LTV) and a Liquidation Ratio; Vaults are liquidated via auctions when the ratio falls below the required minimum.
06

Related Risk Metrics

Health Factor interacts with other key security concepts:

  • Loan-to-Value (LTV): The inverse of the collateral factor; the maximum borrow amount against collateral.
  • Liquidation Bonus/Penalty: The discount liquidators receive on seized collateral, which is a cost to the borrower.
  • Liquidation Close Factor: The maximum percentage of a borrow that can be liquidated in a single transaction (e.g., 50% on Compound).
  • Safety Buffer: The practical margin (e.g., maintaining HF > 1.5) users should target above the protocol minimum.
DEBUNKED

Common Misconceptions About Health Factor

The Health Factor is a critical risk metric in DeFi lending protocols, yet it is often misunderstood. This section clarifies persistent myths about its calculation, interpretation, and relationship to liquidation.

No, a Health Factor above 1.0 does not guarantee safety from liquidation. The Health Factor is a dynamic metric that updates with every price movement in the underlying collateral and borrowed assets. A position with a Health Factor of 1.1 is only one significant market dip away from crossing the liquidation threshold (typically 1.0). Furthermore, high network congestion can delay transaction execution, meaning a user's attempt to add collateral or repay debt might fail while prices move against them, causing a "safe" position to be liquidated before the rescue transaction confirms.

HEALTH FACTOR

Frequently Asked Questions (FAQ)

A comprehensive guide to the Health Factor, a critical risk metric in DeFi lending protocols like Aave and Compound, which determines the safety of a user's collateralized debt position.

A Health Factor (HF) is a numerical metric used by decentralized lending protocols to measure the risk of a user's collateralized debt position (CDP) becoming undercollateralized. It is calculated by dividing the total value of the user's supplied collateral (adjusted by its collateral factor) by the total value of their borrowed assets. A Health Factor above 1.0 indicates a safe position, while a value at or below 1.0 risks liquidation. For example, if you deposit $10,000 of ETH (with a 75% collateral factor) and borrow $5,000 of USDC, your Health Factor is ($10,000 * 0.75) / $5,000 = 1.5.

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